joyce8/EMBER2024-capa huggingface dataset:
Function at 0x488c90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d05d0
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004c751e
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x488cc3
xor al, al
jmp 0x488def
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x488ce5
xor al, al
jmp 0x488def
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x488cf8
xor al, al
jmp 0x488def
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x488d0c
xor al, al
jmp 0x488def
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.004bb135
test eax, eax
jne 0x488d40
xor al, al
jmp 0x488def
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x5ff57c
mov dword [esp + 0x20], ebp
call fcn.004c751e
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.004c4024
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.004c407b
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x488dd4
mov ax, word [ebx]
test ax, ax
je 0x488dc6
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.00488e10
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x488daa
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.004c407b
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x489350
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.004c5710
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x489396
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.004ab7f8
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x621864
push ecx
call fcn.004ad34d
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x4900c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x49010c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x49010c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x4900f6
push eax
call ebp
test ax, ax
jl 0x490104
inc esi
add edi, 4
cmp esi, 6
jb 0x4900e8
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.0048fdc0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x493c90
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x493cf0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x493cf0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x493cf0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x493cf0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x493d00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x49b150
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x627cc8]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x49b163
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x49b1a4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x627d70]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x49b1d6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x49b1da
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x49b1cb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x49b1f8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x49b1fc
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x49b1ed
xor ecx, ecx
mov eax, 0x627cd8
xor ebx, ebx
mov bl, byte [ecx + 0x627d80]
cmp byte [esp + ebx + 0x14], 0
je 0x49b227
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x627d98]
cmp byte [esp + ebx + 0x14], 0
je 0x49b23e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x49b20e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x49b197
lea edx, [esp + 0x84]
push edx
call fcn.0049b280
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x49f340
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 0x49f3a6
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 0x49f3a6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x49f387
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x49f730
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x49f768
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 0x4a0400
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 0x4a0449
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 0x4a08c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d11e0
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.004a0470
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004a04f0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004a04f0
lea ecx, [esi + 0xc]
call fcn.004bd069
lea ecx, [esi + 0x10]
call fcn.004bd069
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004a1a80
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004a1a80
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004a1a80
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004bd0de
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004bd0de
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4bf50d
Capabilities:
Get graphical window text

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

Function at 0x4c0d04
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 0x4c0d46
call fcn.004c751e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c0d46
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c0d3d
xor eax, eax
jmp 0x4c0d4e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c0d54
pop edi
pop esi
pop ebx
ret 4

Function at 0x4c7a4e
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 0x4c7a7c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c7a9a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c79b4
jmp 0x4c7a9a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c7a9a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c79b4
test edi, edi
mov eax, edi
jne 0x4c7a84
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4012c1
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov eax, 0x487e68
call fcn.004874e0
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
call fcn.00433a89
xor ebx, ebx
lea ecx, [esi + 0xc]
mov dword [ebp - 4], ebx
call fcn.00433a89
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 1
call fcn.00433a89
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.00433a89
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 3
call fcn.00433a89
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 4
call fcn.00433a89
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 5
call fcn.00433a89
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 6
call fcn.004320d4
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 7
mov byte [ecx], al
mov al, byte [ebp - 0xd]
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.00402d5f
or dword [esi + 0x20], 0xffffffff
lea edi, [esi + 0x74]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x490904
mov dword [esi + 0x14], 0x1f40
mov byte [esi + 0x18], 1
mov word [esi + 8], bx
mov dword [esi + 0x1c], ebx
mov word [esi + 0x30], bx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x60], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4018dd
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
mov esi, ecx
push edi
mov edi, str.S:Ammyy_sourcesmainproxyHttpClient.cpp
cmp dword [esi + 0x20], 0xffffffff
jne 0x40190b
push 0x117
push edi
lea ecx, [ebp - 0x10]
call fcn.0042e609
mov ecx, eax
call fcn.0042e715
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x401917
cmp dword [ebp + 0xc], ebx
jg 0x40192c
push 0x118
push edi
lea ecx, [ebp - 0x10]
call fcn.0042e609
mov ecx, eax
call fcn.0042e715
mov eax, dword [esi + 0x14]
xor edx, edx
mov ecx, 0x3e8
mov dword [ebp - 0x114], 1
div ecx
lea ecx, [ebp - 8]
push ecx
push ebx
lea ecx, [ebp - 0x114]
push ebx
push ecx
mov dword [ebp - 8], eax
lea eax, [edx + edx*4]
add eax, eax
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x110], eax
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
cmp edi, ebx
jle 0x40198b
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, ebx
jl 0x4019ad
xor eax, eax
jmp 0x4019b3
jne 0x401983
push dword [esi + 0x14]
push str.CHttpClient::ReadSocket__:_no_data_received_during__u_ms.
push 0x4c2700
call fcn.004319df
add esp, 0xc
mov dword [esi + 0x1c], 0x274c
xor eax, eax
jmp 0x4019b8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x1c], eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40346f
Capabilities:
Get client handle via schannel
Get inbound credentials handle via credssp
Get outbound credentials handle via credssp

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
push str.NTLM
mov esi, ecx
mov dword [ebp - 4], ebx
call sub.Secur32.dll_QuerySecurityPackageInfoA
cmp eax, ebx
je 0x40349c
push eax
push str.ERROR_in_CHttpNTLMAuthObject::Prepare__:_QuerySecurityPackageInfo___failed__result__0x_x_
jmp 0x403530
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
cmp eax, 0x80000
mov dword [ebp - 8], eax
jbe 0x4034b4
push eax
push str.ERROR_in_CHttpNTLMAuthObject::Prepare__:_invalid_token_size__size___u_
jmp 0x403530
push 0xa
xor eax, eax
pop ecx
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x3c], 0x200
mov dword [ebp - 0x38], 0x2c
mov dword [ebp - 0x1c], 1
call fcn.00435b75
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x34], eax
call fcn.0043454e
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
call fcn.00435b75
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
call fcn.0043454e
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 4]
push eax
push ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
mov eax, dword [ebp - 4]
push ebx
push 2
push dword [eax + 0xc]
push ebx
call sub.Secur32.dll_AcquireCredentialsHandleA
push dword [ebp - 4]
mov edi, eax
call sub.Secur32.dll_FreeContextBuffer
cmp edi, ebx
je 0x403541
push edi
push str.ERROR_in_CHttpNTLMAuthObject::Prepare__:_AcquireCredentialsHandle___failed__result__0x_x_
push 0x4c2700
call fcn.004319c7
add esp, 0xc
xor al, al
jmp 0x403549
mov eax, dword [ebp - 8]
mov dword [esi + 0x14], eax
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x406515
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4881b8
call fcn.004874e0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0xc]
call fcn.004320d4
and dword [ebp - 4], 0
lea ecx, [esi + 0x24]
call fcn.004350ff
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 1
call fcn.004350ff
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 2
call fcn.00433a89
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.00433a89
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40656d
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4881f0
call fcn.004874e0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 3
call fcn.00433d8a
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 2
call fcn.00433d8a
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 1
call fcn.004353fc
and byte [ebp - 4], 0
lea ecx, [esi + 0x24]
call fcn.004353fc
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
call fcn.00432196
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x408b0e
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x488650
call fcn.004874e0
sub esp, 0x238
push esi
push edi
mov esi, ecx
xor edi, edi
inc edi
cmp byte [esi + 8], 0
jne 0x408b3a
cmp byte [esi + 5], 0
jne 0x408b3a
and dword [0x4c2700], 0
jmp 0x408b40
mov dword [0x4c2700], edi
cmp byte [esi + 8], 0
je 0x408b94
lea eax, [ebp - 0x14]
push eax
call fcn.00409487
and dword [ebp - 4], 0
mov dword [esp], 0x4b3ba8
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004356e0
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004353fc
lea ecx, [ebp - 0x10]
call fcn.00435b75
push eax
mov ecx, 0x4c2700
call fcn.004316eb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004353fc
jmp 0x408ba1
push dword [esi + 0x48]
mov ecx, 0x4c2700
call fcn.0043171c
mov ecx, esi
call fcn.00406a93
mov ecx, esi
call fcn.00408efe
cmp dword [0x4c2700], 0
push edi
sete al
mov byte [0x4c29b0], al
call fcn.0042e746
pop ecx
mov edi, 0x4c1ed0
push edi
mov ecx, 0x4c29ac
call fcn.00433ebf
push edi
mov ecx, 0x4c1fac
call fcn.00433ebf
push 0x4b3ba4
mov ecx, 0x4c1fa4
call fcn.00433f54
call fcn.004294df
push eax
mov ecx, 0x4c1fa8
call fcn.00433f54
push 0
push 0x100
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
movzx eax, word [ebp - 0xb0]
movzx ecx, word [ebp - 0xac]
shl eax, 0x10
or eax, ecx
push eax
push str.OS_version__X
push 0x4c2700
mov dword [esi + 0x38], eax
call fcn.004319df
add esp, 0xc
mov ecx, esi
call fcn.00408a00
cmp byte [esi + 8], 0
pop edi
pop esi
jne 0x408c94
lea eax, [ebp - 0x244]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x408c94
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20]
push str.Error_d_WSAStartup__
push eax
call fcn.00430892
add esp, 0xc
lea eax, [ebp - 0x20]
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x408d05
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
lea eax, [ebp - 0x60]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00435b75
mov edi, dword [ebp + 8]
xor esi, esi
push eax
push esi
push esi
push esi
push esi
push esi
push esi
mov ecx, edi
call fcn.004358fb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x408d6d
cmp dword [ebp - 0x1c], esi
je 0x408d6d
push dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebp + 0x10]
cmp eax, esi
jne 0x408d66
push dword [ebp - 0x1c]
call edi
pop edi
pop esi
leave
ret
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
jmp 0x408d62
push dword [ebp - 0x1c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xc]
push str.Error_d_while_running__s__X
push eax
call fcn.00430892
add esp, 0x14
lea eax, [ebp - 0xc]
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
Function at 0x408fda
Capabilities:
Create directory
Set current directory

