joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7836653d
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov esi, ecx
xor ebx, ebx
push 1
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
call edi
test ax, ax
jge 0x7836656f
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x78366580
push 2
call edi
test ax, ax
jge 0x78366580
or dword [esi + 0x3c], 2
or dword [esi + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call sym.MFC80U.DLL_Ordinal_2366
cmp dword [esi + 0x34], ebx
jne 0x78366659
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call sym.MFC80U.DLL_Ordinal_2366
cmp eax, dword [ebp + 8]
jne 0x78366659
push 1
push 0x209
push 0x200
push 0
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
jne 0x783665f2
push 1
push 0x109
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x78366636
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x78366659
cmp eax, 0x205
je 0x78366659
cmp eax, 0x201
je 0x78366659
cmp eax, 0x204
je 0x78366659
cmp eax, ebx
jne 0x7836661d
cmp dword [esp + 0x1c], 0x1b
je 0x78366659
push dword [esp + 0x2c]
lea eax, [esi + 0x24]
push dword [esp + 0x2c]
push eax
call fcn.783168ff
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x10]
cmp eax, dword [sym.MFC80U.DLL_Ordinal_4127]
jbe 0x7836664f
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x783665b0
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x78372540
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 8], 0x79
push esi
mov esi, ecx
jne 0x783725a0
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x783725a0
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
add eax, ecx
cdq
mov esi, dword [esi + 0x20]
sub eax, edx
mov edx, dword [ebp - 0xc]
mov ecx, eax
mov eax, dword [ebp - 4]
add eax, edx
cdq
sub eax, edx
sar eax, 1
movzx eax, ax
sar ecx, 1
movzx ecx, cx
shl eax, 0x10
or eax, ecx
push eax
push esi
push 0x7b
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x783725a7
mov ecx, esi
call sym.MFC80U.DLL_Ordinal_1894
pop esi
leave
ret 0xc

Function at 0x78376c65
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x783ab00e
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push esi
mov eax, dword [0x783c8018]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
push dword [ebp + 8]
lea ecx, [esp + 0x30]
call sym.MFC80U.DLL_Ordinal_498
and dword [esp + 0x58], 0
lea eax, [esp + 0x1c]
push eax
call sym.MFC80U.DLL_Ordinal_1194
push 8
push dword [ebp + 0x10]
mov byte [esp + 0x60], 1
mov esi, dword [esi + 0xec]
lea ecx, [esp + 0x44]
call sym.MFC80U.DLL_Ordinal_497
mov ecx, dword [ebp + 0xc]
mov word [esp + 0xc], 3
mov dword [esp + 0x14], ecx
lea edx, [esp + 0x1c]
push edx
push edx
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x6c], 3
mov ecx, dword [esi]
push esi
call dword [ecx + 0xd0]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0xc]
push eax
call esi
lea eax, [esp + 0x3c]
push eax
call esi
lea eax, [esp + 0x1c]
push eax
call esi
lea eax, [esp + 0x2c]
push eax
call esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x7837dc03
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x783a8edd
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x783c8018]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push dword [esi - 0xbc]
add esi, 0xffffff28
lea ecx, [esp + 0x24]
call sym.MFC80U.DLL_Ordinal_314
xor edi, edi
mov dword [esp + 0x90], edi
cmp dword [esi + 0x88], edi
je 0x7837dc73
or dword [esp + 0x90], 0xffffffff
lea eax, [esp + 0x20]
call fcn.7830fffb
mov eax, edi
jmp 0x7837ddb6
cmp dword [esi + 0x90], edi
jne 0x7837dcc0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x60]
push eax
mov ecx, esi
mov dword [esp + 0x64], 2
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
call sym.MFC80U.DLL_Ordinal_4452
cmp dword [esp + 0x78], edi
je 0x7837dcc0
mov edi, dword [esp + 0x78]
jmp 0x7837dc5b
mov eax, dword [ebp + 0xc]
cmp dword [esi + 0x9c], eax
jne 0x7837dda3
lea ebx, [esi + 0xac]
push ebx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esi + 0x50]
xor ecx, ecx
cmp eax, edi
setne cl
mov dword [esp + 0x14], edi
cmp ecx, edi
jne 0x7837dcf3
call sym.MFC80U.DLL_Ordinal_1176
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x782e2170
push eax
call dword [ecx]
cmp eax, edi
jl 0x7837dc5b
push 0x20
lea eax, [esp + 0x44]
push edi
push eax
call sub.MSVCR80.dll_memset
push 0x10
lea eax, [esp + 0x40]
push edi
push eax
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x2c]
xor ecx, ecx
add esp, 0x18
cmp eax, edi
setne cl
cmp ecx, edi
je 0x7837dcee
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x44]
push edx
push ebx
lea edx, [esp + 0x3c]
push edx
push 2
push edi
push 0x782e2160
push dword [ebp + 0xc]
push eax
call dword [ecx + 0x18]
cmp dword [esp + 0x44], edi
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esp + 0x18], eax
je 0x7837dd6d
push dword [esp + 0x44]
call ebx
cmp dword [esp + 0x48], edi
je 0x7837dd79
push dword [esp + 0x48]
call ebx
cmp dword [esp + 0x4c], edi
je 0x7837dd85
push dword [esp + 0x4c]
call ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [esp + 0x18], edi
jl 0x7837dc5b
mov dword [esi + 0xa8], 1
or dword [esp + 0x90], 0xffffffff
lea eax, [esp + 0x20]
call fcn.7830fffb
xor eax, eax
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x7838742b
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, 0x2000
test dword [edi + 0xac], ebx
je 0x78387442
mov eax, dword [edi + 0x6c]
jmp 0x78387447
call sym.MFC80U.DLL_Ordinal_3062
test eax, eax
je 0x7838745b
mov eax, dword [eax + 0x20]
test eax, eax
je 0x7838745b
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea esi, [edi + 0x108]
call fcn.783709f2
lea esi, [edi + 0x120]
call fcn.783709f2
test dword [edi + 0xac], ebx
je 0x78387482
push 6
mov ecx, edi
call sym.MFC80U.DLL_Ordinal_5647
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x7838817f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
mov ebx, ecx
push edi
push dword [ebx + 0x20]
mov dword [esp + 0x18], ebx
call sym.MFC80U.DLL_Ordinal_1025
cmp dword [ebp + 0x10], 0
jne 0x783882c7
mov esi, dword [ebp + 8]
test esi, esi
jne 0x783881af
call sym.MFC80U.DLL_Ordinal_1176
lea ecx, [esp + 0x18]
call sym.MFC80U.DLL_Ordinal_332
mov dword [esp + 0x24], esi
call sym.MFC80U.DLL_Ordinal_1087
mov eax, dword [eax + 0x78]
cmp eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetMenuItemCount]
jne 0x783881d5
mov dword [esp + 0x3c], esi
jmp 0x78388229
mov ecx, ebx
call sym.MFC80U.DLL_Ordinal_3690
test eax, eax
je 0x78388229
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetMenu]
mov ebx, eax
test ebx, ebx
je 0x78388229
push ebx
call edi
and dword [esp + 0xc], 0
test eax, eax
mov dword [esp + 0x10], eax
jle 0x78388229
push dword [esp + 0xc]
push ebx
call dword [sym.imp.USER32.dll_GetSubMenu]
cmp eax, dword [esi + 4]
je 0x7838821f
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x10]
jl 0x783881ff
jmp 0x78388229
push ebx
call sym.MFC80U.DLL_Ordinal_2365
mov dword [esp + 0x3c], eax
push dword [esi + 4]
call edi
and dword [esp + 0x20], 0
test eax, eax
mov dword [esp + 0x38], eax
jbe 0x783882c7
mov edi, dword [sym.imp.USER32.dll_GetMenuItemID]
mov ebx, dword [esp + 0x14]
push dword [esp + 0x20]
push dword [esi + 4]
call edi
test eax, eax
mov dword [esp + 0x1c], eax
je 0x783882b9
cmp eax, 0xffffffff
jne 0x78388292
push dword [esp + 0x20]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call sym.MFC80U.DLL_Ordinal_2365
test eax, eax
mov dword [esp + 0x28], eax
je 0x783882b9
push 0
push dword [eax + 4]
call edi
test eax, eax
mov dword [esp + 0x1c], eax
je 0x783882b9
cmp eax, 0xffffffff
je 0x783882b9
push 0
jmp 0x783882af
and dword [esp + 0x28], 0
test byte [ebx + 0xac], 1
je 0x783882ac
cmp eax, 0xf000
jae 0x783882ac
xor eax, eax
inc eax
jmp 0x783882ae
xor eax, eax
push eax
push ebx
lea ecx, [esp + 0x20]
call sym.MFC80U.DLL_Ordinal_2046
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x38]
jb 0x78388249
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x7838d92f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x10
mov eax, 0x783a8e51
call fcn.783a76f8
mov esi, dword [ebp + 8]
push dword [esi - 0xc8]
add esi, 0xffffff1c
lea ecx, [ebp - 0x1c]
call sym.MFC80U.DLL_Ordinal_314
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0xe0]
cmp eax, ebx
je 0x7838d987
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov edi, dword [esi]
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
je 0x7838d98c
call sym.MFC80U.DLL_Ordinal_2366
push eax
push dword [ebp + 8]
mov ecx, esi
call dword [edi + 0x144]
jmp 0x7838d9a0
mov edi, dword [esi]
push dword [ebp + 0xc]
call sym.MFC80U.DLL_Ordinal_2366
push eax
push dword [esi + 0x8c]
mov ecx, esi
call dword [edi + 0x13c]
cmp eax, ebx
je 0x7838da69
mov eax, dword [ebp + 0x10]
push esi
call fcn.78373e82
push ebx
mov ecx, esi
mov dword [esi + 0xc0], 1
call sym.MFC80U.DLL_Ordinal_6232
lea eax, [esi + 0x88]
cmp dword [eax], ebx
mov dword [esi + 0xb8], ebx
je 0x7838d9e6
mov dword [eax], ebx
mov eax, dword [esi + 0xac]
cmp eax, ebx
je 0x7838d9e6
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0xc]
mov eax, dword [esi + 0xc8]
cmp eax, ebx
mov dword [esi + 0xc0], ebx
je 0x7838da04
push eax
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
mov dword [esi + 0xc8], ebx
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_EnumChildWindows]
push esi
push sym.MFC80U.DLL_Ordinal_2175
push eax
mov dword [esi + 0xc4], ebx
call edi
mov eax, dword [esi + 0xc4]
cmp eax, ebx
jle 0x7838da41
xor ecx, ecx
push 8
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sym.MFC80U.DLL_Ordinal_762
pop ecx
mov dword [esi + 0xc8], eax
mov eax, dword [esi + 0x20]
push esi
push sym.MFC80U.DLL_Ordinal_2178
push eax
mov dword [esi + 0xc4], ebx
call edi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1c]
call fcn.7830fffb
mov eax, ebx
call fcn.783a77d0
ret 0x10
mov ebx, 0x80004005
jmp 0x7838da53
Function at 0x7838deb8
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x10
mov eax, 0x783a8e51
call fcn.783a76f8
mov ebx, dword [ebp + 8]
push dword [ebx - 0xc8]
add ebx, 0xffffff1c
lea ecx, [ebp - 0x1c]
call sym.MFC80U.DLL_Ordinal_314
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [eax + 4], 0x100
jne 0x7838e00d
cmp dword [eax + 8], 9
jne 0x7838e00d
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
test ax, ax
jl 0x7838e00d
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call sym.MFC80U.DLL_Ordinal_2366
push ebx
call fcn.78342d1b
test eax, eax
je 0x7838dfa2
push 0x10
call esi
xor ecx, ecx
test ax, ax
setl cl
inc ecx
inc ecx
push ecx
call fcn.7838de34
test eax, eax
je 0x7838e00d
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push edi
push 0x400
push dword [ebx + 0x20]
call esi
mov ecx, eax
shr ecx, 0x10
cmp cx, 0x534b
jne 0x7838df85
movzx eax, ax
push eax
mov ecx, ebx
call sym.MFC80U.DLL_Ordinal_2651
mov edi, eax
test edi, edi
je 0x7838df85
mov ecx, edi
call sym.MFC80U.DLL_Ordinal_3983
test eax, eax
je 0x7838df85
push 1
push dword [edi + 0x20]
push 0x28
push dword [ebx + 0x20]
call esi
lea eax, [ebx + 0xac]
cmp dword [eax], 0
je 0x7838e00d
mov eax, dword [eax]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
neg eax
sbb eax, eax
inc eax
jmp 0x7838e009
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetTopWindow]
push eax
call sym.MFC80U.DLL_Ordinal_2366
cmp eax, edi
mov dword [ebp + 8], eax
je 0x7838e00d
push 0x10
call esi
test ax, ax
jl 0x7838dfc7
xor eax, eax
push 2
jmp 0x7838dfcc
xor eax, eax
inc eax
push 3
pop edi
push eax
mov eax, dword [ebp + 8]
jmp 0x7838dfe9
mov ecx, esi
call sym.MFC80U.DLL_Ordinal_3395
and eax, 0x8010000
cmp eax, 0x10000
je 0x7838dff6
push edi
mov eax, esi
call fcn.78316db9
mov esi, eax
test esi, esi
jne 0x7838dfd3
jmp 0x7838e00d
push 1
push dword [esi + 0x20]
push 0x28
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
inc eax
test eax, eax
jne 0x7838e023
push dword [ebp + 0xc]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x108]
test eax, eax
jne 0x7838e023
xor esi, esi
inc esi
jmp 0x7838e025
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1c]
call fcn.7830fffb
mov eax, esi
call fcn.783a77d0
ret 8
Function at 0x78397b5c
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x783c8018]
xor eax, esp
mov dword [esp + 0x194], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x78398fd2
mov ecx, 0x783ceb64
call sym.MFC80U.DLL_Ordinal_2590
mov edi, eax
test edi, edi
jne 0x78397b95
call sym.MFC80U.DLL_Ordinal_1176
cmp dword [edi + 0xc], 0
jne 0x78397bc9
test esi, esi
jne 0x78397ba3
lea esi, [esp + 8]
push esi
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x78397bb7
xor eax, eax
jmp 0x78397bcc
cmp byte [esi], 1
jne 0x78397be2
cmp byte [esi + 1], 1
jne 0x78397be2
mov dword [edi + 0xc], sym.MFC80U.DLL_Ordinal_1165
xor eax, eax
inc eax
mov ecx, dword [esp + 0x19c]
pop edi
pop esi
xor ecx, esp
call fcn.783a505e
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0x276c
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x78397bb3

Function at 0x78397d2f
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x783c8018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push 0
push eax
mov esi, ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
mov dword [ebp - 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov esi, ecx
test esi, esi
je 0x78397da2
push dword [ebp - 0x12]
call dword [sym.imp.WS2_32.dll_ntohs]
push dword [ebp - 0x10]
movzx eax, ax
mov dword [ebx], eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [ebp - 0x18]
push eax
call sym.MFC80U.DLL_Ordinal_777
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.783a505e
leave
ret 8
Function at 0x78397fca
Capabilities:
Resolve dns

Disassembly:
push 0x28
mov eax, 0x783a87b1
call fcn.783a7761
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], esi
call dword [str.zd:x0]
xor edi, edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], edi
cmp esi, edi
mov dword [ebp - 4], edi
jne 0x78398006
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
jmp 0x78398132
push 0x10
lea eax, [ebp - 0x20]
push edi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
inc ebx
push 0
mov eax, ebx
cdq
push 2
push edx
push eax
mov dword [ebp - 0x28], ebx
call fcn.783a78c0
test edx, edx
jg 0x7839804e
jl 0x7839803d
cmp eax, 0x7fffffff
ja 0x7839804e
push edx
push eax
lea ecx, [ebp - 0x28]
call fcn.78398fe7
mov ebx, dword [ebp - 0x28]
pop ecx
pop ecx
jmp 0x78398053
mov eax, 0x80070057
test eax, eax
jl 0x78398096
cmp ebx, 0x400
jg 0x78398075
push ebx
call fcn.783368bc
test al, al
pop ecx
je 0x78398075
mov eax, ebx
call fcn.783a7980
mov eax, esp
jmp 0x78398082
mov eax, ebx
lea esi, [ebp - 0x24]
call fcn.7833688e
mov edi, dword [ebp - 0x24]
push dword [ebp - 0x2c]
mov esi, eax
push ebx
push dword [ebp - 0x34]
call fcn.7830f4d1
mov esi, eax
test esi, esi
jne 0x783980b5
push 8
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x783980ac
mov eax, edi
mov edi, dword [edi]
push eax
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
test edi, edi
jne 0x783980a0
jmp 0x78397fff
push esi
mov word [ebp - 0x20], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
jne 0x783980df
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x783980fe
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x30]
push 0x10
lea edx, [ebp - 0x20]
mov word [ebp - 0x1e], ax
mov eax, dword [ecx]
push edx
call dword [eax + 0x3c]
mov esi, eax
jmp 0x7839812c
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x78398117
mov eax, edi
mov edi, dword [edi]
push eax
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
test edi, edi
jne 0x7839810b
jmp 0x78397fff
mov eax, edi
mov edi, dword [edi]
push eax
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
test edi, edi
jne 0x78398120
mov eax, esi
lea esp, [ebp - 0x44]
call fcn.783a77e4
ret 8

Function at 0x7839813d
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_recv]
ret 0xc

Function at 0x783981e1
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_send]
ret 0xc
Function at 0x783981f9
Capabilities:
Resolve dns

Disassembly:
push 0x2c
mov eax, 0x783a8784
call fcn.783a7761
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], esi
call dword [str.zd:x0]
xor edi, edi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x24], edi
push 0x10
lea eax, [ebp - 0x20]
push edi
push eax
mov dword [ebp - 4], edi
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp esi, edi
je 0x783982dd
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
inc ebx
push edi
mov eax, ebx
cdq
push 2
push edx
push eax
mov dword [ebp - 0x28], ebx
call fcn.783a78c0
test edx, edx
jg 0x78398274
jl 0x78398263
cmp eax, 0x7fffffff
ja 0x78398274
push edx
push eax
lea ecx, [ebp - 0x28]
call fcn.78398fe7
mov ebx, dword [ebp - 0x28]
pop ecx
pop ecx
jmp 0x78398279
mov eax, 0x80070057
test eax, eax
jl 0x783982bc
cmp ebx, 0x400
jg 0x7839829b
push ebx
call fcn.783368bc
test al, al
pop ecx
je 0x7839829b
mov eax, ebx
call fcn.783a7980
mov eax, esp
jmp 0x783982a8
mov eax, ebx
lea esi, [ebp - 0x24]
call fcn.7833688e
mov edi, dword [ebp - 0x24]
push dword [ebp - 0x38]
mov esi, eax
push ebx
push dword [ebp - 0x2c]
call fcn.7830f4d1
mov esi, eax
test esi, esi
jne 0x783982df
push 8
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x783982d2
mov eax, edi
mov edi, dword [edi]
push eax
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
test edi, edi
jne 0x783982c6
xor eax, eax
jmp 0x78398373
xor esi, esi
test esi, esi
mov word [ebp - 0x20], 2
jne 0x783982f3
push 0xffffffffffffffff
call dword [sym.imp.WS2_32.dll_htonl]
jmp 0x78398314
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
jne 0x78398317
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x7839833f
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0x34]
push 0x10
lea edx, [ebp - 0x20]
push edx
push dword [ebp + 0xc]
mov word [ebp - 0x1e], ax
push dword [ebp - 0x30]
mov eax, dword [ecx]
call dword [eax + 0x44]
mov esi, eax
jmp 0x7839836d
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x78398358
mov eax, edi
mov edi, dword [edi]
push eax
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
test edi, edi
jne 0x7839834c
or eax, 0xffffffff
jmp 0x78398373
mov eax, edi
mov edi, dword [edi]
push eax
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
test edi, edi
jne 0x78398361
mov eax, esi
lea esp, [ebp - 0x48]
call fcn.783a77e4
ret 0x14

Function at 0x78398801
Capabilities:
Connect socket

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8
Function at 0x78399eed
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x10
mov eax, 0x783a9b9e
call fcn.783a772b
mov esi, ecx
mov dword [ebp - 0x14], esi
mov edi, 0x783c8d10
lea ecx, [esi + 0xc]
push edi
mov dword [esi], sym.MFC80U.DLL_Ordinal_3293
call sym.MFC80U.DLL_Ordinal_269
xor ebx, ebx
lea ecx, [esi + 0x10]
push edi
mov dword [ebp - 4], ebx
call sym.MFC80U.DLL_Ordinal_269
push 0xa
lea ecx, [esi + 0x40]
call sym.MFC80U.DLL_Ordinal_423
push 0xa
lea ecx, [esi + 0x5c]
call sym.MFC80U.DLL_Ordinal_423
lea ecx, [esi + 0xa4]
push edi
mov byte [ebp - 4], 3
call sym.MFC80U.DLL_Ordinal_269
lea ecx, [esi + 0xd4]
push edi
mov byte [ebp - 4], 4
call sym.MFC80U.DLL_Ordinal_269
lea ecx, [esi + 0xd8]
push edi
mov byte [ebp - 4], 5
call sym.MFC80U.DLL_Ordinal_269
lea ecx, [esi + 0xdc]
push edi
mov byte [ebp - 4], 6
call sym.MFC80U.DLL_Ordinal_269
lea ecx, [esi + 0x104]
push edi
mov byte [ebp - 4], 7
call sym.MFC80U.DLL_Ordinal_269
lea ecx, [esi + 0x108]
push edi
mov byte [ebp - 4], 8
call sym.MFC80U.DLL_Ordinal_269
lea ecx, [esi + 0x10c]
push edi
mov byte [ebp - 4], 9
call sym.MFC80U.DLL_Ordinal_269
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 0xa
xor eax, eax
inc eax
or dword [esi + 0x90], 0xffffffff
mov dword [esi + 8], ecx
mov dword [esi + 0x88], eax
mov dword [esi + 0x94], ebx
mov dword [esi + 0x8c], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0xd0], ebx
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xe0], ebx
mov dword [esi + 0xc0], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xf8], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xfc], 0x19
mov dword [esi + 0x100], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0xe8], ebx
or word [esi + 0x30], 0xffff
cmp ecx, ebx
lea edi, [esi + 4]
mov dword [esi + 0xa0], 0xfffffffe
mov dword [esi + 0x9c], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x1c], eax
mov dword [esi + 0xec], ebx
mov dword [esi + 0xf0], ebx
mov dword [esi + 0xf4], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0xbc], ebx
mov dword [edi], ebx
je 0x7839a0eb
cmp dword [ecx + 4], ebx
je 0x7839a0eb
push edi
mov eax, ecx
mov byte [ebp - 4], 0xb
push dword [eax + 4]
call sub.ODBC32.dll_SQLAllocStmt
movzx eax, ax
push eax
mov ecx, esi
call sym.MFC80U.DLL_Ordinal_1391
test eax, eax
jne 0x7839a09f
push dword [edi]
push dword [esi + 8]
push 0xfffffffffffffffe
call sym.MFC80U.DLL_Ordinal_1173
push 0xf
call sym.MFC80U.DLL_Ordinal_1114
mov byte [ebp - 4], 0xc
mov ecx, dword [esi + 8]
push esi
add ecx, 0x1c
call sym.MFC80U.DLL_Ordinal_965
push 0xf
mov dword [ebp - 4], 0xb
call sym.MFC80U.DLL_Ordinal_1191
jmp 0x7839a0eb
mov eax, esi
call fcn.783a77d0
ret 4