joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414580
Capabilities:
Set registry value

Disassembly:
mov eax, 0x1008
call fcn.004405d0
mov eax, dword [0x485f50]
xor eax, esp
mov dword [esp + 0x1004], eax
mov eax, dword [esp + 0x100c]
push esi
mov esi, ecx
lea ecx, [esp + 4]
push ecx
push 0xf003f
push 0
push eax
push reloc.WS2_32.dll_bind
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4145e9
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [esp + 0x1004]
xor ecx, esp
call fcn.0043c3a4
add esp, 0x1008
ret 4
push 0xfff
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.0043cea0
add esp, 0xc
cmp dword [esi + 0x34], 0x10
jb 0x41460d
mov ecx, dword [esi + 0x20]
jmp 0x414610
lea ecx, [esi + 0x20]
cmp dword [esi + 0x18], 0x10
push edi
lea edi, [esi + 4]
jb 0x41461e
mov eax, dword [edi]
jmp 0x414620
mov eax, edi
push ecx
push eax
push str._s::Enabled:_s
lea ecx, [esp + 0x18]
push 0x1000
push ecx
call fcn.0043cd7f
lea eax, [esp + 0x20]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x414640
sub eax, edx
cmp dword [esi + 0x18], 0x10
jb 0x414651
mov edi, dword [edi]
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push 1
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x100c]
pop edi
pop esi
xor ecx, esp
call fcn.0043c3a4
add esp, 0x1008
ret 4

Function at 0x414690
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push esi
push reloc.WS2_32.dll_bind
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4146e3
lea ecx, [esp + 4]
push ecx
push esi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4146e3
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0xc
ret 4
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push str.DoNotAllowExceptions
mov esi, 4
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x414723
cmp dword [esp + 0x14], eax
je 0x414744
mov edx, dword [esp + 4]
push esi
lea ecx, [esp + 0x18]
push ecx
push esi
push 0
push str.DoNotAllowExceptions
push edx
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0xc
ret 4
Function at 0x414860
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x465d21
mov eax, dword fs:[0]
push eax
sub esp, 0x1f4
mov eax, dword [0x485f50]
xor eax, esp
mov dword [esp + 0x1f0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485f50]
xor eax, esp
push eax
lea eax, [esp + 0x208]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
lea ecx, [esp + 0x3c]
mov dword [esp + 0x210], ebx
call fcn.0041ed00
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x214], 1
call fcn.0041eb00
push 4
push ebx
push str.3790
lea ecx, [esp + 0x2c]
call fcn.0040bd80
cmp eax, 0xffffffff
jne 0x414921
push 4
push ebx
push str.2600
lea ecx, [esp + 0x2c]
call fcn.0040bd80
cmp eax, 0xffffffff
je 0x4149f9
push 7
push ebx
push str.2600.1.
lea ecx, [esp + 0x2c]
call fcn.0040bd80
cmp eax, 0xffffffff
jne 0x4149db
mov dword [esp + 0x14], ebx
lea edx, [esp + 0x14]
push edx
push 0x46b79c
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4149d0
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
xor edi, edi
lea ebx, [ebx]
push 0x103
lea edx, [esp + 0x105]
push ebx
push edx
mov byte [esp + 0x10c], bl
call fcn.0043cea0
mov edx, dword [esp + 0x20]
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x114]
push ecx
push edi
push edx
mov dword [esp + 0x3c], 0x103
call ebp
mov esi, eax
cmp esi, ebx
jne 0x4149cb
lea eax, [esp + 0x100]
push eax
call fcn.004570a9
lea ecx, [esp + 0x104]
push str.controlset
push ecx
call fcn.00442091
add esp, 0xc
test eax, eax
je 0x4149cb
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x100]
push edx
call fcn.00414760
inc edi
cmp esi, ebx
je 0x414950
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x210], bl
call fcn.0041ec40
cmp dword [esp + 0x38], 0x10
jb 0x414a1d
mov ecx, dword [esp + 0x24]
push ecx
jmp 0x414a15
lea ecx, [esp + 0x3c]
mov byte [esp + 0x210], bl
call fcn.0041ec40
cmp dword [esp + 0x38], 0x10
jb 0x414a1d
mov edx, dword [esp + 0x24]
push edx
call fcn.0041f6a2
add esp, 4
mov ecx, dword [esp + 0x208]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1f0]
xor ecx, esp
call fcn.0043c3a4
add esp, 0x200
ret
Function at 0x415af0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x408
mov eax, dword [0x485f50]
xor eax, esp
mov dword [esp + 0x404], eax
push ebx
push esi
mov esi, dword [esp + 0x414]
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x11]
push ebx
push eax
mov dword [esp + 0x14], ebx
mov byte [esp + 0x18], bl
call fcn.0043cea0
add esp, 0xc
push 0x400
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0xc]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x415b40
mov edx, dword [str.yw_]
mov cl, byte [0x46b934]
mov dword [eax], edx
mov byte [eax + 4], cl
lea eax, [esp + 0xc]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x415b70
sub eax, edx
push eax
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00408130
mov ecx, dword [esp + 0x40c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0043c3a4
add esp, 0x408
ret

Function at 0x415ba0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x808
mov eax, dword [0x485f50]
xor eax, esp
mov dword [esp + 0x804], eax
push ebx
push ebp
mov ebp, dword [esp + 0x814]
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x411]
push ebx
push eax
mov dword [esp + 0x14], ebx
mov byte [esp + 0x418], bl
call fcn.0043cea0
mov edx, dword [0x46b93c]
mov eax, dword [0x46b940]
mov ecx, dword [str.qatchelient.ini]
push 0x3ef
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [0x46b944]
mov dword [esp + 0x20], edx
mov dl, byte [0x46b948]
lea eax, [esp + 0x2d]
push ebx
push eax
mov dword [esp + 0x30], ecx
mov byte [esp + 0x34], dl
call fcn.0043cea0
add esp, 0x18
push 0x400
lea ecx, [esp + 0x410]
push ecx
mov byte [esp + 0x15], 0x77
mov byte [esp + 0x1a], 0x63
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0xc]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x415c44
push esi
push edi
lea edi, [esp + 0x414]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x415c57
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x414]
pop edi
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], ebx
mov byte [ebp + 4], bl
lea edx, [eax + 1]
pop esi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x415c88
sub eax, edx
push eax
lea edx, [esp + 0x410]
push edx
mov ecx, ebp
call fcn.00408130
mov ecx, dword [esp + 0x80c]
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.0043c3a4
add esp, 0x808
ret
Function at 0x415f90
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x465fcd
mov eax, dword fs:[0]
push eax
mov eax, 0x2048
call fcn.004405d0
mov eax, dword [0x485f50]
xor eax, esp
mov dword [esp + 0x2044], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485f50]
xor eax, esp
push eax
lea eax, [esp + 0x205c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x206c]
mov esi, dword [esp + 0x2070]
mov ebp, dword [esp + 0x2074]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2078]
xor ebx, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebx
mov edx, eax
cmp eax, ebx
jne 0x416004
mov edx, 0x4772d0
mov eax, edx
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x416020
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x44]
call fcn.00408130
mov dword [esp + 0x2064], ebx
cmp esi, ebx
je 0x416102
cmp byte [esi], bl
je 0x416102
cmp ebp, ebx
je 0x416102
cmp byte [ebp], bl
je 0x416102
push 0x1fff
lea ecx, [esp + 0x5d]
push ebx
push ecx
mov byte [esp + 0x64], bl
call fcn.0043cea0
mov eax, dword [esp + 0x28]
mov ecx, 0x10
add esp, 0xc
cmp dword [eax + 0x18], ecx
jb 0x416086
mov eax, dword [eax + 4]
jmp 0x416089
add eax, 4
cmp dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x40]
jae 0x416097
lea ecx, [esp + 0x40]
push eax
push 0x1fff
lea edx, [esp + 0x60]
push edx
push ecx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x58], bl
je 0x4160d2
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x24]
call fcn.00408210
mov ebx, 2
mov byte [esp + 0x2064], 1
mov dword [esp + 0x14], ebx
jmp 0x4160da
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x3c]
mov esi, dword [esp + 0x18]
push eax
mov ecx, esi
call fcn.00406300
or ebx, 1
test bl, 2
je 0x4160f7
lea ecx, [esp + 0x20]
call fcn.00408840
lea ecx, [esp + 0x3c]
call fcn.00408840
jmp 0x416136
mov esi, dword [esp + 0x18]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x44]
push ecx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00408730
cmp dword [esp + 0x54], 0x10
jb 0x416136
mov edx, dword [esp + 0x40]
push edx
call fcn.0041f6a2
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x205c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2044]
xor ecx, esp
call fcn.0043c3a4
add esp, 0x2054
ret 0x10

