joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ac920
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
cmp dword [eax], 0x17
jne 0x4ac956
mov ecx, dword [ebp - 4]
call fcn.004acc70
movzx ecx, ax
push ecx
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x4aca81
mov edx, dword [ebp + 8]
cmp dword [edx], 0xd
jne 0x4ac9e3
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x34]
call eax
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ecx + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4ac9d9
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0x34]
call edx
mov ecx, dword [ebp - 4]
add ecx, 0x568
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [ecx + 0x10]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x560], edx
mov dword [ecx + 0x564], eax
mov edx, dword [ebp - 4]
mov byte [edx + 0x578], 1
jmp 0x4aca81
mov eax, dword [ebp + 8]
cmp dword [eax], 0xe
jne 0x4aca1e
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x578], 0
mov edx, dword [ebp - 4]
cmp dword [edx + 0x558], 0
je 0x4aca1a
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x558]
mov edx, dword [ebp - 4]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x558]
mov edx, dword [eax + 8]
call edx
jmp 0x4aca81
mov eax, dword [ebp + 8]
cmp dword [eax], 9
jne 0x4aca75
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x558], 0
je 0x4aca73
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x578]
test eax, eax
je 0x4aca73
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x4aca73
mov edx, dword [ebp + 8]
add edx, 0xc
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x558]
mov eax, dword [ebp - 4]
mov edx, dword [edx]
mov ecx, dword [eax + 0x558]
mov eax, dword [edx + 4]
call eax
jmp 0x4aca81
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.0042daf0
mov esp, ebp
pop ebp
ret 4
Function at 0x4aca90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
cmp dword [eax], 0xd
jne 0x4acb07
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x34]
call eax
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ecx + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4acafd
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + 0xc]
sub ecx, dword [eax]
mov edx, dword [ebp - 4]
mov dword [edx + 0x55c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 0x10]
sub edx, dword [ecx + 4]
mov eax, dword [ebp - 4]
mov dword [eax + 0x560], edx
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x564], 1
jmp 0x4acba0
mov edx, dword [ebp + 8]
cmp dword [edx], 0xe
jne 0x4acb42
mov eax, dword [ebp - 4]
mov byte [eax + 0x564], 0
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x558], 0
je 0x4acb3e
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x558]
mov ecx, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ecx + 0x558]
mov eax, dword [edx + 8]
call eax
jmp 0x4acba0
mov ecx, dword [ebp + 8]
cmp dword [ecx], 9
jne 0x4acb94
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x4acb94
mov eax, dword [ebp - 4]
cmp dword [eax + 0x558], 0
je 0x4acb92
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x564]
test edx, edx
je 0x4acb92
mov eax, dword [ebp + 8]
add eax, 0xc
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x558]
mov eax, dword [ebp - 4]
mov edx, dword [edx]
mov ecx, dword [eax + 0x558]
mov eax, dword [edx]
call eax
jmp 0x4acba0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.0042daf0
mov esp, ebp
pop ebp
ret 4
Function at 0x4b6ee0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e9c8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x546330]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 0x20]
test ecx, ecx
jne 0x4b6f1a
xor eax, eax
jmp 0x4b700d
mov ecx, dword [ebp - 0x10]
call fcn.004b7400
test eax, eax
je 0x4b6f68
lea edx, [ebp - 0x1c]
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
push 0x4b7a70
push 0
push 0
call fcn.004e6399
add esp, 0x18
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x10], 0
jne 0x4b6f59
xor eax, eax
jmp 0x4b700d
mov eax, 1
jmp 0x4b700d
mov eax, dword [ebp - 0x10]
add eax, 0x60
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x44]
push edx
lea ecx, [ebp - 0x24]
call fcn.00432260
mov dword [ebp - 4], 0
push 0xff
push 0xff
push 0xff
push 0xff
lea ecx, [ebp - 0x14]
call fcn.00432040
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
call fcn.00458c40
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x2c]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x28]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x10]
push edx
lea ecx, [ebp - 0x24]
call fcn.004b5100
mov eax, dword [ebp - 0x10]
add eax, 0x60
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
mov ecx, dword [ebp - 0x10]
call fcn.004b73e0
mov ecx, dword [ebp - 0x10]
call fcn.004b77e0
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004326a0
mov eax, dword [ebp - 0x18]
jmp 0x4b700d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x4be6f5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4be734
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4be734
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4be734
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4be734
cmp dword [ecx + 0x74], 0xe
jbe 0x4be734
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4bf3d0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [0x546330]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push 0x208
push eax
mov word [ebp - 0x224], ax
mov byte [ebp - 0x2c2], al
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 7
mov dword [ebp - 0x2cc], 1
mov dword [ebp - 0x2c8], 0x104
call fcn.004e2580
add esp, 0xc
lea eax, [ebp - 0x2c8]
lea ecx, [ebp - 0x2c1]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x2cc]
push eax
call fcn.004bf0c0
push eax
lea ecx, [ebp - 0x2c1]
call fcn.004bee80
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bf476
sub ecx, edx
sar ecx, 1
cmp ecx, 0x10
jb 0x4bf49f
push ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x224]
call fcn.00406e80
jmp 0x4bf4fd
lea eax, [ebp - 0x23c]
push eax
call fcn.00506c60
mov esi, eax
add esp, 4
lea eax, [ebp - 0x224]
cmp eax, esi
je 0x4bf4eb
mov ecx, eax
call fcn.004283b0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x224], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x214], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x23c]
call fcn.004050b0
mov byte [ebp - 0x2c2], 1
cmp dword [ebp - 0x210], 8
lea eax, [ebp - 0x224]
push 0xfde9
cmovae eax, dword [ebp - 0x224]
lea ecx, [ebp - 0x2c0]
push eax
call fcn.004bed00
push dword [ebp - 0x2c0]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
lea esi, [eax + 1]
test ebx, ebx
je 0x4bf5b0
push dword [ebp - 0x2c0]
call edi
mov edi, dword [ebp + 0xc]
inc eax
cmp eax, edi
jle 0x4bf54b
xor esi, esi
jmp 0x4bf5b0
push edi
push 0
push ebx
call fcn.004e2580
add esp, 0xc
push dword [ebp - 0x2c0]
push edi
push ebx
call fcn.004bf300
cmp byte [ebp - 0x2c2], 0
je 0x4bf5b0
cmp dword [ebp - 0x210], 8
lea ecx, [ebp - 0x224]
mov eax, dword [ebp - 0x214]
cmovae ecx, dword [ebp - 0x224]
add eax, eax
push eax
push ecx
push 1
lea ecx, [ebp - 0x2c1]
call fcn.004bf1e0
push eax
lea ecx, [ebp - 0x2c1]
call fcn.004befa0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov eax, dword [ebp - 0x2c0]
lea ecx, [ebp - 0x2bc]
cmp eax, ecx
je 0x4bf5c9
push eax
call fcn.004e5eaa
add esp, 4
mov edx, dword [ebp - 0x210]
cmp edx, 8
jb 0x4bf605
mov ecx, dword [ebp - 0x224]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4bf5fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bf61a
push edx
push ecx
call fcn.004bd6ef
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bd6ac
mov esp, ebp
pop ebp
ret 8
call fcn.004e61e1
int3
Function at 0x4f7982
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x52842c
push 0x528424
push str.FlsAlloc
push 0x1f
call fcn.004f77ad
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4f79b6
push dword [ebp + 8]
mov ecx, esi
call dword [0x512658]
call esi
jmp 0x4f79bc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4f7a00
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x52843c
push 0x528434
push str.FlsGetValue
push 0x21
call fcn.004f77ad
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4f7a37
push dword [ebp + 8]
mov ecx, esi
call dword [0x512658]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4f7a3f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x528444
push 0x52843c
push str.FlsSetValue
push 0x22
call fcn.004f77ad
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4f7a79
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x512658]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4fef81
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x546330]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4fefcc
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004ff11c
test al, al
jne 0x4fefc6
sub edx, 2
cmp edx, edi
jne 0x4fefac
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4fefee
lea eax, [edi + 2]
cmp edx, eax
je 0x4fefee
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004feecd
add esp, 0x10
jmp 0x4ff0e8
push esi
lea ecx, [ebp - 0x255]
call fcn.004ff11c
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4ff031
push dword [ebp - 0x25c]
jmp 0x4fefde
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4ff06e
cmp word [ebp - 0x226], 0
je 0x4ff08f
cmp word [ebp - 0x226], ax
jne 0x4ff06e
cmp word [ebp - 0x224], 0
je 0x4ff08f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004feecd
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4ff0db
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4ff048
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4ff0c3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4ff0e8
push 0x4fecfd
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00505120
add esp, 0x10
jmp 0x4ff0b8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bd6ac
leave
ret

Function at 0x4ff9fe
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4ffa0f
pop esi
ret
push ebx
push edi
push esi
call fcn.004ff9c7
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004f7e3e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4ffa37
push ebx
push esi
push edi
call fcn.004e2000
add esp, 0xc
push 0
call fcn.004f6e48
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4ffe07
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ffa4c
Function at 0x50211a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004f71c0
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x502189
cmp esi, dword [ebp - 4]
je 0x502184
cmp dword [ebp + 0xc], 0
je 0x502184
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x502161
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00501c6c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x50218b
xor eax, eax
inc eax
jmp 0x50218b
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x5021f0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x546330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004f71c0
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004f71c0
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x502267
cmp word [ecx], dx
je 0x502267
mov eax, dword [0x528e34]
push edi
dec eax
push eax
push 0x528d20
call fcn.0050218f
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x5022da
cmp word [eax], dx
je 0x5022da
mov eax, dword [edi]
test eax, eax
je 0x50228b
cmp word [eax], dx
je 0x50228b
lea eax, [ebp - 0x10]
push eax
call fcn.00501b72
jmp 0x502294
lea eax, [ebp - 0x10]
push eax
call fcn.00501c0d
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x502304
mov eax, dword [0x528d1c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x528a10
call fcn.0050218f
add esp, 0xc
test al, al
je 0x502304
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x5022cf
cmp word [eax], di
je 0x5022cf
lea eax, [ebp - 0x10]
push eax
call fcn.00501b72
pop ecx
jmp 0x502306
lea eax, [ebp - 0x10]
push eax
call fcn.00501c0d
jmp 0x5022cc
mov eax, dword [edi]
test eax, eax
je 0x5022f1
cmp word [eax], dx
je 0x5022f1
lea eax, [ebp - 0x10]
push eax
call fcn.00501b27
pop ecx
jmp 0x502304
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x5023cf
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00502014
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5023cf
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x5023cf
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x5023cf
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x50235c
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004f7c1b
test ebx, ebx
je 0x5023ca
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004f7c1b
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5023cf
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5023cf
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004f245e
add esp, 0x10
xor eax, eax
inc eax
jmp 0x5023d1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bd6ac
leave
ret
Function at 0x506960
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x50698d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x50698d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x507b30
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d10
call fcn.004be2f0
mov eax, dword [0x546330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2d10], eax
test eax, eax
je 0x507c92
cmp dword [ebp + 0xc], 0
je 0x507c92
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
nop dword [eax]
push esi
push str..PhysicalDrive_d
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.00507d30
add esp, 0x10
lea eax, [ebp - 0x204]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x507c75
push 0x2710
lea eax, [ebp - 0x2cfc]
mov dword [ebp - 0x2d0c], 0
push 0
push eax
mov dword [ebp - 0x2d00], 0
mov dword [ebp - 0x2d08], 0
mov dword [ebp - 0x2d04], 0
call fcn.004e2580
add esp, 0xc
lea eax, [ebp - 0x2d0c]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2cfc]
push eax
push 0xc
lea eax, [ebp - 0x2d08]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x507c6a
push 0x3e8
lea eax, [ebp - 0x5ec]
push 0
push eax
call fcn.004e2580
lea eax, [ebp - 0x5ec]
push eax
push 1
push dword [ebp - 0x2ce4]
lea eax, [ebp - 0x2cfc]
push eax
call fcn.00507f10
add esp, 0x1c
lea eax, [ebp - 0x5ec]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x2d10]
call fcn.004bf300
test eax, eax
mov eax, 1
cmove ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x507c7f
inc esi
cmp esi, 0x10
jl 0x507b70
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bd6ac
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004bd6ac
mov esp, ebp
pop ebp
ret
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x402cbc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], 0
jmp 0x402e24
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
test al, al
je 0x402ddf
mov byte [ebp - 0x16], 0x2c
lea eax, [ebp - 0x16]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x15]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], str._d_c_d_c
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._sscanf
cmp eax, 2
jg 0x402d1a
mov al, 0
jmp 0x402e30
mov al, byte [ebp - 0x15]
cmp al, 0x78
je 0x402d28
mov al, byte [ebp - 0x15]
cmp al, 0x58
jne 0x402d2f
mov al, byte [ebp - 0x16]
cmp al, 0x2c
je 0x402d36
mov al, 0
jmp 0x402e30
mov eax, dword [ebp - 0x10]
test eax, eax
jle 0x402d54
mov eax, dword [ebp - 0x10]
cmp eax, 4
jg 0x402d54
mov eax, dword [ebp - 0x14]
test eax, eax
jle 0x402d54
mov eax, dword [ebp - 0x14]
cmp eax, 4
jle 0x402d83
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x23
mov dword [esp + 4], 1
mov dword [esp], str.JPEG_sampling_factors_must_be_1..4_n
call sym._fwrite
mov al, 0
jmp 0x402e30
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x54]
mov edx, dword [ebp - 0xc]
mov eax, edx
shl eax, 2
add eax, edx
add eax, eax
add eax, edx
shl eax, 3
lea edx, [ecx + eax]
mov eax, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x54]
mov edx, dword [ebp - 0xc]
mov eax, edx
shl eax, 2
add eax, edx
add eax, eax
add eax, edx
shl eax, 3
lea edx, [ecx + eax]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0xc], eax
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
test al, al
je 0x402e21
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
cmp al, 0x2c
setne al
inc dword [ebp + 0xc]
test al, al
jne 0x402dc3
jmp 0x402e21
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x54]
mov edx, dword [ebp - 0xc]
mov eax, edx
shl eax, 2
add eax, edx
add eax, eax
add eax, edx
shl eax, 3
lea eax, [ecx + eax]
mov dword [eax + 8], 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x54]
mov edx, dword [ebp - 0xc]
mov eax, edx
shl eax, 2
add eax, edx
add eax, eax
add eax, edx
shl eax, 3
lea eax, [ecx + eax]
mov dword [eax + 0xc], 1
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 9
jle 0x402cce
mov al, 1
leave
ret