joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4967a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c4b5e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004970c0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0xdaf614
call fcn.004b5991
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x496833
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004b5991
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x49682c
push 0
mov ecx, eax
call fcn.0048d940
mov dword [esi + 0xc], eax
jmp 0x496835
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x496835
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4b7ff7
Capabilities:
Get graphical window text

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

Function at 0x4b96ea
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 0x4b972c
call fcn.004bf263
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b972c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b9723
xor eax, eax
jmp 0x4b9734
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b973a
pop edi
pop esi
pop ebx
ret 4

Function at 0x4bf793
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 0x4bf7c1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4bf7df
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004bf6f9
jmp 0x4bf7df
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4bf7df
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004bf6f9
test edi, edi
mov eax, edi
jne 0x4bf7c9
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4012d0
Capabilities:
Contain obfuscated stackstrings
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1bc
mov eax, dword [0x45a080]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x80000400
push 0x45a860
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
je 0x40144c
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x401328
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ebx, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
lea eax, [esp + 0x1a4]
xorps xmm0, xmm0
mov dword [esp + 0x1be], 0
push eax
movlpd qword [esp + 0x1b2], xmm0
movlpd qword [esp + 0x1ba], xmm0
mov dword [esp + 0x1a8], 0x34303731
mov dword [esp + 0x1ac], 0x39353637
mov word [esp + 0x1b0], 0x3634
call ebx
add esp, 4
mov dword [0x45ad64], eax
cmp eax, 5
jne 0x4013d4
xorps xmm0, xmm0
mov dword [esp + 0x1be], 0
lea eax, [esp + 0x1a4]
movlpd qword [esp + 0x1ae], xmm0
push eax
movlpd qword [esp + 0x1ba], xmm0
mov dword [esp + 0x1a8], 0x34303731
mov dword [esp + 0x1ac], 0x39353637
mov word [esp + 0x1b0], 0x3634
call ebx
add esp, 4
jmp 0x401446
push dword [esi + 0xc]
call ebx
add esp, 4
mov edi, eax
push dword [esi + 8]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__atoi64]
mov esi, eax
add esp, 4
mov eax, dword [esp + 0xc]
push dword [eax + 4]
call ebx
add esp, 4
mov dword [esp + 0x1a4], 0x42424241
xor ecx, ecx
mov dword [esp + 0x1a8], 0x42414343
xorps xmm0, xmm0
mov word [esp + 0x1b6], cx
lea ecx, [esp + 0x1a4]
movlpd qword [esp + 0x1ae], xmm0
push edi
push esi
push eax
mov eax, dword [esp + 0x18]
mov word [esp + 0x1b8], 0x4445
mov edx, dword [eax]
call fcn.00402f50
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x1c4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044aca5
mov esp, ebp
pop ebp
ret
Function at 0x401610
Capabilities:
Contain obfuscated stackstrings
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x45a080]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x45ad64], 5
jne 0x401663
xorps xmm0, xmm0
mov dword [ebp - 0xa], 0
lea eax, [ebp - 0x24]
movlpd qword [ebp - 0x1a], xmm0
push eax
movlpd qword [ebp - 0x12], xmm0
mov dword [ebp - 0x24], 0x34303731
mov dword [ebp - 0x20], 0x39353637
mov word [ebp - 0x1c], 0x3634
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
jmp 0x401668
call fcn.00402790
push 0x64
lea eax, [ebp - 0x90]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
movaps xmm1, xmmword [0x458670]
add esp, 0xc
xor eax, eax
movups xmm0, xmmword [eax + str.364325341248:82842298324927626124552:152::]
psubb xmm0, xmm1
movups xmmword [ebp + eax - 0x90], xmm0
add eax, 0x10
cmp eax, 0x20
jl 0x401684
cmp eax, 0x2a
jge 0x4016c5
lea edx, [ebp - 0x90]
add edx, eax
lea ecx, [eax + str.364325341248:82842298324927626124552:152::]
mov al, byte [ecx]
lea edx, [edx + 1]
dec al
inc ecx
mov byte [edx - 1], al
cmp ecx, 0x457bf2
jl 0x4016b2
mov eax, dword [0x45a74c]
lea ecx, [ebp - 0x90]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4016f0
test dl, dl
je 0x4016ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4016f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4016d0
xor eax, eax
jmp 0x4016f5
sbb eax, eax
or eax, 1
test eax, eax
je 0x401701
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044aca5
mov esp, ebp
pop ebp
ret
Function at 0x401710
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x45a080]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x45ad64], 5
push ebx
push esi
mov esi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
push edi
mov dword [ebp - 0xcc], edx
mov dword [ebp - 0xd0], ecx
jne 0x401774
xorps xmm0, xmm0
mov dword [ebp - 0xa], 0
lea eax, [ebp - 0x24]
movlpd qword [ebp - 0x1a], xmm0
push eax
movlpd qword [ebp - 0x12], xmm0
mov dword [ebp - 0x24], 0x34303731
mov dword [ebp - 0x20], 0x39353637
mov word [ebp - 0x1c], 0x3634
call esi
add esp, 4
jmp 0x401779
call fcn.00401980
cmp dword [0x45ad64], 5
mov dword [ebp - 0xd8], str.current_config_passwd
mov dword [ebp - 0xd4], str.current_config_Account1
jne 0x4017c9
xorps xmm0, xmm0
mov dword [ebp - 0xa], 0
lea eax, [ebp - 0x24]
movlpd qword [ebp - 0x1a], xmm0
push eax
movlpd qword [ebp - 0x12], xmm0
mov dword [ebp - 0x24], 0x34303731
mov dword [ebp - 0x20], 0x39353637
mov word [ebp - 0x1c], 0x3634
call esi
add esp, 4
jmp 0x4017ce
call fcn.00401610
mov ebx, dword [sym.imp.VCRUNTIME140.dll_strstr]
xor edi, edi
nop word [eax + eax]
push 0x96
lea eax, [ebp - 0xc0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0xc0]
push dword [ebp + edi*4 - 0xd8]
push dword [ebp - 0xcc]
push dword [ebp - 0xd0]
push str._s:_d__s
push eax
call fcn.00401130
add esp, 0x14
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], 0
call fcn.00403110
mov esi, eax
test esi, esi
je 0x401913
lea eax, [ebp - 0xc0]
push eax
push 0x2712
push esi
call fcn.00406560
add esp, 0xc
push 6
push 0x4e
push esi
call fcn.00406560
add esp, 0xc
push 0xc
push 0xd
push esi
call fcn.00406560
add esp, 0xc
push 1
push 0x2a
push esi
call fcn.00406560
add esp, 0xc
push 0x401270
push 0x4e2b
push esi
call fcn.00406560
add esp, 0xc
lea eax, [ebp - 0xc8]
push eax
push 0x2711
push esi
call fcn.00406560
add esp, 0xc
push 0
push 0x4b
push esi
call fcn.00406560
add esp, 0xc
push esi
call fcn.004031b0
add esp, 4
test eax, eax
jne 0x40190a
mov eax, dword [ebp - 0xc8]
cmp byte [eax], 0
je 0x40190a
push str.P3P:_CPCAO_PSA_OUR
push eax
call ebx
add esp, 8
test eax, eax
je 0x4018f3
push str.UGM_1.5
push dword [ebp - 0xc8]
call ebx
add esp, 8
test eax, eax
jne 0x40192e
push esi
call fcn.004030f0
add esp, 4
push dword [ebp - 0xc8]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x401910
push esi
call fcn.004030f0
add esp, 4
inc edi
cmp edi, 2
jl 0x4017e0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044aca5
mov esp, ebp
pop ebp
ret
push esi
call fcn.004030f0
add esp, 4
call fcn.00402090
mov edx, dword [ebp - 0xd0]
sub esp, 8
mov ecx, dword [ebp - 0xc8]
push dword [ebp - 0xcc]
call fcn.00401a50
add esp, 0xc
push dword [ebp - 0xc8]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0044aca5
mov esp, ebp
pop ebp
ret
Function at 0x401980
Capabilities:
Contain obfuscated stackstrings
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x45a080]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x45ad64], 5
jne 0x4019d3
xorps xmm0, xmm0
mov dword [ebp - 0xa], 0
lea eax, [ebp - 0x24]
movlpd qword [ebp - 0x1a], xmm0
push eax
movlpd qword [ebp - 0x12], xmm0
mov dword [ebp - 0x24], 0x34303731
mov dword [ebp - 0x20], 0x39353637
mov word [ebp - 0x1c], 0x3634
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
jmp 0x4019d8
call fcn.00402790
push 0x54
lea eax, [ebp - 0x80]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
movups xmm0, xmmword [str.2:473136636224:8]
mov ecx, dword [0x45a878]
lea eax, [ebp - 0x90]
add esp, 0xc
psubb xmm0, xmmword [0x458670]
movups xmmword [ebp - 0x90], xmm0
nop word [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x401a30
test dl, dl
je 0x401a2c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x401a30
add ecx, 2
add eax, 2
test dl, dl
jne 0x401a10
xor eax, eax
jmp 0x401a35
sbb eax, eax
or eax, 1
test eax, eax
je 0x401a41
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044aca5
mov esp, ebp
pop ebp
ret
Function at 0x402090
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x45a080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x168
lea eax, [ebp - 0x208]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
movaps xmm0, xmmword [0x458660]
lea eax, [ebp - 0x70]
add esp, 0xc
mov dword [ebp - 0x210], 0x46
movups xmmword [ebp - 0x230], xmm0
mov dword [ebp - 0x20c], 0x45
movaps xmm0, xmmword [str.DDBCBCCC]
push 0x64
push 0
push eax
movups xmmword [ebp - 0x220], xmm0
call sub.VCRUNTIME140.dll_memset
xor edi, edi
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x238], eax
nop
mov eax, dword [ebp + eax*4 - 0x230]
xorps xmm0, xmm0
mov edx, eax
mov dword [ebp - 0x240], eax
xor esi, esi
movaps xmmword [ebp - 0xa0], xmm0
movaps xmmword [ebp - 0x90], xmm0
mov ecx, edx
movq qword [ebp - 0x80], xmm0
test edx, edx
jle 0x4021d2
mov edi, esi
mov eax, 0xcccccccd
inc edi
mul edx
shr edx, 3
test edx, edx
jg 0x402153
cmp edi, 1
mov edi, dword [ebp - 0x234]
jbe 0x4021cc
nop dword [eax]
mov eax, 0xcccccccd
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
mov dword [ebp + esi*4 - 0xa0], ecx
mov ecx, edx
inc esi
test ecx, ecx
jg 0x402170
test esi, esi
jle 0x4021ed
lea eax, [ebp + esi*4 - 0xa4]
mov dword [ebp - 0x234], eax
push dword [eax]
lea eax, [ebp - 0x70]
add eax, edi
push 0x457e84
push eax
call fcn.00401130
mov eax, dword [ebp - 0x234]
dec esi
sub eax, 4
add esp, 0xc
inc edi
mov dword [ebp - 0x234], eax
test esi, esi
jg 0x4021a0
jmp 0x4021e7
mov eax, dword [ebp - 0x240]
push eax
lea eax, [ebp - 0x70]
add eax, edi
push 0x457e84
push eax
call fcn.00401130
add esp, 0xc
inc edi
mov dword [ebp - 0x234], edi
mov eax, dword [ebp - 0x238]
inc eax
mov dword [ebp - 0x238], eax
cmp eax, 0xa
jl 0x402120
mov ecx, str.66676767686866677069
lea eax, [ebp - 0x70]
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402230
test dl, dl
je 0x40222c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402230
add eax, 2
add ecx, 2
test dl, dl
jne 0x402210
xor eax, eax
jmp 0x402235
sbb eax, eax
or eax, 1
test eax, eax
je 0x402241
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044aca5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x403060
Capabilities:
Get disk information
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x4582e4
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp dword [ebp - 4], esi
jne 0x4030de
cmp dword [ebp + 0x14], 5
jne 0x4030d6
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push 0x4582e4
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 8]
jne 0x4030d6
mov edx, dword [ebp + 0xc]
sub esp, 8
mov ecx, dword [ebp + 8]
call fcn.00401710
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x40b240
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x18
mov eax, dword [0x45a080]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x40b30b
lea eax, [esp + 4]
push eax
push esi
push 2
call fcn.00424e60
add esp, 0xc
test eax, eax
jne 0x40b30b
lea eax, [esp + 8]
push eax
push esi
push 0x17
call fcn.00424e60
add esp, 0xc
test eax, eax
jne 0x40b30b
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x40b294
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.00424e30
add esp, 0xc
test eax, eax
je 0x40b2c8
sub eax, esi
push eax
push 0x2e
push esi
call fcn.00424e30
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x40b2ca
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x40b2f6
mov al, byte [esi]
push eax
call fcn.00418770
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x40b2d8
pop edi
movzx eax, bl
pop ebx
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044aca5
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
xor eax, eax
pop esi
xor ecx, esp
call fcn.0044aca5
add esp, 0x18
ret

Function at 0x40bfa0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [0x45a014]
cmp eax, 0xffffffff
jne 0x40bfe2
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x40bfc8
xor eax, eax
test eax, eax
mov dword [0x45a014], eax
setg al
ret
push eax
push 0
mov dword [0x45a014], 1
call fcn.00415be0
mov eax, dword [0x45a014]
add esp, 8
test eax, eax
setg al
ret

Function at 0x40c000
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x2f0], 2
jne 0x40c055
mov eax, dword [0x45a014]
cmp eax, 0xffffffff
jne 0x40c04f
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x40c035
xor eax, eax
test eax, eax
mov dword [0x45a014], eax
setg al
ret
push eax
push 0
mov dword [0x45a014], 1
call fcn.00415be0
mov eax, dword [0x45a014]
add esp, 8
test eax, eax
setg al
ret
mov al, 1
ret
Function at 0x414f90
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x608], 0
je 0x414fd4
push esi
push 1
push edi
call fcn.004070d0
push dword [edi + 0x59c]
mov eax, dword [edi + 0x608]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.004070d0
add esp, 0x24
mov eax, esi
pop esi
pop edi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x41500d
push dword [edi + 0x598]
lea eax, [eax + eax*2]
push 1
add eax, 0x44d6e8
push 2
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
push dword [edi + 0x598]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x20
xor eax, eax
pop edi
ret

Function at 0x415710
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x8c
mov eax, dword [0x45a080]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x94]
push ebx
mov ebx, dword [esp + 0x94]
mov dword [esp + 8], eax
xor eax, eax
push ebp
mov ebp, dword [esp + 0xa8]
mov ecx, dword [ebx + 0x1c4]
cmp edx, ecx
push esi
sete al
mov esi, 0x1e4
push edi
lea eax, [eax*4 + 0x1c0]
mov eax, dword [eax + ebx]
mov dword [esp + 0x10], eax
mov eax, 0x1f4
cmove esi, eax
mov eax, dword [ebx + 0x2e8]
add esi, ebx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x41581e
xor eax, eax
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x1d4]
cmp dword [eax + ebx], 0x4152d0
jne 0x41581e
cmp dword [esi], 0
je 0x4157a8
test edi, edi
je 0x41581e
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x20]
call fcn.00418360
add esp, 0x14
cmp eax, 0xffffffff
je 0x41581e
test al, 1
je 0x41581e
mov ecx, dword [esi]
test ecx, ecx
jne 0x4157fb
mov eax, dword [ebx]
mov eax, dword [eax + 0x8fc]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [section..data]
mov edi, dword [esi + 4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x415817
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x41581e
add dword [esi + 8], eax
jmp 0x41581e
mov dword [esi + 4], 0
push 0
push dword [esp + 0xb0]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x415887
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x415858
mov dword [ebp], 0
lea eax, [edi + 0x52]
jmp 0x41588c
push 0x80
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.0043cb30
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.00415020
mov eax, dword [ebx]
add esp, 0x18
mov dword [eax + 0xd04], esi
mov eax, 0x37
jmp 0x415889
xor eax, eax
mov dword [ebp], edi
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044aca5
add esp, 0x8c
ret
Function at 0x415ca0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x210], 0
je 0x415cbd
push eax
call fcn.0040f490
add esp, 4
test eax, eax
jne 0x415cdc
xor al, al
ret
mov eax, dword [eax + 0x1c0]
cmp eax, 0xffffffff
je 0x415cba
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x415cba
mov al, 1
ret
Function at 0x417950
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x41796a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x44db7c
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strpbrk
add esp, 8
test eax, eax
je 0x4179b2
test ebp, ebp
je 0x4179a3
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x4179d8
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4179d8
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x417a8f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4179f5
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x417a85
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x417a85
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417a27
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417a40
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x417a50
test ebp, ebp
je 0x417a7c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x45a004]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x45a004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret