joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4138b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x47b458
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a0538]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
call fcn.0044a69a
xor ebx, ebx
push 0x100000
lea ecx, [esi + 0x47c]
mov dword [esp + 0x24], ebx
mov dword [esi], vtable.CClientSocket.0
mov byte [esi + 0x444], bl
mov byte [esi + 0x445], bl
mov dword [esi + 0x448], ebx
call fcn.00430a40
mov dword [esi + 0x34], ebx
or ebp, 0xffffffff
lea ecx, [ebx + 1]
lea eax, [ebx + 5]
lea ebx, [ebx]
mov edx, dword [esi + 0x34]
mov dword [esi + edx*4 + 8], ebp
mov edx, dword [esi + 0x34]
mov dword [esi + edx*4 + 0x1c], ebx
add dword [esi + 0x34], ecx
cmp dword [esi + 0x34], eax
jl 0x413920
push 0x400
lea eax, [esi + 0x40]
push ebx
push eax
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], ebx
call fcn.00463860
lea edi, [esi + 0x4a4]
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
add esp, 0xc
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
push edi
mov dword [edi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor eax, eax
mov dword [esi + 0x450], ebx
mov dword [esi + 0x454], eax
mov dword [esi + 0x458], eax
mov dword [esi + 0x45c], eax
mov dword [esi + 0x460], eax
mov dword [esi + 0x464], eax
mov dword [esi + 0x468], eax
mov dword [esi + 0x46c], eax
mov dword [esi + 0x470], eax
mov dword [esi + 0x474], eax
mov dword [esi + 0x478], eax
mov dword [esi + 0x440], ebp
mov dword [esi + 0x44c], ebp
mov dword [esi + 0x4c0], ebp
mov dword [esi + 0x448], ebx
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
push edi
mov dword [edi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebx
push 0x1000
call fcn.00401f70
mov dword [esi + 0x4bc], eax
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x413c30
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x413c65
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x413c57
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
pop esi
ret 4
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop esi
ret 4
Function at 0x41dba0
Capabilities:
Check if file exists
Delete file
Get file attributes
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x47bb96
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x4a0538]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a0538]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov edi, dword [esp + 0x150]
lea eax, [ecx + 0x78]
lea esi, [esp + 0x38]
sub esi, eax
jmp 0x41dbf0
mov dl, byte [eax]
mov byte [esi + eax], dl
inc eax
test dl, dl
jne 0x41dbf0
cmp dword [ecx + 0x17c], 0
je 0x41dc86
movzx ecx, word [ecx + 0x184]
test cx, cx
jle 0x41dc86
xor eax, eax
movsx ebx, cx
mov byte [esp + 0x24], dl
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov word [esp + 0x35], ax
mov byte [esp + 0x37], al
lea esi, [eax + 0x13]
test ebx, ebx
je 0x41dc67
lea esp, [esp]
mov eax, 0x4ec4ec4f
imul ebx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov al, cl
mov dl, 0x1a
imul dl
sub bl, al
add bl, 0x61
dec esi
mov byte [esp + esi + 0x24], bl
mov ebx, ecx
test ebx, ebx
jne 0x41dc40
lea eax, [esp + 0x38]
push 0x2e
push eax
call fcn.00464953
lea ecx, [esp + esi + 0x2c]
push ecx
push str.__s.xls
push eax
call fcn.004649e7
add esp, 0x14
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea edx, [esp + 0x38]
push edx
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp eax, 0xffffffff
je 0x41dcb4
and eax, 0xfffffffe
push eax
lea eax, [esp + 0x3c]
push eax
call ebp
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 3
mov ecx, edi
call fcn.0041c480
push eax
lea ecx, [esp + 0x2c]
call fcn.0044b986
mov esi, eax
lea eax, [esp + 0x38]
xor edx, edx
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x14c], 0
mov word [esp + 0x18], dx
call fcn.0044bf0e
push 0x24a4528
push 0x24a4548
push 0x24a4538
push 0x24a4548
push 0
push 0x24a4538
push 0x24a4548
push 0x24a4548
push 0x24a4548
push esi
lea ecx, [esp + 0x3c]
push ecx
mov ecx, edi
mov byte [esp + 0x174], 1
call fcn.0041c4a0
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [esp + 0x14]
push edx
call esi
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x14c], 0xffffffff
call esi
push 1
mov ecx, edi
call fcn.0041c500
cmp dword [0x4a1e8c], 0
je 0x41dd70
lea ecx, [esp + 0x38]
push ecx
call ebx
cmp eax, 0xffffffff
je 0x41dd70
or eax, 1
push eax
lea edx, [esp + 0x3c]
push edx
call ebp
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004637ae
add esp, 0x138
ret 4
Function at 0x422d10
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebp
push esi
push 0
push 0x80
push 3
push 0
push 0
push closesocket
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x422d3f
pop esi
xor eax, eax
pop ebp
ret 4
push edi
mov ecx, esi
call fcn.00421670
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x10], eax
push 0
add eax, 2
push eax
call fcn.00401f70
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x14]
push ecx
push edx
mov edi, eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov byte [edi + eax + 1], 0
mov ecx, dword [esp + 0x10]
mov byte [edi + ecx], 0
mov dword [esi + 0x38], 1
mov dword [esi + 0x30], 0
cmp byte [edi], 0xff
jne 0x422dbd
cmp byte [edi + 1], 0xfe
jne 0x422dbd
mov edx, dword [esp + 0x10]
add edx, 0xfffffffe
shr edx, 1
push edx
lea eax, [edi + 2]
push eax
mov ecx, esi
call fcn.004228d0
jmp 0x422dca
mov ecx, dword [esp + 0x10]
push ecx
push edi
mov ecx, esi
call fcn.00422940
push edi
call fcn.00401c00
push 0x485828
push str.FontName
push str.Info
mov ecx, esi
call fcn.00422400
mov edx, dword [esi + 0x38]
push edx
push eax
mov ecx, esi
mov dword [esi + 0x34], eax
call fcn.00422620
pop edi
pop esi
mov eax, 1
pop ebp
ret 4
Function at 0x42a2d0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x47c239
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a0538]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], esi
call fcn.00442426
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x42a31b
push 0x80004005
call fcn.00402090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov edi, dword [esp + 0x30]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esp + 0x34]
push esi
lea ecx, [esp + 0x1c]
push ecx
push 1
lea edx, [esp + 0x23]
push edx
push eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x30], 1
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], esi
je 0x42a3d5
mov bl, byte [esp + 0x17]
cmp bl, 0xd
je 0x42a3bc
mov eax, dword [edi]
mov ebp, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
lea esi, [ebp + 1]
sub eax, esi
or eax, ecx
jge 0x42a381
push esi
mov ecx, edi
call fcn.004065a0
mov eax, dword [edi]
mov byte [eax + ebp], bl
test esi, esi
jl 0x42a3eb
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x42a3eb
push 0
mov dword [eax - 0xc], esi
mov ecx, dword [edi]
lea edx, [esp + 0x1c]
push edx
push 1
lea eax, [esp + 0x23]
mov byte [esi + ecx], 0
mov ecx, dword [esp + 0x40]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], 0
jne 0x42a357
jmp 0x42a3d5
mov ecx, dword [esp + 0x34]
push 0
lea edx, [esp + 0x1c]
push edx
push 1
lea eax, [esp + 0x23]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push 0x80070057
call fcn.00402090
int3
Function at 0x4315a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
lea ebp, [edi + 0x60]
push ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [esp + 0x20]
mov ecx, dword [edi + 0xc]
push esi
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4316a0
mov edi, edi
push eax
call fcn.00434c9d
mov edx, dword [esi + 4]
push edx
mov ebx, eax
push 0
push ebx
call fcn.00463860
mov ecx, dword [esi + 4]
mov edx, dword [edi + 0xc]
add esp, 0x10
lea eax, [edi + 0xb0]
push eax
lea eax, [esp + 0x18]
push eax
push ecx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x431656
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp eax, 0x3e5
je 0x43162e
push str.ReadFile__
jmp 0x43164f
mov ecx, dword [edi + 0xc]
push 1
lea eax, [esp + 0x18]
push eax
lea eax, [edi + 0xb0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x431656
push str.GetOverlappedResults___in_ReadFile__
mov ecx, edi
call fcn.004314a0
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esi + 4]
mov eax, dword [0x4a3fe0]
mov ecx, dword [edi + 0xf4]
push edx
push ebx
push 0x407
push eax
call ecx
push ebx
call fcn.00434c92
add esp, 0x14
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0xc]
push esi
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov eax, dword [esi + 4]
test eax, eax
jne 0x4315e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x431a50
Capabilities:
Create thread

Disassembly:
sub esp, 0x18
mov eax, dword [0x4a0538]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, ecx
call fcn.00431520
mov eax, dword [0x24a45a4]
test eax, eax
je 0x431bd4
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x431bd4
mov eax, dword [0x24a45a4]
mov dword [esi + 8], eax
mov ecx, dword [0x4a1e40]
cmp ecx, 0xa
mov eax, str.COM_d
jl 0x431a9f
mov eax, str..COM_d
push ecx
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.004649e7
add esp, 0xc
push 0
push 0x40000000
push 3
push 0
push 0
push 0xc0000000
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
jne 0x431aff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 8]
push eax
push str.Cannot_open__s._code:_d_
push esi
call fcn.00413e40
add esp, 0x10
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004637ae
add esp, 0x18
ret 8
push ebx
mov ecx, esi
call fcn.00431710
mov bl, al
test bl, bl
je 0x431b77
xor eax, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
mov dword [esi + 0x14], eax
push eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
push 1
mov dword [esi + 0x20], eax
push eax
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x24], eax
xor eax, eax
push eax
mov dword [esi + 0x28], eax
push eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
push 1
mov dword [esi + 0x34], eax
push eax
mov dword [esi + 0x38], eax
call edi
push 0
push 0
push esi
push 0x431860
push 0
push 0
mov dword [esi + 0x38], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x10], eax
pop edi
cmp eax, 0xffffffff
jne 0x431b77
push str.CreateThread___Failed__
push esi
call fcn.00413e40
add esp, 8
xor bl, bl
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esi + 0xf4], ecx
mov dword [esi + 0xf8], edx
test bl, bl
je 0x431bb8
mov ecx, dword [esi + 0xc]
mov al, byte [0x4a1e40]
push 5
push ecx
mov byte [esi + 0x3c], al
call dword [sym.imp.KERNEL32.dll_EscapeCommFunction]
mov al, bl
pop ebx
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004637ae
add esp, 0x18
ret 8
mov ecx, esi
call fcn.00431520
mov al, bl
pop ebx
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004637ae
add esp, 0x18
ret 8
mov edx, dword [esi + 8]
push edx
push str.It_is_invalid_window_handle_0x_08x_.
push esi
call fcn.00413e40
mov ecx, dword [esp + 0x24]
add esp, 0xc
pop esi
xor ecx, esp
call fcn.004637ae
add esp, 0x18
ret 8
Function at 0x432e30
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x248
mov eax, dword [0x4a0538]
xor eax, esp
mov dword [esp + 0x244], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
mov esi, ecx
mov eax, dword [esi + 0x98]
push 0x14b
push eax
call edi
push 0x4a1ed0
lea ecx, [esp + 0x150]
push str._sLanguage.ini
push ecx
call fcn.004649e7
add esp, 0xc
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, dword [esi + 0x98]
push str.English
push 0
push 0x143
push ecx
mov ebx, eax
call edi
cmp ebx, 0xffffffff
je 0x432f5b
push ebp
nop
cmp byte [esp + 0x3c], 0x2e
je 0x432f3f
xor eax, eax
lea ecx, [ecx]
mov cl, byte [esp + eax + 0x3c]
mov byte [esp + eax + 0x150], cl
inc eax
test cl, cl
jne 0x432ec0
lea edx, [esp + 0x150]
push 0x2e
push edx
call fcn.00464953
mov byte [eax], 0
lea eax, [esp + 0x158]
push str.English
push eax
call fcn.004666de
add esp, 0x10
test eax, eax
je 0x432f3f
mov edx, dword [esi + 0x98]
lea ecx, [esp + 0x150]
push ecx
push 0
push 0x143
push edx
call edi
mov ebp, eax
mov eax, dword [0x4a1e68]
push eax
lea ecx, [esp + 0x154]
push ecx
call fcn.004666de
add esp, 8
test eax, eax
jne 0x432f3f
mov edx, dword [esi + 0x98]
push eax
push ebp
push 0x14e
push edx
call edi
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x432eb0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
mov ecx, dword [esi + 0x98]
push 0
push 0
push 0x147
push ecx
call edi
cmp eax, 0xffffffff
jne 0x432f97
mov edx, dword [esi + 0x98]
push str.English
push eax
push 0x158
push edx
call edi
push 0
push eax
mov eax, dword [esi + 0x98]
push 0x14e
push eax
call edi
mov ecx, dword [esp + 0x250]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004637ae
add esp, 0x248
ret

Function at 0x436be9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00435dcf
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x436c22
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0043683a
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x436c80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x436ca4
cmp dword [edi + 0x54], 0
jne 0x436ca4
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00435dcf
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00436c41
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x43d96d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x43d9b4
call fcn.00435dcf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x43d9b4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x43d9d0
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0043d4e7
mov esi, eax
test edi, edi
je 0x43d9ce
test ebx, ebx
je 0x43d9ce
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x43e8cf
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x47c997
call fcn.004668f2
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x43e8f4
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x43e93a
lea ecx, [ebp - 0x10]
call fcn.00406cb0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00434dfb
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004020e0
mov eax, esi
call fcn.004669ca
ret 8
Function at 0x4451eb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x445233
call fcn.00435dcf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x445233
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x445276
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x44525f
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x44525f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x445273
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x445d7f
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 1
mov ecx, esi
test al, 1
je 0x445da3
mov eax, dword [esi]
push 0
call dword [eax + 0x98]
test eax, eax
jne 0x445db1
pop esi
ret
mov eax, dword [esi + 0x24]
mov edx, dword [esi]
push eax
call dword [edx + 0x98]
jmp 0x445d9d
xor eax, eax
inc eax
pop esi
ret

Function at 0x44a629
Capabilities:
Connect socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.WSOCK32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret 8

Function at 0x45062b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x47d95c
call fcn.004668f2
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004098d0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x45068d
call fcn.00435680
cmp eax, 1
jne 0x45068d
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00411bd0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00407bc0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004020e0
mov dword [ebp + 8], reloc.WSOCK32.dll_accept
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004020e0
mov eax, esi
call fcn.004669ca
ret 0x10
Function at 0x4506b6
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x47d95c
call fcn.004668f2
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004098d0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x450718
call fcn.00435680
cmp eax, 1
jne 0x450718
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00411bd0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00407bc0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004020e0
mov dword [ebp + 8], reloc.WSOCK32.dll_accept
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004020e0
mov eax, esi
call fcn.004669ca
ret 0x14

Function at 0x4637ae
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a0538]
jne 0x4637b8
repz ret
jmp fcn.0046992d

Function at 0x474df4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0046b8fa
and dword [ebp - 4], 0
cmp dword [0x24a6e88], 0
mov ebx, eax
jne 0x474ea5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x474f56
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x48efd0
push edi
call esi
test eax, eax
je 0x474f56
push eax
call fcn.0046b888
mov dword [esp], 0x48efc0
push edi
mov dword [0x24a6e88], eax
call esi
push eax
call fcn.0046b888
mov dword [esp], 0x48efac
push edi
mov dword [0x24a6e8c], eax
call esi
push eax
call fcn.0046b888
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x24a6e90], eax
call esi
push eax
call fcn.0046b888
pop ecx
mov dword [0x24a6e98], eax
test eax, eax
je 0x474ea5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0046b888
pop ecx
mov dword [0x24a6e94], eax
mov eax, dword [0x24a6e94]
cmp eax, ebx
je 0x474efd
cmp dword [0x24a6e98], ebx
je 0x474efd
push eax
call fcn.0046b903
push dword [0x24a6e98]
mov esi, eax
call fcn.0046b903
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x474efd
test edi, edi
je 0x474efd
call esi
test eax, eax
je 0x474ef4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x474ef4
test byte [ebp - 0xc], 1
jne 0x474efd
or dword [ebp + 0x10], 0x200000
jmp 0x474f36
mov eax, dword [0x24a6e8c]
cmp eax, ebx
je 0x474f36
push eax
call fcn.0046b903
pop ecx
test eax, eax
je 0x474f36
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x474f36
mov eax, dword [0x24a6e90]
cmp eax, ebx
je 0x474f36
push eax
call fcn.0046b903
pop ecx
test eax, eax
je 0x474f36
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x24a6e88]
call fcn.0046b903
pop ecx
test eax, eax
je 0x474f56
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x474f58
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret