joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411ed0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
push esi
mov esi, eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411ed7
sub eax, edx
lea ebp, [eax + 1]
call fcn.00413560
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x411f3d
push ebx
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebp
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x411f34
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov edi, eax
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop ebx
pop esi
pop ebp
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebp
ret

Function at 0x412460
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4900c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
cmp esi, ecx
mov dword [esp + 0x28], 1
jne 0x41249f
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop esi
add esp, 0x28
ret
test esi, esi
jne 0x4124b6
or eax, 0xffffffff
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop esi
add esp, 0x28
ret
test ecx, ecx
jne 0x4124cf
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop esi
add esp, 0x28
ret
push ecx
mov eax, esp
mov dword [eax], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 8], esp
call fcn.004123a0
push eax
push ecx
mov eax, esp
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
mov dword [esp + 0xc], esp
mov dword [eax], esi
call fcn.004123a0
push eax
call fcn.004122d0
add esp, 8
lea ecx, [esp + 8]
mov esi, eax
call fcn.00412400
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 1
call fcn.00412400
mov ecx, dword [esp + 0x20]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x28
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x4901b7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov dword [esp + 4], 0
push ecx
mov ecx, dword [esp + 0x30]
mov eax, esp
mov dword [eax], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 1
mov dword [esp + 0xc], esp
call fcn.004123a0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
push edx
push eax
push esi
mov byte [esp + 0x2c], 2
call fcn.00412bd0
add esp, 0xc
lea ecx, [esp + 0xc]
mov dword [esp + 4], 1
mov byte [esp + 0x20], 1
call fcn.00412400
mov ecx, dword [esp + 0x18]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x20
ret
Function at 0x4131b0
Capabilities:
Hide graphical window

Disassembly:
push esi
call fcn.004218e0
test al, al
push 0
je 0x4131fe
mov eax, dword [0x51ce2c]
push eax
push 0
push 0
push 0
push Ordinal_2
push 0
push Ordinal_2
push Ordinal_2
push str.Generic_Window
push 0x4e42f8
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [0x51ce28], esi
pop esi
ret
mov ecx, dword [0x51ce2c]
push ecx
push 0
push 0
push 0
push Ordinal_2
push 0
push Ordinal_2
push Ordinal_2
push 0x4e42e8
push 0x4e42e4
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [0x51ce28], esi
pop esi
ret

Function at 0x413640
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4902d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x10], ecx
mov dword [ecx], ebx
mov ebp, dword [esp + 0x5c]
mov edi, dword [esp + 0x58]
mov eax, ebp
mov dword [esp + 0x50], ebx
mov dword [0x51ce2c], edi
lea edx, [eax + 1]
jmp 0x413680
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x413680
sub eax, edx
mov esi, eax
je 0x413703
lea eax, [esi + esi + 2]
push eax
call fcn.00487074
add esp, 4
mov edi, eax
mov ecx, ebp
mov edi, edi
movsx dx, byte [ecx]
mov word [eax], dx
add eax, 2
inc ecx
dec esi
jne 0x4136a0
mov word [eax], bx
lea eax, [esp + 0x5c]
push edi
push eax
call fcn.00412db0
add esp, 8
mov esi, eax
mov ecx, dword [esi]
cmp ecx, ebx
mov byte [esp + 0x50], 1
je 0x4136d0
mov edx, dword [ecx]
call dword [edx]
mov ebp, dword [esp + 0x10]
mov ecx, dword [ebp]
cmp ecx, ebx
je 0x4136e0
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
mov dword [ebp], ecx
mov ecx, dword [esp + 0x5c]
cmp ecx, ebx
mov byte [esp + 0x50], bl
je 0x4136f6
mov edx, dword [ecx]
call dword [edx + 4]
push edi
call fcn.004879ad
mov edi, dword [esp + 0x5c]
add esp, 4
push 0x10
push 1
push edi
mov word [0x51ce20], bx
mov word [0x51ce22], bx
mov word [0x51ce24], bx
mov word [0x51ce26], bx
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov ebp, eax
cmp ebp, ebx
je 0x41379d
push ebp
push edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
cmp word [eax + 6], bx
lea esi, [eax + 6]
je 0x413750
add esi, 2
cmp word [esi], bx
jne 0x413748
add esi, 2
mov ecx, esi
sub ecx, eax
test cl, 2
je 0x41375f
add esi, 2
mov ecx, 0xd
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x1c]
mov edx, eax
mov word [0x51ce22], ax
mov eax, dword [esp + 0x20]
mov ecx, eax
shr edx, 0x10
shr ecx, 0x10
push ebp
mov word [0x51ce20], dx
mov word [0x51ce24], cx
mov word [0x51ce26], ax
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 8
Function at 0x423610
Capabilities:
Get system information on windows
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5ad0
push 0x487e88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x160
mov eax, dword [0x51bdec]
xor eax, dword [ebp + 4]
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov ebx, dword [ebp - 0x38]
mov dword [ebp - 0x44], ebx
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x48], ecx
mov esi, dword [ebp + 8]
cmp ebx, dword [ebp - 0x48]
jae 0x423780
push 0x1c
lea edx, [ebp - 0x64]
push edx
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x423780
mov eax, dword [ebp - 0x54]
cmp eax, 0x1000
je 0x423697
cmp eax, 0x2000
jne 0x423763
cmp dword [ebp - 0x4c], 0x1000000
jne 0x423763
push 0x104
lea eax, [ebp - 0x168]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jbe 0x423763
push str.Module
mov ecx, esi
call fcn.00421c50
call fcn.00421b60
call fcn.00421b30
push str.BaseAddress
call fcn.00421ab0
mov edx, dword [ebp - 0x64]
push edx
call fcn.00421a30
call fcn.00421b10
call fcn.00421b60
call fcn.00421b30
push str.File
call fcn.00421ab0
lea eax, [ebp - 0x168]
push eax
call fcn.00421a00
call fcn.00421b10
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x16c], eax
cmp word [eax], 0x5a4d
jne 0x42375c
mov edi, dword [eax + 0x3c]
add edi, eax
mov dword [ebp - 0x170], edi
cmp dword [edi], 0x4550
jne 0x42375c
call fcn.00421b60
call fcn.00421b30
push str.TimeStamp
call fcn.00421ab0
mov ecx, dword [edi + 8]
push ecx
mov ecx, esi
call fcn.00421a30
call fcn.00421b10
mov ecx, esi
call fcn.00421cc0
mov eax, dword [ebp - 0x58]
test eax, eax
jne 0x42376d
mov eax, dword [ebp - 0x24]
add ebx, eax
mov dword [ebp - 0x44], ebx
jmp 0x423664
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, dword [ebp + 4]
call fcn.00487e6f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423b60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6500
push 0x487e88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], esi
push 0x51d190
lea ecx, [ebp - 0x24]
call fcn.00421be0
push esi
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.004237b0
add esp, 0xc
call fcn.00421b80
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push 0x521190
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
push 0
lea edx, [ebp - 0x30]
push edx
sub eax, 0x51d190
push eax
push 0x51d190
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x423c08
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x491c1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi], 0x4e659c
mov dword [esp + 8], esi
mov dword [esi + 0x10], ebx
lea ecx, [esi + 0x18]
mov dword [esp + 0x14], ebx
call fcn.00468c50
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], 0xf
mov byte [esi + 0x20], bl
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x434510
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4933f1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esi], 0x4e4a8c
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
lea edi, [esi + 0x10]
mov ecx, edi
mov byte [esp + 0x18], 3
call fcn.00433d60
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov edi, dword [esp + 0x24]
cmp edi, ebx
mov eax, dword [esp + 0x20]
mov byte [esp + 0x18], 4
mov dword [esi + 4], eax
je 0x434570
mov edx, dword [edi]
mov ecx, edi
call dword [edx]
mov ecx, dword [esi + 8]
cmp ecx, ebx
je 0x43457c
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esi + 8], edi
mov edi, dword [esp + 0x28]
cmp edi, ebx
je 0x43458d
mov edx, dword [edi]
mov ecx, edi
call dword [edx]
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
je 0x434599
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [esp + 0x34]
mov cl, byte [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov dword [esi + 0xc], edi
mov byte [esi + 0x1d], al
mov byte [esi + 0x1c], cl
mov ecx, dword [esp + 0x10]
pop edi
mov dword [esi + 0x20], edx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x18

Function at 0x460070
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x50a730]
sub esp, 0x204
cmp eax, 0xffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_WriteFile]
jne 0x4600e9
push 0
push 0x80000080
push 4
push 0
push 0
push 0x40000000
push str.Call.log
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [0x50a730], eax
mov eax, dword [0x50a734]
push eax
push eax
push eax
lea eax, [esp + 0x1c]
push str._s_s__New_Session___s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
call ebx
mov ecx, dword [0x50a730]
push eax
lea eax, [esp + 0x1c]
push eax
push ecx
call edi
mov esi, dword [esp + 0x214]
push 0
lea edx, [esp + 0x10]
push edx
push esi
call ebx
push eax
mov eax, dword [0x50a730]
push esi
push eax
call edi
pop edi
pop esi
pop ebx
add esp, 0x204
ret
Function at 0x460e50
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x498538
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov al, byte [edi + 4]
test al, al
mov dword [esp + 0x1c], 0
je 0x460f66
mov byte [edi + 4], 0
xor ebx, ebx
mov eax, 0x522f58
lea ebx, [ebx]
cmp dword [eax], 0
jne 0x460ea7
add eax, 0x10c
inc ebx
cmp eax, 0x5239d0
jne 0x460e90
jmp 0x460f66
test ebx, ebx
jl 0x460f66
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 8]
mov esi, ebx
imul esi, esi, 0x10c
add esi, 0x522f58
cmp eax, 0x10
jb 0x460ecd
mov eax, dword [edi + 0x10]
jmp 0x460ed0
lea eax, [edi + 0x10]
push ecx
push eax
lea eax, [esi + 4]
push str._s__04d.bmp
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebp, dword [esp + 0x34]
add esp, 0xc
mov eax, esp
mov dword [esp + 0x14], esp
push 0
mov dword [eax], ebp
call fcn.00460a60
add esp, 8
mov dword [esi + 0x104], eax
push 4
add eax, 0xfff
push 0x1000
and eax, 0xfffff000
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
test eax, eax
mov dword [esi + 0x108], eax
je 0x460f66
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
mov dword [eax], ebp
mov ecx, dword [esi + 0x108]
push ecx
call fcn.00460a60
add esp, 8
lea edx, [esp + 0x10]
push edx
push 0
push ebx
push 0x460990
push 0x1000
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esi], 0
inc dword [edi + 8]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 4

Function at 0x467de0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
test esi, esi
setne al
push edi
push str.Invalid_window_handle
mov dword [ecx + 0x34], esi
push eax
call fcn.00460410
add esp, 8
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.004218e0
test al, al
push 0x80c80000
push 0xfffffffffffffff0
push esi
je 0x467e23
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp 0x467e29
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call edi
push 0
mov ebp, eax
call edi
mov ebx, dword [esp + 0x28]
mov edi, dword [ebx]
mov ebx, dword [ebx + 4]
sub eax, edi
cdq
sub eax, edx
mov ecx, eax
mov eax, ebp
sub eax, ebx
cdq
sub eax, edx
sar eax, 1
sar ecx, 1
add ebx, eax
push ebx
add edi, ecx
push edi
push eax
push ecx
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
push 0
push 0x80c80000
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 4
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
sub edx, ecx
push edx
push eax
push ecx
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x2c]
push eax
push esi
call fcn.004219b0
add esp, 8
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x4877db
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4ee268
call fcn.00488d3c
mov edi, 0x94
mov eax, edi
call fcn.0048a580
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x524aa8], ecx
mov eax, dword [esi + 4]
mov dword [0x524ab4], eax
mov edx, dword [esi + 8]
mov dword [0x524ab8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x524aac], esi
cmp ecx, 2
je 0x48783b
or esi, 0x8000
mov dword [0x524aac], esi
shl eax, 8
add eax, edx
mov dword [0x524ab0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x487876
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x487876
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x48788e
cmp eax, 0x20b
je 0x48787b
mov dword [ebp - 0x1c], esi
jmp 0x4878a2
cmp dword [ecx + 0x84], 0xe
jbe 0x487876
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x48789c
cmp dword [ecx + 0x74], 0xe
jbe 0x487876
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0048a52a
pop ecx
test eax, eax
jne 0x4878b6
push 0x1c
call fcn.004877b7
pop ecx
call fcn.0048a4a1
test eax, eax
jne 0x4878c7
push 0x10
call fcn.004877b7
pop ecx
call fcn.0048a38a
mov dword [ebp - 4], esi
call fcn.0048a18c
test eax, eax
jge 0x4878e0
push 0x1b
call fcn.00487792
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x5279b0], eax
call fcn.0048a06a
mov dword [0x524a8c], eax
call fcn.00489fc8
test eax, eax
jge 0x487906
push 8
call fcn.00487792
pop ecx
call fcn.00489d95
test eax, eax
jge 0x487917
push 9
call fcn.00487792
pop ecx
call fcn.00488b4e
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x48792a
push eax
call fcn.00487792
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call fcn.00489d2c
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x48794b
movzx eax, word [ebp - 0x34]
jmp 0x48794e
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.004138b0
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x48796c
push edi
call fcn.00488c86
call fcn.00488ca8
jmp 0x48799e
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00488d77
ret
Function at 0x48b73e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.0048a580
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x48b7d3
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x524aa8]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x48b7d3
cmp eax, 1
je 0x48b7eb
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x48b7d3
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x48b7a8
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x48b7cf
xor eax, eax
inc eax
jmp 0x48b807
cmp esi, ebx
jae 0x48b7d7
xor eax, eax
jmp 0x48b807
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov eax, dword [0x524aa8]
jmp 0x48b7ed
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48cd9d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x51bdec]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x48cdc6
xor eax, eax
jmp 0x48cf34
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x5278a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x48cdf9
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.0048eae7
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x48cecb
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x48cf06
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x48ce54
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x48ce45
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x48ce28
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x48ce94
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x48ce9d
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x48ce19
jmp 0x48ce9f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x48cf2f
cmp dword [ebp - 8], edi
je 0x48cf06
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x48cef8
call fcn.0048b07c
mov dword [eax], 9
call fcn.0048b085
mov dword [eax], esi
jmp 0x48cf01
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x48ceed
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x48ce9f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 8], eax
jmp 0x48ce9f
push dword [ebp - 8]
call fcn.0048b08e
pop ecx
or eax, 0xffffffff
jmp 0x48cf32
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x48cf1b
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x48cf1b
xor eax, eax
jmp 0x48cf32
call fcn.0048b07c
mov dword [eax], 0x1c
call fcn.0048b085
mov dword [eax], edi
jmp 0x48cf01
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.00487e6f
leave
ret
Function at 0x48d2fd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x524d9c], ebx
push esi
push edi
jne 0x48d37d
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x48d3b8
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x4ef024
push edi
call esi
test eax, eax
mov dword [0x524d9c], eax
je 0x48d3b8
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x524da0], eax
call esi
cmp dword [0x524aa8], 2
mov dword [0x524da4], eax
jne 0x48d37d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x524dac], eax
je 0x48d37d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x524da8], eax
mov eax, dword [0x524da8]
test eax, eax
je 0x48d3c2
call eax
test eax, eax
je 0x48d3a9
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x524dac]
test eax, eax
je 0x48d3a9
test byte [ebp - 8], 1
jne 0x48d3c2
cmp dword [0x524ab4], 4
jb 0x48d3bc
or byte [ebp + 0x12], 0x20
jmp 0x48d3e1
xor eax, eax
jmp 0x48d3f1
or byte [ebp + 0x12], 4
jmp 0x48d3e1
mov eax, dword [0x524da0]
test eax, eax
je 0x48d3e1
call eax
mov ebx, eax
test ebx, ebx
je 0x48d3e1
mov eax, dword [0x524da4]
test eax, eax
je 0x48d3e1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x524d9c]
pop edi
pop esi
pop ebx
leave
ret