joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407e26
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x10000
call fcn.004095ed
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 1
mov ecx, dword [ebp - 8]
and ecx, 0xff
test ecx, ecx
je 0x407ebf
mov dword [ebp - 4], 0x10000
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040716f
add esp, 0x10
and eax, 0xff
test eax, eax
je 0x407eaf
cmp dword [ebp - 4], 0
jne 0x407e83
jmp 0x407ebf
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x407ead
mov dword [0x412494], 2
mov byte [ebp - 8], 0
jmp 0x407ebd
mov dword [0x412494], 0
mov byte [ebp - 8], 0
jmp 0x407e46
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.004095e2
add esp, 4
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x407ed8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
lea eax, [ebp - 0x244]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x411588
lea ecx, [ebp - 0x244]
push ecx
call fcn.00409da0
add esp, 8
lea edx, [ebp - 0x140]
push edx
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0xffffffff
jne 0x407f2e
xor al, al
jmp 0x407f3d
mov ecx, dword [ebp - 0x248]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x407f41
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [ebp + 0xc]
and eax, 0xff
test eax, eax
jne 0x407f8a
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea edx, [ebp - 0x108]
push edx
call fcn.00409f50
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x407f8a
mov eax, dword [ebp - 4]
mov byte [eax], 0
mov ecx, dword [ebp + 0xc]
and ecx, 0xff
test ecx, ecx
je 0x407fa9
lea edx, [ebp - 0x108]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [ebp + 8]
push eax
push 0
push 0x41158c
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x407fe0
mov edx, dword [ebp + 0xc]
and edx, 0xff
test edx, edx
jne 0x407fe0
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00407f41
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x4083f9
Capabilities:
Create mailslot
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
mov eax, dword [0x412368]
push eax
push str._08X
lea ecx, [ebp - 0x200]
push ecx
call fcn.00409f77
add esp, 0xc
lea edx, [ebp - 0x200]
push edx
push str.ArmServerInfo
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push str..mailslot_server_
lea eax, [ebp - 0x100]
push eax
call fcn.00409d90
add esp, 8
lea ecx, [ebp - 0x200]
push ecx
lea edx, [ebp - 0x100]
push edx
call fcn.00409da0
add esp, 8
push 0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMailslotA]
mov dword [0x412480], eax
mov esp, ebp
pop ebp
ret

Function at 0x408474
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
push 1
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00407fe4
add esp, 0xc
lea ecx, [ebp - 0x148]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0xffffffff
jne 0x4084b4
xor eax, eax
jmp 0x408622
mov eax, dword [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [0x411174]
xor ecx, dword [0x411170]
xor ecx, dword [0x41117c]
xor ecx, dword [0x411164]
cmp dword [ebp - 0x128], ecx
je 0x4084e8
xor eax, eax
jmp 0x408622
push 0
push 0x8000080
push 3
push 0
push 1
push 0x80000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x288], eax
cmp dword [ebp - 0x288], 0xffffffff
jne 0x40851a
xor eax, eax
jmp 0x408622
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 4]
push eax
push 0x40
lea ecx, [ebp - 0x284]
push ecx
mov edx, dword [ebp - 0x288]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], 0x40
jne 0x4085b7
mov eax, dword [ebp - 0x284]
and eax, 0xffff
cmp eax, 0x5a4d
jne 0x4085b7
push 0
push 0
mov ecx, dword [ebp - 0x248]
push ecx
mov edx, dword [ebp - 0x288]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
push 0xf8
lea ecx, [ebp - 0x244]
push ecx
mov edx, dword [ebp - 0x288]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], 0xf8
jne 0x4085b7
cmp dword [ebp - 0x244], 0x4550
jne 0x4085b7
mov eax, dword [ebp - 0x21c]
add eax, dword [ebp - 0x210]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x288]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x411180]
xor edx, dword [0x411170]
xor edx, dword [0x411168]
xor edx, dword [0x411184]
test edx, edx
je 0x408602
mov eax, dword [0x411180]
xor eax, dword [0x411170]
xor eax, dword [0x411168]
xor eax, dword [0x411184]
cmp dword [ebp - 8], eax
je 0x408600
xor eax, eax
jmp 0x408622
jmp 0x40861d
mov ecx, dword [0x411160]
xor ecx, dword [0x411178]
xor ecx, dword [0x41117c]
cmp dword [ebp - 8], ecx
je 0x40861d
xor eax, eax
jmp 0x408622
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x408626
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push edi
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov cl, byte [0x4125b4]
mov byte [ebp - 0x250], cl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x24f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edx, dword [ebp + 0xc]
and edx, 0xff
test edx, edx
je 0x40868c
cmp dword [ebp - 0x3c], 0
jne 0x40868c
lea eax, [ebp - 0x250]
push eax
call fcn.00408750
add esp, 4
and eax, 0xff
test eax, eax
je 0x40868c
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x3c], ecx
push 0x104
lea edx, [ebp - 0x14c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x14c]
push eax
push str.PROTECTEDFILE
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0x5c
lea ecx, [ebp - 0x14c]
push ecx
call fcn.00409f50
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4086dd
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov byte [eax], 0
jmp 0x4086e6
lea ecx, [ebp - 0x14c]
mov dword [ebp - 4], ecx
lea edx, [ebp - 0x14c]
push edx
push str.PROTECTEDFILEPATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0x412140
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x408749
mov dword [0x412494], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Error_code__d_
push str.ExtractFile_error_
call fcn.00409f77
add esp, 0xc
xor al, al
jmp 0x40874b
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4090dd
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], str.Bitmap_Window
mov al, byte [ebp + 0x14]
mov byte [0x4125dc], al
mov ecx, dword [ebp + 8]
mov dword [0x4125cc], ecx
mov edx, dword [ebp + 0xc]
mov dword [0x4125c8], edx
xor eax, eax
mov al, byte [0x4125dd]
test eax, eax
jne 0x409183
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x30], 0x409229
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
xor ecx, ecx
mov cl, byte [0x4125dc]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffe
add ecx, 0x7f02
push ecx
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 4]
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
mov byte [0x4125dd], 1
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, dword [0x4125cc]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0xc], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, dword [0x4125c8]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 8], eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 0
push 0
mov ecx, dword [0x4125c8]
push ecx
mov edx, dword [0x4125cc]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0x80000000
push str.Loading...
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
and eax, 0xff
neg eax
sbb eax, eax
and eax, 8
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4125d0], eax
push 5
mov ecx, dword [0x4125d0]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x4125d0]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
cmp dword [0x4125d0], 0
setne al
mov esp, ebp
pop ebp
ret
Function at 0x40baea
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411a18
cmp edx, dword [eax]
je 0x40bb0c
add eax, 8
inc ecx
cmp eax, 0x411aa8
jl 0x40bafd
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411a18]
jne 0x40bc3a
mov eax, dword [0x412608]
cmp eax, 1
je 0x40bc14
test eax, eax
jne 0x40bb3d
cmp dword [0x411754], 1
je 0x40bc14
cmp edx, 0xfc
je 0x40bc3a
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40bb74
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00409d90
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040a340
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40bbb7
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040a340
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40f554
push edi
call fcn.0040a3c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00409d90
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409da0
lea eax, [ebp - 0xa0]
push 0x40f534
push eax
call fcn.00409da0
push dword [esi + 0x411a1c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409da0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040d71f
add esp, 0x2c
pop edi
jmp 0x40bc3a
lea eax, [ebp + 8]
lea esi, [esi + 0x411a1c]
push 0
push eax
push dword [esi]
call fcn.0040a340
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 0x42ff10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1b000]
push edi
or ebp, 0xffffffff
jmp 0x42ff32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42ff39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42ff28
mov eax, 1
add ebx, ebx
jne 0x42ff4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42ff40
jne 0x42ff5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42ff40
xor ecx, ecx
sub eax, 3
jb 0x42ff70
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42ffe2
mov ebp, eax
add ebx, ebx
jne 0x42ff7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42ff88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42ffac
inc ecx
add ebx, ebx
jne 0x42ff98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42ff8d
jne 0x42ffa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42ff8d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42ffcc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42ffbd
jmp 0x42ff2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42ffcc
add edi, ecx
jmp 0x42ff2e
pop esi
mov edi, esi
mov ecx, 0xba3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42ffea
cmp byte [edi], 1
jne 0x42ffea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x42ffef
lea edi, [esi + 0x2d000]
mov eax, dword [edi]
or eax, eax
je 0x43005e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3087c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x308b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43001c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x308bc]
or eax, eax
je 0x430058
mov dword [ebx], eax
add ebx, 4
jmp 0x430039
call dword [esi + 0x308c0]
popal
jmp 0x412aa2
Function at 0x404970
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x471840]
xor eax, ebp
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40499b
xor eax, eax
jmp 0x4049f5
lea ecx, [ebp - 0x14]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
push 0
push 0
push 0
lea edx, [ebp - 0x18]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4049de
xor eax, eax
jmp 0x4049f5
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x4049f0
xor eax, eax
jmp 0x4049f5
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0044f061
mov esp, ebp
pop ebp
ret
Function at 0x434400
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], ecx
movsx eax, byte [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
sub ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 6
ja case.default.0x434422
mov edx, dword [ebp - 0xc]
jmp dword [edx*4 + 0x4344a8]
mov byte [ebp - 1], 0xd
jmp case.default.0x434422
mov byte [ebp - 1], 0x28
jmp case.default.0x434422
mov byte [ebp - 1], 0x26
jmp case.default.0x434422
mov byte [ebp - 1], 0x25
jmp case.default.0x434422
mov byte [ebp - 1], 0x27
jmp case.default.0x434422
mov byte [ebp - 1], 0x1b
jmp case.default.0x434422
mov byte [ebp - 1], 0x7b
movzx eax, byte [ebp + 8]
push eax
mov ecx, dword [0x472c14]
mov edx, dword [ecx + 4]
mov eax, dword [0x472c14]
mov ecx, dword [eax + 4]
mov edx, dword [edx]
push ecx
mov eax, dword [edx + 0x10]
call eax
movzx ecx, al
test ecx, ecx
jne 0x434498
movsx edx, byte [ebp - 1]
push edx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
neg eax
sbb eax, eax
neg eax
jne 0x434498
mov dword [ebp - 0x10], 0
jmp 0x43449f
mov dword [ebp - 0x10], 1
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4
Function at 0x44f061
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x471840]
jne 0x44f06b
repz ret
jmp fcn.00453429

Function at 0x459e2f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x471840]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004505f4
and dword [ebp - 0x14], 0
cmp dword [0x473cfc], 0
mov dword [ebp - 0x18], eax
jne 0x459ee2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x459f8a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46c054
push ebx
call edi
test eax, eax
je 0x459f8a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x473cfc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x473d00], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x473d04], eax
call edi
push eax
call esi
mov dword [0x473d0c], eax
test eax, eax
je 0x459ee2
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x473d08], eax
mov eax, dword [0x473d08]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x459f3b
cmp dword [0x473d0c], ecx
je 0x459f3b
push eax
call esi
push dword [0x473d0c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x459f3b
test ebx, ebx
je 0x459f3b
call edi
test eax, eax
je 0x459f32
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x459f32
test byte [ebp - 8], 1
jne 0x459f3b
or dword [ebp + 0x10], 0x200000
jmp 0x459f6e
mov eax, dword [0x473d00]
cmp eax, dword [ebp - 0x18]
je 0x459f6e
push eax
call esi
test eax, eax
je 0x459f6e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x459f6e
mov eax, dword [0x473d04]
cmp eax, dword [ebp - 0x18]
je 0x459f6e
push eax
call esi
test eax, eax
je 0x459f6e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x473cfc]
call esi
test eax, eax
je 0x459f8a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x459f8c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044f061
leave
ret
Function at 0x401050
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x466bf3
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x47e494]
xor eax, esp
mov dword [esp + 0x43c], eax
push ebx
push esi
mov eax, dword [0x47e494]
xor eax, esp
push eax
lea eax, [esp + 0x450]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
mov esi, ecx
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.0043104f
xor ebx, ebx
push ebx
call fcn.004330b8
add esp, 4
lea ecx, [esp + 0x2b4]
push ecx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, ebx
jne 0x4011e4
call fcn.00401270
test eax, eax
jne 0x4011e4
call fcn.00401790
push str.Local_AppWizard_Generated_Applications
mov ecx, esi
call fcn.0043362d
push ebx
lea edx, [esp + 0x18]
push edx
push 0x482a7c
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call sub.gdiplus.dll_GdiplusStartup
test eax, eax
jne 0x4011e4
lea eax, [esp + 0xf4]
push eax
call fcn.0040d5b0
lea ecx, [esp + 0xf4]
mov dword [esp + 0x458], ebx
call fcn.00433f44
lea ecx, [esp + 0x1c4]
push ecx
call fcn.0040ca40
lea ecx, [esp + 0x1c4]
mov byte [esp + 0x458], 1
call fcn.00433f44
cmp eax, 1
jne 0x4011af
lea edx, [esp + 0x24]
push edx
call fcn.0040b5e0
lea eax, [esp + 0x24]
mov byte [esp + 0x458], 2
mov dword [esi + 0x20], eax
call fcn.004019e0
lea ecx, [esp + 0x24]
call fcn.00433f44
call fcn.00401030
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x45c], 1
call fcn.00401210
jmp 0x4011ba
call fcn.00401030
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea ecx, [esp + 0x1c4]
mov byte [esp + 0x458], bl
call fcn.0040cad0
lea ecx, [esp + 0xf4]
mov dword [esp + 0x458], 0xffffffff
call fcn.0040d640
xor eax, eax
mov ecx, dword [esp + 0x450]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x43c]
xor ecx, esp
call fcn.0044ba98
mov esp, ebp
pop ebp
ret
Function at 0x401270
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x454
mov eax, dword [0x47e494]
xor eax, esp
mov dword [esp + 0x450], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x1ff
lea eax, [esp + 0x261]
push ebx
push eax
mov byte [esp + 0x268], bl
call fcn.0044e160
push 0x1ff
lea ecx, [esp + 0x6d]
push ebx
push ecx
mov byte [esp + 0x74], bl
call fcn.0044e160
add esp, 0x18
lea edx, [esp + 0x25c]
push edx
push 0x200
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.client_setting.ini
lea eax, [esp + 0x260]
push eax
push str._s__s
lea ecx, [esp + 0x68]
push 0x200
push ecx
call fcn.0044bd2e
xor eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 0x14
lea edx, [esp + 0x5c]
push edx
push 0x200
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov dword [esp + 0x55], eax
mov dword [esp + 0x59], eax
mov dword [esp + 0x5d], eax
mov word [esp + 0x61], ax
mov byte [esp + 0x63], al
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov word [esp + 0x41], ax
mov byte [esp + 0x43], al
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov word [esp + 0x21], ax
mov byte [esp + 0x23], al
lea eax, [esp + 0x44]
push eax
push 0x4729cc
push str.username
push str.Section0
mov byte [esp + 0x54], bl
mov byte [esp + 0x34], bl
mov byte [esp + 0x24], bl
call esi
lea ecx, [esp + 0x5c]
push ecx
push 0x200
lea edx, [esp + 0x24]
push edx
push 0x4729cc
push str.password
push str.Section0
call esi
lea eax, [esp + 0x5c]
push eax
push 0x200
lea ecx, [esp + 0x14]
push ecx
push 0x4729cc
push 0x472908
push str.Section0
call esi
mov esi, dword [0x482b94]
lea eax, [esp + 0x3c]
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4013d1
sub eax, edi
push eax
lea edx, [esp + 0x40]
push edx
lea ecx, [esi + 4]
call fcn.00401690
lea eax, [esp + 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4013f1
sub eax, edx
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esi + 8]
call fcn.00401690
lea eax, [esp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x401411
sub eax, edx
push eax
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 0xc]
call fcn.00401690
mov ecx, dword [esp + 0x45c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0044ba98
add esp, 0x454
ret