joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c6367
Capabilities:
Get common file path

Disassembly:
push 0x120
push 0x527430
call fcn.004c6bd0
mov eax, dword [0x52bfb8]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
and dword [ebp - 0x128], 0
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x12c], esi
cmp esi, 0x104
jle 0x4c640b
and dword [ebp - 4], 0
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.004c07e0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x130], edi
jmp 0x4c63f8
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4c640b
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x4c6426
cmp byte [edi + 1], 0x3a
jne 0x4c6426
movzx eax, byte [edi]
push eax
call fcn.004bf4e3
pop ecx
mov ebx, eax
sub ebx, 0x40
cmp dword [ebp - 0x128], 0
je 0x4c6436
push edi
call fcn.004be424
pop ecx
mov eax, ebx
lea esp, [ebp - 0x13c]
mov ecx, dword [ebp - 0x1c]
call fcn.004c5c96
call fcn.004c6c0b
ret

Function at 0x4c6aea
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004c07e0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4c6b85
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x59717c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4c6b85
cmp eax, 1
je 0x4c6ba6
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4c6b85
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4c6b52
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4c6b81
xor eax, eax
inc eax
jmp 0x4c6bc5
cmp edi, eax
jae 0x4c6b89
xor eax, eax
jmp 0x4c6bc5
cmp eax, esi
jae 0x4c6b90
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x59717c]
jmp 0x4c6ba9
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c84ef
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x52bfb8]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x52c1c0]
je 0x4c8524
inc eax
cmp eax, 0x13
jb 0x4c8515
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x52c1c0]
jne 0x4c864a
mov eax, dword [0x597230]
cmp eax, 1
je 0x4c8622
cmp eax, edx
jne 0x4c8554
cmp dword [0x52bd78], 1
je 0x4c8622
cmp ecx, 0xfc
je 0x4c864a
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c858a
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004be6f0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004be7f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4c85be
mov eax, edi
push eax
call fcn.004be7f0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x5278e0
push edi
call fcn.004bfc60
add esp, 0x10
push edi
call fcn.004be7f0
push dword [esi + 0x52c1c4]
mov ebx, eax
call fcn.004be7f0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004c07e0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004be6f0
push edi
push ebx
call fcn.004be700
push 0x5278c0
push ebx
call fcn.004be700
push dword [esi + 0x52c1c4]
push ebx
call fcn.004be700
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004cae80
add esp, 0x2c
jmp 0x4c864a
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x52c1c4]
push dword [esi]
call fcn.004be7f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004c5c96
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4c9a94
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4c9aad
or eax, 0xffffffff
jmp 0x4c9b0e
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4c9b0a
push 0x3d
push esi
call fcn.004c32e3
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4c9b0a
cmp esi, eax
je 0x4c9b0a
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x59719c]
sete cl
cmp eax, dword [0x5971a0]
mov dword [ebp - 8], ecx
jne 0x4c9af0
mov edi, eax
call fcn.004c9a33
mov dword [0x59719c], eax
cmp eax, ebx
jne 0x4c9b49
cmp dword [ebp + 0xc], ebx
je 0x4c9b12
cmp dword [0x5971a4], ebx
je 0x4c9b12
call fcn.004c57df
test eax, eax
je 0x4c9b49
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4c9b1b
xor eax, eax
jmp 0x4c9b0d
push 4
call fcn.004be412
cmp eax, ebx
pop ecx
mov dword [0x59719c], eax
je 0x4c9b0a
mov dword [eax], ebx
cmp dword [0x5971a4], ebx
jne 0x4c9b49
push 4
call fcn.004be412
cmp eax, ebx
pop ecx
mov dword [0x5971a4], eax
je 0x4c9b0a
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x59719c]
call fcn.004c99e6
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x4c9baa
cmp dword [esi], ebx
je 0x4c9baa
lea esi, [esi + edi*4]
push dword [esi]
call fcn.004be424
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4c9b8d
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4c9beb
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x4c9b84
mov eax, edi
shl eax, 2
push eax
push dword [0x59719c]
call fcn.004c281c
cmp eax, ebx
pop ecx
pop ecx
je 0x4c9beb
jmp 0x4c9be6
cmp dword [ebp - 8], ebx
jne 0x4c9c56
cmp edi, ebx
jge 0x4c9bb9
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x59719c]
call fcn.004c281c
cmp eax, ebx
pop ecx
pop ecx
je 0x4c9b0a
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x59719c], eax
cmp dword [ebp + 0xc], ebx
je 0x4c9c40
push dword [ebp - 4]
call fcn.004be7f0
inc eax
inc eax
push eax
call fcn.004be412
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4c9c40
push dword [ebp - 4]
push esi
call fcn.004be6f0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4c9c39
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.004be424
pop ecx
cmp dword [ebp - 8], ebx
je 0x4c9c4e
push dword [ebp - 4]
call fcn.004be424
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4c9b0d
push dword [ebp - 4]
call fcn.004be424
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4c9b17
Function at 0x4ca08e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4ca0bc
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4ca0c3
cmp ebx, dword [eax + 4]
jae 0x4ca0c3
xor eax, eax
jmp 0x4ca2b3
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4ca0d4
xor eax, eax
inc eax
jmp 0x4ca2b2
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4ca0ea
cmp ecx, edx
jae 0x4ca22f
cmp dword [eax + 4], 0
je 0x4ca0f3
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4ca0db
cmp dword [ebp + 8], 0
je 0x4ca115
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4ca22f
cmp eax, esi
jae 0x4ca22f
mov eax, dword [0x597480]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4ca13a
cmp dword [esi*4 + 0x597488], edi
je 0x4ca233
inc esi
cmp esi, eax
jl 0x4ca128
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4ca2af
cmp dword [ebp - 8], 0x1000000
jne 0x4ca2af
test byte [ebp - 0xc], 0xcc
je 0x4ca1b8
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4ca2af
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4ca2af
cmp word [eax + 0x18], 0x10b
jne 0x4ca2af
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4ca2af
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4ca1b8
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4ca1b8
test byte [ecx + 0x27], 0x80
jne 0x4ca22f
push 1
push 0x5974c8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4ca0cc
mov ecx, dword [0x597480]
test ecx, ecx
mov edx, ecx
jle 0x4ca1ec
lea eax, [ecx*4 + 0x597484]
cmp dword [eax], edi
je 0x4ca1ec
dec edx
sub eax, 4
test edx, edx
jg 0x4ca1e0
test edx, edx
jne 0x4ca21d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4ca1f9
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4ca211
lea eax, [edx*4 + 0x597488]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4ca1ff
cmp ecx, 0x10
jge 0x4ca21d
inc ecx
mov dword [0x597480], ecx
push 0
push 0x5974c8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4ca0cc
xor eax, eax
jmp 0x4ca2b2
test esi, esi
jle 0x4ca0cc
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x5974c8
call ebx
test eax, eax
jne 0x4ca0cc
cmp dword [esi*4 + 0x597488], edi
je 0x4ca289
mov eax, dword [0x597480]
lea esi, [eax - 1]
test esi, esi
jl 0x4ca277
cmp dword [esi*4 + 0x597488], edi
je 0x4ca273
dec esi
jns 0x4ca267
test esi, esi
jge 0x4ca287
cmp eax, 0x10
jge 0x4ca282
inc eax
mov dword [0x597480], eax
lea esi, [eax - 1]
jmp 0x4ca289
je 0x4ca2a1
xor ecx, ecx
test esi, esi
jl 0x4ca2a1
lea eax, [ecx*4 + 0x597488]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4ca28f
push 0
push 0x5974c8
call ebx
jmp 0x4ca0cc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ca3ee
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
je 0x4ca419
cmp eax, 1
je 0x4ca419
jle 0x4ca421
cmp eax, 3
jle 0x4ca419
cmp eax, 4
jne 0x4ca421
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x4ca44a
mov dword [0x597170], 0x16
mov dword [0x597174], ebx
or eax, 0xffffffff
jmp 0x4ca5bc
inc eax
cmp byte [eax], bl
jne 0x4ca439
lea ecx, [eax + 1]
cmp byte [ecx], bl
je 0x4ca44a
mov byte [eax], 0x20
mov eax, ecx
cmp byte [eax], bl
jne 0x4ca439
push esi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.004bf170
mov dword [ebp - 0x68], esi
mov esi, dword [0x5978a0]
add esp, 0xc
cmp esi, ebx
je 0x4ca48d
lea eax, [esi - 1]
mov ecx, eax
sar ecx, 5
mov ecx, dword [ecx*4 + 0x5978c0]
mov edx, eax
and edx, 0x1f
cmp byte [ecx + edx*8 + 4], bl
jne 0x4ca48d
dec esi
dec eax
cmp esi, ebx
jne 0x4ca470
lea eax, [esi + esi*4 + 4]
mov word [ebp - 0x36], ax
push edi
movzx eax, ax
push 1
push eax
call fcn.004c49ea
cmp esi, ebx
mov dword [ebp - 0x34], eax
pop ecx
mov dword [eax], esi
mov eax, dword [ebp - 0x34]
pop ecx
mov dword [ebp - 8], ebx
lea ecx, [eax + 4]
lea edx, [eax + esi + 4]
jle 0x4ca4f2
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 8]
sar eax, 5
mov eax, dword [eax*4 + 0x5978c0]
and edi, 0x1f
lea edi, [eax + edi*8]
mov al, byte [edi + 4]
test al, 0x10
jne 0x4ca4de
mov byte [ecx], al
mov eax, dword [edi]
mov dword [edx], eax
jmp 0x4ca4e3
mov byte [ecx], bl
or dword [edx], 0xffffffff
inc dword [ebp - 8]
inc ecx
add edx, 4
cmp dword [ebp - 8], esi
jl 0x4ca4b9
mov eax, dword [ebp - 0x34]
cmp byte [ebp - 1], bl
je 0x4ca523
lea ecx, [eax + 4]
xor edx, edx
lea eax, [eax + esi + 4]
cmp esi, 3
jge 0x4ca509
mov edi, esi
jmp 0x4ca50c
push 3
pop edi
cmp edx, edi
jge 0x4ca51c
mov byte [ecx], bl
or dword [eax], 0xffffffff
inc edx
inc ecx
add eax, 4
jmp 0x4ca500
mov dword [ebp - 0xc], 8
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp + 0x14]
mov dword [0x597170], ebx
push dword [ebp - 0xc]
mov dword [0x597174], ebx
push 1
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x34]
mov edi, eax
call fcn.004be424
cmp esi, ebx
pop ecx
jne 0x4ca571
push edi
call fcn.004c564a
pop ecx
or eax, 0xffffffff
jmp 0x4ca5ba
cmp dword [ebp + 8], 2
jne 0x4ca57d
push ebx
call fcn.004be6b4
cmp dword [ebp + 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x4ca5aa
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x24]
call esi
jmp 0x4ca5b3
cmp dword [ebp + 8], 4
je 0x4ca5a3
mov ebx, dword [ebp - 0x24]
push dword [ebp - 0x20]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4cae80
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x5974f8], ebx
push esi
push edi
jne 0x4caf00
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4caf3b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x527b44
push edi
call esi
test eax, eax
mov dword [0x5974f8], eax
je 0x4caf3b
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x5974fc], eax
call esi
cmp dword [0x59717c], 2
mov dword [0x597500], eax
jne 0x4caf00
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x597508], eax
je 0x4caf00
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x597504], eax
mov eax, dword [0x597504]
test eax, eax
je 0x4caf45
call eax
test eax, eax
je 0x4caf2c
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x597508]
test eax, eax
je 0x4caf2c
test byte [ebp - 8], 1
jne 0x4caf45
cmp dword [0x597188], 4
jb 0x4caf3f
or byte [ebp + 0x12], 0x20
jmp 0x4caf64
xor eax, eax
jmp 0x4caf74
or byte [ebp + 0x12], 4
jmp 0x4caf64
mov eax, dword [0x5974fc]
test eax, eax
je 0x4caf64
call eax
mov ebx, eax
test ebx, ebx
je 0x4caf64
mov eax, dword [0x597500]
test eax, eax
je 0x4caf64
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x5974f8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4caf79
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004c07e0
mov eax, dword [0x52bfb8]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x5978a0]
mov dword [ebp - 4], eax
jae 0x4cb0bc
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x5978c0]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x4cb0bc
push 1
push esi
push ebx
call fcn.004c56a9
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x4cb0c6
push 2
push esi
push ebx
call fcn.004c56a9
add esp, 0xc
cmp eax, 0xffffffff
je 0x4cb0c6
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4cb066
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004bf170
push 0x8000
push ebx
call fcn.004cb9a2
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x4cb025
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.004c4ec4
add esp, 0xc
cmp eax, 0xffffffff
je 0x4cb043
sub edi, eax
test edi, edi
jg 0x4cb01a
jmp 0x4cb059
cmp dword [0x597174], 5
jne 0x4cb056
mov dword [0x597170], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.004cb9a2
pop ecx
pop ecx
jmp 0x4cb0a6
jge 0x4cb0a6
push 0
push dword [ebp + 0xc]
push ebx
call fcn.004c56a9
push ebx
call fcn.004c2dd2
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x4cb0a6
mov dword [0x597170], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x597174], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.004c56a9
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4cb0c9
mov dword [0x597170], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.004c5c96
leave
ret
Function at 0x4cbce2
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push 0x128
push 0x527b80
call fcn.004c6bd0
mov eax, dword [0x52bfb8]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x4cbdef
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x134], esi
cmp esi, 0x104
jle 0x4cbda0
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.004c07e0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x4cbd8d
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x4cbdef
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x4cbdef
mov al, byte [edi]
cmp al, 0x5c
je 0x4cbdae
cmp al, 0x2f
jne 0x4cbdb3
cmp al, byte [edi + 1]
je 0x4cbde9
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.004cbfef
pop ecx
mov byte [ebp - 0x127], al
mov byte [ebp - 0x126], 0x3a
mov byte [ebp - 0x125], bl
push edi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x4cbdef
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004c564a
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x4cbe0b
push edi
call fcn.004be424
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
call fcn.004c5c96
call fcn.004c6c0b
ret
Function at 0x410d9c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x410e00
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404d84
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040ba10
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410e07
lea eax, [ebp - 0xc]
call fcn.00404b14
ret

Function at 0x411728
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov eax, dword [0x54230c]
cmp dword [eax], 0
je 0x41175e
push 0xa
push 0x4117b4
mov eax, dword [0x54230c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_FindResourceA
push eax
mov eax, dword [0x54230c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_LoadResource
mov dword [esp], eax
jmp 0x4117aa
xor eax, eax
mov dword [esp], eax
mov eax, dword [0x5429a0]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x4117aa
mov ebx, dword [esp + 4]
push 0xa
push 0x4117b4
mov esi, dword [ebx + 4]
push esi
call sub.kernel32.dll_FindResourceA
push eax
push esi
call sub.kernel32.dll_LoadResource
mov dword [esp], eax
cmp dword [esp], 0
jne 0x4117aa
mov eax, dword [esp + 4]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jne 0x411775
mov eax, dword [esp]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x42a014
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x545aac
cmp dword [edi], 0
jne 0x42a090
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x545aa8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x53ace4
mov ecx, 2
call fcn.004030f4
mov edx, 0x429fec
lea eax, [esi + 5]
call fcn.0042a00c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042a00c
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x42a065
mov dword [0x545aa8], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x42a368
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
jne 0x42a37c
xor eax, eax
mov dword [esi], eax
jmp 0x42a3cf
cmp dword [esi + 4], 0
jne 0x42a3cc
mov eax, ebx
call fcn.0042a304
mov ebx, eax
push esp
push 0x40
push 6
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_VirtualProtectEx
test eax, eax
je 0x42a3cc
mov dword [esi], ebx
mov eax, dword [ebx]
mov dword [esi + 8], eax
mov eax, dword [ebx + 4]
mov dword [esi + 0xc], eax
mov byte [ebx], 0xe9
sub edi, ebx
sub edi, 5
mov dword [ebx + 1], edi
push esp
mov eax, dword [esp + 4]
push eax
push 6
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_VirtualProtectEx
inc dword [esi + 4]
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x42fca8
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x42fcae
ret

Function at 0x4323f0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x432441
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x432428
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x432418
jmp 0x432441
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x432429
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43c308
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404fc4
xor eax, eax
push ebp
push 0x43c436
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x43c409
xor eax, eax
push ebp
push 0x43c402
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404dd4
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
invalid
xlatb

Function at 0x43c363
Capabilities:
Write clipboard data

Disassembly:
ret