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

Disassembly:
push 0xffffffffffffffff
push 0x47b818
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0047286c
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043f740
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0047279a
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0046ef81
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0046ef81
push 1
push 0
push 0
mov ecx, esi
call fcn.0046ef29
push 1
push 0
push 1
mov ecx, esi
call fcn.0046ef29
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004728de
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43ff20
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47b838
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0047286c
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043f740
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0047279a
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43ffe4
cmp dword [esp + 0x40], 1
jne 0x43ffe2
cmp ecx, eax
jge 0x43ffe4
mov eax, ecx
cmp eax, 0xc8
jge 0x43fff0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043fda0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004728de
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x440760
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47b8a3
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.0046d3a1
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.00472b14
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047406c
test eax, eax
je 0x44087c
mov ecx, dword [esp + 0x3c]
call fcn.00472b41
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 0x440840
push edi
mov ecx, esi
call fcn.00470100
mov ecx, esi
call fcn.004409e0
cmp dword [esp + 0x38], 1
jne 0x440875
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.0047026a
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 0x4432a0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4432d3
push esi
call fcn.004463b0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4432cc
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 0x443359
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x443342
mov eax, dword [esi + 8]
test eax, eax
je 0x4432f7
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 0x44333e
cmp eax, 2
je 0x443342
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4432ea
cmp eax, 3
je 0x44331d
cmp eax, 1
jne 0x4432ea
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 0x4432ea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4432ea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00443380
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x443368
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00443380
add esp, 4
pop esi
ret

Function at 0x44f800
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x44f8a3
test eax, eax
jbe 0x44f8a3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x44f8a3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x44f84e
xor esi, esi
jmp 0x44f854
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x44f87f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00451730
add esi, eax
push esi
mov ebx, esi
call fcn.00451730
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x44f860
pop ebp
test edi, edi
pop edi
jne 0x44f8a3
test ebx, ebx
je 0x44f8a3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0045c930
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x44fa05
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x44fb1d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44fb1d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046d7f3
mov esi, eax
test esi, esi
je 0x44fb1d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x44fb1d
mov ecx, esi
call fcn.0044f990
cmp edi, eax
jge 0x44fb1d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x44faa3
mov dword [esp + 0x34], 1
jmp 0x44fafe
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44fb1d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0044ef20
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x46e197
Capabilities:
Get graphical window text

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

Function at 0x46f889
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 0x46f8cb
call fcn.00475573
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46f8cb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46f8c2
xor eax, eax
jmp 0x46f8d3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046f8d9
pop edi
pop esi
pop ebx
ret 4
Function at 0x475aa3
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 0x475ad1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x475aef
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00475a09
jmp 0x475aef
mov eax, dword [esi + 0x14]
test eax, eax
je 0x475aef
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00475a09
test edi, edi
mov eax, edi
jne 0x475ad9
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401557
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
xor ebx, ebx
push 0x14
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.00401623
add esp, 0xc
mov byte [ebp - 0x14], 0x47
mov byte [ebp - 0xf], 0x72
mov byte [ebp - 0xa], 0x45
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0xe], 0x73
mov byte [ebp - 9], 0x78
mov byte [ebp - 0x12], 0x74
mov byte [ebp - 0xd], 0x69
mov byte [ebp - 8], 0x41
mov byte [ebp - 0x11], 0x56
mov byte [ebp - 0xc], 0x6f
mov byte [ebp - 7], bl
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xb], 0x6e
mov dword [ebp - 0xa8], 0x94
call fcn.00401652
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0xa8]
push ecx
call eax
test eax, eax
push 0x14
lea eax, [ebp - 0x14]
push ebx
push eax
jne 0x4015e3
call fcn.00401623
add esp, 0xc
xor eax, eax
jmp 0x401620
call fcn.00401623
mov eax, dword [ebp - 0x98]
add esp, 0xc
sub eax, ebx
je 0x40161d
dec eax
je 0x4015fd
dec eax
je 0x40160f
jmp 0x4015df
cmp dword [ebp - 0xa0], ebx
jne 0x401609
push 4
jmp 0x40161f
jbe 0x40160f
push 5
jmp 0x40161f
cmp dword [ebp - 0xa4], 5
sbb eax, eax
add eax, 7
jmp 0x401620
push 3
pop eax
pop ebx
leave
ret

Function at 0x401652
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00401623
mov eax, dword [0x42c074]
and byte [ebp - 8], 0
add esp, 0xc
cmp eax, 1
mov byte [ebp - 0xc], 0x2e
mov byte [ebp - 0xb], 0x64
mov byte [ebp - 0xa], 0x6c
mov byte [ebp - 9], 0x6c
mov byte [ebp - 0x14], 0x6b
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x72
mov byte [ebp - 0x11], 0x6e
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xf], 0x6c
mov byte [ebp - 0xe], 0x33
mov byte [ebp - 0xd], 0x32
jne 0x4016b5
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x42c074], eax
leave
ret

Function at 0x4016b7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x1b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor esi, esi
stosd dword es:[edi], eax
push esi
push 0x4000000
push 1
push esi
stosw word es:[edi], ax
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
mov byte [ebp - 0x1c], 0x5c
mov byte [ebp - 0x1b], 0x5c
mov byte [ebp - 0x1a], 0x2e
mov byte [ebp - 0x19], 0x5c
mov byte [ebp - 0x18], 0x48
mov byte [ebp - 0x17], 0x4f
mov byte [ebp - 0x16], 0x53
mov byte [ebp - 0x15], 0x54
mov byte [ebp - 0x14], 0x39
mov byte [ebp - 0x13], 0x35
mov byte [ebp - 0x12], 0x2e
mov byte [ebp - 0x11], 0x56
mov byte [ebp - 0x10], 0x58
mov byte [ebp - 0xf], 0x44
call fcn.00401763
mov edi, eax
add esp, 0x1c
cmp edi, 0xffffffff
jne 0x401728
mov eax, 0xc357
jmp 0x40175f
push ebx
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0xc]
push 8
push eax
push esi
push esi
push 2
push edi
call fcn.004017ee
push edi
mov ebx, eax
call fcn.0040188c
add esp, 0x24
cmp ebx, esi
pop ebx
je 0x40175a
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 8]
mov byte [eax], cl
xor eax, eax
jmp 0x40175f
mov eax, 0xc358
pop edi
pop esi
leave
ret
Function at 0x403efe
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x1c]
cmp ecx, 1
jle 0x403fd9
add eax, 0x32
push esi
dec ecx
movzx edx, byte [eax + 1]
movzx esi, byte [eax - 1]
mov edx, dword [edx*4 + 0x42ef78]
xor edx, dword [esi*4 + 0x42e778]
movzx esi, byte [eax]
add eax, 0x10
xor edx, dword [esi*4 + 0x42eb78]
movzx esi, byte [eax - 0x12]
xor edx, dword [esi*4 + 0x42e378]
mov dword [eax - 0x12], edx
movzx edx, byte [eax - 0xb]
movzx esi, byte [eax - 0xc]
mov edx, dword [edx*4 + 0x42ef78]
xor edx, dword [esi*4 + 0x42eb78]
movzx esi, byte [eax - 0xd]
xor edx, dword [esi*4 + 0x42e778]
movzx esi, byte [eax - 0xe]
xor edx, dword [esi*4 + 0x42e378]
mov dword [eax - 0xe], edx
movzx edx, byte [eax - 7]
movzx esi, byte [eax - 8]
mov edx, dword [edx*4 + 0x42ef78]
xor edx, dword [esi*4 + 0x42eb78]
movzx esi, byte [eax - 9]
xor edx, dword [esi*4 + 0x42e778]
movzx esi, byte [eax - 0xa]
xor edx, dword [esi*4 + 0x42e378]
mov dword [eax - 0xa], edx
movzx edx, byte [eax - 3]
movzx esi, byte [eax - 4]
mov edx, dword [edx*4 + 0x42ef78]
xor edx, dword [esi*4 + 0x42eb78]
movzx esi, byte [eax - 5]
xor edx, dword [esi*4 + 0x42e778]
movzx esi, byte [eax - 6]
xor edx, dword [esi*4 + 0x42e378]
dec ecx
mov dword [eax - 6], edx
jne 0x403f13
pop esi
ret
Function at 0x4057a6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00401623
and byte [ebp - 8], 0
add esp, 0xc
cmp dword [0x42c078], 1
mov byte [ebp - 0x14], 0x73
mov byte [ebp - 0x11], 0x75
mov byte [ebp - 0xe], 0x70
mov byte [ebp - 0xb], 0x64
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x10], 0x70
mov byte [ebp - 0xd], 0x69
mov byte [ebp - 0xa], 0x6c
mov byte [ebp - 0x12], 0x74
mov byte [ebp - 0xf], 0x61
mov byte [ebp - 0xc], 0x2e
mov byte [ebp - 9], 0x6c
jne 0x405808
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x42c078], eax
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00401623
mov eax, dword [0x42c078]
add esp, 0xc
leave
ret

Function at 0x40581f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and byte [ebp - 1], 0
mov byte [ebp - 0x1c], 0x53
mov byte [ebp - 0x14], 0x6e
mov byte [ebp - 0xc], 0x65
mov byte [ebp - 4], 0x63
mov byte [ebp - 0x1b], 0x65
mov byte [ebp - 0x13], 0x75
mov byte [ebp - 0xb], 0x49
mov byte [ebp - 3], 0x65
mov byte [ebp - 0x1a], 0x74
mov byte [ebp - 0x12], 0x6d
mov byte [ebp - 0xa], 0x6e
mov byte [ebp - 2], 0x73
mov byte [ebp - 0x19], 0x75
mov byte [ebp - 0x11], 0x44
mov byte [ebp - 9], 0x74
mov byte [ebp - 0x18], 0x70
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 8], 0x65
mov byte [ebp - 0x17], 0x44
mov byte [ebp - 0xf], 0x76
mov byte [ebp - 7], 0x72
mov byte [ebp - 0x16], 0x69
mov byte [ebp - 0xe], 0x69
mov byte [ebp - 6], 0x66
mov byte [ebp - 0x15], 0x45
mov byte [ebp - 0xd], 0x63
mov byte [ebp - 5], 0x61
call fcn.004057a6
test eax, eax
je 0x4058ad
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4058b1
xor eax, eax
leave
ret
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
mov esi, eax
push 0x1c
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.00401623
add esp, 0xc
mov eax, esi
pop esi
leave
ret
Function at 0x407b50
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x42fc60]
mov dword [ebp - 4], eax
mov dword [ebp - 0x40], ecx
push 0x10
push 0
lea eax, [ebp - 0x38]
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
mov dword [ebp - 0x28], 0x10
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea edx, [ebp - 0x24]
push edx
call sub.MSVCR71.dll_strcpy
add esp, 8
mov ax, word [ebp - 0x36]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - 0x3c], ax
mov ax, word [ebp - 0x3c]
mov ecx, dword [ebp - 4]
call fcn.00423fdd
mov esp, ebp
pop ebp
ret 4
Function at 0x411550
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x42fc60]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 4], 0
jne 0x4115a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateIoCompletionPort_failed_with_error:__d_n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x411674
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov edx, dword [ebp - 0x1c]
cmp dword [edx], 0xffffffff
jne 0x4115e6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSASocket___failed_with_error__d_n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x411674
mov word [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov word [ebp - 0xa], ax
mov word [ebp - 0x18], 2
cmp dword [ebp + 8], 0
je 0x411616
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x20], eax
jmp 0x411621
push 0
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x14], edx
mov ax, word [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
push 0x10
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x41166b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.bind___failed_with_error__d_n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x411674
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 0x44], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.00423fdd
mov esp, ebp
pop ebp
ret 0xc
Function at 0x411690
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0xffffffff
mov ax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.00412820
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x411767
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x18]
add ecx, 0x54
call fcn.0041d9b0
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x48
call fcn.00412fc0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x18]
add ecx, 0x48
call fcn.004203d0
push eax
lea ecx, [ebp - 0xc]
call fcn.0040a830
movzx edx, al
test edx, edx
je 0x41175a
lea ecx, [ebp - 0xc]
call fcn.0040ff60
add eax, 0xa028
mov dword [ebp - 0x10], eax
je 0x41175a
mov ecx, dword [ebp - 0x10]
call fcn.0041da50
push 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
call fcn.0041da70
cmp dword [ebp - 4], 0
jge 0x41175a
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.send_errcode_d__sock_d_n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 0xc
mov ecx, dword [ebp - 0x18]
add ecx, 0x54
call fcn.0041d9f0
jmp 0x411775
push str.FindTheSocket_return_NULL_
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x411780
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424fba
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x2838
call fcn.00424000
mov eax, dword [0x42fc60]
mov dword [ebp - 0x3c], eax
push edi
mov dword [ebp - 0x2844], ecx
mov dword [ebp - 0x38], 0xffffffff
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x18]
call fcn.00407900
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0x20]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x2844]
add ecx, 0x58
call fcn.004200a0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov dx, word [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x2844]
call fcn.00411690
mov ecx, dword [ebp + 0x24]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00407a20
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x411820
jmp 0x411863
mov byte [ebp - 0x283c], 0
mov ecx, 0x9ff
xor eax, eax
lea edi, [ebp - 0x283b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push str.wait_for_tcp_response__d_too_long:__s_n
lea ecx, [ebp - 0x283c]
push ecx
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0x10
lea edx, [ebp - 0x283c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x2844]
add ecx, 0x58
call fcn.004202c0
test eax, eax
jl 0x4118a7
cmp dword [ebp - 0x20], 0
jbe 0x4118a7
mov dword [ebp - 0x38], 0
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x2844]
add ecx, 0x58
call fcn.00420110
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x2840], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00407940
mov eax, dword [ebp - 0x2840]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x3c]
call fcn.00423fdd
pop edi
mov esp, ebp
pop ebp
ret 0x24