joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c810
Capabilities:
Encrypt data using des

Disassembly:
push ebx
push esi
mov esi, eax
push edi
xor eax, eax
mov edx, eax
sar edx, 3
mov dl, byte [edx + esi]
mov cl, al
and cl, 7
sar dl, cl
add eax, 1
and dl, 1
cmp eax, 0x40
mov byte [eax + 0x4ceed7], dl
jl 0x45c817
xor eax, eax
lea esp, [esp]
movsx ecx, byte [eax + str.91__]
movzx edx, byte [ecx + 0x4ceed7]
movsx ecx, byte [eax + 0x4ad7b1]
mov byte [eax + 0x4ce6c0], dl
movzx edx, byte [ecx + 0x4ceed7]
movsx ecx, byte [eax + 0x4ad7b2]
mov byte [eax + 0x4ce6c1], dl
movzx edx, byte [ecx + 0x4ceed7]
movsx ecx, byte [eax + 0x4ad7b3]
mov byte [eax + 0x4ce6c2], dl
movzx edx, byte [ecx + 0x4ceed7]
mov byte [eax + 0x4ce6c3], dl
add eax, 4
cmp eax, 0x38
jl 0x45c840
push 0x38
push 0x4ce6c0
push 0x4ceed8
call fcn.00486030
mov ebx, dword [esp + 0x1c]
add esp, 0xc
xor edi, edi
movsx esi, byte [edi + 0x4ad818]
push esi
push 0x4ceed8
push 0x4ce6c0
call fcn.00486030
mov eax, 0x1c
sub eax, esi
push eax
lea ecx, [esi + 0x4ceed8]
push ecx
push 0x4ceed8
call fcn.00486030
push esi
mov edx, 0x4ceef4
sub edx, esi
push 0x4ce6c0
push edx
call fcn.00486030
movsx esi, byte [edi + 0x4ad818]
push esi
push 0x4ceef4
push 0x4ce6c0
call fcn.00486030
mov eax, 0x1c
sub eax, esi
push eax
lea ecx, [esi + 0x4ceef4]
push ecx
push 0x4ceef4
call fcn.00486030
push esi
mov edx, 0x4cef10
sub edx, esi
push 0x4ce6c0
push edx
call fcn.00486030
add esp, 0x48
xor eax, eax
lea ecx, [ecx]
movsx ecx, byte [eax + 0x4ad7e8]
movzx edx, byte [ecx + 0x4ceed7]
movsx ecx, byte [eax + 0x4ad7e9]
mov byte [eax + 0x4ce6c0], dl
movzx edx, byte [ecx + 0x4ceed7]
movsx ecx, byte [eax + 0x4ad7ea]
mov byte [eax + 0x4ce6c1], dl
movzx edx, byte [ecx + 0x4ceed7]
movsx ecx, byte [eax + 0x4ad7eb]
mov byte [eax + 0x4ce6c2], dl
movzx edx, byte [ecx + 0x4ceed7]
movsx ecx, byte [eax + 0x4ad7ec]
mov byte [eax + 0x4ce6c3], dl
movzx edx, byte [ecx + 0x4ceed7]
movsx ecx, byte [eax + 0x4ad7ed]
mov byte [eax + 0x4ce6c4], dl
movzx edx, byte [ecx + 0x4ceed7]
mov byte [eax + 0x4ce6c5], dl
add eax, 6
cmp eax, 0x30
jl 0x45c940
push 0x30
push 0x4ce6c0
push ebx
call fcn.00486030
add edi, 1
add esp, 0xc
add ebx, 0x30
cmp edi, 0x10
jl 0x45c8b2
pop edi
pop esi
pop ebx
ret
Function at 0x45c9f0
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
xor eax, eax
movsx ecx, byte [eax + 0x4ad760]
movzx edx, byte [ecx + esi - 1]
movsx ecx, byte [eax + 0x4ad761]
mov byte [eax + 0x4ce6c0], dl
movzx edx, byte [ecx + esi - 1]
movsx ecx, byte [eax + 0x4ad762]
mov byte [eax + 0x4ce6c1], dl
movzx edx, byte [ecx + esi - 1]
movsx ecx, byte [eax + 0x4ad763]
mov byte [eax + 0x4ce6c2], dl
movzx edx, byte [ecx + esi - 1]
movsx ecx, byte [eax + 0x4ad764]
mov byte [eax + 0x4ce6c3], dl
movzx edx, byte [ecx + esi - 1]
movsx ecx, byte [eax + 0x4ad765]
mov byte [eax + 0x4ce6c4], dl
movzx edx, byte [ecx + esi - 1]
mov byte [eax + 0x4ce6c5], dl
add eax, 6
cmp eax, 0x30
jl 0x45c9f2
push 0x30
push 0x4ce6c0
push 0x4cef58
call fcn.00486030
mov ecx, edi
add esp, 0xc
xor eax, eax
sub ecx, 0x4cef58
jmp 0x45ca90
movzx edx, byte [ecx + eax + 0x4cef58]
xor byte [eax + 0x4cef58], dl
movzx edx, byte [edi + eax + 1]
xor byte [eax + 0x4cef59], dl
movzx edx, byte [edi + eax + 2]
xor byte [eax + 0x4cef5a], dl
movzx edx, byte [edi + eax + 3]
xor byte [eax + 0x4cef5b], dl
movzx edx, byte [edi + eax + 4]
xor byte [eax + 0x4cef5c], dl
movzx edx, byte [edi + eax + 5]
xor byte [eax + 0x4cef5d], dl
add eax, 6
cmp eax, 0x30
jl 0x45ca90
mov eax, esi
call fcn.0045cb60
xor eax, eax
jmp 0x45caf0
movsx ecx, byte [eax + 0x4ad790]
movzx edx, byte [ecx + esi - 1]
movsx ecx, byte [eax + 0x4ad791]
mov byte [eax + 0x4ce6c0], dl
movzx edx, byte [ecx + esi - 1]
movsx ecx, byte [eax + 0x4ad792]
mov byte [eax + 0x4ce6c1], dl
movzx edx, byte [ecx + esi - 1]
movsx ecx, byte [eax + 0x4ad793]
mov byte [eax + 0x4ce6c2], dl
movzx edx, byte [ecx + esi - 1]
mov byte [eax + 0x4ce6c3], dl
add eax, 4
cmp eax, 0x20
jl 0x45caf0
push 0x20
push 0x4ce6c0
push esi
call fcn.00486030
add esp, 0xc
ret

Function at 0x45d1a0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e910
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4c84d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
mov eax, dword [esi + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea edi, [esi + 0xc]
push eax
push edi
call ebx
test eax, eax
jne 0x45d23a
mov eax, esi
call fcn.0045d5e0
mov ecx, dword [esi + 0xa8]
push ecx
mov dword [esi + 0x74], 0xffffffff
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 4
push 0
push 0
push esi
push 0x45d390
call fcn.00469f2c
test eax, eax
mov dword [esi + 4], eax
je 0x45d262
push 1
push edi
call ebx
mov eax, dword [esi + 4]
mov dword [esi + 0x10], 0
mov edx, dword [eax + 0x2c]
mov dword [esi + 8], edx
mov eax, dword [eax + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45d280
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f700
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4c84d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x10
mov edi, 0xf
push str.CWndThread::Stop
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00408ca0
cmp dword [ebp - 0x18], 0x10
jb 0x45d2e1
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00460054
add esp, 4
mov ecx, dword [esi + 0xc]
lea eax, [esi + 0xc]
push ecx
mov dword [ebp - 0x18], edi
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push eax
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call edi
test eax, eax
je 0x45d364
mov edx, dword [esi + 0x10]
lea eax, [esi + 0x10]
push edx
push eax
call edi
cmp eax, ebx
je 0x45d317
push ebx
push ebx
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esi + 0xa8]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x45d34e
mov eax, dword [esi + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x45d34b
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov dword [esi + 4], ebx
mov eax, esi
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
call fcn.0045d5e0
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x463850
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x463889
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004637eb
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0043c7d0
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x464ec5
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x4ade14
mov ecx, edi
call fcn.00408af0
cmp dword [esi + 0x4c], 0
push dword [esp + 0xc]
jne 0x464f18
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x464f2b
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.004637eb
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0043c7d0
jmp 0x464f2b
mov ecx, esi
call fcn.004655d6
test eax, eax
je 0x464f2b
push edi
mov ecx, eax
call fcn.00463850
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8
Function at 0x465515
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x465558
call fcn.0046915a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x465558
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x465573
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004650cc
test ebx, ebx
mov esi, eax
je 0x465571
test edi, edi
je 0x465571
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x466805
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x49d28a
call fcn.004813f4
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0046915a
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x466850
call fcn.0046915a
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x466861
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x46686e
or eax, 0xffffffff
jmp 0x4669ca
mov ecx, esi
call fcn.00466357
mov dword [ebp - 0x14], eax
call fcn.00462856
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x4668ec
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4668ec
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4668ec
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0040c150
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x4668ec
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x4668ec
mov ecx, ebx
call fcn.0046580b
test eax, eax
je 0x4668ec
push 0
mov ecx, ebx
call fcn.00465826
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00464285
push dword [ebp - 0x14]
call fcn.004627ae
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0046660d
xor edi, edi
cmp eax, edi
je 0x466949
test byte [esi + 0x3c], 0x10
je 0x466933
push 4
pop edi
mov ecx, esi
call fcn.004656c8
test ax, 0x100
je 0x466929
push 5
pop edi
push edi
mov ecx, esi
call fcn.00462376
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x466949
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004659f5
or dword [ebp - 4], 0xffffffff
jmp 0x466974
cmp dword [ebp - 0x28], edi
je 0x466982
push 1
mov ecx, ebx
call fcn.00465826
cmp dword [ebp - 0x2c], edi
je 0x466992
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4669ab
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x4669ab
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00466391
cmp dword [esi + 0x58], edi
je 0x4669c7
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00481499
ret
Function at 0x466a34
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x466a54
cmp dword [edi + 0x54], 0
jne 0x466a54
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0046915a
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 [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004669fb
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x46a438
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4c84d4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x46a478
push 0x4a7fe0
push 4
push eax
call fcn.0047f465
push eax
call fcn.0042f3e0
add esp, 0x10
jmp 0x46a48a
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x46a4f8
push edi
call fcn.004817e0
mov edi, dword [eax]
call fcn.004817e0
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0047d92e
add esp, 0x18
mov ebx, eax
call fcn.004817e0
cmp dword [eax], 0
je 0x46a4d8
call fcn.004817e0
push dword [eax]
call fcn.0046005e
pop ecx
jmp 0x46a4df
call fcn.004817e0
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x46a4f8
cmp ebx, esi
jae 0x46a4f8
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x46a4fa
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d992
leave
ret
Function at 0x46b2bf
Capabilities:
Resolve dns

Disassembly:
push 0x18
mov eax, 0x49d5fb
call fcn.0048142a
mov esi, dword [ebp + 8]
mov ebx, ecx
call dword [0x4c97bc]
xor edi, edi
mov dword [ebp - 0x24], edi
cmp esi, edi
mov dword [ebp - 4], edi
jne 0x46b2ff
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [ebp - 0x24]
call fcn.00425210
xor eax, eax
call fcn.004814ad
ret 8
push 0x10
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.00480f80
add esp, 0xc
push esi
mov word [ebp - 0x20], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
jne 0x46b338
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, edi
je 0x46b356
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea ecx, [ebp - 0x20]
mov word [ebp - 0x1e], ax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x34]
mov edi, eax
jmp 0x46b361
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [ebp - 0x24]
call fcn.00425210
mov eax, edi
jmp 0x46b2f7

Function at 0x46bf5a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x46bfa0
call fcn.0046915a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x46bfa0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x46bfe3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x46bfcc
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 0x46bfcc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x46bfe0
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 0x47d992
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c84d4]
jne 0x47d99c
repz ret
jmp fcn.00485f28
Function at 0x484887
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4848c4
cmp dword [ebp + 0x14], edi
je 0x4848c4
cmp ecx, edi
jne 0x4848cb
call fcn.004817e0
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0047ec9b
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4848df
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x484900
cmp ebx, 0xffffffff
je 0x4848ef
push ebx
push edi
push ecx
call fcn.00480f80
add esp, 0xc
cmp esi, edi
je 0x4848ac
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4848ac
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x48491c
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x484923
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x484a14
test word [esi + 0xc], 0x10c
je 0x484977
mov eax, dword [esi + 4]
test eax, eax
je 0x484977
jl 0x484a75
cmp ebx, eax
mov edi, ebx
jb 0x484948
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x484a1c
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0047daaf
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x484a0c
cmp ebx, dword [ebp - 0xc]
jb 0x4849e4
cmp dword [ebp - 0xc], 0
je 0x4849a1
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x484996
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x48499d
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4849ac
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4849ac
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x484a48
push eax
push dword [ebp - 8]
push esi
call fcn.0048476c
pop ecx
push eax
call fcn.0048ea75
add esp, 0xc
test eax, eax
je 0x484a87
cmp eax, 0xffffffff
je 0x484a75
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x484a0c
push esi
call fcn.0048e394
cmp eax, 0xffffffff
pop ecx
je 0x484a79
cmp dword [ebp - 4], 0
je 0x484a48
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x48492b
mov eax, dword [ebp + 0x14]
jmp 0x4848c6
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x484a33
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00480f80
add esp, 0xc
call fcn.004817e0
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4848bc
cmp dword [ebp + 0xc], 0xffffffff
je 0x484a5e
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00480f80
add esp, 0xc
call fcn.004817e0
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4848bc
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4848c6
or dword [esi + 0xc], 0x10
jmp 0x484a79
Function at 0x489a3e
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 + 0x4c8ee0]
je 0x489a59
inc edi
cmp edi, 0x17
jb 0x489a4a
cmp edi, 0x17
jae 0x489bd9
push ebp
push 3
call fcn.004900b3
cmp eax, 1
pop ecx
je 0x489ba5
push 3
call fcn.004900b3
test eax, eax
pop ecx
jne 0x489a8d
cmp dword [0x4c84d0], 1
je 0x489ba5
cmp ebx, 0xfc
je 0x489bd8
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4cdd68
push ebp
call fcn.0047f465
add esp, 0xc
test eax, eax
je 0x489ac3
push esi
push esi
push esi
push esi
push esi
call fcn.0047eb9f
add esp, 0x14
push 0x104
mov esi, 0x4cdd81
push esi
push 0
mov byte [0x4cde85], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x489b07
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0047f465
add esp, 0xc
test eax, eax
je 0x489b07
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0047eb9f
add esp, 0x14
push esi
call fcn.004816d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x489b4c
push esi
call fcn.004816d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4ce07c
push 0x4aad3c
sub ecx, eax
push ecx
push eax
call fcn.0047d9a1
add esp, 0x14
test eax, eax
je 0x489b4c
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0047eb9f
add esp, 0x14
jmp 0x489b4e
xor esi, esi
push 0x4aad38
push ebx
push ebp
call fcn.0048381d
add esp, 0xc
test eax, eax
je 0x489b6e
push esi
push esi
push esi
push esi
push esi
call fcn.0047eb9f
add esp, 0x14
push dword [edi*8 + 0x4c8ee4]
push ebx
push ebp
call fcn.0048381d
add esp, 0xc
test eax, eax
je 0x489b90
push esi
push esi
push esi
push esi
push esi
call fcn.0047eb9f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0048fef6
add esp, 0xc
jmp 0x489bd8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x489bd8
cmp ebp, 0xffffffff
je 0x489bd8
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4c8ee4]
push dword [esi]
call fcn.004816d0
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 0x48fef6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00486e32
xor ebx, ebx
cmp dword [0x4ce214], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x48ffcc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4900ac
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4abd58
push edi
call esi
cmp eax, ebx
je 0x4900ac
push eax
call fcn.00486dc4
mov dword [esp], 0x4abd48
push edi
mov dword [0x4ce214], eax
call esi
push eax
call fcn.00486dc4
mov dword [esp], 0x4abd34
push edi
mov dword [0x4ce218], eax
call esi
push eax
call fcn.00486dc4
mov dword [0x4ce21c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00483523
test eax, eax
pop ecx
pop ecx
je 0x48ff9a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0047eb9f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x48ffcc
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00486dc4
cmp eax, ebx
pop ecx
mov dword [0x4ce224], eax
je 0x48ffcc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00486dc4
pop ecx
mov dword [0x4ce220], eax
mov eax, dword [0x4ce220]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x490051
cmp dword [0x4ce224], ecx
je 0x490051
push eax
call fcn.00486e3b
push dword [0x4ce224]
mov esi, eax
call fcn.00486e3b
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x490051
cmp edi, ebx
je 0x490051
call esi
cmp eax, ebx
je 0x49001e
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x49001e
test byte [ebp - 0x18], 1
jne 0x490051
lea eax, [ebp - 0x10]
push eax
call fcn.0048355a
test eax, eax
pop ecx
je 0x490039
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0047eb9f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x490048
or dword [ebp + 0x10], 0x200000
jmp 0x49008c
or dword [ebp + 0x10], 0x40000
jmp 0x49008c
mov eax, dword [0x4ce218]
cmp eax, dword [ebp - 8]
je 0x49008c
push eax
call fcn.00486e3b
cmp eax, ebx
pop ecx
je 0x49008c
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x49008c
mov eax, dword [0x4ce21c]
cmp eax, dword [ebp - 8]
je 0x49008c
push eax
call fcn.00486e3b
cmp eax, ebx
pop ecx
je 0x49008c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4ce214]
call fcn.00486e3b
cmp eax, ebx
pop ecx
je 0x4900ac
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4900ae
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret