joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d0610
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push ebp
xor edi, edi
call fcn.004ab8e0
push ebp
call fcn.004ab800
mov esi, eax
add esp, 8
test esi, esi
je 0x4d0819
push ebx
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx + 4]
add eax, eax
cmp eax, dword [esi + 8]
jg 0x4d0645
mov eax, esi
jmp 0x4d064f
push eax
push esi
call fcn.0048adc0
add esp, 8
test eax, eax
je 0x4d0818
mov ebp, dword [ebx + 4]
dec ebp
js 0x4d07c8
mov eax, dword [ebx]
mov edx, dword [eax + ebp*4]
mov ecx, edx
shr ecx, 1
mov eax, edx
and eax, 0x20000
and ecx, 0x8000
or ecx, eax
mov eax, edx
and eax, 0x40000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x80000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x100000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x200000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x400000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x800000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x1000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x2000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x4000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x8000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x10000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x20000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x40000000
shr ecx, 1
or ecx, eax
and edx, reloc.WS2_32.dll_accept
mov eax, dword [esi]
shr ecx, 1
or ecx, edx
shr ecx, 1
mov dword [eax + ebp*8 + 4], ecx
mov eax, dword [ebx]
mov ecx, dword [eax + ebp*4]
mov edx, ecx
and edx, 0x8000
mov eax, ecx
add edx, edx
and eax, 0x4000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x2000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x1000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x800
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x400
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x200
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x100
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x80
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x40
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x20
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x10
or edx, eax
mov eax, ecx
add edx, edx
and eax, 8
or edx, eax
mov eax, ecx
add edx, edx
and eax, 4
or edx, eax
mov eax, ecx
add edx, edx
and eax, 2
or edx, eax
and ecx, 1
mov eax, dword [esi]
add edx, edx
or edx, ecx
mov dword [eax + ebp*8], edx
dec ebp
jns 0x4d0661
mov eax, dword [ebx + 4]
add eax, eax
mov dword [esi + 4], eax
test eax, eax
jle 0x4d07f1
mov ecx, dword [esi]
lea edx, [eax - 1]
lea edx, [ecx + edx*4]
lea esp, [esp]
mov ecx, dword [edx]
lea edx, [edx - 4]
test ecx, ecx
jne 0x4d07ee
dec eax
test eax, eax
jg 0x4d07e0
mov dword [esi + 4], eax
cmp dword [esi + 4], edi
jne 0x4d07f9
mov dword [esi + 0xc], edi
push dword [esp + 0x1c]
push esi
push dword [esp + 0x1c]
call fcn.004cf720
mov ebp, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
mov ecx, 1
cmovne edi, ecx
pop ebx
push ebp
call fcn.004ab790
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x4d2ff0
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
test esi, esi
jle 0x4d30dc
push edi
mov edi, dword [esp + 0x14]
inc edi
lea ebx, [ebx]
movzx edx, byte [edi - 1]
cmp esi, 3
jl 0x4d306e
movzx ecx, byte [edi]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + 0x4ffc88]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x4ffc88]
mov byte [eax + 1], cl
mov ecx, edx
shr ecx, 6
and ecx, 0x3f
and edx, 0x3f
movzx ecx, byte [ecx + 0x4ffc88]
mov byte [eax + 2], cl
movzx ecx, byte [edx + 0x4ffc88]
mov byte [eax + 3], cl
jmp 0x4d30bf
shl edx, 0x10
cmp esi, 2
jne 0x4d307e
movzx ecx, byte [edi]
shl ecx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + 0x4ffc88]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x4ffc88]
mov byte [eax + 1], cl
cmp esi, 1
jne 0x4d30ab
lea ecx, [esi + 0x3c]
jmp 0x4d30b8
shr edx, 6
and edx, 0x3f
movzx ecx, byte [edx + 0x4ffc88]
mov byte [eax + 2], cl
mov byte [eax + 3], 0x3d
sub esi, 3
add eax, 4
add ebx, 4
add edi, 3
test esi, esi
jg 0x4d3010
pop edi
mov byte [eax], 0
mov eax, ebx
pop esi
pop ebx
ret
mov byte [eax], bl
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53
Function at 0x43aa98
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x43aaa7
pop dword [ebp - 0x38]
mov eax, 0xfc304c37
sub eax, 0xfbeca190
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x50aec
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0xb142bfca
add ecx, 0x4ebd8625
xor edx, edx
add edx, eax
mov ebx, 0x61531b40
sub ebx, 0x610a8d40
add ebx, dword [ebp - 0x38]
mov esi, 0x6b41ab85
sub esi, 0x3045ee8c
add dword [ebp - 0x14], 0x24ef8909
mov edi, dword [ebx]
mov dword [ebp - 0x2c], 0xca483969
add edi, esi
sub dword [ebp - 0x34], edx
mov dword [edx], edi
xor dword [ebp - 0x14], edi
add edx, 4
add ebx, 4
loop 0x43ab03
add eax, 0xf83cc02a
add eax, 0x7c44a65
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xedfe041d
add ecx, 0x1241fbe3
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x41f993
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41f9d2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41f9d2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f9d2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41f9d2
cmp dword [ecx + 0x74], 0xe
jbe 0x41f9d2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x432150
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43217d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43217d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0xa22058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00a221a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa2207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa2206a
add dl, dl
jne 0xa22089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa220dc
xor eax, eax
add dl, dl
jne 0xa22096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa2217d
add dl, dl
jne 0xa220a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa220b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa220bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa220c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa220d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa22075
mov eax, 1
add dl, dl
jne 0xa220ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa220f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa220e1
sub eax, ebx
mov ebx, 1
jne 0xa22128
mov ecx, 1
add dl, dl
jne 0xa2210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa22119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa22105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa22075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa2213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa2214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa22136
cmp eax, 0x7d00
jae 0xa2216d
cmp eax, 0x500
jb 0xa22168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa22075
cmp eax, 0x7f
ja 0xa22170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa22075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa2219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xa22075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4010b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4fd6d2
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
mov eax, dword [0x5384a8]
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.00471080
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.0047d3e0
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 0x404ac0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x50303a
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5384a8]
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.00404b50
lea eax, [esp + 8]
push eax
push 0
push edi
push 0x404ca0
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.004046e0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x1a4

Function at 0x404d30
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 0x404d9a
push esi
call fcn.00405810
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 0x4051a0
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 0x404dac
call fcn.00404a50
mov edx, dword [ebp + 0x10]
push edx
push 2
jmp 0x404dc7
cmp eax, 3
jne 0x404dbe
call fcn.00404a50
mov eax, dword [ebp + 0x10]
push eax
push 3
jmp 0x404dc7
test eax, eax
jne 0x404ddb
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 0x405ce0
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 0x405d9c
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 0x405d92
push esi
xor esi, esi
cmp dword [ebx], edi
jbe 0x405d80
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 0x405d4d
mov ecx, dword [esp + 0x20]
push ecx
call ebp
cmp dword [edi], eax
je 0x405d57
inc esi
add edi, 0x38
cmp esi, dword [ebx]
jb 0x405d36
jmp 0x405d7b
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 0x405db0
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 0x405e8b
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 0x405e81
push edi
xor edi, edi
cmp dword [ebx], esi
jbe 0x405e6f
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 0x405e3c
push str.255.255.255.255
call ebp
cmp dword [esi], eax
jne 0x405e3c
mov eax, dword [esp + 0x1c]
push eax
call ebp
cmp dword [esi + 8], eax
jne 0x405e3c
mov ecx, dword [esp + 0x20]
cmp dword [esi + 0xc], ecx
je 0x405e46
inc edi
add esi, 0x38
cmp edi, dword [ebx]
jb 0x405e10
jmp 0x405e6a
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 0x405ea0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x19c
mov eax, dword [0x5384a8]
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 0x405f02
test esi, esi
jne 0x405ee7
push 0x43c
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VCincludexstring
push str.invalid_null_pointer
call fcn.0047acd0
add esp, 0xc
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405ef0
sub eax, edx
push eax
push esi
mov ecx, ebx
call fcn.00402170
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x405f42
test esi, esi
jne 0x405f2a
push 0x43c
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VCincludexstring
push str.invalid_null_pointer
call fcn.0047acd0
add esp, 0xc
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405f30
sub eax, edx
push eax
push esi
mov ecx, ebx
call fcn.00402170
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 0x405f6d
push 0x43c
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VCincludexstring
push str.invalid_null_pointer
call fcn.0047acd0
add esp, 0xc
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405f72
sub eax, edx
push eax
push esi
mov ecx, ebx
call fcn.00402170
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x19c]
pop edi
pop esi
xor ecx, esp
call fcn.0047d0e0
add esp, 0x19c
ret
Function at 0x408600
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4f8b4b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5384a8]
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.0047c010
push 0x1b
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VCinclude_streambuf
mov dword [esp + 0x24], 0
call fcn.0047abb0
push eax
push 4
call fcn.0047aac0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40868b
call fcn.0047b4d0
mov dword [edi], eax
call fcn.0047b2a0
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0047ac60
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x408680
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0047aca0
jmp 0x40868d
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 0x40a090
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4f8503
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x5384a8]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [0x5384a8]
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 0x5165fc
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.0047d0e0
add esp, 0x220
ret
Function at 0x412500
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x502110
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5384a8]
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 0x515198
call fcn.00401f40
sub esp, 0x20
mov ecx, esp
mov dword [esp + 0x54], esp
push str.outline
mov byte [esp + 0x78], 2
call fcn.00401f40
mov byte [esp + 0x74], 1
call fcn.0044c260
add esp, 0x4c
lea eax, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00461d50
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
add esp, 0x28
ret
Function at 0x412cd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f8adb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5384a8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
push 0x488
call fcn.0047ffe0
mov esi, eax
add esp, 4
mov dword [esp + 8], esi
mov dword [esp + 0x14], 0
test esi, esi
je 0x412d54
mov ecx, esi
call dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::WindowImplBase::constructor_void_]
mov eax, dword [esp + 0x1c]
mov dword [esi], vtable.CSettingWnd.0
mov dword [esi + 0x10], vtable.CSettingWnd.1.0
mov dword [esi + 0x20], vtable.CSettingWnd.2.0
mov dword [esi + 0x24], vtable.CSettingWnd.3.0
mov dword [esi + 0x28], vtable.CSettingWnd.4.0
mov dword [esi + 0x2c], vtable.CSettingWnd.5.0
mov dword [esi + 0x480], edi
mov dword [esi + 0x484], eax
jmp 0x412d56
xor esi, esi
push 0
push SysReAllocString
push SysReAllocString
push SysReAllocString
push 0
push 0
push pe_nt_image_headers32
mov dword [esp + 0x30], 0xffffffff
mov ecx, dword [edi + 4]
push str.settingui
push ecx
mov ecx, esi
call dword [sym.imp.LibDui.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__int__int__int__int__struct_HMENU____]
push 0x71
mov ecx, esi
call dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CWindowWnd::SetIcon_unsigned_int_]
mov ecx, esi
call dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CWindowWnd::CenterWindow_void_]
mov ecx, esi
call dword [sym.imp.LibDui.dll_public:_unsigned_int___thiscall_DuiLib::CWindowWnd::ShowModal_void_]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x4172f0
Capabilities:
Create thread

Disassembly:
push ecx
inc dword [eax + 0x1bc0]
lea ecx, [esp]
push ecx
push 0
push eax
push 0x4174d0
push 0
push 0
mov dword [eax + 0x1bbc], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret