joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415b20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [edi], 0
cmp dword [0x557318], 0
je 0x415b77
mov eax, dword [0x55af08]
test eax, eax
je 0x415b50
push eax
call dword [0x557374]
add esp, 4
lea edx, [ebp - 4]
mov ecx, 0x14
call fcn.00413280
mov eax, dword [0x55af08]
test eax, eax
je 0x415b72
push eax
call dword [0x55737c]
mov esi, dword [ebp - 4]
jmp 0x415b81
mov esi, dword [ebp - 4]
jmp 0x415b84
push 0x14
call dword [0x557344]
mov esi, eax
add esp, 4
test esi, esi
jne 0x415b92
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x55731c], 0
mov ebx, dword [ebp + 8]
je 0x415bdc
mov eax, dword [0x55741c]
test eax, eax
je 0x415bb5
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x415bdc
mov eax, dword [ebp - 8]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x415af0
push 0
push 0
mov dword [esi + 0xc], ebx
call fcn.004e916a
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x415be9
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x415c02
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov dword [esi + 4], eax
call dword [ebp - 8]
add esp, 4
mov dword [esi + 0x10], eax
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x420700
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, ecx
mov dword [esp + 4], edx
push esi
push edi
mov esi, dword [ebx + 0x88]
test esi, esi
je 0x42073e
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [eax], esi
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x88], eax
mov eax, dword [esi + 8]
mov dword [esi + 0x10], 0
movq qword [eax], xmm0
jmp 0x4207c2
movzx eax, word [ebx + 0x8c]
cdq
mov edi, eax
add edi, 0x28
mov ecx, edi
adc edx, 0
or ecx, edx
je 0x420772
push edx
push edi
call fcn.00413370
mov esi, eax
add esp, 8
test esi, esi
je 0x420774
push edi
push 0
push esi
call fcn.004e0850
add esp, 0xc
jmp 0x420774
xor esi, esi
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
test esi, esi
jne 0x4207b2
push dword [ebp + 8]
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 0x98]
dec ecx
mov esi, dword [ebx + 0x3c]
push 0
cdq
push ecx
mov edi, dword [esi]
push edx
push eax
call fcn.004d8f20
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x28]
mov dword [esi + 0x1c], 0x10020
mov dword [esi + 8], eax
mov dword [esi + 0x14], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esi + 4], eax
pop edi
mov dword [esi + 0x18], ecx
inc dword [ebx + 0x78]
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454c70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], ecx
push edi
mov dword [ebp - 8], ebx
xor edi, edi
cmp dword [ecx + 0x14], edi
jle 0x454d01
mov esi, dword [ebp + 8]
mov eax, edi
xor eax, 1
mov ecx, edi
cmp edi, 2
cmovl ecx, eax
mov dword [ebp - 0x10], ecx
test esi, esi
je 0x454d54
mov bl, byte [esi]
mov edx, ecx
mov ecx, dword [ebp - 4]
add edx, edx
mov eax, esi
mov ecx, dword [ecx + 0x10]
mov edx, dword [ecx + edx*8]
movzx ecx, bl
movzx esi, byte [ecx + 0x540eb0]
movzx ecx, byte [edx]
movzx ecx, byte [ecx + 0x540eb0]
sub esi, ecx
jne 0x454cf5
sub edx, eax
mov dword [ebp - 0xc], edx
test bl, bl
je 0x454d4a
movzx ecx, byte [edx + eax + 1]
inc eax
movzx edx, byte [ecx + 0x540eb0]
mov bl, byte [eax]
movzx ecx, bl
movzx esi, byte [ecx + 0x540eb0]
sub esi, edx
mov edx, dword [ebp - 0xc]
je 0x454cd1
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
inc edi
cmp edi, dword [ecx + 0x14]
jl 0x454c88
mov dl, byte [ebx]
movzx eax, dl
movzx eax, byte [eax + 0x540eb0]
sub eax, 0x73
jne 0x454d41
mov esi, str.sqlite_master
sub esi, ebx
nop dword [eax]
test dl, dl
je 0x454d78
movzx eax, byte [esi + ebx + 1]
inc ebx
movzx ecx, byte [eax + 0x540eb0]
mov dl, byte [ebx]
movzx eax, dl
movzx eax, byte [eax + 0x540eb0]
sub eax, ecx
je 0x454d20
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x454cf5
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 4]
add ecx, ecx
push 0
mov edx, ebx
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + ecx*8 + 0xc]
add ecx, 8
call fcn.00417e50
add esp, 4
mov eax, dword [eax + 8]
test eax, eax
jne 0x454d43
jmp 0x454cf8
mov ecx, dword [ebp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 0x10]
test edi, edi
jne 0x454d8e
neg edx
sbb edx, edx
jmp 0x454dd6
test edx, edx
je 0x454d41
movzx eax, byte [edx]
mov esi, edi
mov bl, byte [edi]
movzx ecx, byte [eax + 0x540eb0]
movzx eax, bl
movzx eax, byte [eax + 0x540eb0]
sub eax, ecx
jne 0x454dd1
sub edx, edi
test bl, bl
je 0x454dd1
movzx eax, byte [edx + esi + 1]
inc esi
movzx ecx, byte [eax + 0x540eb0]
mov bl, byte [esi]
movzx eax, bl
movzx eax, byte [eax + 0x540eb0]
sub eax, ecx
je 0x454db0
mov ecx, dword [ebp - 4]
mov edx, eax
test edx, edx
jne 0x454d41
mov ebx, str.sqlite_temp_master
mov dword [ebp - 8], ebx
jmp 0x454c81
Function at 0x454fa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], edx
xor edx, edx
mov dword [ebp - 8], ebx
push edi
xor edi, edi
mov dword [ebp - 4], edx
cmp dword [ebx + 0x14], edx
jle 0x45505e
push esi
mov eax, edi
mov ecx, edi
xor eax, 1
cmp edi, 2
cmovl ecx, eax
mov eax, dword [ebx + 0x10]
add ecx, ecx
mov edx, dword [eax + ecx*8 + 0xc]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 8]
test edx, edx
je 0x45503f
mov ebx, dword [eax + ecx*8]
mov esi, edx
mov al, byte [edx]
movzx ecx, byte [ebx]
movzx edx, byte [ecx + 0x540eb0]
movzx ecx, al
movzx ecx, byte [ecx + 0x540eb0]
sub ecx, edx
jne 0x455023
sub ebx, esi
test al, al
je 0x455038
movzx ecx, byte [ebx + esi + 1]
inc esi
movzx edx, byte [ecx + 0x540eb0]
mov al, byte [esi]
movzx ecx, al
movzx ecx, byte [ecx + 0x540eb0]
sub ecx, edx
je 0x455002
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
inc edi
cmp edi, dword [ebx + 0x14]
jl 0x454fc1
pop esi
pop edi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
test ecx, ecx
jne 0x455023
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
add ecx, 0x18
push 0
call fcn.00417e50
add esp, 4
mov edx, dword [eax + 8]
mov dword [ebp - 4], edx
test edx, edx
jne 0x45502f
jmp 0x455029
pop edi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x493760
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x556358]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x11c
lea eax, [ebp - 0x128]
mov edi, ecx
push 0
push eax
call fcn.004e0850
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x493844
cmp dword [ebp - 0x124], 6
jb 0x493844
push ebx
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0
push eax
push 8
push edi
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4937f5
pop ebx
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d7fbc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push 0x14
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x493825
cmp dword [ebp - 8], 4
jne 0x493825
cmp dword [ebp - 0xc], 0
setne bl
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d7fbc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004d7fbc
mov esp, ebp
pop ebp
ret
Function at 0x493860
Capabilities:
Check if file exists
Check os version
Create process on windows
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x590
mov eax, dword [0x556358]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4939c0
push 0x410
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004e0850
mov ecx, dword [ebp + 8]
add esp, 0xc
test ecx, ecx
je 0x4938c0
lea edx, [ebp - 0x414]
sub edx, ecx
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4938b0
lea ecx, [ebp - 0x414]
add ecx, 0xfffffffe
nop dword [eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4938d0
mov eax, dword [0x54aff0]
mov dword [ecx], eax
mov eax, dword [0x54aff4]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x11c
lea eax, [ebp - 0x554]
push 0
push eax
call fcn.004e0850
add esp, 0xc
mov dword [ebp - 0x554], 0x11c
lea eax, [ebp - 0x554]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x3c
lea eax, [ebp - 0x590]
push 0
push eax
call fcn.004e0850
mov eax, dword [ebp - 0x550]
add esp, 0xc
mov dword [ebp - 0x590], 0x3c
mov dword [ebp - 0x58c], 0x40
mov dword [ebp - 0x588], 0
cmp eax, 5
jb 0x493978
ja 0x49396e
jne 0x493978
cmp dword [ebp - 0x54c], 2
jbe 0x493978
mov dword [ebp - 0x584], str.runas
mov eax, dword [ebp - 0x580]
test esi, esi
mov dword [ebp - 0x578], 0
cmovne eax, esi
mov dword [ebp - 0x574], 0
mov dword [ebp - 0x580], eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x57c], eax
lea eax, [ebp - 0x590]
push eax
mov dword [ebp - 0x570], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.004d7fbc
mov esp, ebp
pop ebp
ret

Function at 0x4939e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x556358]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.004e0850
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x493a64
cmp dword [ebp - 0x11c], 6
jb 0x493a64
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x493a64
push str.ChangeWindowMessageFilter
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x493a5d
push 1
push 0x4a
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004d7fbc
mov esp, ebp
pop ebp
ret
Function at 0x493e80
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1820
call fcn.004d8ef0
mov eax, dword [0x556358]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004e0850
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004e0850
push 0x200
lea eax, [ebp - 0x814]
push 0
push eax
call fcn.004e0850
push 0x200
lea eax, [ebp - 0x614]
push 0
push eax
call fcn.004e0850
add esp, 0x30
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x181c], eax
lea eax, [ebp - 0x414]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x814]
push eax
push 0
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004e94fd
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x414]
push 0x5444cc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x414]
push eax
call fcn.004e7d7e
add esp, 0x28
lea eax, [ebp - 0x1818]
push eax
push 0x1000
lea eax, [ebp - 0x1814]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x493f80
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d7fbc
mov esp, ebp
pop ebp
ret
push ebx
push esi
xor esi, esi
test dword [ebp - 0x1818], 0xfffffffc
push edi
jbe 0x4940bc
mov ebx, dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
nop dword [eax + eax]
push dword [ebp + esi*4 - 0x1814]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
lea eax, [ebp - 0x20c]
push 0x208
push eax
push 0
push edi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x493fd4
sub ecx, edx
sar ecx, 1
jne 0x493ff4
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call ebx
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x494000
sub eax, edx
sar eax, 1
test eax, eax
jle 0x4940aa
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x814]
push eax
push 0
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004e94fd
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x20c]
push 0x5444cc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x20c]
push eax
call fcn.004e7d7e
lea ecx, [ebp - 0x20c]
add esp, 0x28
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x494070
sub ecx, edx
sar ecx, 1
je 0x4940aa
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004e7f04
add esp, 8
test eax, eax
jne 0x4940aa
mov eax, dword [ebp - 0x181c]
cmp eax, dword [ebp + esi*4 - 0x1814]
jne 0x4940cf
mov eax, dword [ebp - 0x1818]
inc esi
shr eax, 2
cmp esi, eax
jl 0x493fa0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d7fbc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d7fbc
mov esp, ebp
pop ebp
ret
Function at 0x494250
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x556358]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 8]
xor edi, edi
push eax
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
jne 0x49428e
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d7fbc
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 8], 2
jl 0x49430a
push 0x54b358
push dword [esi + 4]
call fcn.004e7f04
add esp, 8
test eax, eax
jne 0x4942ad
lea edi, [eax + 1]
jmp 0x49430a
cmp dword [ebp - 8], 2
jl 0x49430a
push 0x54b360
push dword [esi + 4]
call fcn.004e7f04
add esp, 8
test eax, eax
je 0x494303
push 0x54b368
push dword [esi + 4]
call fcn.004e7f04
add esp, 8
test eax, eax
je 0x494303
push str._help
push dword [esi + 4]
call fcn.004e7f04
add esp, 8
test eax, eax
je 0x494303
push str.__help
push dword [esi + 4]
call fcn.004e7f04
add esp, 8
test eax, eax
jne 0x49430a
call fcn.004940f0
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004d7fbc
mov esp, ebp
pop ebp
ret
Function at 0x494eb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x556358]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, ecx
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x104
push str.drivers
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004ea149
add esp, 0x10
lea eax, [ebp - 0x20c]
mov ecx, esi
push 0xffffffffffffffff
push eax
call fcn.00405730
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004d7fbc
mov esp, ebp
pop ebp
ret

Function at 0x496330
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add ecx, 0x18
pop ebp
jmp fcn.004073c0

Function at 0x496340
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add ecx, 0x18
pop ebp
jmp fcn.00407320

Function at 0x496350
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add ecx, 0x18
pop ebp
jmp fcn.00407270

Function at 0x4969d0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x556358]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [0x543184]
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push ecx
push edi
lea ecx, [ebp - 0x428]
push ecx
movups xmmword [ebp - 0x428], xmm0
push eax
mov ecx, esi
mov dword [ebp - 0x424], 7
call fcn.004071e0
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x496aad
push 0
lea ecx, [ebp - 0x418]
mov dword [ebp - 0x410], 0
push ecx
push 0x400
lea ecx, [ebp - 0x408]
mov dword [ebp - 0x414], 0
push ecx
push 0xc
lea ecx, [ebp - 0x414]
mov dword [ebp - 0x418], 0
push ecx
push 0x2d1400
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x496ac2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x496a84
jle 0x496a89
movzx eax, ax
or eax, 0x80070000
jmp 0x496a89
mov eax, 0x8007054f
test edi, edi
je 0x496a99
mov dword [edi], eax
test edi, edi
je 0x496a99
mov dword [edi], 0x80070032
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x496aad
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xffffffff
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d7fbc
mov esp, ebp
pop ebp
ret 8
test edi, edi
je 0x496acc
mov dword [edi], 0
cmp dword [ebp - 0x418], 0x28
jb 0x496a8f
cmp dword [ebp - 0x3ec], 0xe
jne 0x496a8f
mov eax, dword [ebp - 0x3f8]
cmp eax, 0x400
jae 0x496a8f
cmp dword [ebp + eax - 0x408], 0x436e6957
jne 0x496a8f
cmp dword [ebp + eax - 0x404], 0x756d4544
jne 0x496a8f
movzx eax, byte [ebp + eax - 0x400]
test al, al
jne 0x496a8f
cmp dword [ebp - 0x3e8], 0x14
jb 0x496b64
lea ecx, [ebp - 0x3e0]
mov edx, 0x557bd4
mov ebx, 0xc
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x496b64
add ecx, 4
add edx, 4
sub ebx, 4
jae 0x496b30
mov eax, esi
test edi, edi
je 0x496aaf
mov ecx, dword [ebp - 4]
mov dword [edi], 0
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004d7fbc
mov esp, ebp
pop ebp
ret 8
test edi, edi
je 0x496b6e
mov dword [edi], 0x80070032
mov ecx, esi
call fcn.00495380
jmp 0x496aad
Function at 0x498527
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
push 8
pop ecx
test ax, ax
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x49854a
or esi, 1
push 1
call edi
test ax, ax
jns 0x498556
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x498562
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x49856e
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret

Function at 0x49b3c7
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, dword [ebp + 8]
cmp eax, dword [ebx + 4]
je 0x49b3fa
cmp esi, dword [ebx + 0x60]
je 0x49b4bc
cmp byte [ebx + 0xc4], 0
jne 0x49b3fa
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
cmp esi, dword [ebx + 0x60]
je 0x49b4bc
cmp dword [ebx + 0x60], 0
push edi
je 0x49b44d
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x60]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x11c]
xor edi, edi
mov ecx, ebx
push edi
push edi
push edi
push str.killfocus
push dword [ebx + 0x60]
call fcn.0049b06c
mov dword [ebx + 0x60], edi
test esi, esi
je 0x49b4bb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
cmp eax, ebx
jne 0x49b4bb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xd8]
test al, al
je 0x49b4bb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xe8]
test al, al
je 0x49b4bb
push 7
pop ecx
xor eax, eax
mov dword [ebx + 0x60], esi
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x60]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x11c]
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
push str.setfocus
push dword [ebx + 0x60]
call fcn.0049b06c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x49c2d5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49c307
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x4a42c2
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x40]
cmp eax, dword [ebp + 8]
jne 0x4a4321
cmp byte [esi + 0x3a], 0
je 0x4a42f3
add dword [esi + 0x3c], 0xf
mov ecx, 0xff
cmp dword [esi + 0x3c], ecx
jle 0x4a4316
push eax
push dword [esi + 4]
mov dword [esi + 0x3c], ecx
call dword [sym.imp.USER32.dll_KillTimer]
jmp 0x4a4316
add dword [esi + 0x3c], 0xfffffffb
cmp dword [esi + 0x3c], 0
jg 0x4a4316
and dword [esi + 0x3c], 0
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 0x3c]
lea ecx, [esi + 0x48]
call fcn.0049b90a
pop esi
pop ebp
ret 4
Function at 0x4a9316
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2c4
mov eax, 0x525093
call fcn.004d8ac6
mov esi, ecx
mov ebx, dword [ebp + 8]
call fcn.004a96a5
call fcn.00498211
push eax
lea ecx, [ebp - 0x94]
call fcn.0049c50a
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00498217
mov ecx, eax
call fcn.0049cd4b
test al, al
je 0x4a942c
push ebx
lea ecx, [ebp - 0x94]
call fcn.0049c7a8
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.0049cbf1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0], eax
push edi
cmp eax, 0xffffffff
jne 0x4a939d
push str.Error_opening_file
jmp 0x4a950d
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x4a94a6
cmp edi, 0x400000
ja 0x4a94b7
and dword [ebp - 0x2c8], 0
push edi
call fcn.004d8036
pop ecx
mov ebx, eax
lea eax, [ebp - 0x2c8]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x2d0]
mov dword [ebp - 0x2cc], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], edi
je 0x4a9415
push ebx
call fcn.004d800e
pop ecx
mov ecx, esi
call fcn.004a96a5
push 0
push str.Could_not_read_file
jmp 0x4a950d
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call fcn.004a9558
push dword [ebp - 0x2cc]
jmp 0x4a953b
call fcn.00498217
push eax
lea ecx, [ebp - 0x94]
call fcn.0049c78b
call fcn.0049834a
test al, al
je 0x4a944d
call fcn.0049821d
jmp 0x4a9464
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.0049cbf1
push eax
call fcn.004b7094
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x4a9475
push eax
push str.Error_opening_zip_file
jmp 0x4a950d
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 1
push ebx
push edi
call fcn.004b6ad5
add esp, 0x14
test eax, eax
je 0x4a949c
push 0
push str.Could_not_find_ziped_file
jmp 0x4a950d
mov ebx, dword [ebp - 0x98]
test ebx, ebx
jne 0x4a94af
push 0
push str.File_is_empty
jmp 0x4a950d
cmp ebx, 0x400000
jbe 0x4a94c0
push 0
push str.File_too_large
jmp 0x4a950d
push ebx
call fcn.004d8036
push 3
push ebx
push eax
push dword [ebp - 0x2cc]
mov dword [ebp - 0x2c8], eax
push edi
call fcn.004b7454
add esp, 0x18
test eax, eax
je 0x4a9518
cmp eax, 0x600
je 0x4a9518
push dword [ebp - 0x2c8]
call fcn.004d800e
pop ecx
call fcn.0049834a
test al, al
jne 0x4a9506
push edi
call fcn.004b692f
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call fcn.004a96cd
mov bl, al
jmp 0x4a9543
call fcn.0049834a
test al, al
jne 0x4a9528
push edi
call fcn.004b692f
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x2c8]
mov ecx, esi
push ebx
push edi
call fcn.004a9558
push edi
mov bl, al
call fcn.004d800e
pop ecx
lea ecx, [ebp - 0x94]
call fcn.0049c665
mov al, bl
call fcn.004d8a81
ret 8