joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bbe00
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5704d8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0xfca838]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
push 0xf90960
mov eax, dword [ebp + 8]
push eax
call fcn.0052eea6
add esp, 8
mov dword [ebp - 0x10], eax
xor ecx, ecx
cmp dword [ebp - 0x10], 0
setne cl
test ecx, ecx
jne 0x4bbe7c
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0
je 0x4bbe74
mov edx, dword [ebp - 0x10]
push edx
call fcn.0052ed64
add esp, 4
mov eax, dword [ebp - 0x2c]
jmp 0x4bbffc
push 2
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.0052ffd2
add esp, 0x10
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.0052feec
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
jg 0x4bbee8
jl 0x4bbeb4
cmp dword [ebp - 0x1c], 0
ja 0x4bbee8
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004bbcc0
add esp, 8
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0
je 0x4bbee0
mov edx, dword [ebp - 0x10]
push edx
call fcn.0052ed64
add esp, 4
mov eax, dword [ebp - 0x30]
jmp 0x4bbffc
mov byte [ebp - 0x20], 0
xor eax, eax
mov byte [ebp - 0x1f], al
push 0
push 0
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0052ffd2
add esp, 0x10
mov edx, dword [ebp - 0x10]
push edx
push 1
push 2
lea eax, [ebp - 0x20]
push eax
call fcn.0052eb9f
add esp, 0x10
push 2
push 0
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0052ffd2
add esp, 0x10
movzx edx, byte [ebp - 0x20]
cmp edx, 0xff
jne 0x4bbf49
movzx eax, byte [ebp - 0x1f]
cmp eax, 0xfe
jne 0x4bbf49
mov dword [ebp - 0x54], 1
jmp 0x4bbf50
mov dword [ebp - 0x54], 0
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
je 0x4bbf85
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00529241
add esp, 4
shl eax, 1
push eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.0052f01f
add esp, 0x10
jmp 0x4bbfd9
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0042f010
add esp, 8
cmp dword [ebp - 0x28], 0
je 0x4bbfd9
mov edx, dword [ebp - 0x28]
movsx eax, byte [edx]
test eax, eax
je 0x4bbfd9
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
push edx
push 1
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0052f01f
add esp, 0x10
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x34], 1
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0
je 0x4bbff9
mov eax, dword [ebp - 0x10]
push eax
call fcn.0052ed64
add esp, 4
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4d9a90
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572798
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0xfca838]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 0
je 0x4d9ac5
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
test ecx, ecx
jne 0x4d9ac9
xor eax, eax
jmp 0x4d9b1e
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00426f90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00427070
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x18]
push edx
push 0x4d9b30
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004279e0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x4df810
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0
xor eax, eax
mov dword [ebp - 4], eax
push 1
lea ecx, [ebp - 8]
push ecx
mov edx, dword [0xf91884]
push edx
mov eax, dword [0xf91880]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
jne 0x4df8ae
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x10], 0
xor ecx, ecx
mov byte [ebp - 0xf], cl
push 0
lea edx, [ebp - 0xc]
push edx
push 2
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xc], 2
jne 0x4df895
movzx eax, byte [ebp - 0x10]
cmp eax, 0xff
jne 0x4df895
movzx ecx, byte [ebp - 0xf]
cmp ecx, 0xfe
jne 0x4df895
jmp 0x4df8ae
push 0
push 0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov esp, ebp
pop ebp
ret
Function at 0x4df8c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0xc], 0xffffffff
jne 0x4df9ae
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], 0
xor edx, edx
mov dword [ebp - 0xc], edx
push 1
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [0xf91884]
push ecx
mov edx, dword [0xf91880]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
push 0
mov edx, dword [0xf91884]
push edx
mov eax, dword [0xf91880]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov dword [ebp - 4], 0
mov byte [ebp - 0x14], 0
xor eax, eax
mov byte [ebp - 0x13], al
push 0
lea ecx, [ebp - 4]
push ecx
push 2
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], 0
jne 0x4df962
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], 1
jmp 0x4df995
cmp dword [ebp - 4], 2
jne 0x4df98b
movzx eax, byte [ebp - 0x14]
cmp eax, 0xff
jne 0x4df98b
movzx ecx, byte [ebp - 0x13]
cmp ecx, 0xfe
jne 0x4df98b
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], 1
jmp 0x4df995
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], 0
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4e5330
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573379
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0xfca838]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4e5398
push 0
mov ecx, dword [ebp + 8]
call fcn.00474ac0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
or ecx, 1
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 8]
jmp 0x4e54ae
lea edx, [ebp - 0x20]
push edx
call dword [0xfccc5c]
add esp, 4
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00474a70
mov byte [ebp - 4], 3
cmp dword [ebp - 0x20], 0
je 0x4e53da
mov ecx, dword [ebp - 0x20]
call fcn.004024b0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
jmp 0x4e53ec
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jge 0x4e5473
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + ecx*4]
push eax
lea ecx, [ebp - 0x28]
push ecx
call dword [0xfccc48]
add esp, 8
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x58], edx
mov byte [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
mov eax, dword [ebp - 0x58]
push eax
call fcn.00474a70
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], ecx
mov byte [ebp - 4], 5
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
lea edx, [ebp - 0x18]
push edx
call fcn.00474a70
mov dword [ebp - 0x64], eax
push 0
mov byte [ebp - 4], 4
call dword [0xfccc7c]
add esp, 0xc
mov byte [ebp - 4], 3
cmp dword [ebp - 0x28], 0
je 0x4e546e
mov ecx, dword [ebp - 0x28]
call fcn.004024b0
mov dword [ebp - 0x28], 0
jmp 0x4e53e3
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00474a70
mov edx, dword [ebp - 0x30]
or edx, 1
mov dword [ebp - 0x30], edx
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x4e54ab
mov ecx, dword [ebp - 0x18]
call fcn.004024b0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4f5160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x4f5169
xor ecx, ecx
jne 0x4f5169
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4f51b0
mov eax, dword [ebp - 0xc]
jmp 0x4f520d
cmp dword [ebp - 4], 1
je 0x4f51c3
cmp dword [ebp - 4], 2
je 0x4f51c3
mov eax, 0xd
jmp 0x4f520d
cmp dword [ebp + 0xc], 0
je 0x4f5201
cmp dword [ebp - 8], 0
je 0x4f51f9
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x4f51f0
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x4f51f7
mov eax, 0xd
jmp 0x4f520d
jmp 0x4f5201
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4f9020
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov dword [eax], 0x42444c7
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
mov byte [eax + 8], 0xe9
mov ecx, dword [ebp - 8]
add ecx, 0xd
mov edx, dword [ebp + 8]
sub edx, ecx
mov eax, dword [ebp - 8]
mov dword [eax + 9], edx
lea ecx, [ebp - 4]
push ecx
push 0x40
push 0xd
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0xd
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov esp, ebp
pop ebp
ret 8

Function at 0x5032e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
add edx, 1
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
call fcn.00427180
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
call fcn.00427210
mov esp, ebp
pop ebp
ret 4

Function at 0x5035a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x5035b4
xor eax, eax
jmp 0x5035cf
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0052eb9f
add esp, 0x10
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5035e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x5035f4
xor eax, eax
jmp 0x50360f
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0052f01f
add esp, 0x10
mov esp, ebp
pop ebp
ret 0xc

Function at 0x50a73e
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 0x50a762
cmp dword [edi + 0x54], 0
jne 0x50a762
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00515ba1
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
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.0050a6ff
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 0x51027b
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 0x5102c2
call fcn.00515ba1
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x5102c2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x5102de
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0050fdf3
mov esi, eax
test edi, edi
je 0x5102dc
test ebx, ebx
je 0x5102dc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x51112c
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x57533f
call fcn.005327ae
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x511151
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x511197
lea ecx, [ebp - 0x10]
call fcn.00402510
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.0051099b
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040d590
mov eax, esi
call fcn.00532886
ret 8
Function at 0x514866
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 0x5148ae
call fcn.00515ba1
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x5148ae
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x5148f1
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 0x5148da
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 0x5148da
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x5148ee
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 0x528b3b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0xfca838]
jne 0x528b45
repz ret
jmp fcn.0053587c

Function at 0x544674
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x5446a5
call fcn.0052f47b
mov dword [eax], esi
call fcn.0052f468
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.005293c9
add esp, 0x14
push 0x16
pop eax
jmp 0x5446fa
test dword [ebp + 0xc], 0xfffffff9
jne 0x544681
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5446d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0052f48e
pop ecx
call fcn.0052f468
mov eax, dword [eax]
jmp 0x5446fa
test al, 0x10
jne 0x5446f8
test al, 1
je 0x5446f8
test byte [ebp + 0xc], 2
je 0x5446f8
call fcn.0052f47b
mov dword [eax], 5
call fcn.0052f468
mov dword [eax], 0xd
jmp 0x5446c9
xor eax, eax
pop esi
pop ebp
ret

Function at 0x549070
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.005344e5
and dword [ebp - 4], 0
cmp dword [0x102bfbc], 0
mov ebx, eax
jne 0x549121
push 0xfa2614
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x5491d2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0xfa2608
push edi
call esi
test eax, eax
je 0x5491d2
push eax
call fcn.00534473
mov dword [esp], 0xfa25f8
push edi
mov dword [0x102bfbc], eax
call esi
push eax
call fcn.00534473
mov dword [esp], 0xfa25e4
push edi
mov dword [0x102bfc0], eax
call esi
push eax
call fcn.00534473
mov dword [esp], 0xfa25c8
push edi
mov dword [0x102bfc4], eax
call esi
push eax
call fcn.00534473
pop ecx
mov dword [0x102bfcc], eax
test eax, eax
je 0x549121
push 0xfa25b0
push edi
call esi
push eax
call fcn.00534473
pop ecx
mov dword [0x102bfc8], eax
mov eax, dword [0x102bfc8]
cmp eax, ebx
je 0x549179
cmp dword [0x102bfcc], ebx
je 0x549179
push eax
call fcn.005344ee
push dword [0x102bfcc]
mov esi, eax
call fcn.005344ee
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x549179
test edi, edi
je 0x549179
call esi
test eax, eax
je 0x549170
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x549170
test byte [ebp - 0xc], 1
jne 0x549179
or dword [ebp + 0x10], 0x200000
jmp 0x5491b2
mov eax, dword [0x102bfc0]
cmp eax, ebx
je 0x5491b2
push eax
call fcn.005344ee
pop ecx
test eax, eax
je 0x5491b2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x5491b2
mov eax, dword [0x102bfc4]
cmp eax, ebx
je 0x5491b2
push eax
call fcn.005344ee
pop ecx
test eax, eax
je 0x5491b2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x102bfbc]
call fcn.005344ee
pop ecx
test eax, eax
je 0x5491d2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5491d4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x557d60
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x10
push ebx
mov bl, byte [edx + 8]
cmp bl, 3
je 0x557f0a
mov ecx, dword [esp + 0x20]
push ebp
mov ebp, dword [edx]
push esi
xor esi, esi
push edi
mov dword [esp + 0x24], esi
test bl, 2
je 0x557db8
movzx eax, byte [edx + 9]
movzx esi, byte [ecx]
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 1]
mov dword [esp + 0x10], edi
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 2]
sub eax, esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov edi, 3
jmp 0x557dcb
movzx eax, byte [ecx + 3]
movzx edi, byte [edx + 9]
sub edi, eax
mov dword [esp + 0x10], edi
mov edi, 1
test bl, 4
je 0x557ddf
movzx ecx, byte [ecx + 4]
movzx eax, byte [edx + 9]
sub eax, ecx
mov dword [esp + edi*4 + 0x10], eax
inc edi
xor ecx, ecx
xor eax, eax
cmp edi, ecx
jle case.0x557e26.3
jmp 0x557df0
cmp dword [esp + eax*4 + 0x10], ecx
jg 0x557dfc
mov dword [esp + eax*4 + 0x10], ecx
jmp 0x557e01
mov esi, 1
inc eax
cmp eax, edi
jl 0x557df0
cmp si, cx
je case.0x557e26.3
movzx eax, byte [edx + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x557e26.3
movzx eax, byte [eax + 0x557f24]
jmp dword [eax*4 + 0x557f10]
mov edx, dword [edx + 4]
mov eax, dword [esp + 0x28]
cmp edx, ecx
jbe case.0x557e26.3
lea esp, [esp]
mov cl, byte [eax]
shr cl, 1
and cl, 0x55
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x557e40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edi, dword [edx + 4]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov ecx, edx
mov eax, pe_nt_image_headers32
sar eax, cl
mov ebx, 0xf
sar ebx, cl
and al, 0xf0
or al, bl
test edi, edi
jbe case.0x557e26.3
mov edi, edi
mov bl, byte [esi]
mov cl, dl
shr bl, cl
inc esi
and bl, al
sub edi, 1
mov byte [esi - 1], bl
jne 0x557e80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x557e26.3
mov eax, ebx
xor edx, edx
div edi
inc ebx
inc esi
mov cl, byte [esp + edx*4 + 0x10]
shr byte [esi - 1], cl
cmp ebx, ebp
jb 0x557ea6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x557e26.3
mov edi, edi
xor edx, edx
mov eax, ebx
div edi
movzx ax, byte [esi]
mov ecx, 0x100
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
inc esi
inc ebx
inc esi
movzx ecx, word [esp + edx*4 + 0x10]
shr ax, cl
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esi - 2], dl
mov byte [esi - 1], al
cmp ebx, ebp
jb 0x557ed0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x55dfd0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
mov eax, dword [0xfca838]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
cmp eax, 3
jne 0x55e05a
movzx eax, word [esi + 0x118]
test ax, ax
jne 0x55e006
test byte [esi + 0x230], 1
jne 0x55e02e
movzx cx, byte [edi]
cmp cx, ax
jbe 0x55e02e
push 0xfa6e70
push esi
call fcn.005515d0
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00528b3b
add esp, 0xc
ret
mov dl, byte [edi]
push 1
lea eax, [esp + 0xc]
push eax
push 0xfa50f8
push esi
mov byte [esp + 0x18], dl
call fcn.0055d1b0
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00528b3b
add esp, 0xc
ret
test al, 2
je 0x55e0ee
movzx ecx, word [edi + 2]
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.0055c1c0
movzx eax, word [edi + 4]
push eax
lea ecx, [esp + 0x16]
push ecx
call fcn.0055c1c0
movzx edx, word [edi + 6]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.0055c1c0
add esp, 0x18
cmp byte [esi + 0x127], 8
jne 0x55e0c8
mov cl, byte [esp + 0xc]
or cl, byte [esp + 0xa]
or cl, byte [esp + 8]
je 0x55e0c8
push 0xfa6e30
push esi
call fcn.005515d0
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00528b3b
add esp, 0xc
ret
push 6
lea edx, [esp + 0xc]
push edx
push 0xfa50f8
push esi
call fcn.0055d1b0
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00528b3b
add esp, 0xc
ret
mov cl, byte [esi + 0x127]
movzx eax, word [edi + 8]
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x55e122
push 0xfa6df0
push esi
call fcn.005515d0
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00528b3b
add esp, 0xc
ret
push eax
lea eax, [esp + 0xc]
push eax
call fcn.0055c1c0
push 2
lea ecx, [esp + 0x14]
push ecx
push 0xfa50f8
push esi
call fcn.0055d1b0
mov ecx, dword [esp + 0x28]
add esp, 0x18
pop edi
pop esi
xor ecx, esp
call fcn.00528b3b
add esp, 0xc
ret