Function at 0x4167f0
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 4]
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416816
mov eax, dword [esp + 8]
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x41680f
or eax, 0xffffffff
ret 0x10
Function at 0x416860
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x416886
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 4]
push edx
push ecx
push eax
call fcn.0041f190
add esp, 0xc
cmp eax, 0xffffffff
je 0x416908
mov eax, dword [ebx + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x4168ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x217
sete cl
mov eax, ecx
test eax, eax
je 0x416908
mov edx, dword [ebx + 4]
mov eax, dword [esp + 8]
push esi
mov dword [eax + 4], edx
mov ecx, dword [ebx + 0x10]
push edi
mov dword [eax + 0x10], ecx
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x14], edx
lea edi, [eax + 0x18]
lea esi, [ebx + 0x18]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x238]
mov ecx, dword [ebx + 0x234]
push eax
push 0
push 0xa000
push 0xa000
push 0xff
push ecx
push 3
lea edx, [ebx + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
pop edi
mov dword [ebx + 4], eax
pop esi
xor eax, eax
pop ebx
ret 0x14
or eax, 0xffffffff
pop ebx
ret 0x14

Function at 0x416c00
Capabilities:
Create pipe

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, ecx
mov ecx, dword [eax + 4]
push esi
push edi
mov dword [ebx + 0x10], ecx
mov edx, dword [eax + 8]
mov dword [ebx + 0x14], edx
lea esi, [eax + 0xc]
mov eax, dword [esp + 0x20]
lea edi, [ebx + 0x18]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c]
push ecx
push 0
push 0xa000
push 0xa000
push 0xff
movsb byte es:[edi], byte [esi]
push eax
mov dword [ebx + 0x234], eax
push 3
lea eax, [ebx + 0x18]
push eax
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 0x238], ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop edi
mov dword [ebx + 4], eax
pop esi
pop ebx
dec ecx
mov eax, ecx
ret 0x14
Function at 0x4182f0
Capabilities:
Get disk information
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4663f9
mov eax, dword fs:[0]
push eax
sub esp, 0x334
mov eax, dword [0x485f50]
xor eax, esp
mov dword [esp + 0x330], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485f50]
xor eax, esp
push eax
lea eax, [esp + 0x348]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x358]
xor ebx, ebx
cmp dword [0x487ae4], ebx
je 0x418343
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x104
lea eax, [esp + 0x3c]
push eax
mov edi, 1
push ebx
mov dword [0x487ae4], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x13c]
push ecx
lea edx, [esp + 0x244]
push edx
push ebx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.00440f3a
add esp, 0x14
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x4183b4
lea eax, [esp + 0x13c]
push eax
lea ecx, [esp + 0x244]
push ecx
lea edx, [esp + 0x40]
push str.c:_s_s
push edx
call fcn.0043cd02
add esp, 0x10
lea eax, [esp + 0x38]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea edx, [eax + 1]
jmp 0x4183d0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4183d0
sub eax, edx
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x24]
call fcn.00408130
push 4
push 0x46bc54
lea ecx, [esp + 0x24]
mov dword [esp + 0x358], ebx
call fcn.00401c90
push 0x3c
call fcn.0041f673
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
mov byte [esp + 0x350], 1
cmp esi, ebx
je 0x41842d
mov ecx, esi
call fcn.00418870
mov dword [esi], vtable.BaseLib::CExecptionTask.0
mov dword [esi + 0x38], edi
jmp 0x41842f
xor esi, esi
mov edx, dword [esi]
mov eax, dword [edx + 4]
push edi
mov ecx, esi
mov byte [esp + 0x354], bl
call eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x20]
mov edi, 0x10
cmp dword [esp + 0x34], edi
jae 0x41845e
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.00417e80
add esp, 8
mov dword [esi + 0x38], ebx
cmp eax, ebx
je 0x418486
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x34], edi
jae 0x41847d
lea eax, [esp + 0x20]
push eax
call fcn.00417ba0
add esp, 4
cmp dword [esp + 0x34], edi
jb 0x418499
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0041f6a2
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x348]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x330]
xor ecx, esp
call fcn.0043c3a4
add esp, 0x340
ret 4
Function at 0x418dd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push 2
xor ebp, ebp
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
test ebx, ebx
je 0x418e4f
push str.FLAG
push 0x46bd74
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x418e48
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x418e47
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, str.ywSMP
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x418e20
sub ecx, edi
push ecx
push str.ywSMP
push eax
call fcn.004403d7
add esp, 0xc
pop edi
test eax, eax
jne 0x418e40
lea ebp, [eax + 1]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebp
pop ebp
pop ebx
ret

Function at 0x418e60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4664d8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x485f50]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
lea edi, [esi + 0x74]
push edi
mov ecx, esi
call fcn.0041a070
mov ecx, edi
mov dword [esp + 0x18], 0
mov dword [esi], vtable.BaseLib::CNetStream.0
call fcn.00416940
mov eax, dword [esp + 0x20]
mov cx, word [esp + 0x24]
mov dword [esi + 0x80], eax
mov word [esi + 0x84], cx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x14
Function at 0x418fd0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x46653b
mov eax, dword fs:[0]
push eax
mov eax, 0x100c
call fcn.004405d0
mov eax, dword [0x485f50]
xor eax, esp
mov dword [esp + 0x1008], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485f50]
xor eax, esp
push eax
lea eax, [esp + 0x1020]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1030]
mov esi, ecx
push 0x46b52c
push eax
mov dword [esp + 0x1c], esi
call fcn.0043cbf8
mov ebp, eax
add esp, 8
mov dword [esp + 0x18], ebp
xor edi, edi
mov dword [esp + 0x1028], edi
cmp ebp, edi
je 0x4190f0
mov ebx, dword [esp + 0x1034]
cmp ebx, edi
ja 0x419064
push ebp
call fcn.0043cc86
add esp, 4
lea eax, [edi + 1]
jmp 0x4190f2
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x70]
test eax, eax
je 0x419070
cmp dword [eax], 0
jne 0x4190e7
cmp ebx, 0x1000
jb 0x419084
push 0x1000
lea eax, [esp + 0x20]
push eax
jmp 0x41908a
push ebx
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.0041a170
mov esi, eax
push ebp
test esi, esi
jle 0x4190e8
push 1
lea edx, [esp + 0x24]
push esi
push edx
call fcn.00441189
inc edi
mov eax, 0x66666667
imul edi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
mov ecx, edi
add esp, 0x10
sub ebx, esi
sub ecx, eax
jne 0x4190d3
push 1
call fcn.004143c0
add esp, 4
test ebx, ebx
ja 0x419060
push ebp
call fcn.0043cc86
add esp, 4
mov eax, 1
jmp 0x4190f2
push ebp
call fcn.0043cc86
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x1020]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.0043c3a4
add esp, 0x1018
ret 8

Function at 0x41a070
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4667cb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x485f50]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x28], ecx
lea ecx, [esi + 0x34]
mov dword [esi], vtable.BaseLib::CClientSession.0
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], eax
call fcn.00416910
lea ecx, [esi + 0x50]
mov dword [esp + 0x14], 0
call fcn.00416910
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x10
Function at 0x41a210
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1008
call fcn.004405d0
mov eax, dword [0x485f50]
xor eax, esp
mov dword [esp + 0x1004], eax
mov eax, dword [esp + 0x100c]
push ebx
mov ebx, dword [esp + 0x1014]
push ebp
push esi
push edi
xor edi, edi
mov ebp, ecx
mov dword [esp + 0x10], eax
test ebx, ebx
jbe 0x41a2df
lea ebx, [ebx]
mov eax, dword [ebp + 0x70]
test eax, eax
je 0x41a260
cmp dword [eax], 0
jne 0x41a2ff
mov esi, 0x1000
cmp ebx, esi
jae 0x41a26b
mov esi, ebx
mov ecx, dword [esp + 0x10]
push ecx
push 1
lea edx, [esp + 0x1c]
push esi
push edx
call fcn.004414ab
add esp, 0x10
cmp dword [esp + 0x1024], 0
je 0x41a298
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00413170
add esp, 8
mov edx, dword [ebp]
mov edx, dword [edx + 0xc]
push esi
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
call edx
test eax, eax
jle 0x41a2ff
inc edi
mov eax, 0x66666667
imul edi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
mov ecx, edi
sub ebx, esi
sub ecx, eax
jne 0x41a2d7
push 1
call fcn.004143c0
add esp, 4
test ebx, ebx
ja 0x41a250
mov eax, 1
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043c3a4
add esp, 0x1008
ret 0xc
xor eax, eax
jmp 0x41a2e4
Function at 0x41ea50
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
xor eax, eax
push edi
mov edi, dword [esp + 0x18]
cmp edi, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
jle 0x41eaa1
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
lea esp, [esp]
push ebx
push ebp
push esi
mov ecx, esi
call fcn.0041e8f0
sub edi, 1
jne 0x41ea90
pop ebp
pop ebx
mov eax, dword [esp + 0x14]
push esi
push eax
mov ecx, esi
call fcn.0041e9b0
pop edi
pop esi
ret 0x10

Function at 0x41eb00
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x485f50]
xor eax, esp
mov dword [esp + 0x140], eax
xor eax, eax
push esi
mov esi, dword [esp + 0x14c]
push 0x9c
push eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push eax
call fcn.0043cea0
add esp, 0xc
push 0
push 0x4772d0
mov ecx, esi
call fcn.00408130
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41ec1c
push str.GetNativeSystemInfo
push 0x46bb10
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41eba2
lea edx, [esp + 4]
push edx
call eax
jmp 0x41ebad
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0x38], 2
jne 0x41ec1c
push 0x7f
lea ecx, [esp + 0xc9]
push 0
push ecx
mov byte [esp + 0xd0], 0
call fcn.0043cea0
movzx edx, word [esp + 0xca]
movzx eax, word [esp + 0xc8]
mov ecx, dword [esp + 0x40]
push edx
push eax
push ecx
lea edx, [esp + 0xdc]
push str._lu._lu._lu
push edx
call fcn.0041eae0
lea eax, [esp + 0xe4]
add esp, 0x20
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41ec03
sub eax, edx
push eax
lea eax, [esp + 0xc8]
push eax
mov ecx, esi
call fcn.00408130
mov ecx, dword [esp + 0x144]
pop esi
xor ecx, esp
call fcn.0043c3a4
add esp, 0x144
ret 4

Function at 0x41ee50
Capabilities:
Get socket status

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x41ee88
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.00441f07
mov dword [eax], esi
or eax, 0xffffffff
pop esi
ret

Function at 0x41ee90
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x485f50]
xor eax, esp
mov dword [esp + 0x190], eax
movzx cx, byte [esp + 0x19c]
movzx dx, byte [esp + 0x198]
shl cx, 8
lea eax, [esp]
push eax
or cx, dx
movzx eax, cx
push eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0043c3a4
add esp, 0x194
ret