joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d440
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x479fc3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046d209
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004728a8
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00473ebe
test eax, eax
je 0x43d55c
mov ecx, dword [esp + 0x3c]
call fcn.004728d5
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43d520
push edi
mov ecx, esi
call fcn.0046ff34
mov ecx, esi
call fcn.0043d6c0
cmp dword [esp + 0x38], 1
jne 0x43d555
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0047006f
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43ff80
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43ffb3
push esi
call fcn.00443090
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43ffac
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 0x440039
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x440022
mov eax, dword [esi + 8]
test eax, eax
je 0x43ffd7
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 0x44001e
cmp eax, 2
je 0x440022
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43ffca
cmp eax, 3
je 0x43fffd
cmp eax, 1
jne 0x43ffca
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 0x43ffca
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43ffca
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00440060
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x440048
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00440060
add esp, 4
pop esi
ret

Function at 0x44b930
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 0x44b996
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 0x44b996
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x44b977
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x44bd20
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x44bd58
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 0x44c9f0
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 0x44ca39
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 0x44ceb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47a4c0
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.0044ca60
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044cae0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044cae0
lea ecx, [esi + 0xc]
call fcn.0046bbe6
lea ecx, [esi + 0x10]
call fcn.0046bbe6
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044e070
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044e070
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044e070
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0046bc5b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0046bc5b
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x46dfff
Capabilities:
Get graphical window text

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

Function at 0x46f6f1
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 0x46f733
call fcn.00475565
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46f733
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46f72a
xor eax, eax
jmp 0x46f73b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046f741
pop edi
pop esi
pop ebx
ret 4

Function at 0x475a95
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 0x475ac3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x475ae1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004759fb
jmp 0x475ae1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x475ae1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004759fb
test edi, edi
mov eax, edi
jne 0x475acb
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4022a6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4022bb
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4022cd
xor eax, eax
jmp 0x4022ff
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4022f1
cmp esi, eax
jae 0x4022c9
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4022e3
cmp esi, eax
jae 0x4022c9
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x402416
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x41e654]
mov dword [ebp + 0x94], eax
push 0x114
lea eax, [ebp - 0x80]
push 0
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
mov ecx, dword [ebp + 0x94]
sbb eax, eax
inc eax
call fcn.004118d5
add ebp, 0x98
leave
ret

Function at 0x4026f0
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x402730
mov esi, dword [esp + 0x10]
cmp dword [esi + 4], 0
je 0x402730
mov ebx, dword [sym.imp.ADVAPI32.dll_IsValidSid]
push eax
call ebx
test eax, eax
je 0x402730
push dword [esi + 4]
call ebx
test eax, eax
je 0x402730
push dword [esi + 4]
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
jmp 0x402732
xor al, al
pop edi
pop esi
pop ebx
ret 4
Function at 0x4064c5
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x412368
call fcn.00411a30
sub esp, 0x264
mov eax, dword [0x41e654]
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x10], eax
call fcn.00404341
push dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x268]
call fcn.00404341
push 0x415cd4
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 1
call fcn.00405bea
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, dword [sym.imp.MSVCR71.dll_wcscmp]
mov ebx, eax
test byte [ebp - 0x260], 0x10
lea eax, [ebp - 0x234]
je 0x4065be
push 0x415cd0
push eax
call edi
test eax, eax
pop ecx
pop ecx
je 0x4065eb
lea eax, [ebp - 0x234]
push 0x415cc8
push eax
call edi
test eax, eax
pop ecx
pop ecx
je 0x4065eb
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.00405f3b
push 0x415cc4
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 2
call fcn.00405f3b
add esp, 0x18
push dword [eax]
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004064c5
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402577
mov ecx, dword [ebp - 0x26c]
mov byte [ebp - 4], 1
jmp 0x4065e3
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.00405f3b
add esp, 0xc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x270]
add ecx, 0xfffffff0
call fcn.00402577
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406531
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x268]
add ecx, 0xfffffff0
call fcn.00402577
mov ecx, dword [ebp - 0x264]
add ecx, 0xfffffff0
call fcn.00402577
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004118d5
leave
ret 4
Function at 0x40663d
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x412388
call fcn.00411a30
sub esp, 0x218
mov eax, dword [0x41e654]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
mov esi, ecx
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x218], bx
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.004048b8
test eax, eax
jne 0x406697
mov dword [esi + 0x2c], 4
jmp 0x40678d
push dword [0x420260]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.MSVCR71.dll_wcscat]
pop ecx
pop ecx
lea eax, [ebp - 0x218]
push eax
push ebx
push dword [0x420270]
push dword [0x42026c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, ebx
mov dword [ebp - 0x224], eax
jle 0x40678d
mov esi, 0x400
lea ecx, [ebp - 0x220]
call fcn.00402de1
and dword [ebp - 4], 0
inc ebx
push ebx
push dword [0x420274]
lea eax, [ebp - 0x220]
push eax
call fcn.00405f28
add esp, 0xc
lea ecx, [ebp - 0x21c]
call fcn.00402de1
mov edi, dword [0x42026c]
lea eax, [ebp - 0x218]
push eax
push esi
push esi
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 1
call fcn.00402e22
push eax
push 0x415adc
push dword [ebp - 0x220]
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x21c]
call fcn.004052c8
mov edi, dword [ebp - 0x21c]
cmp dword [edi - 0xc], 0
je 0x406767
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
lea edx, [ebp - 0x21c]
push edx
push eax
call fcn.0040631c
lea ecx, [edi - 0x10]
call fcn.00402577
mov ecx, dword [ebp - 0x220]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00402577
cmp ebx, dword [ebp - 0x224]
jl 0x4066d9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004118d5
leave
ret 4
Function at 0x407213
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4124af
call fcn.00411a30
sub esp, 0x20
push ebx
xor eax, eax
push esi
push edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
push dword [ebp + 0x18]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00406d8b
lea ecx, [ebp - 0x1c]
call fcn.00402de1
push dword [ebp + 0x18]
lea ecx, [ebp - 0x1c]
push 0x33
push 0x33
mov byte [ebp - 4], 1
call fcn.00402e22
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
mov ebx, 0x415adc
push ebx
push str.HttpProxy
mov edi, str.Proxy
push edi
call esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call fcn.004052c8
lea ecx, [ebp - 0x18]
call fcn.00402de1
push dword [ebp + 0x18]
lea ecx, [ebp - 0x18]
push 0x33
push 0x33
mov byte [ebp - 4], 2
call fcn.00402e22
push eax
push ebx
push str.FtpProxy
push edi
call esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.004052c8
lea ecx, [ebp - 0x14]
call fcn.00402de1
push dword [ebp + 0x18]
lea ecx, [ebp - 0x14]
push 0x33
push 0x33
mov byte [ebp - 4], 3
call fcn.00402e22
push eax
push ebx
push str.HttpsProxy
push edi
call esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.004052c8
lea ecx, [ebp - 0x10]
call fcn.00402de1
push dword [ebp + 0x18]
lea ecx, [ebp - 0x10]
push 0x33
push 0x33
mov byte [ebp - 4], 4
call fcn.00402e22
push eax
push ebx
push str.ServerProxy
push edi
call esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004052c8
mov esi, dword [ebp - 0x28]
cmp esi, dword [ebp - 0x24]
je 0x40738f
mov edi, 0x314
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.004057ff
test al, al
pop ecx
pop ecx
je 0x407330
push edi
lea eax, [esi + 4]
push eax
push dword [ebp + 8]
jmp 0x40737c
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.004057ff
test al, al
pop ecx
pop ecx
je 0x40734a
push edi
lea eax, [esi + 4]
push eax
push dword [ebp + 0xc]
jmp 0x40737c
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.004057ff
test al, al
pop ecx
pop ecx
je 0x407364
push edi
lea eax, [esi + 4]
push eax
push dword [ebp + 0x10]
jmp 0x40737c
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.004057ff
test al, al
pop ecx
pop ecx
je 0x407384
push edi
lea eax, [esi + 4]
push eax
push dword [ebp + 0x14]
call sub.MSVCR71.dll_memcpy
add esp, 0xc
add esi, 0x318
cmp esi, dword [ebp - 0x24]
jne 0x407316
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402577
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402577
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00402577
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00402577
lea ecx, [ebp - 0x2c]
call fcn.00406b2d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14
Function at 0x4073d4
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4123af
call fcn.00411a30
push ecx
push ebx
push esi
push edi
mov esi, 0x314
push esi
mov edi, ecx
call fcn.004114e2
push esi
mov dword [edi + 4], eax
call fcn.004114e2
push esi
mov dword [edi + 8], eax
call fcn.004114e2
push esi
mov dword [edi + 0xc], eax
call fcn.004114e2
push esi
xor ebx, ebx
push ebx
push dword [edi + 4]
mov dword [edi + 0x10], eax
call sub.MSVCR71.dll_memset
push esi
push ebx
push dword [edi + 8]
call sub.MSVCR71.dll_memset
push esi
push ebx
push dword [edi + 0xc]
call sub.MSVCR71.dll_memset
push esi
push ebx
push dword [edi + 0x10]
call sub.MSVCR71.dll_memset
add esp, 0x40
lea ecx, [ebp - 0x10]
call fcn.00402de1
mov eax, 0x104
push eax
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00402e22
push eax
call fcn.0040948c
pop ecx
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004052c8
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ebx
jne 0x407473
lea ecx, [eax - 0x10]
jmp 0x4074c7
push str.config.ini
lea ecx, [ebp - 0x10]
call fcn.00405bea
mov esi, dword [ebp - 0x10]
push esi
push ebx
push str.UseProxy
push str.Proxy
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
dec eax
je 0x4074b1
dec eax
jne 0x4074c4
push esi
push dword [edi + 0x10]
mov ecx, edi
push dword [edi + 0xc]
push dword [edi + 8]
push dword [edi + 4]
call fcn.00407213
jmp 0x4074c4
push dword [edi + 0x10]
mov ecx, edi
push dword [edi + 0xc]
push dword [edi + 8]
push dword [edi + 4]
call fcn.0040562a
lea ecx, [esi - 0x10]
call fcn.00402577
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4076e8
Capabilities:
Resolve dns
Send icmp echo request

Disassembly:
mov eax, 0x4124e0
call fcn.00411a30
sub esp, 0x28
mov eax, dword [0x41e654]
push esi
xor esi, esi
push str.ping5.client.sandai.net
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x34], esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push esi
push dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], esi
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedStateExW]
test eax, eax
je 0x407733
inc esi
jmp 0x4077ab
or dword [ebp - 0x30], 0xffffffff
push ebx
push edi
call sub.iphlpapi.dll_IcmpCreateFile
cmp dword [ebp - 0x30], 0xffffffff
mov ebx, eax
jne 0x40776b
push 0x415f0c
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, esi
je 0x40776b
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x30]
push eax
call sub.MSVCR71.dll_memcpy
add esp, 0xc
push 0x1c
call fcn.00411507
cmp dword [ebp - 0x30], 0xffffffff
pop ecx
mov edi, eax
je 0x4077a2
cmp dword [ebp - 0x30], esi
je 0x4077a2
push 0x3e8
push 0x1c
push edi
push esi
push esi
push esi
push dword [ebp - 0x30]
push ebx
call sub.iphlpapi.dll_IcmpSendEcho
cmp eax, esi
je 0x4077a2
jbe 0x4077a2
cmp dword [edi + 4], esi
jne 0x4077a2
xor esi, esi
inc esi
push edi
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
pop ecx
pop edi
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
call fcn.004118d5
leave
ret
Function at 0x40c20d
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 8]
call fcn.0040d91c
xor ebx, ebx
mov dword [esi + 0x53c], ebx
mov eax, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
push dword [eax]
lea ecx, [esi + 0x540]
push ebx
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::erase_unsigned_int__unsigned_int_]
lea edi, [esi + 0x594]
mov eax, dword [edi]
cmp eax, 0xffffffff
mov dword [esi + 0x598], ebx
mov dword [esi + 0x59c], ebx
je 0x40c27c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [edi], 0xffffffff
cmp dword [esi + 0x58c], ebx
je 0x40c27c
lea eax, [esi + 0x578]
cmp dword [eax + 0x18], 8
jb 0x40c272
mov eax, dword [eax + 4]
jmp 0x40c275
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
push dword [eax]
lea ecx, [esi + 0x55c]
push ebx
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::erase_unsigned_int__unsigned_int_]
mov eax, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
push dword [eax]
lea ecx, [esi + 0x578]
push ebx
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::erase_unsigned_int__unsigned_int_]
pop edi
pop esi
pop ebx
ret

Function at 0x40c64a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x1c], 0xc8
push esi
mov esi, ecx
jne 0x40c6eb
push ebx
push edi
mov edi, dword [ebp + 0x14]
xor ebx, ebx
cmp edi, ebx
je 0x40c6e9
mov eax, dword [ebp + 0x20]
mov byte [eax], bl
lea eax, [esi + 0x598]
add dword [eax], edi
adc dword [eax + 4], ebx
cmp dword [esi + 0x594], 0xffffffff
jne 0x40c6b4
lea eax, [esi + 0x578]
cmp dword [eax + 0x18], 8
jb 0x40c695
mov eax, dword [eax + 4]
jmp 0x40c698
add eax, 4
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x594], eax
mov eax, dword [esi + 0x594]
cmp eax, 0xffffffff
je 0x40c6db
push ebx
lea ecx, [ebp + 0xc]
push ecx
push edi
push dword [ebp + 0x10]
mov dword [ebp + 0xc], ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c6db
cmp dword [ebp + 0xc], edi
je 0x40c6e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
push eax
call fcn.0040c2b4
pop edi
pop ebx
pop esi
pop ebp
ret 0x1c