joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e1c0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44e1f3
push esi
call fcn.004512b0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44e1ec
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44e279
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44e262
mov eax, dword [esi + 8]
test eax, eax
je 0x44e217
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44e25e
cmp eax, 2
je 0x44e262
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44e20a
cmp eax, 3
je 0x44e23d
cmp eax, 1
jne 0x44e20a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44e20a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44e20a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044e2a0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44e288
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044e2a0
add esp, 4
pop esi
ret

Function at 0x45ab60
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x45ac03
test eax, eax
jbe 0x45ac03
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x45ac03
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x45abae
xor esi, esi
jmp 0x45abb4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45abdf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0045cd40
add esi, eax
push esi
mov ebx, esi
call fcn.0045cd40
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x45abc0
pop ebp
test edi, edi
pop edi
jne 0x45ac03
test ebx, ebx
je 0x45ac03
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00477930
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x45ad45
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45ae5d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45ae5d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0048953f
mov esi, eax
test esi, esi
je 0x45ae5d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45ae5d
mov ecx, esi
call fcn.0045acb0
cmp edi, eax
jge 0x45ae5d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x45ade3
mov dword [esp + 0x34], 1
jmp 0x45ae3e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45ae5d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00459500
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x45f1e0
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 0x45f229
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 0x45f6a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4995a0
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.0045f250
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0045f2d0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0045f2d0
lea ecx, [esi + 0xc]
call fcn.00487a53
lea ecx, [esi + 0x10]
call fcn.00487a53
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00460860
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00460860
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00460860
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00487ac8
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00487ac8
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x460a50
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 0x460ab6
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 0x460ab6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x460a97
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x489ee2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x489f1a
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.00487f6f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00487f47
jmp 0x489f26
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48b5d3
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 0x48b615
call fcn.00491a85
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48b615
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48b60c
xor eax, eax
jmp 0x48b61d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048b623
pop edi
pop esi
pop ebx
ret 4

Function at 0x491fb5
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 0x491fe3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x492001
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00491f1b
jmp 0x492001
mov eax, dword [esi + 0x14]
test eax, eax
je 0x492001
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00491f1b
test edi, edi
mov eax, edi
jne 0x491feb
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x40893c
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4085d8
sub ecx, 0x9be5e591
and ecx, ecx
call fcn.00408971
sub ebx, 1
xor dword [edi], eax
add ebx, 1
sub ebx, ebx
inc edi
add ecx, ecx
sub ecx, 0xb7fc7079
cmp edi, edx
jne fcn.0040893c
mov ecx, 0xbb3840ee
ret
Function at 0x401380
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x408eb7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x40a520
mov dword [esp + 0x10], 0xe
call fcn.004014f0
lea ecx, [esi + 0xa0]
mov byte [esp + 0x10], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x9c]
mov byte [esp + 0x10], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x98]
mov byte [esp + 0x10], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x94]
mov byte [esp + 0x10], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x90]
mov byte [esp + 0x10], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x80]
mov byte [esp + 0x10], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x78]
mov byte [esp + 0x10], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x74]
mov byte [esp + 0x10], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x60]
mov byte [esp + 0x10], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x3c]
mov byte [esp + 0x10], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x38]
mov byte [esp + 0x10], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xc]
mov byte [esp + 0x10], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 8]
mov byte [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x403fe0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [section..rdata]
mov esi, eax
test esi, esi
jne 0x404042
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [0x40a004]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [0x40a08c]
mov edx, dword [esp + 4]
push edx
call dword [0x40a008]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc

Function at 0x404250
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
mov edi, ecx
push 0
call dword [0x40a434]
mov esi, eax
cmp esi, 0x20
ja 0x404344
lea ecx, [esp + 0x10]
push ecx
push str..htm
push 0x80000000
mov ecx, edi
call fcn.00403fe0
test eax, eax
jne 0x404344
mov ebx, dword [0x40a094]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x80000000
mov ecx, edi
call fcn.00403fe0
test eax, eax
jne 0x404344
lea edx, [esp + 0x10]
push str.__1_
push edx
call dword [sym.imp.MSVCRT.dll__mbsstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x404315
lea eax, [esp + 0x10]
push 0x40d574
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x404315
lea ecx, [esp + 0x10]
push ecx
call dword [0x40a070]
lea esi, [esp + eax + 0xf]
jmp 0x404318
mov byte [esi], 0
push 0x40d570
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [0x40a090]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8

Function at 0x405010
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push 4
push eax
push 4
push 0xffff
push ecx
mov dword [esp + 0x14], 1
call dword [0x40a4f8]
cmp eax, 0xffffffff
jne 0x40504b
call dword [0x40a4f4]
push eax
call fcn.00405000
add esp, 4
or eax, 0xffffffff
pop ecx
ret
xor eax, eax
pop ecx
ret

Function at 0x405170
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10
mov edx, dword [esp + 0x1c]
xor ecx, ecx
xor eax, eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 8], edx
push eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
push eax
lea edx, [esp + 0xc]
lea eax, [esp + 8]
mov dword [esp + 0x14], ecx
push edx
mov edx, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push 1
push ecx
push edx
call dword [0x40a4d4]
test eax, eax
jne 0x4051c1
mov eax, dword [esp]
add esp, 0x10
ret
call dword [0x40a4f4]
neg eax
add esp, 0x10
ret
Function at 0x405340
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
xor eax, eax
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 4], ecx
push eax
push eax
mov dword [esp + 0x10], eax
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push 1
push ecx
push edx
call dword [0x40a4cc]
test eax, eax
jne 0x40538b
mov eax, dword [esp]
add esp, 0xc
ret
call dword [0x40a4f4]
neg eax
add esp, 0xc
ret

Function at 0x405540
Capabilities:
Connect socket

Disassembly:
sub esp, 0x30
push ebx
push ebp
push 0
push 0
push 0
push 0
call dword [0x40a0a8]
test eax, eax
mov dword [esp + 8], eax
jne 0x405573
call dword [0x40a0ac]
push eax
call fcn.00405000
add esp, 4
or eax, 0xffffffff
pop ebp
pop ebx
add esp, 0x30
ret
mov ebx, dword [esp + 0x3c]
mov ebp, dword [0x40a4d8]
push 0x10
push eax
push ebx
call ebp
cmp eax, 0xffffffff
jne 0x4055ab
mov eax, dword [esp + 8]
push eax
call dword [0x40a0a4]
call dword [0x40a4f4]
push eax
call fcn.00405000
add esp, 4
or eax, 0xffffffff
pop ebp
pop ebx
add esp, 0x30
ret
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push esi
push edi
push 0
push 0
push 0
push 0
push ecx
push edx
push ebx
call dword [0x40a4c8]
mov edi, dword [0x40a4f4]
mov esi, eax
call edi
cmp esi, 0xffffffff
jne 0x405643
cmp eax, 0x2733
jne 0x405643
mov eax, dword [esp + 0x50]
push 1
push eax
lea ecx, [esp + 0x18]
push 1
push ecx
push 1
call dword [0x40a4dc]
test eax, eax
je 0x405605
call edi
push eax
call fcn.00405000
add esp, 4
or esi, esi
jmp 0x405643
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
push ebx
call dword [0x40a4d0]
cmp eax, 0xffffffff
jne 0x40562b
call edi
push eax
call fcn.00405000
add esp, 4
or esi, 0xffffffff
jmp 0x405643
mov eax, dword [esp + 0x28]
test eax, eax
je 0x405641
push eax
call fcn.00405000
add esp, 4
or esi, 0xffffffff
jmp 0x405643
xor esi, esi
mov ecx, dword [esp + 0x10]
push 0
push ecx
push ebx
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [0x40a0a4]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x4056a0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x9c
push ebx
mov ebx, dword [0x40a500]
push esi
push edi
mov edi, dword [esp + 0xac]
push edi
call ebx
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x405764
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x40573b
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x94
push eax
call dword [0x40a0bc]
test eax, eax
je 0x40573b
cmp dword [esp + 0x24], 2
jne 0x40573b
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push 0
push edi
push 0x405670
push 0
push 0
call dword [0x40a0b8]
mov esi, eax
test esi, esi
je 0x40573b
push 0xffffffffffffffff
push esi
call dword [0x40a0b4]
lea edx, [esp + 0xc]
push edx
push esi
call dword [0x40a0b0]
test eax, eax
je 0x40573b
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x9c
ret
push edi
call dword [0x40a50c]
test eax, eax
jne 0x405753
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x9c
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [0x40a504]
push eax
call ebx
pop edi
pop esi
pop ebx
add esp, 0x9c
ret
Function at 0x40386d
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1044
call fcn.004109f0
cmp dword [0x4e3cc8], 0x594
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
jne 0x4038aa
push 0x402df0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x402e04
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
mov eax, dword [0x4336c8]
push ebx
push esi
push edi
mov edi, dword [0x4336cc]
xor esi, esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0x28], 0x9e3779b9
call fcn.00403866
mov eax, dword [0x4336d0]
add dword [ebp - 8], 0x23f
mov ebx, dword [0x4336d4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x14], 2
add dword [ebp - 0x14], 3
mov eax, dword [ebp - 0xc]
mov ecx, eax
shl ecx, 4
cmp dword [0x4e3cc8], 0xc
mov dword [ebp - 4], ecx
jne 0x40394c
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x844]
push eax
push esi
push 0x402e14
push 0x402e2c
push 0x402e60
call dword [sym.imp.KERNEL32.dll_SearchPathW]
push esi
call dword [sym.imp.KERNEL32.dll_DebugActiveProcess]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x30]
push eax
push esi
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
add dword [ebp - 4], ecx
mov ecx, dword [0x4e3cc8]
cmp ecx, 0xfa9
jne 0x40396a
mov dword [0x4e3264], 0xedeb2e40
cmp ecx, 0x3eb
jne 0x403978
mov dword [0x4e2c14], esi
mov ecx, dword [ebp - 8]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x14]
shr eax, cl
mov dword [0x4e3260], 0xf4ea3dee
add eax, ebx
mov ecx, eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor ecx, dword [ebp - 4]
cmp dword [0x4e3cc8], 0x213
mov dword [ebp - 0x18], ecx
jne 0x4039b3
push esi
push esi
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], 0x64
sub dword [ebp - 0x10], eax
sub dword [ebp - 0x10], 0x64
cmp dword [0x4e3cc8], 0xc
jne 0x4039f0
push esi
lea eax, [ebp - 0x444]
push eax
push 0x402e70
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
push esi
lea eax, [ebp - 0x1044]
push eax
push 0x402ec8
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [ebp - 0x10]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax]
mov ecx, dword [ebp - 0x14]
shr eax, cl
add eax, edi
xor eax, edx
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
sub dword [ebp - 8], eax
dec dword [ebp - 0x1c]
jne 0x4038eb
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x403a3e
Capabilities:
Allocate thread local storage
Create pipe
Get common file path
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4e3cc8]
mov ecx, dword [0x4e2c18]
sub esp, 0x44c
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x403b2d
mov edi, ecx
mov ebx, eax
cmp dword [0x4e3cc8], 0x959
jne 0x403b1d
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
push 0x402f0c
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402f28
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push 0x402f74
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 0x402f94
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402fac
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_InitializeSListHead]
push 0x402ff0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
call fcn.0040386d
add edi, 8
dec ebx
jne 0x403a66
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403e58
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
push ebx
push esi
push edi
xor esi, esi
xor ebx, ebx
mov edi, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNamedPipeInfo]
cmp ebx, edi
jle 0x403e8f
cmp dword [esp + 0x10], 0x785074d5
jne 0x403e98
inc ebx
cmp ebx, 0x1c1b
jl 0x403e70
mov ebx, 0x5d744c
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_CharToOemBuffA]
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
lea eax, [esp + 0xc]
push eax
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharABCWidthsFloatW]
dec ebx
jne 0x403e9d
cmp dword [0x4e3cc8], 0x400
jne 0x403f0b
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
push esi
push esi
call fcn.00404fe3
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00403801
fstp st(0)
push ecx
push ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00403824
fstp st(0)
push esi
call fcn.0040554e
pop ecx
push esi
call fcn.0040539e
pop ecx
push esi
push esi
call fcn.00404ed7
pop ecx
pop ecx
mov eax, dword [0x433a9c]
mov dword [0x4e3cc8], eax
mov eax, dword [0x433a70]
mov dword [0x4e3ccc], eax
call fcn.00403c01
xor ebx, ebx
push 0x403288
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
cmp ebx, edi
jle 0x403f3f
cmp dword [esp + 0x10], 0x785074d5
jne 0x403f48
inc ebx
cmp ebx, 0x11915
jl 0x403f26
mov edi, 0x3078f
cmp dword [0x4e3cc8], 0x51f
jne 0x403f79
push 0x403290
push esi
lea eax, [esp + 0x20]
push eax
push 0x4032b8
push 0x4032d8
push 0x403318
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
jne 0x403f4d
mov eax, dword [0x4e2c18]
mov dword [0x4e325c], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x405f8b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x432934]
jne 0x405f95
repz ret
jmp fcn.0040b55c