joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403600
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
push edi
mov edi, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryA]
xor ebx, ebx
push eax
push ebx
push ebx
mov dword [esp + 0x18], ebx
call edi
mov ecx, dword [esp + 0xc]
push ecx
call fcn.005c00fd
add esp, 4
lea edx, [esp + 0xc]
mov esi, eax
push edx
push esi
push ebx
call edi
mov edi, eax
cmp edi, ebx
je 0x4036a7
mov ebx, dword [sym.imp.WININET.dll_FindNextUrlCacheEntryA]
push ebp
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x403655
test dword [esi + 0xc], 0x100000
jne 0x40366d
mov eax, dword [esi + 4]
push eax
jmp 0x403667
cmp ebp, 1
jne 0x40366d
test dword [esi + 0xc], 0x100000
je 0x40366d
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
push edx
push 0
push edi
call ebx
push esi
call fcn.005c0126
mov eax, dword [esp + 0x14]
push eax
call fcn.005c00fd
add esp, 8
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
push esi
push edi
call ebx
test eax, eax
jne 0x403642
mov ebx, 1
pop ebp
test esi, esi
je 0x4036b4
push esi
call fcn.005c0126
add esp, 4
pop edi
mov eax, ebx
pop esi
pop ebx
pop ecx
ret
Function at 0x404170
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x5e1c26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2bc
mov eax, dword [0x65290c]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x14], eax
xor ebx, ebx
push 0x6499f8
lea ecx, [esp + 0x14]
mov dword [esp + 0x2d4], ebx
call fcn.005c4bce
lea ecx, [esp + 0x138]
mov byte [esp + 0x2d0], 1
push ecx
push 0x201
mov byte [esp + 0x17], 1
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4041fb
push 0x40
push 0x64994c
push 0x649dc8
mov ecx, esi
call fcn.005c280a
jmp 0x4042f4
lea edx, [esp + 0x18]
push ebp
push edx
push 0x8004667e
push edi
mov dword [esp + 0x28], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [esi + 0x1e8]
mov dword [esp + 0x30], 3
push eax
mov dword [esp + 0x38], ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebp, eax
cmp ebp, ebx
je 0x40429c
mov cx, word [esi + 0x1e0]
xor eax, eax
mov dword [esp + 0x20], eax
push ecx
mov dword [esp + 0x28], eax
mov word [esp + 0x24], 2
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x22], ax
mov edx, dword [ebp + 0xc]
push 0x10
mov eax, dword [edx]
lea edx, [esp + 0x24]
push edx
push edi
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
call dword [sym.imp.WS2_32.dll_connect]
lea eax, [esp + 0x30]
lea ecx, [esp + 0x38]
push eax
push ebx
push ecx
push ebx
push ebx
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x4042a0
mov byte [esp + 0x13], bl
mov edx, dword [esi + 0x1e0]
mov eax, dword [esi + 0x1e8]
push edx
push eax
lea ecx, [esp + 0x20]
push 0x6499a4
push ecx
call fcn.005bd692
mov al, byte [esp + 0x23]
add esp, 0x10
cmp al, bl
pop ebp
je 0x4042d7
push 0x649994
lea ecx, [esp + 0x14]
call fcn.005c4ce9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push 0x40
push edx
push eax
mov ecx, esi
call fcn.005c280a
push 1
lea ecx, [esi + 0x5c]
call fcn.005c42a6
lea ecx, [esp + 0x10]
mov byte [esp + 0x2d0], bl
call fcn.005c4b60
lea ecx, [esp + 0x14]
mov dword [esp + 0x2d0], 0xffffffff
call fcn.005c4b60
mov ecx, dword [esp + 0x2c8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c8
ret
Function at 0x404330
Capabilities:
Copy file
Get file size
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5e1cca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1d8
mov eax, dword [esp + 0x1f4]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1fc]
push edi
push 0
push esi
mov dword [esp + 0x1c], ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4045ab
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.005c00fd
mov ebp, eax
xor esi, esi
add esp, 4
cmp ebp, esi
jne 0x4043b9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4045b0
mov dword [esp + 0x18], esi
mov edx, ebx
lea ecx, [esp + 0x18]
push 0
sub edx, esi
push ecx
lea eax, [esi + ebp]
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
add esi, dword [esp + 0x18]
cmp esi, ebx
jb 0x4043bd
lea ecx, [esp + 0x1c]
call fcn.004355e0
xor esi, esi
lea ecx, [esp + 0x1c]
push esi
push ebx
push str.YYYYYYYYYYYY
push ebp
mov dword [esp + 0x200], esi
call fcn.00437650
cmp eax, esi
je 0x40443d
push esi
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x1f8]
push 0x354
push esi
call fcn.00402ed0
lea ecx, [esp + 0x10]
push 0
push ecx
push 0x354
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
push esi
push ebx
push str.127.0.0.1
push ebp
lea ecx, [esp + 0x2c]
call fcn.00437650
cmp eax, esi
je 0x404489
push esi
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [esp + 0x1fc]
mov ecx, dword [esp + 0x14]
push 0x1be
push ebx
mov dword [esp + 0x18], esi
call fcn.00402ed0
lea edx, [esp + 0x10]
push esi
push edx
push 0x1be
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x1ac]
mov dword [esp + 0x1f0], 0xd
call fcn.005d28e4
lea ecx, [esp + 0x170]
mov byte [esp + 0x1f0], 0xc
call fcn.005d28e4
lea ecx, [esp + 0x134]
mov byte [esp + 0x1f0], 0xb
call fcn.005d28e4
lea ecx, [esp + 0x12c]
mov byte [esp + 0x1f0], 0xa
call fcn.004113f0
lea ecx, [esp + 0x128]
mov byte [esp + 0x1f0], 9
call fcn.005c4b60
lea ecx, [esp + 0x124]
mov byte [esp + 0x1f0], 8
call fcn.005c4b60
lea ecx, [esp + 0x120]
mov byte [esp + 0x1f0], 7
call fcn.005c4b60
lea ecx, [esp + 0x11c]
mov byte [esp + 0x1f0], 6
call fcn.005c4b60
lea ecx, [esp + 0x118]
mov byte [esp + 0x1f0], 5
call fcn.005c4b60
lea ecx, [esp + 0x114]
mov byte [esp + 0x1f0], 4
call fcn.005c4b60
lea ecx, [esp + 0x110]
mov byte [esp + 0x1f0], 3
call fcn.005c4b60
lea ecx, [esp + 0xd4]
mov byte [esp + 0x1f0], 2
call fcn.005d2aa6
lea ecx, [esp + 0x98]
mov byte [esp + 0x1f0], 1
call fcn.005d2aa6
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1f0], 0xffffffff
call fcn.005c8370
mov eax, 1
mov ecx, dword [esp + 0x1e8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1e4
ret 0x10
Function at 0x405f10
Capabilities:
Copy file
Create process on windows
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5e2448
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
push ebx
push ebp
mov ebp, ecx
push 0x666cc4
lea eax, [esp + 0x130]
xor ebx, ebx
push str._sControlupx.exe
push eax
mov dword [esp + 0x244], ebx
call fcn.0049508a
add esp, 0xc
lea ecx, [esp + 0x12c]
push ecx
mov ecx, ebp
call fcn.00406200
test eax, eax
jne 0x405f96
push 0x30
push 0x649ed8
push 0x649fec
mov ecx, ebp
call fcn.005c280a
lea ecx, [esp + 0x240]
mov dword [esp + 0x238], 0xffffffff
call fcn.005c4b60
xor eax, eax
jmp 0x4060c9
push esi
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x248]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, ebx
mov eax, ecx
jle 0x406032
mov dl, 0x5c
cmp byte [esp + eax + 0x30], dl
je 0x40600f
dec eax
cmp eax, ebx
jg 0x406002
jmp 0x406032
lea edx, [eax + 1]
cmp edx, ecx
jge 0x40602e
sub ecx, edx
lea esi, [esp + edx + 0x30]
mov edx, ecx
lea edi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x30], bl
mov edi, str.upx.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x30]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call esi
lea ecx, [esp + 0x30]
push ebx
lea edx, [esp + 0x138]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [ebp + 0x1c]
push ebx
lea eax, [esp + 0x14]
push 0x6669b4
push eax
push 0x649fd4
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea edx, [esp + 0x30]
push edx
call esi
cmp eax, ebx
je 0x4060a0
lea ecx, [esp + 0x248]
mov dword [esp + 0x240], 0xffffffff
call fcn.005c4b60
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x230]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x234
ret 4

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

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x406220
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406220
test al, 0x10
jne 0x406220
mov eax, 1
ret 4
xor eax, eax
ret 4
Function at 0x406ec0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5e2669
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [esp + 0x20]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
push 0x95
mov dword [esp + 0x18], esi
call fcn.005c0626
mov ecx, dword [0x65290c]
lea edi, [esi + 0x60]
mov dword [esp + 0x28], 0
mov dword [edi], ecx
mov edx, dword [0x65290c]
lea ebp, [esi + 0x64]
mov dword [ebp], edx
mov eax, dword [0x65290c]
mov dword [esi + 0x68], eax
push 0
push ecx
mov bl, 3
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x64a0e0
mov byte [esp + 0x34], bl
mov dword [esi], method.CDialog.virtual_0
call fcn.005c4bce
push ecx
mov byte [esp + 0x34], 4
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x64a0d4
call fcn.005c4bce
mov byte [esp + 0x34], bl
call fcn.004035f0
mov ecx, eax
add ecx, 0x1c4
call fcn.004114d0
push ecx
mov dword [esi + 0x5c], eax
mov ecx, esp
mov dword [esp + 0x18], esp
push str.sgxy
call fcn.005c4bce
push ecx
mov byte [esp + 0x30], 6
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x64a0c4
call fcn.005c4bce
push ecx
mov byte [esp + 0x34], 7
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x64a0d4
call fcn.005c4bce
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], bl
push ecx
call fcn.004035f0
mov ecx, eax
add ecx, 0x1c4
call fcn.00411400
push eax
mov ecx, edi
mov byte [esp + 0x2c], 9
call fcn.005c4c99
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call fcn.005c4b60
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.1080
call fcn.005c4bce
push ecx
mov byte [esp + 0x30], 0xa
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x64a0b0
call fcn.005c4bce
push ecx
mov byte [esp + 0x34], 0xb
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x64a0d4
call fcn.005c4bce
lea edx, [esp + 0x3c]
mov byte [esp + 0x34], bl
push edx
call fcn.004035f0
mov ecx, eax
add ecx, 0x1c4
call fcn.00411400
push eax
mov ecx, ebp
mov byte [esp + 0x2c], 0xd
call fcn.005c4c99
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call fcn.005c4b60
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x6669b4
call fcn.005c4bce
push ecx
mov byte [esp + 0x30], 0xe
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x64a0a8
call fcn.005c4bce
push ecx
mov byte [esp + 0x34], 0xf
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x64a0d4
call fcn.005c4bce
lea eax, [esp + 0x3c]
mov byte [esp + 0x34], bl
push eax
call fcn.004035f0
mov ecx, eax
add ecx, 0x1c4
call fcn.00411400
push eax
lea ecx, [esi + 0x68]
mov byte [esp + 0x2c], 0x11
call fcn.005c4c99
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call fcn.005c4b60
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 4
Function at 0x40a1d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 1
mov ecx, dword [esi + 0xbc]
add ecx, 0x24
call fcn.00401fb0
mov ecx, dword [eax]
xor edi, edi
mov dword [esp + 0x10], ecx
mov ebx, dword [eax + 4]
xor eax, eax
mov edx, ecx
or eax, ebx
or edx, edi
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], edx
mov eax, dword [esi + 0x6c]
mov edx, dword [esi + 0x68]
test eax, eax
jg 0x40a235
jl 0x40a212
test edx, edx
jae 0x40a235
mov eax, dword [0x6675a8]
mov dword [esi + 0x68], eax
mov ecx, dword [0x6675ac]
mov dword [esi + 0x6c], ecx
mov edx, dword [0x6675b0]
mov ebx, dword [0x6675b4]
mov dword [esp + 0x10], edx
jmp 0x40a24c
mov dword [0x6675a8], edx
mov dword [0x6675ac], eax
mov dword [0x6675b0], ecx
mov dword [0x6675b4], ebx
mov ecx, esi
call fcn.0040a340
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x60]
cmp eax, ecx
jne 0x40a26b
mov ecx, dword [esi + 0x6c]
mov eax, dword [esi + 0x64]
cmp ecx, eax
je 0x40a32e
cmp ebx, 0xffffffff
je 0x40a32e
mov al, byte [esi + 0x70]
test al, al
jne 0x40a32e
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push 0
lea ecx, [esi + 0x5c]
call fcn.005c4f90
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40a335
lea edx, [esp + 0x10]
push 0
push edx
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x1fe1
push 0x40
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [edi + 9]
mov byte [edi], 2
mov eax, dword [esp + 0x18]
push 0x1fd8
push edx
push ebp
mov dword [edi + 1], eax
mov dword [edi + 5], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x40a31f
mov ecx, dword [esi + 0xc0]
add eax, 9
push 0
push eax
mov eax, dword [esi + 0xbc]
push edi
push eax
call fcn.004127d0
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, esi
call fcn.0040a440
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x40a460
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x5e2cb3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
lea ecx, [esi + 0x5c]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push ebx
mov dword [esp + 0x13c], ebx
mov dword [esp + 0x2c], ebx
call fcn.005c4f90
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40a509
mov eax, dword [esp + 0x128]
lea ecx, [esp + 0x14]
push eax
push 0x64aaf8
push ecx
call fcn.0049508a
add esp, 0xc
lea edx, [esp + 0x14]
mov ecx, esi
push 0x30
push 0x64aaec
push edx
call fcn.005c280a
mov eax, dword [esi + 0x1c]
push ebx
push ebx
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x128]
mov dword [esp + 0x120], edi
call fcn.005c4b60
xor eax, eax
jmp 0x40a5dd
lea ecx, [esp + 0x10]
push ebp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
push edi
mov dword [esi + 0x60], ebp
mov dword [esi + 0x64], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x65290c]
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x60]
push ebx
push 0x400
push eax
push ecx
mov byte [esp + 0x134], 1
call fcn.00495610
push eax
lea edx, [esp + 0x14]
push str._dKB
push edx
call fcn.005bd692
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, esi
push eax
push 0x3e8
call fcn.005c4027
push 9
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
xor ecx, ecx
mov edx, edi
push ebx
push 9
push edi
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov byte [edx + 8], cl
mov byte [edi], 1
mov eax, dword [esp + 0x20]
mov dword [edi + 5], ebp
mov dword [edi + 1], eax
mov ecx, dword [esi + 0xbc]
push ecx
mov ecx, dword [esi + 0xc0]
call fcn.004127d0
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 0x10]
mov byte [esp + 0x124], bl
call fcn.005c4b60
lea ecx, [esp + 0x12c]
mov dword [esp + 0x124], 0xffffffff
call fcn.005c4b60
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret 4

Function at 0x40adc0
Capabilities:
Get file system object information

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x160
cmp eax, 0xffffffff
jne 0x40add6
mov eax, 0x80
jmp 0x40add8
or al, 0x80
mov edx, dword [esp + 0x164]
push 0x4010
lea ecx, [esp + 4]
push 0x160
push ecx
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [esp + 4]
add esp, 0x160
ret
Function at 0x40bcd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e2fc7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [esp + 0x14], 0
lea eax, [esp + 0x30]
mov edi, 1
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], edi
call fcn.005c48d5
push 0x5c
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call fcn.005bd32f
cmp eax, 0xffffffff
jne 0x40bd38
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.005c48d5
mov dword [esp + 0x14], edi
jmp 0x40bdf9
lea edx, [esp + 0x10]
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.005bd2b7
mov bl, 3
push 0x5c
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.005bd32f
cmp eax, 0xffffffff
jne 0x40bd6d
push 0x6669b4
lea ecx, [esp + 0x10]
call fcn.005c4ce9
jmp 0x40bdd7
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.005bd2b7
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call fcn.005c4c99
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.005c4b60
lea edx, [esp + 0x18]
push edi
push edx
lea ecx, [esp + 0x14]
call fcn.005bd23b
mov eax, dword [eax]
push 0x649f40
push eax
call fcn.00494e94
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
setne bl
call fcn.005c4b60
test bl, bl
je 0x40bdd7
push 0x649f40
lea ecx, [esp + 0x10]
call fcn.005c4f3c
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.005c48d5
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], edi
mov byte [esp + 0x24], 2
call fcn.005c4b60
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.005c4b60
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 0
call fcn.005c4b60
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x40d8f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebp
push esi
mov esi, ecx
push edi
push 9
mov dword [esp + 0x18], 0
mov ecx, dword [esi + 0x5a0]
add ecx, 0x24
call fcn.00401fb0
mov ecx, dword [esi + 0x5a0]
push 1
add ecx, 0x24
mov dword [esp + 0x1c], eax
call fcn.00401fb0
mov ecx, dword [eax]
xor edi, edi
mov dword [esp + 0x10], ecx
mov ebp, dword [eax + 4]
xor eax, eax
mov edx, ecx
or eax, ebp
or edx, edi
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], edx
mov eax, dword [esi + 0x8c]
mov edx, dword [esi + 0x88]
test eax, eax
jg 0x40d985
jl 0x40d959
test edx, edx
jae 0x40d985
mov eax, dword [0x6675f8]
mov dword [esi + 0x88], eax
mov ecx, dword [0x6675fc]
mov dword [esi + 0x8c], ecx
mov edx, dword [0x667600]
mov ebp, dword [0x667604]
mov dword [esp + 0x10], edx
jmp 0x40da7d
mov dword [0x6675f8], edx
mov dword [0x6675fc], eax
mov dword [0x667600], ecx
mov dword [0x667604], ebp
mov ecx, dword [esi + 0x5a0]
push ebx
add ecx, 0x24
call fcn.00401e10
push 0
push 0x80
push 3
push 0
push 2
mov edi, eax
push 0xc0000000
lea ecx, [esi + 0x64]
push 0
sub edi, 9
call fcn.005c4f90
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
lea eax, [esp + 0x14]
push 0
push eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push 0
push ecx
push edi
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jg 0x40da12
mov ecx, dword [esp + 0x10]
inc ecx
cmp ecx, 0xf
mov dword [esp + 0x10], ecx
jl 0x40d9ec
cmp dword [esp + 0x10], 0xf
jne 0x40da4d
test eax, eax
jg 0x40da4d
lea eax, [esi + 0x64]
push 0x64acec
push eax
lea eax, [esp + 0x24]
push eax
call fcn.005c4df5
mov ecx, dword [eax]
mov edx, dword [esi + 0x1c]
push 0x30
push 0x64ac4c
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x1c]
call fcn.005c4b60
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x88]
add ecx, eax
mov dword [esi + 0x88], ecx
mov eax, dword [esi + 0x8c]
adc eax, 0
mov ecx, esi
mov dword [esi + 0x8c], eax
call fcn.0040dd40
pop ebx
mov al, byte [esi + 0x60]
test al, al
je 0x40da92
mov ecx, esi
call fcn.0040dd10
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1d], ecx
mov ecx, dword [esi + 0x5a0]
push 1
lea eax, [esp + 0x20]
push 9
push eax
add ebp, edx
push ecx
mov ecx, dword [esi + 0x5a4]
mov byte [esp + 0x2c], 6
mov dword [esp + 0x31], ebp
call fcn.004127d0
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
Function at 0x40e2c0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 1
mov ecx, dword [esi + 0x5a0]
add ecx, 0x24
call fcn.00401fb0
mov edi, eax
xor ecx, ecx
mov eax, dword [edi]
mov dword [esp + 0x10], eax
mov ebp, dword [edi + 4]
mov edx, dword [edi]
xor eax, eax
or ecx, ebp
or edx, eax
mov dword [esi + 0x88], ecx
mov ecx, esi
mov dword [esi + 0x8c], edx
call fcn.0040dd40
mov ecx, dword [esi + 0x88]
mov eax, dword [esi + 0x80]
cmp ecx, eax
jne 0x40e325
mov edx, dword [esi + 0x8c]
mov eax, dword [esi + 0x84]
cmp edx, eax
je 0x40e3f2
cmp dword [edi + 4], 0xffffffff
je 0x40e3f2
mov al, byte [esi + 0x60]
test al, al
jne 0x40e3f2
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push 0
lea ecx, [esi + 0x74]
call fcn.005c4f90
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40e3f9
lea eax, [esp + 0x10]
push 0
push eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x1fe1
push 0x40
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [edi + 9]
mov byte [edi], 4
mov ecx, dword [esp + 0x18]
push 0x1fd8
push eax
push ebx
mov dword [edi + 1], ecx
mov dword [edi + 5], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x40e3e3
mov ecx, dword [esi + 0x5a0]
add eax, 9
push 1
push eax
push edi
push ecx
mov ecx, dword [esi + 0x5a4]
call fcn.004127d0
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, esi
call fcn.0040db90
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret