joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ad83
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
cmp eax, ecx
mov dword [ebp - 8], edi
jb 0x42ae10
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.0043e21a
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x42add0
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x42adf2
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x42af3e
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
cmp ecx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
jbe 0x42ae38
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x42ae43
xor eax, eax
jmp 0x42ae8e
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x42ae60
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
push edx
call fcn.00438b65
jmp 0x42ae71
cmp ecx, 2
jne 0x42ae78
push edx
push dword [edi + 0x30]
mov edx, dword [edi]
call fcn.00438d7f
pop ecx
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
pop ecx
push dword [ebp - 4]
push dword [edi]
push eax
call fcn.0043e21a
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edx, dword [esi + 0x74]
cmp edx, 3
jb 0x42aeb9
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edi, [eax + ecx]
movzx eax, byte [edi]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edi + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edx, 0x106
jae 0x42aecd
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x42ad8e
mov ecx, dword [esi + 0x16c0]
mov eax, dword [esi + 0x3c]
cmp ecx, eax
jae 0x42af3e
mov edi, dword [esi + 0x6c]
add edi, edx
cmp ecx, edi
jae 0x42af0d
sub eax, edi
mov ebx, eax
mov eax, 0x102
cmp ebx, eax
jbe 0x42aef2
mov ebx, eax
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.0043e190
add esp, 0xc
add ebx, edi
mov dword [esi + 0x16c0], ebx
jmp 0x42af3e
lea edx, [edi + 0x102]
cmp ecx, edx
jae 0x42af3e
sub edi, ecx
add edi, 0x102
sub eax, ecx
cmp edi, eax
jbe 0x42af27
mov edi, eax
mov eax, dword [esi + 0x38]
push edi
add eax, ecx
push 0
push eax
call fcn.0043e190
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebx
leave
ret
Function at 0x42deba
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
ret

Function at 0x43180d
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x444e28
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x498030]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea esi, [esp + 0x14]
call fcn.00431e63
mov dword [esp + 0x14], 0x48d21c
and dword [esp + 0x30], 0
mov al, byte [ebx + 0xc]
mov cl, byte [ebx + 0xd]
mov edi, dword [ebx + 8]
mov esi, dword [ebx + 4]
mov byte [esp + 0x10], al
mov eax, dword [ebx]
push dword [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
call fcn.004321e9
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43f930
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442fe3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp - 0x58]
mov dword [eax], 0x48bdb0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x58]
mov dword [ecx], 0x48bda8
mov edx, dword [ebp - 0x58]
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x58]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov ecx, dword [ebp - 0x58]
mov dword [ecx + 0x18], 0
mov edx, dword [ebp - 0x58]
mov word [edx + 0x1c], 0
mov eax, dword [ebp - 0x58]
mov dword [eax + 0x20], 0
mov ecx, dword [ebp - 0x58]
add ecx, 0x24
call fcn.00423680
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x58]
add ecx, 0x30
mov dword [ebp - 0x50], ecx
lea edx, [ebp - 0x47]
mov dword [ebp - 0x34], edx
lea eax, [ebp - 0x46]
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x45]
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0x50]
call fcn.00423ce0
mov edx, dword [ebp - 0x58]
mov dword [edx + 0x3c], 0
mov eax, dword [ebp - 0x58]
mov dword [eax + 0x40], 0
mov ecx, dword [ebp - 0x58]
mov dword [ecx + 0x44], 0
mov ecx, dword [ebp - 0x58]
add ecx, 0x48
call fcn.0043eb90
mov edx, dword [ebp - 0x58]
mov dword [edx + 0x50], 1
mov eax, dword [ebp - 0x58]
mov dword [eax + 0x54], 0
mov ecx, dword [ebp - 0x58]
mov dword [ecx + 0x58], 0
mov edx, dword [ebp - 0x58]
mov dword [edx + 0x5c], 0
mov eax, dword [ebp - 0x58]
mov dword [eax + 0x60], 0
mov ecx, dword [ebp - 0x58]
add ecx, 0x64
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
push edx
call dword [fcn.004481bc]
mov eax, dword [ebp - 0x58]
mov dword [eax + 0x7c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x43fa70
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443006
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push esi
mov dword [ebp - 0x98], ecx
mov eax, dword [ebp - 0x98]
mov dword [eax], 0x48bda8
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x98]
mov dword [ecx + 0x7c], 1
mov edx, dword [ebp - 0x98]
mov dword [edx + 0x44], 0
mov eax, dword [ebp - 0x98]
add eax, 0x64
lea esi, [ebp - 0x14]
call fcn.00418ef0
lea eax, [ebp - 0x14]
call fcn.00418f10
mov eax, dword [ebp - 0x98]
add eax, 0x64
push eax
call dword [fcn.004480a0]
mov ecx, dword [ebp - 0x98]
add ecx, 0x48
call fcn.0043eb70
mov ecx, dword [ebp - 0x98]
add ecx, 0x30
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebp - 0x78]
call fcn.00423920
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x98]
add edx, 0x24
mov dword [ebp - 0x94], edx
mov ecx, dword [ebp - 0x94]
call fcn.00423d50
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x8c], ecx
mov edx, dword [ebp - 0x94]
mov eax, dword [edx + 4]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
push ecx
call fcn.0043dc3e
add esp, 4
mov edx, dword [ebp - 0x94]
mov dword [edx + 4], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x98]
mov dword [eax], 0x48bdb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x4042e8
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x5e2fa44b
mov ebx, 0x623ad66d
xor ebx, edx
push 0xb2631ef
mov esi, 0x63c7569
pop edx
xor esi, edx
xor esi, ebx
mov ecx, 0x44850
mov eax, 0x23202685
xor ecx, eax
xor eax, eax
add eax, eax
jmp 0x403f40