Disassembly:
mov eax, 0x4886d8
call fcn.004874e0
sub esp, 0x2c
cmp byte [0x4c1e94], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
je 0x409048
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.0040c503
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040b938
add esp, 0x10
mov ecx, dword [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.0043553d
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004353fc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004353fc
push dword [ebp - 0x18]
call fcn.0040bd26
pop ecx
jmp 0x409131
xor esi, esi
push 2
inc esi
pop ebx
cmp esi, ebx
jg 0x409131
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.0040c1b0
add esp, 4
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
mov dword [ebp - 4], ebx
call fcn.0043510b
call fcn.0040ba27
test al, al
pop ecx
jne 0x40915b
push 0
lea ecx, [ebp - 0x14]
call fcn.00435b75
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4090df
lea ecx, [ebp - 0x14]
call fcn.00435b75
push eax
lea ecx, [ebp - 0x1c]
call fcn.00433e42
mov edi, eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.00435b75
push eax
push 0x4b3ca0
push 0x4c2700
call fcn.004319c7
add esp, 0x10
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00433d8a
jmp 0x40916e
cmp esi, 1
jne 0x409116
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00435b75
push eax
call fcn.0040bfbe
pop ecx
jmp 0x409116
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
call fcn.0043553d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004353fc
mov ecx, dword [ebp - 0x18]
call fcn.00435b65
test eax, eax
je 0x409180
lea eax, [ebp - 0x2c]
push str.Cant_find_any_writtable_folder
push eax
call fcn.00430892
pop ecx
lea eax, [ebp - 0x2c]
pop ecx
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp esi, 1
jne 0x409119
lea eax, [ebp - 0x14]
push eax
call fcn.0040bbea
test al, al
pop ecx
jne 0x409119
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004353fc
inc esi
jmp 0x40904e
mov ecx, dword [ebp - 0x18]
call fcn.00435b75
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x4091db
mov ecx, dword [ebp - 0x18]
call fcn.00435b75
push eax
lea ecx, [ebp - 0x20]
call fcn.00433e42
mov esi, eax
mov dword [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00435b75
push eax
lea eax, [ebp - 0x38]
push str.SetCurrentDirectoryW__s__error_u
push eax
call fcn.00430892
add esp, 0x10
lea eax, [ebp - 0x38]
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x409a69
Capabilities:
Identify system language via api

Disassembly:
mov eax, 0x488830
call fcn.004874e0
push ecx
push esi
push edi
lea ecx, [ebp - 0x10]
call fcn.00433a89
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx esi, ax
call fcn.00409a13
mov edi, eax
call fcn.00409a45
push eax
push edi
push esi
lea eax, [ebp - 0x10]
push str._u._u._d
push eax
call fcn.00434ff6
mov ecx, dword [ebp + 8]
add esp, 0x14
lea eax, [ebp - 0x10]
push eax
call fcn.004323c8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00433d8a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret