joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441010
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44103d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44103d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x403f59
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x403f68
pop dword [ebp - 0x4c]
mov eax, 0xa027e9e8
add eax, 0x60185580
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x76f97d79
sub dword [ebp - 0x5c], 0x28a7382e
mov dword [ebp - 0x58], 0xf12b996f
sub dword [ebp - 0x58], 0xbef84d2a
mov dword [ebp - 0x54], 0x5d32b70f
sub dword [ebp - 0x54], 0x10e672e1
mov dword [ebp - 0x50], 0x4222f909
sub dword [ebp - 0x50], 0x4222f909
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xca13c032
sub dword [ebp - 0x5c], 0x55a156dc
mov dword [ebp - 0x58], 0x48f71a2e
sub dword [ebp - 0x58], 0x78ab8b9
mov dword [ebp - 0x54], 0x7fbc22be
sub dword [ebp - 0x54], 0x1c4cb652
mov dword [ebp - 0x50], 0xd4e53d9b
sub dword [ebp - 0x50], 0xd4e53d9b
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x59e2b4e6
sub eax, 0x59a1e49a
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3ca0c
push 0
call eax
mov ecx, 0x56481b9c
add ecx, 0xa9b83885
mov edx, eax
mov esi, 0x41b000
add esi, dword [ebp - 0x4c]
mov ebx, 0x1034e2da
add ebx, 0x5da86b4e
sub dword [ebp - 0x28], 0x3797719e
mov edi, dword [esi]
xor dword [ebp - 0x30], ebx
xor edi, ebx
mov dword [ebp - 8], 0xf70e6642
mov dword [edx], edi
xor dword [ebp - 0x34], 0x6ca8ccb1
add edx, 4
add esi, 0xf11acc3d
add esi, 0xee533c7
loop 0x40407f
add eax, 0xa94bad98
sub eax, 0xa94a6a41
mov ebx, eax
add eax, 0x7095a42c
sub eax, 0x7095a427
mov ecx, 0x1284dc18
add ecx, 0xedbb23e8
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x4013e7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x44d104]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
test byte [0x450ce0], 1
jne 0x401431
mov eax, dword [0x44fc0c]
or dword [0x450ce0], 1
mov ecx, 0x44fc0c
call dword [eax + 0xc]
add eax, 0x10
push 0x43e7b7
mov dword [0x450cdc], eax
call fcn.004275e2
pop ecx
mov eax, dword [0x450cdc]
cmp dword [eax - 0xc], 0
jne 0x40147b
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x401476
push esi
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x450cdc
push esi
call fcn.00401aac
call fcn.00421d1a
push str.drivers_
push esi
call fcn.0040153c
pop esi
mov eax, dword [0x450cdc]
add eax, 0xfffffff0
call fcn.00401992
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [edi], eax
xor ecx, ebp
mov eax, edi
call fcn.004279c4
leave
ret

Function at 0x401bb2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401bc9
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401bfe
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x401bfa
cmp edi, eax
jae 0x401bfe
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x401bec
cmp edi, eax
jb 0x401c02
xor eax, eax
jmp 0x401c0c
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x402016
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x44d104]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 4
mov eax, 0x43d1f2
call fcn.0042cbb7
xor esi, esi
push 0x206
lea eax, [ebp + 2]
push esi
push eax
xor ebx, ebx
mov word [ebp], si
call fcn.0042af20
mov eax, dword [0x44fc0c]
add esp, 0xc
mov ecx, 0x44fc0c
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
lea eax, [ebp]
push eax
push 0x104
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
mov esi, 0x450c78
je 0x4020d8
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp]
push eax
push esi
call fcn.00401aac
push str.TencentDownload_
push esi
call fcn.0040153c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str._x_
lea eax, [ebp - 0x10]
call fcn.0040186a
mov edi, dword [ebp - 0x10]
pop ecx
pop ecx
push dword [edi - 0xc]
mov eax, esi
push edi
call fcn.004018fa
push dword [0x450c78]
call fcn.00421da6
test eax, eax
pop ecx
je 0x4020d8
inc ebx
jmp 0x4020dd
call fcn.00401deb
lea eax, [edi - 0x10]
call fcn.00401a94
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004279c4
add ebp, 0x20c
leave
ret
Function at 0x4025d7
Capabilities:
Delete file

Disassembly:
push 0xc
mov eax, 0x43d4b5
call fcn.0042cbb7
mov eax, dword [0x44fc0c]
xor ebx, ebx
mov ecx, 0x44fc0c
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], ebx
xor edi, edi
call fcn.004026ab
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x40268d
cmp dword [eax], 0x4034b50
jne 0x402643
push 0xc
call fcn.00411865
mov edi, eax
cmp edi, ebx
pop ecx
je 0x40263f
lea esi, [edi + 4]
mov dword [edi], 0x44564c
call fcn.00401cd7
mov dword [edi + 8], ebx
jmp 0x40265b
xor edi, edi
jmp 0x40265b
push 0x28
call fcn.00411865
cmp eax, ebx
pop ecx
je 0x402657
push eax
call fcn.00420f99
jmp 0x402659
xor eax, eax
mov edi, eax
cmp edi, ebx
je 0x40268d
push dword [ebp + 0xc]
mov eax, dword [edi]
push dword [ebp - 0x10]
push dword [ebp + 8]
push edi
call dword [eax]
test eax, eax
je 0x402686
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401a94
mov eax, ebx
call fcn.0042cc8f
ret 8
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], ebx
je 0x40269c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp edi, ebx
je 0x4026a6
mov eax, dword [edi]
push edi
call dword [eax + 0xc]
mov ebx, dword [ebp - 0x18]
jmp 0x402671

Function at 0x40278c
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x44d104]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push ebx
push edi
xor edi, edi
push 0x206
lea eax, [ebp - 0x7a]
push edi
push eax
mov dword [ebp - 0x80], edi
mov word [ebp - 0x7c], di
call fcn.0042af20
add esp, 0xc
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402836
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push eax
push edi
push 2
push edi
push ebx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp ebx, edi
mov dword [esi], eax
je 0x40282f
push dword [esi + 8]
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 4], eax
je 0x40282f
mov dword [ebp - 0x80], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x18c]
mov eax, dword [ebp - 0x80]
pop edi
xor ecx, ebp
pop ebx
call fcn.004279c4
add ebp, 0x190
leave
ret
Function at 0x402ac1
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
call fcn.00401496
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x402b6e
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x200000
ja 0x402b6d
lea eax, [edi + 1]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp + 8], edi
call fcn.004014d5
mov esi, eax
mov dword [ebp - 4], esi
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402b6d
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x402b6d
sub dword [ebp + 8], eax
add dword [ebp - 4], eax
cmp dword [ebp + 8], ebx
jne 0x402b1e
mov byte [esi + edi], bl
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
cmp eax, ebx
jne 0x402b58
xor eax, eax
jmp 0x402b5f
push eax
call fcn.00427600
pop ecx
mov edx, esi
call fcn.00401690
mov dword [ebp - 0xc], 1
pop edi
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret 8

Function at 0x403651
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
and dword [ebp + 8], 0
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x40366e
mov eax, dword [ebp - 4]
jmp 0x403748
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x403723
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
nop
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x443a30]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x443a30]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x443a30]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x443a30]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x443a30]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x443a30]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x443a30]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x443a30]
dec ebp
jne 0x40368d
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x40373f
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x443a30]
dec ecx
jne 0x40372d
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4084ef
Capabilities:
Terminate process

Disassembly:
push ebx
lea ebx, [esi + 4]
cmp dword [ebx], 0
jne 0x408503
push ebx
call fcn.00411358
test eax, eax
pop ecx
jne 0x408545
push edi
lea edi, [esi + 8]
cmp dword [edi], 0
jne 0x408517
push edi
call fcn.00411358
test eax, eax
pop ecx
jne 0x408544
mov eax, ebx
call fcn.0041133d
mov eax, edi
call fcn.0041133d
lea eax, [esi + 0xc]
cmp dword [eax], 0
mov byte [esi + 0x10], 0
je 0x408535
xor eax, eax
jmp 0x408544
push esi
push 0x4084c5
push eax
call fcn.004112bb
add esp, 0xc
pop edi
pop ebx
ret
Function at 0x40c4ef
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
je 0x40c4fb
xor eax, eax
pop ebp
ret
lea eax, [esi + 0x30]
push eax
call fcn.004113b3
test eax, eax
pop ecx
je 0x40c50e
push 0xc
pop eax
pop ebp
ret
push edi
xor edi, edi
lea eax, [esi + 0x14]
inc edi
push eax
mov dword [esi + 0x28], edi
call fcn.00411358
test eax, eax
pop ecx
jne 0x40c582
lea eax, [esi + 0x18]
push eax
call fcn.00411358
test eax, eax
pop ecx
jne 0x40c582
lea eax, [esi + 0x1c]
push eax
call fcn.00411358
test eax, eax
pop ecx
jne 0x40c582
push dword [ebp + 0x10]
lea eax, [esi + 0x20]
push dword [ebp + 0x10]
push eax
call fcn.00411369
add esp, 0xc
test eax, eax
jne 0x40c582
push dword [ebp + 0x10]
push eax
lea eax, [esi + 0x24]
push eax
call fcn.00411369
add esp, 0xc
test eax, eax
jne 0x40c582
push dword [ebp + 0xc]
lea eax, [esi + 0x10]
push dword [ebp + 8]
mov dword [esi + 4], edi
push eax
call fcn.004112bb
add esp, 0xc
test eax, eax
je 0x40c587
push 0xc
pop eax
jmp 0x40c58b
mov dword [esi], edi
xor eax, eax
pop edi
pop ebp
ret

Function at 0x40ebf5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
mov eax, 0x100
push edi
mov ebx, eax
or esi, eax
shl dword [ebp + 0x10], 1
mov eax, esi
shr eax, 7
and eax, 1
push eax
mov eax, ebx
and eax, dword [ebp + 0x10]
mov ecx, esi
add eax, ebx
shr ecx, 8
add ecx, eax
mov eax, dword [ebp + 0xc]
lea edi, [eax + ecx*2]
mov eax, dword [ebp + 8]
call fcn.0040eb6f
add esi, esi
mov eax, esi
xor eax, dword [ebp + 0x10]
pop ecx
not eax
and ebx, eax
cmp esi, 0x10000
jb 0x40ec06
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40ec47
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
or ecx, 0x100
push esi
mov esi, dword [esp + 8]
mov edx, ecx
shr edx, 8
movzx edx, word [esi + edx*2]
mov esi, ecx
shr esi, 7
and esi, 1
neg esi
sar esi, 4
and esi, 0x7f
shr edx, 4
xor edx, esi
mov esi, dword [esp + 0xc]
add eax, dword [esi + edx*4]
add ecx, ecx
cmp ecx, 0x10000
jb 0x40ec50
pop esi
ret

Function at 0x40ec85
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x100
push esi
xor eax, eax
or edx, ecx
push edi
shl dword [ebp + 0xc], 1
mov esi, ecx
and esi, dword [ebp + 0xc]
mov edi, edx
add esi, ecx
shr edi, 8
add edi, esi
mov esi, dword [ebp + 8]
movzx esi, word [esi + edi*2]
mov edi, edx
shr edi, 7
and edi, 1
neg edi
shr esi, 4
sar edi, 4
and edi, 0x7f
xor esi, edi
mov edi, dword [ebp + 0x10]
add eax, dword [edi + esi*4]
add edx, edx
mov esi, edx
xor esi, dword [ebp + 0xc]
not esi
and ecx, esi
cmp edx, 0x10000
jb 0x40ec93
pop edi
pop esi
pop ebp
ret