Function at 0x4051fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405235
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40523e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405248
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405269
mov al, byte [esp]
jmp 0x40526b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4069dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406a24
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406978
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a2b
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406c2c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406cba
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406c77
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x406ca4
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406c8b
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x406c9a
lea edx, [ebp - 4]
call fcn.00406af0
test ebx, ebx
je 0x406c9a
dec ebx
jmp 0x406c7c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406cc1
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406cc8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404dd0
add esp, 0x104
pop ebx
ret
Function at 0x100cbe5
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
je 0x100cc3a
jle 0x100cc1c
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x100cc8b
test byte [eax + 0x1c], 1
je 0x100cc8b
push esi
push 0x100190c
push 0xd
jmp 0x100cc7c
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, edi
je 0x100cc89
jle 0x100cc60
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x100cc8b
test byte [eax + 0x1c], 1
je 0x100cc8b
push esi
push 0x100190c
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001a58
jmp 0x100cc8b
xor esi, esi
cmp dword [ebp - 4], edi
je 0x100cc99
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret 0x18

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40a6a0
Capabilities:
Get process heap flags

Disassembly:
mov edi, dword [0x10010c8]
push eax
push dword [ebp + 0x14]
call edi
test eax, eax
jne 0x40a6d9
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
test byte [eax + 0x69], 0x40
jne 0x40a6c6
push 0xe9
jmp 0x40a731
and esi, 0xffffbfff
push esi
call fcn.00409093
push 0xe5
jmp 0x40a731
push 0xe6
call fcn.0040c098
push eax
push dword [ebp + 0x14]
call edi
test eax, eax
jne 0x40a70f
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
mov eax, 0x4000
test dword [ecx + 0x68], eax
jne 0x40a72c
or esi, eax
push esi
call fcn.00409093
push 0xe4
jmp 0x40a731
push 0x1001280
push dword [ebp + 0x14]
call edi
test eax, eax
jne 0x40a756
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
test byte [eax + 0x69], 0x40
je 0x40a6bf
push 0xea
call fcn.0040c098
push eax
mov eax, dword [0x1001234]
add eax, 0x40
push eax
call fcn.0040bc8b
push dword [0x100d6ac]
call dword [0x1001020]
jmp 0x40a828
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
test byte [eax + 0x69], 0x40
push dword [0x100d6ac]
jne 0x40a78f
call dword [0x1001020]
push 0xe3
call fcn.0040c098
push eax
mov eax, dword [0x1001234]
add eax, 0x40
push eax
call fcn.0040bc8b
jmp 0x40a828
call dword [0x1001020]
push 0xfffffffffffffff4
call dword [0x1001060]
test eax, eax
mov dword [0x100d690], eax
mov esi, 0x100d694
je 0x40a7b3
push esi
push eax
call dword [0x1001064]
push esi
push 0xb9
call fcn.0040c098
push eax
push dword [0x100d690]
call fcn.004095be
or dword [0x100d6b0], 0xffffffff
and dword [0x100dcc0], 0
push 4
push 0x100dbc0
push 0x100152c
mov byte [0x100d6b8], 0
mov byte [0x100dcc4], 0
call fcn.00408fca
call fcn.00409cd4
mov esi, eax
test esi, esi
je 0x40a82b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00409d43
mov eax, dword [0x100d6b0]
cmp eax, 0xffffffff
je 0x40a821
push eax
call dword [0x1001068]
push esi
call dword [0x100123c]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x4011a4
Capabilities:
Check for peb beingdebugged flag

Disassembly:
jmp 0x40ec90
push 0xffffffffffffffff
push 0x576270
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
xor eax, eax
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x58c6d8
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
push ecx
push eax
push eax
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::Attach
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject_3
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
mov ecx, esi
lea eax, [edi + 2]
push eax
lea eax, [esp + 0x1c]
push ebx
push eax
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 5]
mov ecx, esi
push eax
push ebx
call sub.MFC42.DLL_CDC::LineTo
lea ebp, [edi + 3]
lea eax, [ebx + 1]
push ebp
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 6]
mov ecx, esi
push eax
lea eax, [ebx + 1]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea eax, [edi + 4]
lea ecx, [ebx + 2]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 7]
mov ecx, esi
push eax
lea eax, [ebx + 2]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea eax, [ebx + 3]
push ebp
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 6]
mov ecx, esi
push eax
lea eax, [ebx + 3]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea eax, [edi + 2]
lea ecx, [ebx + 4]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 5]
mov ecx, esi
push eax
lea eax, [ebx + 4]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea ecx, [edi + 1]
lea eax, [ebx + 5]
push ecx
lea edx, [esp + 0x1c]
push eax
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 4]
mov ecx, esi
push eax
lea eax, [ebx + 5]
push eax
call sub.MFC42.DLL_CDC::LineTo
add ebx, 6
push edi
lea eax, [esp + 0x1c]
push ebx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
push ebp
push ebx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject_3
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x10], 0x58c6a8
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x4012e9
Capabilities:
Connect socket

Disassembly:
jmp 0x419b50
sub esp, 0x30
push ebx
push ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esp + 8], eax
jne 0x419b83
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401e29
add esp, 4
or eax, 0xffffffff
pop ebp
pop ebx
add esp, 0x30
ret
mov ebx, dword [esp + 0x3c]
mov ebp, dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x10
push eax
push ebx
call ebp
cmp eax, 0xffffffff
jne 0x419bbb
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00401e29
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 [sym.imp.WS2_32.dll_WSAConnect]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call edi
cmp esi, 0xffffffff
jne 0x419c53
cmp eax, 0x2733
jne 0x419c53
mov eax, dword [esp + 0x50]
push 1
push eax
lea ecx, [esp + 0x18]
push 1
push ecx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
test eax, eax
je 0x419c15
call edi
push eax
call fcn.00401e29
add esp, 4
or esi, esi
jmp 0x419c53
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp eax, 0xffffffff
jne 0x419c3b
call edi
push eax
call fcn.00401e29
add esp, 4
or esi, 0xffffffff
jmp 0x419c53
mov eax, dword [esp + 0x28]
test eax, eax
je 0x419c51
push eax
call fcn.00401e29
add esp, 4
or esi, 0xffffffff
jmp 0x419c53
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 [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret

Function at 0x4013d9
Capabilities:
Get common file path

Disassembly:
jmp 0x4280e0
mov eax, 0x1004
call fcn.0043c040
mov al, byte [0x623248]
push ebx
mov ebx, 1
push esi
test bl, al
mov dword [esp + 8], 0
jne 0x428123
mov dl, al
mov ecx, 0x623244
or dl, bl
mov byte [0x623248], dl
call sub.MFC42.DLL_CString::CString_3
push 0x4281f0
call fcn.0043c02e
add esp, 4
mov eax, dword [0x623244]
push 0x621dc4
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x428189
push edi
push ebx
lea ecx, [esp + 0x14]
push 0x1a
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, 0x60f838
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x623244
call sub.MFC42.DLL_CString::operator
pop edi
mov esi, dword [esp + 0x1010]
push 0x623244
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov eax, esi
pop esi
pop ebx
add esp, 0x1004
ret
Function at 0x4013ed
Capabilities:
Read file on windows

Disassembly:
jmp 0x406bf0
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x575a48
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push 0x65
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ebp, eax
test ebp, ebp
je 0x406d2b
mov eax, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x10]
push eax
push ecx
lea ecx, [esi + 0x60]
call sub.MFC42.DLL_CListCtrl::GetItemText
add esi, 0x1a4
push eax
lea edx, [esp + 0x24]
push esi
push edx
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_operator_3
push str..txt
push eax
lea eax, [esp + 0x10]
mov byte [esp + 0x20], 1
push eax
call sub.MFC42.DLL_operator_4
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 3
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
push 0x60f9b4
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x406cc5
push 0x621dc4
mov ecx, ebp
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
pop ebp
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
push ebx
push edi
push 2
push 0
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push esi
mov ebx, eax
call dword [sym.imp.MSVCRT.dll_rewind]
lea edx, [ebx + 1]
push edx
call sub.MFC42.DLL_operatornew
push esi
mov edi, eax
push ebx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x28
mov ecx, ebp
mov byte [edi + ebx], 0
push edi
call sub.MFC42.DLL_CWnd::SetWindowTextA
push edi
call dword [sym.imp.MSVCRT.dll_free]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop ebx
mov ecx, dword [esp + 0x10]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret 4