joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b510
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x45d738
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x47b5b0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
cmp bl, 1
je 0x40b557
cmp bl, 2
je 0x40b557
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret 8
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x48]
mov eax, dword [ecx - 0xc]
mov ebp, dword [esp + 0x2c]
push eax
lea edx, [esp + 0x2c]
add ebp, 4
push edx
mov ecx, ebp
call fcn.004035f0
mov dword [esp + 0x20], 0
mov esi, dword [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b59c
test al, 3
je 0x40b59c
and eax, 0xfffffffc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x5c
push esi
call fcn.00432ad9
add esp, 8
test eax, eax
jne 0x40b5b0
or eax, 0xffffffff
jmp 0x40b5b4
sub eax, esi
sar eax, 1
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x30]
call fcn.00402540
mov edi, dword [eax]
call fcn.004060e0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b5ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor edi, edi
cmp bl, 1
jne 0x40b64e
mov eax, dword [ebp]
push esi
call fcn.00405bd0
mov edi, eax
add esp, 4
test edi, edi
je 0x40b613
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0xc]
push esi
call fcn.00405df0
add esp, 4
lea eax, [esi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b637
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret 8
cmp bl, 2
jne 0x40b613
mov ebp, dword [ebp]
push 1
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
test edi, edi
jne 0x40b603
jmp 0x40b613
Function at 0x40b7b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x45d830
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
push edi
mov eax, dword [0x47b5b0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [esp + 0x80]
push str.engine.dat
add eax, 0x48
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00403810
mov edx, dword [esp + 0x90]
push edx
push eax
lea eax, [esp + 0x94]
push eax
mov dword [esp + 0x90], 0
call fcn.00403810
add esp, 0x18
mov byte [esp + 0x78], 2
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or edi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b83a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, 0x44
lea eax, [esp + 0x24]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x40b843
mov dword [esp + 0x24], 0x44
mov ecx, 0x10
lea eax, [esp + 0x14]
lea ecx, [ecx]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x40b860
mov eax, dword [esp + 0x80]
cmp dword [eax - 4], 1
jle 0x40b88d
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x84]
call fcn.00401e50
mov eax, dword [esp + 0x80]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40b904
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
mov dword [esp + 0x78], edi
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40b8eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x70
ret 8
mov dword [esp + 0x78], edi
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40b928
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x70
ret 8
Function at 0x40cd10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x47b5b0]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
test esi, esi
je 0x40cd8f
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.00434200
add esp, 0xc
lea edx, [esp]
push edx
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x103
ja 0x40cd8d
test eax, eax
je 0x40cd8d
push esi
push 0
push 0x46dfe0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00431fec
add esp, 0x20c
ret
xor eax, eax
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00431fec
add esp, 0x20c
ret

Function at 0x40d6f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45d948
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x47b5b0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
mov dword [esp + 0x14], 0
test esi, esi
jge 0x40d727
call fcn.0041492f
cmp esi, dword [edi + 8]
jl 0x40d734
lea eax, [esi + 1]
call fcn.0040d4b0
shl esi, 5
add esi, dword [edi + 4]
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00401940
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esi + 4]
call fcn.00401940
lea edx, [esp + 0x24]
push edx
lea ecx, [esi + 8]
call fcn.00401940
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x10], eax
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x14], ecx
mov edx, dword [esp + 0x34]
mov dword [esi + 0x18], edx
mov eax, dword [esp + 0x38]
mov dword [esi + 0x1c], eax
lea esi, [esp + 0x1c]
call fcn.00408750
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0x20
Function at 0x40d840
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x20044
call fcn.00436270
mov eax, dword [0x47b5b0]
xor eax, esp
mov dword [esp + 0x2003c], eax
mov eax, dword [esp + 0x20048]
push ebx
push ebp
mov ebp, dword [esp + 0x20054]
push esi
mov dword [esp + 0xc], eax
xor esi, esi
push edi
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call fcn.0040db50
cmp eax, esi
jne 0x40d925
lea esp, [esp]
mov eax, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x34]
push ecx
push 0x10000
lea edx, [esp + 0x54]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d93e
mov ebx, dword [esp + 0x30]
neg ebx
sbb ebx, ebx
and ebx, 0xfffffffc
lea ecx, [esp + 0x48]
add ebx, 4
mov dword [esp + 0x28], ecx
lea edx, [esp + 0x10048]
mov esi, 0x10000
push ebx
lea edi, [esp + 0x1c]
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], edx
call fcn.0040de90
sub esi, dword [esp + 0x38]
add esp, 4
push 0
lea eax, [esp + 0x18]
push eax
push esi
lea ecx, [esp + 0x10054]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x14], esi
jne 0x40d93e
cmp dword [esp + 0x34], 0
je 0x40d8ca
cmp ebx, 4
jne 0x40d890
mov esi, edi
call fcn.0040e110
xor eax, eax
mov ecx, dword [esp + 0x2004c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00431fec
add esp, 0x20044
ret
lea esi, [esp + 0x18]
call fcn.0040e110
or eax, 0xffffffff
jmp 0x40d925
Function at 0x40d950
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x20044
call fcn.00436270
mov eax, dword [0x47b5b0]
xor eax, esp
mov dword [esp + 0x20040], eax
mov eax, dword [esp + 0x20048]
push ebp
xor ebp, ebp
push esi
push edi
lea esi, [esp + 0x10]
mov dword [esp + 0x40], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], ebp
call fcn.0040f1b0
mov edi, eax
cmp edi, ebp
jne 0x40da73
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x40]
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0x10000
lea edx, [esp + 0x54]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40da8b
cmp dword [esp + 0x28], 0
je 0x40da3b
lea ecx, [esp + 0x48]
mov dword [esp + 0x20], ecx
lea edx, [esp + 0x10048]
mov dword [esp + 0x24], edx
mov esi, 0x10000
lea edx, [esp + 0x10]
mov dword [esp + 0x2c], esi
call fcn.0040f350
mov edi, eax
cmp edi, 0xfffffffc
jl 0x40da0a
cmp edi, 0xfffffffd
jle 0x40dab4
cmp edi, 2
je 0x40daaf
sub esi, dword [esp + 0x2c]
push 0
lea eax, [esp + 0x48]
push eax
push esi
lea ecx, [esp + 0x10054]
push ecx
push ebx
call ebp
cmp dword [esp + 0x44], esi
jne 0x40dafc
cmp dword [esp + 0x2c], 0
je 0x40d9d4
cmp edi, 1
jne 0x40d9a1
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x40da69
mov edx, dword [esp + 0x18]
test edx, edx
je 0x40da69
mov eax, dword [ecx + 0x2038]
test eax, eax
je 0x40da63
push eax
call edx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add esp, 4
push ecx
call edx
add esp, 4
mov eax, edi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffffd
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x20040]
xor ecx, esp
call fcn.00431fec
add esp, 0x20044
ret
lea esi, [esp + 0x10]
call fcn.00410410
or eax, 0xffffffff
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x20040]
xor ecx, esp
call fcn.00431fec
add esp, 0x20044
ret
mov edi, 0xfffffffd
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x40dae2
mov edx, dword [esp + 0x18]
test edx, edx
je 0x40dae2
mov eax, dword [ecx + 0x2038]
test eax, eax
je 0x40dadc
push eax
call edx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add esp, 4
push ecx
call edx
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x20040]
xor ecx, esp
call fcn.00431fec
add esp, 0x20044
ret
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x40db2a
mov edx, dword [esp + 0x18]
test edx, edx
je 0x40db2a
mov eax, dword [ecx + 0x2038]
test eax, eax
je 0x40db24
push eax
call edx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add esp, 4
push ecx
call edx
add esp, 4
mov ecx, dword [esp + 0x2004c]
pop edi
pop esi
pop ebp
xor ecx, esp
or eax, 0xffffffff
call fcn.00431fec
add esp, 0x20044
ret
Function at 0x4131f0
Capabilities:
Check if file exists

Disassembly:
push ecx
mov ecx, 0x480040
mov dword [0x47fd78], 0
call fcn.00402200
mov eax, dword [0x480044]
cmp dword [eax - 0xc], 0
je 0x413229
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413229
mov eax, dword [0x480044]
push eax
call fcn.00405860
add esp, 4
mov ecx, 0x480048
call fcn.00402200
mov ecx, 0x480044
call fcn.00402200
xor ecx, ecx
mov word [0x47fd80], cx
mov byte [0x47fd75], cl
pop ecx
ret
Function at 0x41ab30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41ab77
call fcn.0042874d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41ab77
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41ab93
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041a6a8
mov esi, eax
test edi, edi
je 0x41ab91
test ebx, ebx
je 0x41ab91
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x422ad7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x47b5b0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x422b6f
push 0x460de4
push 4
push eax
call fcn.004339a6
push eax
call fcn.00401a90
add esp, 0x10
push ebx
push edi
call fcn.00433f93
mov edi, dword [eax]
call fcn.00433f93
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00432daa
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.00433f93
cmp dword [eax], ebx
je 0x422b86
call fcn.00433f93
push dword [eax]
call fcn.004147ae
pop ecx
jmp 0x422b8d
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x422b1a
jmp 0x422c14
call fcn.00433f93
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x422c10
cmp dword [ebp - 0x234], esi
jae 0x422c10
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.00434200
add esp, 0xc
push 0x460b44
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x422bff
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x422bff
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x422bff
push ebx
push ebx
push esi
jmp 0x422c08
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x422c12
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00431fec
leave
ret
Function at 0x423c58
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x423ca0
call fcn.0042874d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x423ca0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x423ce3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x423ccc
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x423ccc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x423ce0
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x424d9a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x45b4e3
call fcn.00433dfb
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x424dbf
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x424e05
lea ecx, [ebp - 0x10]
call fcn.00402160
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004146d9
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004021e0
mov eax, esi
call fcn.00433ed3
ret 8

Function at 0x425b59
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x425b7d
cmp dword [edi + 0x54], 0
jne 0x425b7d
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0042874d
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00425b1a
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x431fec
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47b5b0]
jne 0x431ff6
repz ret
jmp fcn.004376b3
Function at 0x441aa0
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.004370c2
and dword [ebp - 4], 0
cmp dword [0x47fb14], 0
mov ebx, eax
jne 0x441b51
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x441c02
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x441c02
push eax
call fcn.00437050
mov dword [esp], 0x463e04
push edi
mov dword [0x47fb14], eax
call esi
push eax
call fcn.00437050
mov dword [esp], 0x463df0
push edi
mov dword [0x47fb18], eax
call esi
push eax
call fcn.00437050
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x47fb1c], eax
call esi
push eax
call fcn.00437050
pop ecx
mov dword [0x47fb24], eax
test eax, eax
je 0x441b51
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00437050
pop ecx
mov dword [0x47fb20], eax
mov eax, dword [0x47fb20]
cmp eax, ebx
je 0x441ba9
cmp dword [0x47fb24], ebx
je 0x441ba9
push eax
call fcn.004370cb
push dword [0x47fb24]
mov esi, eax
call fcn.004370cb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x441ba9
test edi, edi
je 0x441ba9
call esi
test eax, eax
je 0x441ba0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x441ba0
test byte [ebp - 0xc], 1
jne 0x441ba9
or dword [ebp + 0x10], 0x200000
jmp 0x441be2
mov eax, dword [0x47fb18]
cmp eax, ebx
je 0x441be2
push eax
call fcn.004370cb
pop ecx
test eax, eax
je 0x441be2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x441be2
mov eax, dword [0x47fb1c]
cmp eax, ebx
je 0x441be2
push eax
call fcn.004370cb
pop ecx
test eax, eax
je 0x441be2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47fb14]
call fcn.004370cb
pop ecx
test eax, eax
je 0x441c02
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x441c04
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4485b7
call fcn.00433fa6
mov dword [eax], esi
call fcn.00433f93
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00433054
add esp, 0x14
push 0x16
pop eax
jmp 0x44860c
test dword [ebp + 0xc], 0xfffffff9
jne 0x448593
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4485e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00433fb9
pop ecx
call fcn.00433f93
mov eax, dword [eax]
jmp 0x44860c
test al, 0x10
jne 0x44860a
test al, 1
je 0x44860a
test byte [ebp + 0xc], 2
je 0x44860a
call fcn.00433fa6
mov dword [eax], 5
call fcn.00433f93
mov dword [eax], 0xd
jmp 0x4485db
xor eax, eax
pop esi
pop ebp
ret
Function at 0x449a80
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x2a0
mov eax, dword [0x47b5b0]
xor eax, esp
mov dword [esp + 0x298], eax
push esi
push 0xfe
lea eax, [esp + 0x19d]
push 0
push eax
mov byte [esp + 0x1a4], 0
call fcn.00434200
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x449b0e
push 0xff
lea edx, [esp + 0x19c]
push edx
call sub.WSOCK32.dll_gethostname
test eax, eax
jne 0x449b0e
lea eax, [esp + 0x198]
push eax
call sub.WSOCK32.dll_gethostbyname
mov esi, eax
test esi, esi
je 0x449b0e
mov eax, dword [esi + 0xc]
cmp dword [eax], 0
je 0x449b0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call sub.WSOCK32.dll_inet_ntoa
test eax, eax
jne 0x449b13
mov eax, dword [esi + 0xc]
cmp dword [eax], 0
jne 0x449af8
mov eax, str.127.0.0.1
mov ecx, dword [esp + 0x29c]
pop esi
xor ecx, esp
call fcn.00431fec
add esp, 0x2a0
ret

Function at 0x449d80
Capabilities:
Get memory capacity

Disassembly:
push 0xffffffffffffffff
push 0x45bfa5
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push esi
mov eax, dword [0x47b5b0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, dword [esp + 0x44]
mov dword [esp + 0x3c], 0
mov dword [esp + 0xc], 0
call fcn.00414a0e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x449dd2
push 0x80004005
call fcn.00402190
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0
push ecx
mov dword [esp + 0x10], 1
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x64
or eax, ecx
jge 0x449e1b
push 0x64
mov ecx, esi
call fcn.00401f10
mov eax, dword [esi]
cmp dword [eax - 8], 0x64
jge 0x449e2d
push 0x80070057
call fcn.00402190
mov dword [eax - 0xc], 0x64
mov edx, dword [esi]
xor ecx, ecx
push 0x64
mov word [edx + 0xc8], cx
mov edx, dword [esp + 0x1c]
push eax
add edx, 0xa0000
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_StrFormatByteSizeW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x449e6b
push ecx
push eax
call fcn.00432b05
add esp, 8
test eax, eax
jl 0x449e23
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x449e23
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x38
ret 4
Function at 0x44a390
Capabilities:
Set socket configuration

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
call fcn.00449a80
push eax
call sub.WSOCK32.dll_inet_addr
or ecx, 0xffffffff
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push eax
mov dword [esp + 0x2c], 6
call sub.IPHLPAPI.DLL_SendARP
test eax, eax
je 0x44a3dd
push 0x11
push str.FF_FF_FF_FF_FF_FF
lea ecx, [ebp + 4]
call fcn.00401f90
mov eax, dword [esp + 0x1c]
lea eax, [eax + eax*2]
push eax
call fcn.00414675
mov ebx, eax
mov eax, dword [esp + 0x20]
lea ecx, [eax - 1]
add esp, 4
xor edi, edi
xor esi, esi
test ecx, ecx
jbe 0x44a42b
mov edi, edi
movzx edx, byte [esp + edi + 0x10]
push edx
lea eax, [eax + eax*2]
push str._02X_
sub eax, esi
push eax
lea ecx, [esi + ebx]
push ecx
call fcn.0043396e
add esi, eax
mov eax, dword [esp + 0x2c]
inc edi
lea edx, [eax - 1]
add esp, 0x10
cmp edi, edx
jb 0x44a400
movzx ecx, byte [esp + edi + 0x10]
push ecx
lea edx, [eax + eax*2]
sub edx, esi
push str._02X
push edx
add esi, ebx
push esi
call fcn.0043396e
add esp, 0x10
push ebx
lea ecx, [ebp + 4]
call fcn.00401c80
push ebx
call fcn.0041466a
add esp, 4
lea ebx, [ebp + 8]
call fcn.00405210
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4