joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4072fb
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
call fcn.0040bfc4
mov edi, eax
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040bd92
push dword [esp + 0x1c]
mov esi, eax
push esi
call fcn.0040c6f1
add esp, 0x10
xor ebp, ebp
test edi, edi
mov bl, 1
jl 0x40736a
cmp word [esi + ebp*2], 0x5c
jne 0x407361
and word [esi + ebp*2], 0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40735b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x407368
mov word [esi + ebp*2], 0x5c
inc ebp
cmp ebp, edi
jle 0x407338
jmp 0x40736a
xor bl, bl
push esi
call fcn.00403004
pop ecx
pop edi
pop esi
pop ebp
movzx eax, bl
pop ebx
ret

Function at 0x407629
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x7ac]
sub esp, 0x82c
mov eax, dword [0x4693ac]
xor eax, ebp
mov dword [ebp + 0x7a8], eax
push esi
push edi
mov edi, dword [ebp + 0x7b4]
push 0x44
xor esi, esi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0040cc40
push 0x10
lea eax, [ebp - 0x38]
push esi
push eax
mov dword [ebp - 0x80], 0x44
call fcn.0040cc40
push edi
lea eax, [ebp - 0x28]
push 0x45a550
push eax
call fcn.0040c70d
add esp, 0x24
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4076c5
push 0xffffffffffffffff
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x34]
call esi
mov ecx, dword [ebp + 0x7a8]
pop edi
xor ecx, ebp
pop esi
call fcn.0040c5c6
add ebp, 0x7ac
leave
ret
Function at 0x407ad9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x4693ac]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1a8]
and dword [ebp - 0x70], 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push edi
mov edi, dword [ebp + 0x1ac]
lea ecx, [ebp - 0x74]
push ecx
push eax
push closesocket
call esi
test eax, eax
jne 0x407b91
lea eax, [ebp - 0x78]
push eax
push 0x45af58
push dword [ebp - 0x74]
call esi
test eax, eax
jne 0x407b88
and word [ebp - 0x6c], ax
push 0x206
push eax
lea eax, [ebp - 0x6a]
push eax
call fcn.0040cc40
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push 0x45a510
push dword [ebp - 0x78]
xor esi, esi
inc esi
mov dword [ebp - 0x7c], 0x104
mov dword [ebp - 0x80], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407b7f
lea eax, [ebp - 0x6c]
push eax
mov ecx, edi
call fcn.004015f8
mov dword [ebp - 0x70], esi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x19c]
mov eax, dword [ebp - 0x70]
pop edi
xor ecx, ebp
pop esi
call fcn.0040c5c6
add ebp, 0x1a0
leave
ret

Function at 0x407c58
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x407c0b
push edi
push edi
mov dword [0x46b434], edi
call dword [sym.imp.USER32.dll_EnumDisplayMonitors]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push edi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov ebx, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x20]
push ecx
push eax
call esi
lea eax, [ebp - 0x30]
push eax
push ebx
call esi
mov eax, dword [ebp - 8]
mov ecx, dword [0x46b434]
sub eax, dword [ebp - 0x10]
cmp ecx, 1
jle 0x407cdd
cmp ecx, edi
jle 0x407cdd
mov esi, 0x46b368
mov edx, dword [esi]
cmp edx, eax
jle 0x407cd7
mov eax, edx
add esi, 0x10
dec ecx
jne 0x407ccf
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407d3d
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 0x20]
push eax
push esi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push esi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x10]
push ecx
push eax
call esi
lea eax, [ebp - 0x30]
push eax
push edi
call esi
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret
Function at 0x407d87
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 0x20]
push eax
push esi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push esi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x10]
push ecx
push eax
call esi
lea eax, [ebp - 0x30]
push eax
push edi
call esi
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret

Function at 0x407dd1
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 0x10]
push eax
push esi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push esi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x20]
push ecx
push eax
call esi
lea eax, [ebp - 0x30]
push eax
push edi
call esi
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret
Function at 0x407e36
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1fb4]
mov eax, 0x2034
call fcn.0040e290
mov eax, dword [0x4693ac]
xor eax, ebp
mov dword [ebp + 0x1fb0], eax
push esi
push edi
mov esi, 0x206
xor edi, edi
push esi
lea eax, [ebp + 0x1ba2]
push edi
push eax
mov word [ebp + 0x1ba0], di
call fcn.0040cc40
lea eax, [ebp + 0x1ba0]
push str.C:log_
push eax
call fcn.0040c6f1
push 0x7fe
lea eax, [ebp + 0xf92]
push edi
push eax
mov word [ebp + 0xf90], di
call fcn.0040cc40
lea eax, [ebp + 0x1ba0]
push eax
lea eax, [ebp + 0x1998]
push str._sgswb.log
push eax
call fcn.0040c70d
push esi
lea eax, [ebp + 0x1792]
push edi
push eax
mov word [ebp + 0x1790], di
call fcn.0040cc40
push esi
lea eax, [ebp + 0x1daa]
push edi
push eax
mov word [ebp + 0x1da8], di
call fcn.0040cc40
add esp, 0x44
push 0x104
lea eax, [ebp + 0x1da8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x1da8]
push 0x5c
push eax
call fcn.0040c697
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
mov word [eax], di
pop ecx
lea eax, [ebp + 0x1998]
push eax
call esi
test eax, eax
je 0x40805e
lea eax, [ebp + 0x1da8]
push ebx
push eax
call fcn.0040bfc4
lea eax, [ebp + eax*2 + 0x1daa]
push eax
lea eax, [ebp + 0x1790]
push eax
call fcn.0040c6f1
lea eax, [ebp + 0x1790]
push eax
lea eax, [ebp + 0x1ba0]
push eax
lea eax, [ebp + 0x1998]
push str._s_s.txt
push eax
call fcn.0040c70d
lea eax, [ebp + 0x1fc0]
push eax
push dword [ebp + 0x1fbc]
lea eax, [ebp + 0xf90]
push 0x3ff
push eax
call fcn.0040cc1d
push edi
call fcn.00410736
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x7c], edx
call fcn.00410712
lea ecx, [ebp + 0xf90]
push ecx
push dword [eax]
mov ecx, dword [eax + 0x10]
push dword [eax + 4]
inc ecx
push dword [eax + 8]
push dword [eax + 0xc]
mov eax, dword [eax + 0x14]
push ecx
add eax, 0x76c
push eax
lea eax, [ebp - 0x70]
push str.__d__d__d__d__d__d_:_s
push eax
call fcn.0040c70d
add esp, 0x58
lea eax, [ebp + 0x1998]
push eax
mov word [ebp + 0x178e], di
mov dword [ebp - 0x74], edi
call esi
xor ebx, ebx
inc ebx
test eax, eax
je 0x407fe0
mov dword [ebp - 0x74], ebx
lea eax, [ebp + 0x1998]
push 0x45a558
push eax
call fcn.0040cb38
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x40805d
cmp dword [ebp - 0x74], edi
jne 0x408015
push esi
push 2
lea eax, [ebp - 0x78]
push ebx
push eax
mov dword [ebp - 0x78], 0xfeff
call fcn.0040c9f0
add esp, 0x10
lea eax, [ebp - 0x70]
push eax
call fcn.0040bfc4
push esi
add eax, eax
push eax
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.0040c9f0
push esi
push 2
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 0x74], 0xd
call fcn.0040c9f0
push esi
push 2
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 0x74], 0xa
call fcn.0040c9f0
push esi
call fcn.0040c815
add esp, 0x38
pop ebx
mov ecx, dword [ebp + 0x1fb0]
pop edi
xor ecx, ebp
pop esi
call fcn.0040c5c6
add ebp, 0x1fb4
leave
ret
Function at 0x409865
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
cmp dword [0x46b46c], edi
mov esi, ecx
je 0x4099ab
cmp dword [esi + 0x20], 8
jb 0x409888
mov eax, dword [esi + 0xc]
jmp 0x40988b
lea eax, [esi + 0xc]
push ebx
push 0x45b0b4
push eax
push dword [0x469230]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
je 0x4099aa
push ebx
push dword [0x469230]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push dword [0x469230]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push 0x42
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 4]
push dword [ebp - 8]
push eax
call fcn.00410ab0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0xc]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push edi
push dword [ebp - 0xc]
call fcn.004080ff
cmp eax, edi
pop ecx
pop ecx
je 0x4099aa
mov dword [esi + 4], eax
lea eax, [ebp + 8]
push eax
mov ecx, 0x46b470
call fcn.00409625
mov ebx, dword [ebp + 8]
push edi
mov dword [eax], esi
push dword [0x469230]
push edi
push ebx
push edi
push edi
push edi
push closesocket
push 0x80c80000
push edi
push dword [0x46922c]
push 0x80020
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push ebx
mov dword [esi + 0x24], eax
call edi
test eax, 0x10000000
jne 0x409970
mov byte [esi + 0x2c], 1
jmp 0x409994
test eax, 0x21000000
je 0x40997d
mov byte [esi + 0x2c], 5
jmp 0x409994
push 8
push dword [esi + 0x24]
mov byte [esi + 0x2c], 7
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
mov ecx, esi
call fcn.00408be6
push 0xfffffffffffffffc
push ebx
call edi
push 0x40969a
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x28], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x40a76c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4693ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
mov dword [ebp - 0x10], ecx
jle 0x40a804
lea ecx, [eax + 0x80]
add eax, 0x100
push ebx
dec edi
shr edi, 3
push 8
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], eax
inc edi
pop ebx
mov ecx, dword [ebp - 0x10]
mov eax, esi
sub ecx, esi
mov dword [ebp - 0x18], ebx
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
dec dword [ebp - 0x18]
jne 0x40a7b5
push ebx
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
push eax
call fcn.00410ab0
mov ecx, dword [ebp - 0x1c]
push esi
mov eax, esi
call fcn.00409dec
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov cl, byte [ecx + eax]
xor byte [esi + eax], cl
inc eax
cmp eax, ebx
jl 0x40a7dd
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x14]
call fcn.00410ab0
add dword [ebp - 0x10], ebx
add esp, 0xc
add esi, ebx
dec edi
jne 0x40a7ab
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040c5c6
leave
ret

Function at 0x40aaf9
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
and dword [ebp - 4], 0
cmp word [eax + 6], 0
mov dword [ebp - 8], ecx
movzx ecx, word [eax + 0x14]
push esi
lea esi, [ecx + eax + 0x18]
jbe 0x40ab9c
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
add esi, 0x10
mov ebx, 0x1000
mov eax, dword [esi]
test eax, eax
jne 0x40ab5e
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
test eax, eax
mov dword [ebp - 0xc], eax
jle 0x40ab86
push 4
push ebx
push eax
mov eax, dword [esi - 4]
add eax, dword [ebp - 8]
push eax
call edi
push dword [ebp - 0xc]
mov dword [esi - 8], eax
push 0
push eax
call fcn.0040cc40
jmp 0x40ab83
push 4
push ebx
push eax
mov eax, dword [esi - 4]
add eax, dword [ebp - 8]
push eax
call edi
mov ecx, dword [esi + 4]
push dword [esi]
add ecx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
push ecx
push eax
call fcn.00410ab0
mov eax, dword [ebp - 0xc]
mov dword [esi - 8], eax
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
movzx eax, word [eax + 6]
inc dword [ebp - 4]
add esi, 0x28
cmp dword [ebp - 4], eax
jl 0x40ab2e
pop edi
pop ebx
pop esi
leave
ret
Function at 0x40aedf
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
cmp word [eax], 0x5a4d
je 0x40aef2
xor eax, eax
leave
ret
push esi
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
je 0x40af07
xor eax, eax
jmp 0x40aff8
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
mov ebx, 0x2000
push ebx
push dword [esi + 0x50]
push dword [esi + 0x34]
call edi
test eax, eax
mov dword [ebp - 4], eax
jne 0x40af3a
push 4
push ebx
push dword [esi + 0x50]
push eax
call edi
test eax, eax
mov dword [ebp - 4], eax
je 0x40afed
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov eax, dword [ebp - 4]
push 4
xor ecx, ecx
push 0x1000
mov dword [ebx + 4], eax
mov dword [ebx + 0xc], ecx
mov dword [ebx + 8], ecx
mov dword [ebx + 0x10], ecx
push dword [esi + 0x50]
push eax
call edi
push 4
push 0x1000
push dword [esi + 0x54]
push dword [ebp - 4]
call edi
mov ecx, dword [esi + 0x54]
mov edi, dword [ebp + 8]
add ecx, dword [edi + 0x3c]
mov dword [ebp - 8], eax
push ecx
push edi
push eax
call fcn.00410ab0
mov eax, dword [edi + 0x3c]
mov ecx, dword [ebp - 8]
add eax, ecx
mov ecx, dword [ebp - 4]
push ebx
push esi
mov dword [ebx], eax
push edi
mov dword [eax + 0x34], ecx
call fcn.0040aaf9
mov edi, dword [ebp - 4]
mov eax, edi
add esp, 0x18
sub eax, dword [esi + 0x34]
je 0x40afbc
push eax
mov eax, ebx
call fcn.0040ac5d
pop ecx
call fcn.0040acd6
test eax, eax
je 0x40afe6
push ebx
call fcn.0040ab9f
mov eax, dword [ebx]
mov eax, dword [eax + 0x28]
test eax, eax
pop ecx
je 0x40aff4
add eax, edi
je 0x40afe6
push 0
xor esi, esi
inc esi
push esi
push edi
call eax
test eax, eax
jne 0x40aff1
push ebx
call fcn.0040ae66
pop ecx
xor eax, eax
jmp 0x40aff6
mov dword [ebx + 0x10], esi
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40baf3
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x14]
push eax
push 0
push esi
push 0x40bab7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x18], eax
pop esi
je 0x40bb22
cmp eax, 0xffffffff
je 0x40bb22
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
ret

Function at 0x40c5c6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4693ac]
jne 0x40c5d0
repz ret
jmp fcn.004143cc
Function at 0x417a2d
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x469a48]
je 0x417a48
inc edi
cmp edi, 0x17
jb 0x417a39
cmp edi, 0x17
jae 0x417bc8
push ebp
push 3
call fcn.00421339
cmp eax, 1
pop ecx
je 0x417b94
push 3
call fcn.00421339
test eax, eax
pop ecx
jne 0x417a7c
cmp dword [0x4694d4], 1
je 0x417b94
cmp ebx, 0xfc
je 0x417bc7
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x46bb78
push ebp
call fcn.00412e7b
add esp, 0xc
test eax, eax
je 0x417ab2
push esi
push esi
push esi
push esi
push esi
call fcn.00410e1f
add esp, 0x14
push 0x104
mov esi, 0x46bb91
push esi
push 0
mov byte [0x46bc95], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x417af6
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00412e7b
add esp, 0xc
test eax, eax
je 0x417af6
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00410e1f
add esp, 0x14
push esi
call fcn.0040ccc0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x417b3b
push esi
call fcn.0040ccc0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x46be8c
push 0x45c27c
sub ecx, eax
push ecx
push eax
call fcn.0041e206
add esp, 0x14
test eax, eax
je 0x417b3b
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00410e1f
add esp, 0x14
jmp 0x417b3d
xor esi, esi
push 0x45c278
push ebx
push ebp
call fcn.0041e140
add esp, 0xc
test eax, eax
je 0x417b5d
push esi
push esi
push esi
push esi
push esi
call fcn.00410e1f
add esp, 0x14
push dword [edi*8 + 0x469a4c]
push ebx
push ebp
call fcn.0041e140
add esp, 0xc
test eax, eax
je 0x417b7f
push esi
push esi
push esi
push esi
push esi
call fcn.00410e1f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0042117c
add esp, 0xc
jmp 0x417bc7
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x417bc7
cmp ebp, 0xffffffff
je 0x417bc7
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x469a4c]
push dword [esi]
call fcn.0040ccc0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x42117c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00413d68
xor ebx, ebx
cmp dword [0x46c218], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x421252
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x421332
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x421332
push eax
call fcn.00413cfa
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x46c218], eax
call esi
push eax
call fcn.00413cfa
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x46c21c], eax
call esi
push eax
call fcn.00413cfa
mov dword [0x46c220], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00416a5f
test eax, eax
pop ecx
pop ecx
je 0x421220
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00410e1f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x421252
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00413cfa
cmp eax, ebx
pop ecx
mov dword [0x46c228], eax
je 0x421252
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00413cfa
pop ecx
mov dword [0x46c224], eax
mov eax, dword [0x46c224]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4212d7
cmp dword [0x46c228], ecx
je 0x4212d7
push eax
call fcn.00413d71
push dword [0x46c228]
mov esi, eax
call fcn.00413d71
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4212d7
cmp edi, ebx
je 0x4212d7
call esi
cmp eax, ebx
je 0x4212a4
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4212a4
test byte [ebp - 0x18], 1
jne 0x4212d7
lea eax, [ebp - 0x10]
push eax
call fcn.00416a96
test eax, eax
pop ecx
je 0x4212bf
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00410e1f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4212ce
or dword [ebp + 0x10], 0x200000
jmp 0x421312
or dword [ebp + 0x10], 0x40000
jmp 0x421312
mov eax, dword [0x46c21c]
cmp eax, dword [ebp - 8]
je 0x421312
push eax
call fcn.00413d71
cmp eax, ebx
pop ecx
je 0x421312
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x421312
mov eax, dword [0x46c220]
cmp eax, dword [ebp - 8]
je 0x421312
push eax
call fcn.00413d71
cmp eax, ebx
pop ecx
je 0x421312
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46c218]
call fcn.00413d71
cmp eax, ebx
pop ecx
je 0x421332
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x421334
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x425820
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4693ac]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x425870
mov ax, word [esp]
cmp al, 2
jne 0x42586a
cmp ah, al
jne 0x42586a
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0040c5c6
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.0040c5c6
add esp, 0x194
ret
Function at 0x426b80
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x426ba2
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x426b96
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x426bd2
cmp dword [esi + 8], 0
jne 0x426bc5
mov ecx, dword [eax + 8]
push 0x45ddb0
push ecx
call fcn.0040ce0f
add esp, 8
test eax, eax
mov dword [esi + 8], eax
jne 0x426bc5
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.00457457
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x426bf4
mov eax, dword [esi + 8]
test eax, eax
je 0x426bee
push eax
call fcn.0040c815
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x431b60
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x431b92
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x431ce0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x431cfb
mov edx, dword [esi + 0xf4]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x431d2f
cmp eax, 2
jg 0x431d2f
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x45ee44]
push 2
push edx
call fcn.0040c9f0
mov eax, dword [esi + 0xf0]
push eax
push 1
push edi
push ebx
call fcn.0040c9f0
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + eax*4 + 0x130]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebx], 0
jne 0x4320bd
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x432094
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.004363a0
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.00431ec0
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x856c], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret