joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404518
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf90]
mov eax, 0x1010
call fcn.00416a20
mov eax, dword [0x432c20]
xor eax, ebp
mov dword [ebp + 0xf8c], eax
mov eax, dword [ebp + 0xf98]
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
xor ebx, ebx
push ebx
mov dword [ebp - 0x7c], eax
push 4
lea eax, [ebp - 0x78]
push eax
push dword [edi]
call esi
cmp eax, 4
je 0x40455e
xor eax, eax
jmp 0x4045a6
cmp dword [ebp - 0x78], ebx
jbe 0x404595
push 0
push 0x1000
lea eax, [ebp - 0x74]
push eax
push dword [edi]
call esi
mov dword [ebp - 0x80], eax
test eax, eax
je 0x404595
mov ecx, dword [ebp - 0x7c]
push dword [ecx]
push eax
lea eax, [ebp - 0x74]
push 1
push eax
call fcn.00412804
add ebx, dword [ebp - 0x80]
add esp, 0x10
cmp ebx, dword [ebp - 0x78]
jb 0x404563
mov eax, dword [ebp - 0x7c]
push dword [eax]
call fcn.00412626
cmp ebx, dword [ebp - 0x78]
pop ecx
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0xf8c]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041214d
add ebp, 0xf90
leave
ret

Function at 0x4045bd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x42d0b0
mov ebx, eax
push 0x81
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
cmp ebp, edi
je 0x40462a
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebp
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
mov eax, dword [esp + 0x14]
push esi
mov dword [eax], esi
call fcn.00407cee
push esi
mov edi, eax
push 0
push edi
call fcn.00414570
push esi
push ebp
push edi
call fcn.00418860
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
ret

Function at 0x404630
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40465d
push dword [ebp + 8]
call fcn.004046d3
pop ecx
cmp eax, dword [ebp + 0x10]
jne 0x40465d
inc ebx
jmp 0x4046ca
mov edi, 0x200000
push edi
call fcn.0041351a
pop ecx
mov esi, eax
push esi
push dword [ebp + 0x10]
mov dword [esp + 0x18], edi
push dword [ebp + 0xc]
lea edi, [esp + 0x1c]
call fcn.00404728
add esp, 0xc
test eax, eax
je 0x4046c3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0041317d
pop ecx
call fcn.00403097
mov edi, dword [esp + 0x10]
push eax
lea ebx, [edi + esi]
mov dword [esp + 0x18], eax
call fcn.0040316f
add edi, dword [esp + 0x18]
pop ecx
push edi
push esi
push dword [ebp + 8]
call fcn.00404796
add esp, 0xc
mov ebx, eax
dec ebx
neg ebx
sbb ebx, ebx
inc ebx
push esi
call fcn.00413a8d
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4046d3
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push connect
push dword [ebp + 8]
or esi, 0xffffffff
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, esi
jne 0x404702
mov edx, esi
jmp 0x404721
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x404718
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x404796
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4047b6
mov eax, dword [ebp + 8]
call fcn.00404801
test eax, eax
je 0x4047fc
push edi
push esi
push esi
push 2
push esi
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4047fb
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jne 0x4047f4
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x404801
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x404814
xor eax, eax
pop esi
ret
test al, 1
je 0x40481b
xor eax, 1
test al, 4
je 0x404822
xor eax, 4
test al, 2
je 0x404829
xor eax, 2
test al, 0x20
je 0x404830
xor eax, 0x20
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
pop esi
ret
Function at 0x40601f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x40602a
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x4060dc
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42cc10]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42cc10]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42cc10]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42cc10]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42cc10]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42cc10]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42cc10]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42cc10]
inc ecx
sub edi, 8
dec esi
jne 0x406041
pop ebx
test edi, edi
je 0x4060f5
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x42cc10]
inc ecx
dec edi
jne 0x4060e0
pop esi
not eax
pop edi
ret

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

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x42cc10]
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 + 0x42cc10]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x40676f
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 0x40679f
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 0x40679a
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x4067c7
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x4067b0
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00418860
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret
Function at 0x407477
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [ebx], 0
push esi
push edi
jne 0x40751d
cmp dword [ebx + 4], 0xffffffff
jne 0x40751d
lea esi, [ebx + 0x244]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4074a4
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp ax, 0x5c
je 0x4074db
cmp ax, 0x2f
je 0x4074db
dec esi
dec esi
mov ax, word [esi + 2]
inc esi
inc esi
test ax, ax
jne 0x4074c8
mov edi, esi
mov esi, 0x42d694
movsd dword es:[edi], dword [esi]
push 0x20
call fcn.00407cee
and dword [eax + 0x1c], 0
and dword [eax + 0xc], 0
pop ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x14]
push eax
mov byte [eax], 0
mov byte [eax + 1], 1
mov byte [eax + 0x10], 0
mov dword [eax + 0x18], ecx
call fcn.004069e8
mov dword [ebx], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x407522
mov eax, 0x1000000
pop edi
pop esi
pop ecx
ret 8

Function at 0x41214d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x432c20]
jne 0x412157
repz ret
jmp fcn.00416a4b

Function at 0x421a4b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041aece
and dword [ebp - 4], 0
cmp dword [0x436abc], 0
mov ebx, eax
jne 0x421afc
push 0x42adec
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x421bad
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42ade0
push edi
call esi
test eax, eax
je 0x421bad
push eax
call fcn.0041ae5c
mov dword [esp], 0x42add0
push edi
mov dword [0x436abc], eax
call esi
push eax
call fcn.0041ae5c
mov dword [esp], 0x42adbc
push edi
mov dword [0x436ac0], eax
call esi
push eax
call fcn.0041ae5c
mov dword [esp], 0x42ada0
push edi
mov dword [0x436ac4], eax
call esi
push eax
call fcn.0041ae5c
pop ecx
mov dword [0x436acc], eax
test eax, eax
je 0x421afc
push 0x42ad88
push edi
call esi
push eax
call fcn.0041ae5c
pop ecx
mov dword [0x436ac8], eax
mov eax, dword [0x436ac8]
cmp eax, ebx
je 0x421b54
cmp dword [0x436acc], ebx
je 0x421b54
push eax
call fcn.0041aed7
push dword [0x436acc]
mov esi, eax
call fcn.0041aed7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x421b54
test edi, edi
je 0x421b54
call esi
test eax, eax
je 0x421b4b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x421b4b
test byte [ebp - 0xc], 1
jne 0x421b54
or dword [ebp + 0x10], 0x200000
jmp 0x421b8d
mov eax, dword [0x436ac0]
cmp eax, ebx
je 0x421b8d
push eax
call fcn.0041aed7
pop ecx
test eax, eax
je 0x421b8d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x421b8d
mov eax, dword [0x436ac4]
cmp eax, ebx
je 0x421b8d
push eax
call fcn.0041aed7
pop ecx
test eax, eax
je 0x421b8d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x436abc]
call fcn.0041aed7
pop ecx
test eax, eax
je 0x421bad
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x421baf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4015f0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x10], ecx
xor bh, bh
mov dword [ebp - 8], esi
push edi
xor bl, bl
nop word [eax + eax]
movzx eax, bl
mov edx, eax
mov dword [ebp - 0xc], 4
and edx, 3
mov ecx, eax
and ecx, 0xfffffffc
mov dword [ebp - 0x14], edx
xor edx, edx
mov dword [ebp - 0x18], ecx
add esi, eax
nop
sub dword [ebp - 0xc], 1
lea eax, [edx + ecx]
mov ecx, dword [ebp - 0x14]
lea edx, [edx + 1]
mov edi, dword [ebp - 0x10]
lea esi, [esi + 4]
lea ecx, [ecx + eax*4]
mov al, byte [esi - 4]
mov byte [ecx + edi], al
mov ecx, dword [ebp - 0x18]
jne 0x401630
mov esi, dword [ebp - 8]
inc bl
cmp bl, 4
jb 0x401610
mov byte [ebp - 2], bl
cmp bl, 0x2c
jae 0x401743
mov edi, esi
nop dword [eax]
mov edx, 1
mov ecx, edi
lea esi, [edx + 3]
nop word [eax + eax]
mov eax, edx
lea ecx, [ecx + 4]
and eax, 3
inc edx
movzx eax, byte [edi + eax*4 + 3]
mov al, byte [eax + str.cw]
xor byte [ecx - 4], al
sub esi, 1
jne 0x401680
movzx eax, bh
lea esi, [edi + 1]
mov al, byte [eax + 0x4041c0]
xor byte [edi], al
inc bh
mov byte [ebp - 3], bh
mov edi, 3
mov eax, esi
mov edx, 4
nop dword [eax + eax]
mov cl, byte [eax - 1]
xor byte [eax], cl
add eax, 4
sub edx, 1
jne 0x4016c0
inc esi
sub edi, 1
jne 0x4016b4
xor al, al
mov byte [ebp - 1], al
cmp bl, 0x2c
jae 0x401743
movzx ecx, bl
xor esi, esi
mov ebx, ecx
movzx edx, al
and ebx, 0xfffffffc
and ecx, 3
add edx, dword [ebp - 8]
mov dword [ebp - 0x18], ebx
lea edi, [esi + 4]
mov dword [ebp - 0x14], ecx
nop dword [eax]
lea eax, [esi + ebx]
mov ebx, dword [ebp - 0x10]
lea ecx, [ecx + eax*4]
mov al, byte [edx]
lea esi, [esi + 1]
lea edx, [edx + 4]
mov byte [ecx + ebx], al
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
sub edi, 1
jne 0x401700
mov al, byte [ebp - 1]
mov bl, byte [ebp - 2]
inc al
add bl, 1
mov byte [ebp - 1], al
mov byte [ebp - 2], bl
cmp al, 4
jb 0x4016d8
mov edi, dword [ebp - 8]
mov bh, byte [ebp - 3]
cmp bl, 0x2c
jb 0x401670
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401134
Capabilities:
Create thread

Disassembly:
push 8
push 0x45db70
call fcn.00419760
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0xfffffffe
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x2c], eax
test eax, eax
je 0x40119b
push ebx
push 1
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
je 0x40119b
push ebx
push ebx
push dword [ebp + 8]
push 0x401250
push ebx
push ebx
call fcn.0043382e
add esp, 0x18
mov dword [esi + 0x34], eax
test eax, eax
je 0x40119b
mov al, 1
jmp 0x4011d5
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x4011d3
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x401bf3
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x54
mov eax, 0x448a0b
call fcn.0041902e
mov esi, ecx
push ecx
push str._cleanup_
call fcn.00402e7a
mov edi, eax
cmp edi, 0xffffffff
jne 0x401c1a
xor al, al
jmp 0x401d3d
push 8
pop ebx
add edi, 0xa
mov ecx, esi
cmp dword [esi + 0x14], ebx
jb 0x401c29
mov ecx, dword [esi]
push dword [ebp - 0x48]
mov edx, dword [esi + 0x10]
push 2
push ecx
push edi
call fcn.0040385c
add esp, 0x10
cmp eax, 0xffffffff
je 0x401d3b
mov ecx, esi
cmp dword [esi + 0x14], ebx
jb 0x401c4d
mov ecx, dword [esi]
cmp word [ecx + eax*2], 0x3d
je 0x401d3b
sub eax, edi
mov ecx, esi
push eax
push edi
lea eax, [ebp - 0x2c]
push eax
call fcn.00404c86
xor edi, edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
cmp dword [ebp - 0x18], ebx
jb 0x401c77
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
push ecx
push ecx
call fcn.00404371
add esp, 8
lea ecx, [ebp - 0x2c]
mov esi, eax
lea eax, [ebp - 0x44]
push esi
push edi
push eax
call fcn.00404c86
push 0xffffffffffffffff
lea eax, [esi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404c86
cmp dword [eax + 0x14], ebx
jb 0x401cb1
mov eax, dword [eax]
push eax
call fcn.00434577
pop ecx
lea ecx, [ebp - 0x60]
mov esi, eax
call fcn.00404c58
cmp dword [ebp - 0x34], 0
je 0x401d2b
test esi, esi
je 0x401d2b
push esi
push edi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401cf2
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str._setup.dll
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x60]
call fcn.004037ef
pop ecx
cmp dword [eax + 0x14], ebx
jb 0x401d0a
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x60]
call fcn.00404c58
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], ebx
jb 0x401d24
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x44]
call fcn.00404c58
lea ecx, [ebp - 0x2c]
call fcn.00404c58
mov al, 1
call fcn.00418fd8
ret
Function at 0x40209e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x463070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 7
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4020f2
push edi
lea eax, [ebp - 8]
push eax
push 0x400000
push dword [0x468718]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4020eb
cmp dword [ebp - 8], edi
jne 0x4020cb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041876b
leave
ret
Function at 0x40521b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x405223
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405236
test al, 0x10
jne 0x405236
mov al, 1
ret
xor al, al
ret

Function at 0x40548b
Capabilities:
Get common file path

Disassembly:
push 0x3c
mov eax, 0x44902c
call fcn.0041902e
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x2c], esi
and dword [ebp - 0x30], 0
and dword [ebp - 4], 0
push ecx
push 0x100
lea ecx, [ebp - 0x28]
call fcn.00405bc0
push 8
pop ebx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], ebx
cmp dword [ebp - 0x14], ebx
jb 0x4054c8
mov eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, dword [ebp - 0x18]
jb 0x4054fa
jne 0x4054db
add eax, eax
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00405b0e
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], ebx
jb 0x4054f0
mov eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00405b0e
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x48]
mov edx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
call fcn.004080e3
lea edx, [ebp - 0x48]
mov dword [ebp - 0x2c], 0x14
lea ecx, [ebp - 0x28]
call fcn.0040546b
lea ecx, [ebp - 0x48]
mov bl, al
call fcn.00403044
test bl, bl
jne 0x4055c3
call fcn.00405294
test al, al
je 0x40556f
mov edx, dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
lea ecx, [ebp - 0x48]
call fcn.004080e3
lea edx, [ebp - 0x48]
mov dword [ebp - 0x2c], 0x36
lea ecx, [ebp - 0x28]
call fcn.0040546b
test al, al
je 0x40556f
xor ebx, ebx
inc ebx
jmp 0x405571
xor bl, bl
test byte [ebp - 0x2c], 2
je 0x40557f
lea ecx, [ebp - 0x48]
call fcn.00403044
test bl, bl
jne 0x4055c3
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040708d
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x405596
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.00407afc
lea ecx, [ebp - 0x28]
call fcn.0040521b
test al, al
je 0x4055c3
lea ecx, [ebp - 0x28]
call fcn.004050ad
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00402b40
jmp 0x4055d3
and dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x28]
call fcn.00403044
mov eax, esi
call fcn.00418fd8
ret
Function at 0x40565b
Capabilities:
Move file

Disassembly:
push 0x2c
mov eax, 0x449059
call fcn.0041902e
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x18], edi
xor eax, eax
and dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
and dword [ebp - 4], eax
mov ebx, dword [esi + 0x14]
push 0x5c
pop ecx
mov word [ebp - 0x1c], cx
mov word [ebp - 0x1a], cx
mov word [ebp - 0x16], cx
mov ecx, esi
push 0x3f
pop eax
mov word [ebp - 0x18], ax
cmp ebx, 8
jb 0x4056a7
mov ecx, dword [esi]
push ecx
lea edx, [ebp - 0x1c]
call fcn.00408157
pop ecx
test al, al
jne 0x4056c6
push 4
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x34]
call fcn.00405b3a
mov ebx, dword [esi + 0x14]
mov ecx, esi
cmp ebx, 8
jb 0x4056cf
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
push ecx
push ecx
call fcn.00409daa
add esp, 8
mov ecx, eax
mov eax, esi
cmp ebx, 8
jb 0x4056e7
mov eax, dword [esi]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x38], esi
add eax, 2
cmp ebx, 8
jb 0x4056fa
mov ecx, dword [esi]
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x34]
jb 0x405706
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x24]
lea edx, [ecx + edx*2]
lea ecx, [ebp - 0x34]
jb 0x405714
mov ecx, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x24]
lea ecx, [ecx + ebx*2]
sub edx, ecx
lea ebx, [ebp - 0x34]
sar edx, 1
cmp dword [ebp - 0x20], 8
mov dword [ebp - 0x18], ebx
jb 0x405730
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x38]
sub eax, ebx
sub ecx, dword [ebp - 0x18]
sar eax, 1
push eax
push ebx
sar ecx, 1
push edx
push ecx
lea ecx, [ebp - 0x34]
call fcn.00408bb1
mov ebx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x34]
lea eax, [ebx + 0x20]
push eax
call fcn.00405b0e
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
jb 0x405764
mov eax, dword [ebp - 0x34]
lea eax, [eax + ebx*2]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
call fcn.004055e3
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x34]
jb 0x40577e
mov ecx, dword [ebp - 0x34]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x405788
mov eax, dword [esi]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4057b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, esi
call fcn.004050ed
and dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 7
mov word [edi], ax
jmp 0x4057c0
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.00402b40
lea ecx, [ebp - 0x34]
call fcn.00403044
mov eax, edi
call fcn.00418fd8
ret
Function at 0x409eb6
Capabilities:
Create process on windows

Disassembly:
push 0x10c
mov eax, 0x449578
call fcn.0041909c
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x100]
mov dword [ebp - 4], ebx
call fcn.00405309
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x409ee3
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402f0a
lea ecx, [ebp - 0x100]
call fcn.00403044
push 0x45a980
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.004037ef
pop ecx
push 0x45a8e8
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0040399e
push eax
lea ecx, [ebp - 0xe8]
call fcn.00402b40
push 0x45a978
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 4
call fcn.0040399e
push eax
lea ecx, [ebp - 0xd0]
call fcn.00402b40
push esi
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 5
call fcn.00404ac5
push eax
lea ecx, [ebp - 0xb8]
call fcn.00402b40
push 0x45a56c
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 6
call fcn.0040399e
push eax
lea ecx, [ebp - 0x44]
call fcn.00402b40
lea ecx, [ebp - 0xb8]
call fcn.00404c58
lea ecx, [ebp - 0xd0]
call fcn.00404c58
lea ecx, [ebp - 0xe8]
call fcn.00404c58
lea ecx, [ebp - 0x118]
call fcn.00404c58
push 0x40
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x90], 0x44
push ebx
push eax
call fcn.00430b10
xor eax, eax
lea edi, [ebp - 0xa0]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x44]
add esp, 0xc
cmp dword [ebp - 0x30], 8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jb 0x409fe4
mov ecx, dword [ebp - 0x44]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
jb 0x409ff0
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0xa0]
push edx
lea edx, [ebp - 0x90]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40a028
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x44]
call fcn.00404c58
lea ecx, [ebp - 0x2c]
call fcn.00404c58
call fcn.00418fe9
ret

Function at 0x40ac70
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push 0x10
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x40ac93
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], eax
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40acaf
mov eax, 0x10000
mov dword [esi + 0xc], eax
mov eax, 1
mov dword [esi], 0x40
mov dword [0x466700], esi
pop esi
mov esp, ebp
pop ebp
ret