joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ced60
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push eax
lea eax, [ebp - 4]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0xc], ecx
call fcn.004cd150
mov edx, dword [ebp - 4]
add esp, 0x1c
mov esi, dword [ebp - 8]
movzx ecx, dx
shl ecx, 0x10
movzx eax, si
or ecx, eax
xor eax, eax
lea ebx, [ebx]
cmp ecx, dword [eax + 0x5de480]
je 0x4cee42
add eax, 4
cmp eax, 0xcc
jb 0x4cedb0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
mov esi, dword [ebp + 8]
push edx
push esi
call fcn.004cd330
add esp, 0x1c
cmp eax, 4
jne 0x4cedea
call fcn.004cd6b0
test eax, eax
jne 0x4cee42
mov ecx, dword [ebp + 0x14]
sub esp, 0x10
mov eax, esp
push esi
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0xc], ecx
call fcn.004c9f20
add esp, 0x14
test eax, eax
je 0x4cee39
mov ecx, dword [ebp + 0x14]
sub esp, 0x10
mov eax, esp
push esi
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0xc], ecx
call fcn.004cabc0
add esp, 0x14
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d0890
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x20
push edi
call fcn.004b6d40
add esp, 8
test eax, eax
jne 0x4d094d
cmp byte [edi], al
je 0x4d094d
push edi
call fcn.004e0760
add esp, 4
test eax, eax
je 0x4d08cb
cmp byte [eax], 0x30
je 0x4d094d
push str.glGetString
call fcn.004d0de0
mov esi, eax
add esp, 4
test esi, esi
je 0x4d094d
push 0x1f02
call esi
test eax, eax
je 0x4d0956
push eax
call fcn.004b6a40
add esp, 4
cmp eax, 3
jl 0x4d0956
push str.glGetStringi
mov dword [ebp - 4], 0
call fcn.004d0de0
push str.glGetIntegerv
mov ebx, eax
call fcn.004d0de0
add esp, 8
test ebx, ebx
je 0x4d094d
test eax, eax
je 0x4d094d
lea ecx, [ebp - 4]
push ecx
push 0x821d
call eax
xor esi, esi
cmp dword [ebp - 4], esi
jle 0x4d094d
push esi
push 0x1f03
call ebx
push edi
push eax
call fcn.004b6d70
add esp, 8
test eax, eax
je 0x4d09aa
inc esi
cmp esi, dword [ebp - 4]
jl 0x4d0931
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1f03
call esi
mov ebx, eax
test ebx, ebx
je 0x4d094d
push edi
push ebx
call fcn.004b6ff0
mov esi, eax
add esp, 8
test esi, esi
je 0x4d094d
push edi
call fcn.004b6e60
add esp, 4
add eax, esi
cmp esi, ebx
je 0x4d0988
cmp byte [esi - 1], 0x20
jne 0x4d0993
mov cl, byte [eax]
cmp cl, 0x20
je 0x4d09aa
test cl, cl
je 0x4d09aa
push edi
push eax
call fcn.004b6ff0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4d0973
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4da880
Capabilities:
Terminate process

Disassembly:
push esi
push str.SDL_RENDER_SCALE_QUALITY
call fcn.004ccc80
mov esi, eax
add esp, 4
test esi, esi
je 0x4da8e3
push str.nearest
push esi
call fcn.004b6ce0
add esp, 8
test eax, eax
je 0x4da8e3
push str.linear
push esi
call fcn.004b6ce0
add esp, 8
test eax, eax
jne 0x4da8bf
mov eax, 1
pop esi
ret
push str.best
push esi
call fcn.004b6ce0
add esp, 8
test eax, eax
jne 0x4da8d8
mov eax, 2
pop esi
ret
push esi
call fcn.004b6a40
add esp, 4
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4df170
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x5e9cd0], 0
jne 0x4df1f8
push 0x5e9cc8
mov dword [0x5e9cd8], 0x40000
mov dword [0x5e9cdc], 0x200000
mov dword [0x5e9ce0], 7
call fcn.004e0630
add esp, 4
cmp dword [0x5e9ccc], 0
jne 0x4df1d1
mov eax, dword [0x5e9ce0]
mov dword [0x5e9ccc], 0x58585858
mov dword [0x5e9ea0], 0
mov dword [0x5e9e9c], eax
push 0x5e9cc8
call fcn.004e0670
add esp, 4
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [0x5e9cd0], eax
mov eax, dword [ebp - 8]
mov dword [0x5e9cd4], eax
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4e0760
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x4e07ca
push esi
call fcn.004b6e60
add esp, 4
test eax, eax
je 0x4e07ca
push dword [0x5e9eb8]
push dword [0x5e9eb4]
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test edi, edi
je 0x4e07ca
cmp edi, dword [0x5e9eb8]
jbe 0x4e07c1
push edi
push dword [0x5e9eb4]
call fcn.004dee60
add esp, 8
test eax, eax
je 0x4e07ca
push edi
push eax
push esi
mov dword [0x5e9eb4], eax
mov dword [0x5e9eb8], edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov eax, dword [0x5e9eb4]
pop edi
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4e56b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 8
call fcn.004dee20
mov esi, dword [ebp + 8]
add esp, 4
mov edx, eax
mov ecx, dword [esi + 0x31c]
neg ecx
sbb ecx, ecx
and ecx, 0x10000
test edx, edx
jne 0x4e56e3
push eax
call fcn.004b5620
add esp, 4
pop esi
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov dword [edx + 4], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [esi + 0x31c]
mov dword [ebp + 8], 0
test edi, edi
je 0x4e571a
push ebx
lea ebx, [ebp + 8]
push ebx
push ecx
push edx
push 0x4e5690
push eax
push 0
call edi
add esp, 0x18
pop ebx
jmp 0x4e572e
lea edi, [ebp + 8]
push edi
push ecx
push edx
push 0x4e5690
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
pop edi
test eax, eax
jne 0x4e5746
push str.Not_enough_resources_to_create_thread
call fcn.004b58a0
add esp, 4
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4ec6f0
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push esi
push edi
call sub.KERNEL32.dll_GetCurrentThreadId
xor edi, edi
mov esi, eax
cmp dword [0x5e88e4], edi
jne 0x4b82c6
push 0x5e88ec
call fcn.004bf830
add esp, 4
cmp dword [0x5e88e4], edi
jne 0x4b82b9
call fcn.004d60e0
nop
mov dword [0x5e88e4], eax
test eax, eax
jne 0x4b82b9
push 0x5e88ec
call fcn.004bf890
add esp, 4
xor eax, eax
pop edi
pop esi
ret
push 0x5e88ec
call fcn.004bf890
add esp, 4
nop
push dword [0x5e88e4]
call fcn.004d6130
mov eax, dword [0x5e88e8]
add esp, 4
test eax, eax
je 0x4b8301
mov edi, edi
cmp dword [eax], esi
je 0x4b82fe
mov eax, dword [eax + 8]
test eax, eax
jne 0x4b82e0
push dword [0x5e88e4]
call fcn.004d61a0
add esp, 4
mov eax, edi
pop edi
pop esi
ret
mov edi, dword [eax + 4]
push dword [0x5e88e4]
call fcn.004d61a0
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp dword [0x5df114], 0xffffffff
jne 0x4ec74b
cmp dword [0x5e9fc0], 0
jne 0x4ec754
push 0x5e9fc4
call fcn.004bf830
add esp, 4
cmp dword [0x5df114], 0xffffffff
jne 0x4ec73e
cmp dword [0x5e9fc0], 0
jne 0x4ec73e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x4ec734
nop
mov dword [0x5df114], eax
jmp 0x4ec73e
mov dword [0x5e9fc0], 1
push 0x5e9fc4
call fcn.004bf890
add esp, 4
cmp dword [0x5e9fc0], 0
je 0x4ec759
jmp 0x4b8270
nop
push dword [0x5df114]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
ret

Function at 0x4ec770
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x5e9fc0], 0
je 0x4ec782
pop ebp
jmp fcn.004b8320
push dword [ebp + 8]
push dword [0x5df114]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x4ec7a2
mov dword [ebp + 8], 0x59b500
pop ebp
jmp fcn.004b58a0
xor eax, eax
pop ebp
ret
Function at 0x4ec8c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push esi
mov esi, dword [ebp + 0xc]
push 0x59b518
push esi
mov dword [ebp - 8], 0
call fcn.004ec880
add esp, 8
test eax, eax
je 0x4ec90f
mov esi, dword [ebp + 8]
push esi
call fcn.004b7f70
lea eax, [eax*2 + 2]
push eax
push esi
push str.UTF_16LE
push str.UTF_8
call fcn.004e1f10
add esp, 0x14
pop esi
mov esp, ebp
pop ebp
ret
movzx eax, byte [esi + 0xf]
push edi
push eax
movzx eax, byte [esi + 0xe]
push eax
movzx eax, byte [esi + 0xd]
push eax
movzx eax, byte [esi + 0xc]
push eax
movzx eax, byte [esi + 0xb]
push eax
movzx eax, byte [esi + 0xa]
push eax
movzx eax, byte [esi + 9]
push eax
movzx eax, byte [esi + 8]
push eax
movzx eax, byte [esi + 6]
push eax
movzx eax, byte [esi + 7]
push eax
movzx eax, byte [esi + 4]
push eax
movzx eax, byte [esi + 5]
push eax
movzx eax, byte [esi]
push eax
movzx eax, byte [esi + 1]
push eax
movzx eax, byte [esi + 2]
push eax
movzx eax, byte [esi + 3]
push eax
push str.SystemCurrentControlSetControlMediaCategories_02X_02X_02X_02X__02X_02X__02X_02X__02X_02X__02X_02X_02X_02X_02X_02X
lea eax, [ebp - 0x88]
push 0x80
push eax
call fcn.004b6ca0
lea eax, [ebp - 0x88]
push eax
call fcn.004b6e60
add esp, 0x50
inc eax
push eax
lea eax, [ebp - 0x88]
push eax
push str.UTF_8
push str.UTF_16LE
call fcn.004e1f10
add esp, 0x10
mov edi, eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push edi
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
mov esi, eax
call fcn.004dedf0
add esp, 4
test esi, esi
jne 0x4ec9fd
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push str.Name
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4ec9f4
mov eax, dword [ebp - 8]
add eax, 2
push eax
call fcn.004dee20
mov edi, eax
add esp, 4
test edi, edi
jne 0x4eca27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 8]
push esi
call fcn.004b7f70
lea eax, [eax*2 + 2]
push eax
push esi
push str.UTF_16LE
push str.UTF_8
call fcn.004e1f10
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push edi
push 0
push 0
push str.Name
push dword [ebp - 4]
call esi
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
test esi, esi
je 0x4eca79
call fcn.004dedf0
mov esi, dword [ebp + 8]
push esi
call fcn.004b7f70
lea eax, [eax*2 + 2]
push eax
push esi
push str.UTF_16LE
push str.UTF_8
call fcn.004e1f10
add esp, 0x18
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
xor ecx, ecx
shr eax, 1
mov word [edi + eax*2], cx
call fcn.004b7f70
lea eax, [eax*2 + 2]
push eax
push edi
push str.UTF_16LE
push str.UTF_8
call fcn.004e1f10
push edi
mov esi, eax
call fcn.004dedf0
add esp, 0x18
test esi, esi
jne 0x4ecad6
mov esi, dword [ebp + 8]
push esi
call fcn.004b7f70
lea eax, [eax*2 + 2]
push eax
push esi
push str.UTF_16LE
push str.UTF_8
call fcn.004e1f10
add esp, 0x14
mov esi, eax
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4ecbe0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x4ecc6b
push dword [ebp + 8]
call fcn.004ecb90
add esp, 4
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4ecc6b
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x4ecc58
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
push esi
call fcn.004b7f70
lea eax, [eax*2 + 2]
push eax
push esi
push str.UTF_16LE
push str.UTF_8
call fcn.004e1f10
add esp, 0x14
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
test esi, esi
je 0x4ecc6b
pop edi
mov eax, esi
pop esi
pop ebp
ret
push str.Couldnt_get_clipboard_data
call fcn.004ecae0
add esp, 4
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
mov dword [ebp + 8], 0x5aa8a4
pop ebp
jmp fcn.004b6da0

Function at 0x4ed570
Capabilities:
Log keystrokes via input method manager

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
add eax, 0x40
push 0x3e
push eax
push dword [ebp + 0x10]
push esi
call sub.IMM32.dll_ImmGetCompositionStringW
mov ebx, eax
xor eax, eax
push eax
push eax
test ebx, ebx
push 0x80
cmovs ebx, eax
push esi
shr ebx, 1
call sub.IMM32.dll_ImmGetCompositionStringW
movzx edx, ax
mov eax, dword [ebp + 8]
mov dword [eax + 0xa0], edx
cmp edx, 0x20
jae 0x4ed5e4
mov ecx, 0x3000
cmp word [eax + edx*2 + 0x40], cx
jne 0x4ed5e4
inc edx
cmp edx, ebx
jae 0x4ed5d9
push edi
lea edi, [eax + 0x3e]
mov ecx, ebx
lea esi, [eax + 0x40]
sub ecx, edx
lea edi, [edi + edx*2]
lea esi, [esi + edx*2]
rep movsw word es:[edi], word [esi]
pop edi
xor ecx, ecx
pop esi
mov word [eax + ebx*2 + 0x3e], cx
pop ebx
pop ebp
ret
xor ecx, ecx
pop esi
mov word [eax + ebx*2 + 0x40], cx
pop ebx
pop ebp
ret
Function at 0x4ee720
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push 0x1400
mov esi, dword [eax + 0x3e0]
xor eax, eax
push eax
mov word [esi + 0x40], ax
mov word [esi + 0x80], ax
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], eax
lea eax, [esi + 0xa8]
push eax
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
call fcn.004b6c20
push 0x10
lea eax, [esi + 0x14c4]
mov dword [esi + 0x14a8], 0
push 0
push eax
mov dword [esi + 0x14ac], 0
mov dword [esi + 0x14b0], 0
mov dword [esi + 0x14b4], 0
mov dword [esi + 0x14b8], 0
mov dword [esi + 0x14bc], 1
mov dword [esi + 0x14c0], 0
call fcn.004b6c20
push 0x10
lea eax, [esi + 0x14d4]
push 0
push eax
call fcn.004b6c20
mov dword [esi + 0x14e4], 0
mov dword [esi + 0x14e8], 0
mov dword [esi + 0x14ec], 0
mov dword [esi + 0x14f0], 0
mov dword [esi + 0x14f4], 0
mov dword [esi + 0x14f8], 0
mov dword [esi + 0x14fc], 0
mov dword [esi + 0x1500], 0
mov dword [esi + 0x1504], 0
mov dword [esi + 0x1508], 0
mov dword [esi + 0x150c], 0
mov dword [esi + 0x1510], 0
mov dword [esi + 0x1514], 0xffffffff
mov dword [esi + 0x1518], 0xffffffff
mov dword [esi + 0x151c], 0xffffffff
mov dword [esi + 0x1520], 0xffffffff
mov dword [esi + 0x1524], 0
mov dword [esi + 0x1528], 0
call fcn.004eead0
push str.Menu
push 0x65
call fcn.004cf760
push str.Left_Windows
push 0xe3
call fcn.004cf760
push str.Right_Windows
push 0xe7
call fcn.004cf760
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
add esp, 0x3c
push 0x14
call esi
and eax, 1
push eax
push 0x2000
call fcn.004cf780
add esp, 8
push 0x90
call esi
and eax, 1
push eax
push 0x1000
call fcn.004cf780
add esp, 8
pop esi
pop ebp
ret

Function at 0x4eead0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
lea eax, [ebp - 0x800]
push ebx
push esi
push edi
push eax
call fcn.004cef30
mov ebx, dword [sym.imp.USER32.dll_MapVirtualKeyW]
add esp, 4
xor esi, esi
mov eax, dword [esi*4 + 0x59b620]
test eax, eax
je 0x4eeb3c
lea edi, [ebp - 0x800]
test dword [edi + eax*4], 0x40000000
lea edi, [edi + eax*4]
jne 0x4eeb3c
cmp eax, 0x1e
jl 0x4eeb1a
cmp eax, 0x27
jle 0x4eeb3c
push 1
push esi
call ebx
test eax, eax
je 0x4eeb3c
push 2
push eax
call ebx
and eax, 0x7fff
je 0x4eeb3c
lea ecx, [eax - 0x41]
cmp ecx, 0x19
ja 0x4eeb3a
add eax, 0x20
mov dword [edi], eax
inc esi
cmp esi, 0x80
jb 0x4eeaf3
pop edi
pop esi
pop ebx
push 0x200
lea eax, [ebp - 0x800]
push eax
push 0
call fcn.004cf6b0
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x4f4a80
Capabilities:
Capture microphone audio

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push 0x12
push 0
push esi
call fcn.004b6c20
mov edx, dword [ebp + 8]
mov ecx, 0x100
add esp, 0xc
movzx eax, word [edx + 8]
and ax, cx
mov ecx, 0x80
or ax, cx
mov ecx, 0xff
shr ax, 7
mov word [esi], ax
and cx, word [edx + 8]
movzx eax, cx
mov word [esi + 0xe], ax
movzx eax, byte [edx + 0xa]
shr cx, 3
movzx ecx, cx
imul ecx, eax
push 1
mov word [esi + 2], ax
mov edx, dword [edx + 4]
push 0
movzx eax, cx
push 0
mov word [esi + 0xc], ax
imul eax, edx
cmp dword [ebp + 0x14], 0
push esi
push dword [ebp + 0xc]
mov dword [esi + 4], edx
mov dword [esi + 8], eax
push 0
je 0x4f4b07
call dword [sym.imp.WINMM.dll_waveInOpen]
neg eax
pop esi
sbb eax, eax
inc eax
pop ebp
ret
call dword [sym.imp.WINMM.dll_waveOutOpen]
neg eax
pop esi
sbb eax, eax
inc eax
pop ebp
ret

Function at 0x5167f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x5168ed
cmp byte [edi], 0
je 0x5168ed
push 0x20
push edi
call fcn.004b6d40
add esp, 8
test eax, eax
jne 0x5168ed
push edi
call fcn.004e0760
mov esi, dword [ebp + 0xc]
add esp, 4
test eax, eax
je 0x51684f
push eax
call fcn.004b6a40
add esp, 4
test al, 1
je 0x516842
test esi, esi
je 0x5168ed
test al, 2
je 0x51684f
cmp esi, 1
je 0x5168ed
push edi
call fcn.004b6e60
add esp, 4
mov ebx, eax
sub esi, 0
je 0x516879
sub esi, 1
jne 0x5168ed
mov ecx, dword [ebp + 8]
push 0x3055
push esi
mov eax, dword [ecx + 0x3e8]
jmp 0x51688a
mov eax, dword [ebp + 8]
push 0x3055
mov eax, dword [eax + 0x3e8]
push dword [eax + 8]
mov eax, dword [eax + 0x60]
call eax
mov esi, eax
test esi, esi
je 0x5168ed
cmp byte [esi], 0
je 0x5168ed
lea ebx, [ebx]
push edi
push eax
call fcn.004b6ff0
add esp, 8
test eax, eax
je 0x5168ed
cmp eax, esi
je 0x5168c4
cmp byte [eax - 1], 0x20
je 0x5168c4
mov cl, byte [eax + ebx]
add eax, ebx
cmp cl, 0x20
je 0x5168e9
jmp 0x5168d6
lea ecx, [eax + ebx]
mov eax, ecx
mov cl, byte [ecx]
cmp cl, 0x20
je 0x5168f4
test cl, cl
je 0x5168f4
mov cl, byte [eax]
mov dl, cl
mov cl, dl
test dl, dl
je 0x5168e9
mov cl, byte [eax + 1]
inc eax
mov dl, cl
cmp cl, 0x20
jne 0x5168d8
test cl, cl
jne 0x5168a0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret

Function at 0x51a380
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
test edi, edi
jle 0x51a3b8
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movzx ecx, byte [esi + eax]
movzx eax, bl
xor ecx, eax
push ecx
call fcn.0051a3c0
shr ebx, 8
inc esi
add esp, 4
xor ebx, eax
cmp esi, edi
jl 0x51a392
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret
Function at 0x51cdb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x30]
mov dword [ebp + 8], ecx
cmp dword [esi + 0x18], edi
jne 0x51ce3d
push dword [esi + 0xc]
mov dword [esi + 0x18], 1
push edi
push dword [esi + 0x1c]
call fcn.004b6c20
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 0x20]
push eax
lea eax, [ebp - 4]
push eax
push dword [esi + 0xc]
push dword [esi + 0x1c]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x51ce3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x51ce3a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov dword [esi + 0x18], edi
push 0x59fee8
push esi
call fcn.0051d210
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
test eax, eax
js 0x51ce59
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x51ce59
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 1
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x20]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [esi + 0x18], edi
test eax, eax
je 0x51ce22
mov eax, dword [ebp - 4]
test eax, eax
je 0x51ceb7
mov ecx, dword [esi + 0x1c]
mov edi, ebx
cmp byte [ecx], 0
jne 0x51cea5
dec eax
cmp ebx, eax
mov dword [ebp - 4], eax
cmova edi, eax
lea eax, [ecx + 1]
push edi
push eax
push dword [ebp + 0xc]
call fcn.004b6b40
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, eax
cmova edi, eax
push edi
push ecx
push dword [ebp + 0xc]
call fcn.004b6b40
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51cf10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov ecx, edi
mov dword [ebp - 4], ecx
movzx eax, word [esi + 8]
cmp edi, eax
jb 0x51cf31
mov eax, dword [ebp + 0xc]
mov ebx, eax
jmp 0x51cf62
push eax
call fcn.004dee20
push edi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
call fcn.004b6b40
movzx ecx, word [esi + 8]
lea eax, [ebx + edi]
sub ecx, edi
push ecx
push 0
push eax
call fcn.004b6c20
movzx edi, word [esi + 8]
add esp, 0x1c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
cmp edi, 0x200
jbe 0x51cf7c
push ecx
push eax
push esi
call fcn.0051cee0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x34]
push eax
push 0
push edi
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x51cf9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x51cfd7
push dword [ebp + 0x14]
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x51cfc1
push str.WriteFile_WaitForSingleObject_Timeout
push esi
mov dword [ebp + 0x10], 0xffffffff
call fcn.0051d210
jmp 0x51cfe9
push 0
lea eax, [ebp + 0x10]
push eax
lea eax, [esi + 0x34]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x51cfec
push 0x59feb4
push esi
call fcn.0051d210
mov dword [ebp + 0x10], 0xffffffff
add esp, 8
cmp ebx, dword [ebp + 0xc]
je 0x51cffa
push ebx
call fcn.004dedf0
add esp, 4
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x57619d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x5761dc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5761dc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5761dc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x5761dc
cmp dword [ecx + 0x74], 0xe
jbe 0x5761dc
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x2f26350a
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x6f48198f
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
jmp loc.00401219