Function at 0x40ed8b
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
push esi
mov esi, eax
xor eax, eax
inc edx
test esi, esi
je 0x40edcb
push ebx
push edi
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
movzx edi, word [edi + edx*2]
shr dword [esp + 0x14], 1
and ecx, 1
mov ebx, ecx
neg ebx
sar ebx, 4
and ebx, 0x7f
shr edi, 4
xor edi, ebx
mov ebx, dword [esp + 0x18]
add eax, dword [ebx + edi*4]
add edx, edx
or edx, ecx
dec esi
jne 0x40ed99
pop edi
pop ebx
pop esi
ret
Function at 0x410713
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
xor edx, edx
lea ecx, [esi + 0x19c]
mov dword [esi + 0x3bcd4], edx
mov dword [esi + 0x3bcd0], edx
push ebx
mov dword [ecx + 0x30], edx
mov dword [ecx + 0x4c], edx
mov dword [ecx + 0x20], edx
mov dword [ecx + 0x2c], 0x20
mov dword [ecx + 0x54], 1
mov dword [ecx + 0x48], 4
mov dword [ecx + 0x58], edx
mov dword [ebp - 4], edx
lea eax, [ecx + 0x70]
push edi
mov edi, dword [ebp - 4]
mov dword [ebp - 8], 8
mov ebx, edi
and ebx, 1
dec ebx
not ebx
and ebx, 0xedb88320
shr edi, 1
xor edi, ebx
dec dword [ebp - 8]
jne 0x410760
inc dword [ebp - 4]
mov dword [eax], edi
add eax, 4
cmp dword [ebp - 4], 0x100
jb 0x410756
mov dword [esi + 0x118], edx
lea eax, [esi + 0x148]
mov dword [eax], edx
mov dword [eax + 0x28], edx
mov dword [eax + 0x2c], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x74], edx
mov dword [esi + 0x78], edx
mov dword [esi + 0x5c], edx
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], edx
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], edx
mov dword [esi + 0x70], edx
lea eax, [ebp - 0x38]
mov dword [esi + 0x198], ecx
call fcn.0040e865
mov ebx, esi
call fcn.0040e968
push 2
pop edi
mov byte [esi + 0x306a0], 0
mov byte [esi + 0x306a1], 1
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 4]
xor ebx, ebx
sar ecx, 1
dec ecx
inc ebx
shl ebx, cl
test ebx, ebx
jbe 0x410817
push ebx
push dword [ebp - 4]
lea eax, [edi + esi + 0x306a0]
push eax
call fcn.0042af20
add esp, 0xc
add edi, ebx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x16
jl 0x4107f2
push 8
pop edi
mov edx, 0x10000
push 4
mov eax, edi
xor ecx, ecx
pop ebx
imul eax, eax
add ecx, ecx
jmp 0x410839
shr eax, 1
inc ecx
cmp eax, edx
jae 0x410836
dec ebx
jne 0x41082f
mov eax, 0xa1
sub eax, ecx
mov ecx, edi
shr ecx, 4
add edi, 0x10
cmp edi, 0x800
mov dword [esi + ecx*4 + 0x30ea0], eax
jb 0x410828
and dword [esi + 0x325ac], ebx
and dword [esi + 0x3bd14], ebx
pop edi
pop ebx
leave
ret

Function at 0x4112bb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.0042bd5a
mov ecx, dword [ebp + 8]
add esp, 0x18
test eax, eax
mov dword [ecx], eax
je 0x4112e4
xor eax, eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4112ef
inc eax
leave
ret
Function at 0x41d610
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43cda5
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x44d104]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x258]
push dword [esi + 8]
mov eax, dword [esi]
xor ebx, ebx
push ebx
mov ecx, esi
call dword [eax + 4]
lea eax, [esp + 0x10]
add edi, 0x1c8
push eax
call fcn.00409866
push 0xe
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], ebx
call fcn.0041d58c
pop ecx
push 0xf
lea ecx, [esp + 0x14]
call fcn.0041d58c
pop ecx
push 0x11
push esi
lea edi, [esp + 0x18]
call fcn.0041d548
push 0x10
push esi
call fcn.0041d548
push 9
push esi
call fcn.0041d548
push 6
push esi
call fcn.0041d548
push 0x12
push esi
call fcn.0041d548
push 0x14
push esi
call fcn.0041d548
push 0x13
push esi
call fcn.0041d548
push 0x15
push esi
call fcn.0041d548
add esp, 0x40
push 0xa
push esi
call fcn.0041d548
push 0x16
push esi
call fcn.0041d548
add esp, 0x10
mov eax, esi
call fcn.00409915
push ebx
push 0x61
call fcn.004089e9
push ebx
push 0x62
call fcn.004089e9
push ebx
push 0x63
call fcn.004089e9
push 0x14
mov eax, esi
call fcn.0041d5c2
pop ecx
push 6
mov eax, esi
call fcn.0041d5c2
pop ecx
push 9
mov eax, esi
call fcn.0041d5c2
pop ecx
push 0x11
mov eax, esi
call fcn.0041d5c2
pop ecx
or dword [esp + 0x30], 0xffffffff
mov ecx, edi
call fcn.004116ed
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421d55
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, ecx
push 0
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 8], eax
push eax
jmp 0x421d8c
mov eax, dword [ebp - 4]
add ebx, eax
sub dword [ebp - 8], eax
je 0x421d98
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x421d79
jmp 0x421d9f
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret

Function at 0x421da6
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 4
mov eax, 0x43c636
call fcn.0042cbb7
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00401ad5
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x421de6
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401a94
mov eax, esi
call fcn.0042cc8f
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x421dd0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x421dd0
lea ecx, [ebp - 0x10]
call section..text
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x421e1d
xor esi, esi
jmp 0x421dd3
push eax
call fcn.00421da6
test eax, eax
pop ecx
je 0x421e19
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x421dd0
call edi
cmp eax, ebx
jne 0x421e19
jmp 0x421dd0

Function at 0x421ed5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x44d104]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
test byte [0x450ce8], 1
jne 0x421f1f
mov eax, dword [0x44fc0c]
or dword [0x450ce8], 1
mov ecx, 0x44fc0c
call dword [eax + 0xc]
add eax, 0x10
push 0x43e7d3
mov dword [0x450ce4], eax
call fcn.004275e2
pop ecx
mov eax, dword [0x450ce4]
cmp dword [eax - 0xc], 0
jne 0x421f69
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x421f64
push esi
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x450ce4
push esi
call fcn.00401aac
call fcn.00421d1a
push str.drivers_
push esi
call fcn.0040153c
pop esi
mov eax, dword [0x450ce4]
add eax, 0xfffffff0
call fcn.00401992
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [edi], eax
xor ecx, ebp
mov eax, edi
call fcn.004279c4
leave
ret

Function at 0x422f17
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x422f2a
xor al, al
ret
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
ret
Function at 0x424a29
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
mov esi, edx
jne 0x424a34
xor eax, eax
pop esi
ret
cmp eax, 8
push ebx
not esi
mov edx, 0xff
jb 0x424ae6
push edi
mov edi, eax
shr edi, 3
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x443138]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x443138]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x443138]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x443138]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x443138]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x443138]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x443138]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x443138]
inc ecx
sub eax, 8
dec edi
jne 0x424a4b
pop edi
test eax, eax
je 0x424aff
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x443138]
inc ecx
dec eax
jne 0x424aea
mov eax, esi
pop ebx
not eax
pop esi
ret

Function at 0x424b06
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x443138]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x443138]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x4251b5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x4251e5
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4251e0
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x42521d
xor eax, eax
mov ecx, edi
add ecx, dword [esi + 0x28]
adc eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x24]
jl 0x425201
jg 0x4251fb
cmp ecx, dword [esi + 0x20]
jbe 0x425201
mov edi, dword [esi + 0x20]
sub edi, dword [esi + 0x28]
mov eax, dword [esi + 0x1c]
add eax, dword [esi + 0x28]
push edi
push eax
push dword [ebp + 8]
call fcn.00427e50
add esp, 0xc
add dword [esi + 0x28], edi
mov eax, edi
adc dword [esi + 0x2c], 0
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret