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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x496401
push eax
mov dword fs:[0], esp
sub esp, 0xec
push edi
mov edi, ecx
mov eax, dword [edi + 0x5c]
test eax, eax
jne 0x463a3d
xor eax, eax
pop edi
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
add esp, 0xf8
ret
push esi
push 0x400
lea ecx, [esp + 0xc]
call fcn.0048c613
push 0
push 0x1000
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x10c], 0
call fcn.0048b95b
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc], 1
push ecx
mov ecx, dword [edi + 0x5c]
call fcn.0045c700
lea ecx, [esp + 8]
call fcn.0048c8be
lea ecx, [esp + 0x30]
call fcn.0048babf
mov edx, dword [esp + 8]
push 0
push 0
lea ecx, [esp + 0x10]
call dword [edx + 0x28]
push 0
push 0x1000
lea eax, [esp + 0x10]
push 1
push eax
lea ecx, [esp + 0x84]
call fcn.0048b95b
lea ecx, [esp + 0x74]
lea esi, [edi + 0x60]
push ecx
mov ecx, esi
mov byte [esp + 0x100], 2
call fcn.0045cb70
lea ecx, [esp + 0x74]
call fcn.0048babf
lea ecx, [esp + 8]
call fcn.0048c8bf
mov eax, dword [edi + 0x5c]
lea edx, [esp + 0xb8]
push edx
push 0x3c
mov eax, dword [eax + 0xc8]
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
lea ecx, [esp + 0xb8]
push ecx
mov ecx, esi
call fcn.0045a390
mov edx, dword [edi + 0x5c]
push 0xffffffffffffffff
mov ecx, esi
mov eax, dword [edx + 0xdc]
mov dword [esi + 0xdc], eax
call fcn.0045c6a0
mov ecx, esi
call fcn.0045d250
mov eax, dword [edi + 0x5c]
push 0xffffffffffffffff
mov ecx, esi
mov eax, dword [eax + 0xe0]
mov dword [esi + 0xe0], eax
call fcn.0045c6a0
mov ecx, esi
call fcn.0045d250
mov ecx, dword [edi + 0x5c]
push 0xffffffffffffffff
mov eax, dword [ecx + 0xe4]
mov ecx, esi
mov dword [esi + 0xe4], eax
call fcn.0045c6a0
mov ecx, esi
call fcn.0045d250
mov ecx, dword [edi + 0x5c]
call fcn.00459b70
push eax
mov ecx, esi
call fcn.00459b80
mov ecx, dword [edi + 0x5c]
call fcn.0045a130
push eax
mov ecx, esi
call fcn.0045a0d0
mov ecx, dword [edi + 0x5c]
call fcn.0045a250
push eax
mov ecx, esi
call fcn.0045a200
mov ecx, dword [edi + 0x5c]
push 0
call fcn.00459450
push eax
mov ecx, esi
call fcn.00459460
mov edx, dword [edi + 0x7c]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x74]
mov byte [esp + 0xfc], 1
call fcn.0048ba37
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc], 0
call fcn.0048ba37
lea ecx, [esp + 8]
mov dword [esp + 0xfc], 0xffffffff
call fcn.0048c6d8
mov ecx, dword [esp + 0xf4]
pop esi
mov eax, 1
pop edi
mov dword fs:[0], ecx
add esp, 0xf8
ret
Function at 0x4652a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x496627
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], method.CMenu.virtual_0
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call fcn.0048271a
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call fcn.0048271a
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], method.CMenu.virtual_0
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.00465dc0
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x465e10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x496700
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.0048e75e
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x465e43
xor al, al
jmp 0x465f6f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x465e65
xor al, al
jmp 0x465f6f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x465e78
xor al, al
jmp 0x465f6f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x465e8c
xor al, al
jmp 0x465f6f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.004827df
test eax, eax
jne 0x465ec0
xor al, al
jmp 0x465f6f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x4a040c
mov dword [esp + 0x20], ebp
call fcn.0048e75e
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.0048b610
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.0048b667
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x465f54
mov ax, word [ebx]
test ax, ax
je 0x465f46
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.00465f90
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x465f2a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.0048b667
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x4664e0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.0048ccfc
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x466526
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.00473cb8
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x4bd814
push ecx
call fcn.00475351
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x4690d0
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 0x469173
test eax, eax
jbe 0x469173
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x469173
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 0x46911e
xor esi, esi
jmp 0x469124
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x46914f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0046af90
add esi, eax
push esi
mov ebx, esi
call fcn.0046af90
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x469130
pop ebp
test edi, edi
pop edi
jne 0x469173
test ebx, ebx
je 0x469173
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004747c0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x469535
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 0x46964d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46964d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00486158
mov esi, eax
test esi, esi
je 0x46964d
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 0x46964d
mov ecx, esi
call fcn.004693f0
cmp edi, eax
jge 0x46964d
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 0x4695d3
mov dword [esp + 0x34], 1
jmp 0x46962e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46964d
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.00466980
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 0x486afc
Capabilities:
Get graphical window text

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

Function at 0x4882fb
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 0x48833d
call fcn.0048e75e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48833d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x488334
xor eax, eax
jmp 0x488345
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048834b
pop edi
pop esi
pop ebx
ret 4

Function at 0x48ec8e
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 0x48ecbc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48ecda
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048ebf4
jmp 0x48ecda
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48ecda
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048ebf4
test edi, edi
mov eax, edi
jne 0x48ecc4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x42b394
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, 0x42ecec
mov esi, 0x42ed20
mov eax, dword [0x42e710]
mov dword [0x42ed14], eax
mov dword [ebx], 0xc0
mov dword [ebx + 4], 0x42b350
mov eax, dword [0x42ed14]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x1c], 0x10
mov eax, 0x42b4a8
mov dword [ebx + 0x24], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebx + 0x18], eax
push ebx
call sub.user32.dll_RegisterClassA
test ax, ax
je 0x42b4a2
push 0
mov eax, dword [0x42ed14]
push eax
push 0
push 0
push 1
push 1
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xcc0000
push 0x42b4ac
push 0x42b4a8
push pe_nt_image_headers32
call sub.user32.dll_CreateWindowExA
mov dword [0x42ed18], eax
cmp dword [0x42ed18], 0
je 0x42b4a2
call fcn.0040be24
push 0x42ab68
push 0x3e8
push 1
mov eax, dword [0x42ed18]
push eax
call sub.user32.dll_SetTimer
push 0x42aa3c
push 0xea60
push 2
mov eax, dword [0x42ed18]
push eax
call sub.user32.dll_SetTimer
push 0
mov eax, dword [0x42ed18]
push eax
call sub.user32.dll_ShowWindow
jmp 0x42b475
push esi
call sub.user32.dll_TranslateMessage
push esi
call sub.user32.dll_DispatchMessageA
push 0
push 0
mov eax, dword [0x42ed18]
push eax
push esi
call sub.user32.dll_GetMessageA
test eax, eax
jne 0x42b469
call fcn.0040bf7c
cmp dword [0x42ed1c], 0
je 0x42b4a2
mov eax, dword [0x42ed1c]
push eax
call sub.user32.dll_UnhookWindowsHookEx
pop esi
pop ebx
ret
Function at 0x401430
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x100
lea ecx, [esp]
push 0x408720
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp]
push 5
push 0
push 0
push edx
push str.install
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
add esp, 0x100
ret
Function at 0x4027a9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x406348
cmp edx, dword [eax]
je 0x4027cb
add eax, 8
inc ecx
cmp eax, 0x4063d8
jl 0x4027bc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x406348]
jne 0x4028f9
mov eax, dword [0x408830]
cmp eax, 1
je 0x4028d3
test eax, eax
jne 0x4027fc
cmp dword [0x406294], 1
je 0x4028d3
cmp edx, 0xfc
je 0x4028f9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402833
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402d90
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402f40
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402876
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402f40
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4053f8
push edi
call fcn.00404490
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402d90
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402da0
lea eax, [ebp - 0xa0]
push 0x4053d8
push eax
call fcn.00402da0
push dword [esi + 0x40634c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402da0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00404404
add esp, 0x2c
pop edi
jmp 0x4028f9
lea eax, [ebp + 8]
lea esi, [esi + 0x40634c]
push 0
push eax
push dword [esi]
call fcn.00402f40
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401230
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b56e9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
mov ecx, esi
mov dword [esp + 8], edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetManager]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x24]
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Concatenate]
mov esi, dword [esp + 0x30]
add esp, 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4012d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b56e9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
mov ecx, esi
mov dword [esp + 8], edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetManager]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::StringLength]
add esp, 4
push eax
push edi
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Concatenate]
mov esi, dword [esp + 0x30]
add esp, 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x401e90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b588d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push edi
mov esi, ecx
mov dword [esp + 8], 0
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0xc], esp
push eax
mov dword [esp + 0x24], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
mov byte [esp + 0x28], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
mov byte [esp + 0x2c], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov edi, dword [esp + 0x30]
push edi
mov ecx, esi
mov byte [esp + 0x2c], 2
call fcn.00401670
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x18
ret 0x10
Function at 0x4027a0
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x14
mov eax, dword [0x4dd040]
push ebx
push ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x18], eax
push esi
mov esi, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0xc], eax
push edi
mov dword [esp + 0x14], eax
push ebp
mov dword [esp + 0x1c], eax
push esi
mov dword [esp + 0x24], eax
mov word [esp + 0x18], 2
call dword [sym.imp.WS2_32.dll_getservbyname]
test eax, eax
je 0x4027e8
mov cx, word [eax + 8]
mov word [esp + 0x12], cx
jmp 0x40281a
push esi
call dword [sym.imp.MSVCR71.dll_atoi]
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_htons]
test ax, ax
mov word [esp + 0x12], ax
jne 0x40281a
push 0
push 0x1000
push str.get_server_information_error
call sub.MFC71.DLL_AfxMessageBox_1
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov esi, dword [esp + 0x28]
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x402846
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov esi, dword [edx]
mov eax, ecx
shr ecx, 2
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40286d
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x40286d
push 0
push 0x1000
push str.get_host_IP_information_error
call sub.MFC71.DLL_AfxMessageBox_1
call dword [sym.imp.WS2_32.dll_WSACleanup]
push ebp
call dword [sym.imp.WS2_32.dll_getprotobyname]
mov ebx, eax
test ebx, ebx
jne 0x402890
push eax
push 0x1000
push str.get_protocol_information_error
call sub.MFC71.DLL_AfxMessageBox_1
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor edx, edx
mov edi, 0x4c6ce8
mov esi, ebp
mov ecx, 4
repe cmpsb byte [esi], byte es:[edi]
movsx ecx, word [ebx + 8]
mov eax, edx
sete al
push ecx
inc eax
push eax
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4028d2
push 0
push 0x1000
push str._creat_socket_error
call sub.MFC71.DLL_AfxMessageBox_1
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0x10
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4028eb
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
call fcn.004b4b61
add esp, 0x14
ret
Function at 0x4034b0
Capabilities:
Terminate process

Disassembly:
movsx eax, byte [esp + 4]
add eax, 0xffffffd0
cmp eax, 0x16
ja case.0x4034bd.58
jmp dword [eax*4 + 0x40352c]
mov eax, 1
ret
mov eax, 2
ret
mov eax, 3
ret
mov eax, 4
ret
mov eax, 5
ret
mov eax, 6
ret
mov eax, 7
ret
mov eax, 8
ret
mov eax, 9
ret
mov eax, 0xa
ret
mov eax, 0xb
ret
mov eax, 0xc
ret
mov eax, 0xd
ret
mov eax, 0xe
ret
mov eax, 0xf
ret
xor eax, eax
ret
push 1
call dword [sym.imp.MSVCR71.dll_exit]
lea ecx, [ecx]
push ds
xor eax, 885260352
inc eax
add dl, cl
xor al, 0x40
add al, dl
xor al, 0x40
add dh, dl
xor al, 0x40
add ah, bl
xor al, 0x40
add dl, ah
xor al, 0x40
add al, ch
xor al, 0x40
add dh, ch
xor al, 0x40
add ah, dh
xor al, 0x40
add byte [ecx], ah
xor eax, 0x35210040
inc eax
add byte [ecx], ah
xor eax, 0x35210040
inc eax
add byte [ecx], ah
xor eax, 0x35210040
inc eax
add byte [ecx], ah
xor eax, 0x34fa0040
inc eax
add byte [eax], al
xor eax, 0x35060040
inc eax
add byte [esi + 0x35120040], cl
inc eax
add byte [eax], bl
xor eax, 0xcccc0040
int3

Function at 0x403f50
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4b58d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
mov eax, dword [0x4dd040]
mov dword [esp + 0x194], eax
lea eax, [esp + 4]
push eax
push 2
mov dword [esp + 0x1a8], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x403fa1
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 1
call dword [sym.imp.MSVCR71.dll_exit]
push esi
push 0x14
call sub.MFC71.DLL_operator_new
add esp, 4
mov dword [esp + 4], eax
test eax, eax
mov byte [esp + 0x1a4], 1
je 0x403fc7
mov ecx, eax
call sub.MFC71.DLL_CSocket::CSocket
mov esi, eax
jmp 0x403fc9
xor esi, esi
push 0
push 0x3f
push 1
push 0
mov ecx, esi
mov byte [esp + 0x1b4], 0
call sub.MFC71.DLL_CAsyncSocket::Create
test eax, eax
jne 0x404002
test esi, esi
je 0x403ff1
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
lea ecx, [esp + 0x1ac]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor al, al
jmp 0x404060
mov eax, dword [esp + 0x1b0]
push eax
lea ecx, [esp + 0x1b0]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, esi
call sub.MFC71.DLL_CAsyncSocket::Connect
test eax, eax
jne 0x404041
test esi, esi
je 0x404030
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
lea ecx, [esp + 0x1ac]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor al, al
jmp 0x404060
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
lea ecx, [esp + 0x1ac]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov al, 1
mov ecx, dword [esp + 0x19c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x198]
pop esi
call fcn.004b4b61
add esp, 0x1a4
ret 8