joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b105
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x46b21d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46b21d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004ae982
mov esi, eax
test esi, esi
je 0x46b21d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x46b21d
mov ecx, esi
call fcn.0046b070
cmp edi, eax
jge 0x46b21d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x46b1a3
mov dword [esp + 0x34], 1
jmp 0x46b1fe
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46b21d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004698e0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x470bb0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x470bfa
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x470c29
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x470c6b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x47a580
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x47a5cc
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x47a5cc
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x47a5b6
push eax
call ebp
test ax, ax
jl 0x47a5c4
inc esi
add edi, 4
cmp esi, 6
jb 0x47a5a8
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.0047a280
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x47e100
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x47e160
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x47e160
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x47e160
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x47e160
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x47e170
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x47f8c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
lea eax, [esp]
push esi
push eax
push 1
push 0
push str.Control_PanelDesktop
push reloc.WS2_32.dll_accept
mov esi, 3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x47f933
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.WheelScrollLines
push ecx
mov dword [esp + 0x20], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x47f928
push 0xa
lea edx, [esp + 0x14]
push eax
push edx
call fcn.0049e05b
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x8c
ret

Function at 0x4915b0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4c08e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004b3b5c
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov ecx, esi
mov dword [esp + 0x44], 0
call fcn.004914f0
mov ecx, dword [esi + 0x174]
mov eax, dword [esi + 0x178]
add ecx, 0x64
add eax, 0x64
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004b3a8a
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x491677
cmp dword [esp + 0x40], 1
jne 0x491675
cmp ecx, eax
jge 0x491677
mov eax, ecx
cmp eax, 0x12c
jge 0x491683
mov eax, 0x12c
mov ecx, esi
mov dword [esi + 0x194], eax
mov dword [esi + 0x1dc], 1
call fcn.004916d0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004b3bce
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4959b0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4c0dd6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x5463b0]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xb0], ebx
call fcn.004af325
mov edx, dword [0x5463b0]
mov dword [esp + 0x3c], edx
cmp esi, ebx
mov byte [esp + 0xac], 1
jne 0x495a0a
mov dword [esp + 0x1c], ebx
jmp 0x495a11
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
push edi
mov ecx, esi
call fcn.004b1470
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edx
call fcn.004ad005
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x1c], ecx
jne 0x495a62
mov dword [esp + 0x14], ebx
jmp 0x495a69
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x44], 0xd
jne 0x495a84
mov eax, dword [eax + 0x3c8]
cmp eax, edi
je 0x495a7e
cmp eax, 2
jne 0x495a84
mov dword [esp + 0x18], edi
jmp 0x495a88
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x495a96
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004ae95b
mov edi, eax
cmp edi, ebx
jne 0x495aa6
xor eax, eax
jmp 0x495aa9
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x495ad1
mov ecx, esi
call fcn.004b1470
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call ebx
test eax, eax
pop edi
je 0x495aed
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x495b0c
mov esi, dword [esp + 0x10]
push esi
call ebx
test eax, eax
je 0x495b0c
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0xac], 0
call fcn.004acf18
lea ecx, [esp + 0xc]
mov dword [esp + 0xac], 0xffffffff
call fcn.004acf18
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x496770
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4c0ee6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x5463b0]
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], eax
lea ecx, [esp + 8]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xac], ebx
call fcn.004af325
cmp dword [0x57b580], ebx
je 0x4967e0
lea ecx, [esp + 8]
mov dword [esp + 0xa8], 0xffffffff
call fcn.004acf18
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
add esp, 0xa4
ret
mov edx, dword [0x5463b0]
push ebp
push edi
mov edi, 1
mov dword [0x57b580], edi
mov dword [esp + 0x40], edx
cmp esi, ebx
mov byte [esp + 0xb0], 1
jne 0x496809
mov dword [esp + 0x20], ebx
jmp 0x496810
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x20], eax
mov ecx, esi
call fcn.004b1470
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], 5
mov dword [esp + 0x34], edx
call fcn.004ad005
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x1c], edx
jne 0x49686e
mov dword [esp + 0x14], ebx
jmp 0x496875
mov ebp, dword [eax + 0x1c]
mov dword [esp + 0x14], ebp
cmp ecx, 0xd
jne 0x49688f
mov eax, dword [eax + 0x3c8]
cmp eax, edi
je 0x496889
cmp eax, 2
jne 0x49688f
mov dword [esp + 0x18], edi
jmp 0x496893
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x4968a1
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004ae95b
mov edi, eax
cmp edi, ebx
jne 0x4968b1
xor eax, eax
jmp 0x4968b4
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4968dc
mov ecx, esi
call fcn.004b1470
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov esi, dword [esp + 0x1c]
push esi
call ebx
test eax, eax
je 0x4968f4
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x18]
mov dword [0x57b580], 0
test eax, eax
je 0x49691d
mov esi, dword [esp + 0x14]
push esi
call ebx
test eax, eax
je 0x49691d
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0xb0], 0
call fcn.004acf18
lea ecx, [esp + 0x10]
mov dword [esp + 0xb0], 0xffffffff
call fcn.004acf18
mov ecx, dword [esp + 0xa8]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x4af325
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4af35d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ad373
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ad34b
jmp 0x4af369
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b0b9f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b0be1
call fcn.004b71d4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b0be1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b0bd8
xor eax, eax
jmp 0x4b0be9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b0bef
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b7704
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b7732
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b7750
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b766a
jmp 0x4b7750
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b7750
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b766a
test edi, edi
mov eax, edi
jne 0x4b773a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4b9fa7
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x4b9fcf
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x4b9fe0
push 2
call edi
test ax, ax
jge 0x4b9fe0
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004ae95b
cmp dword [esi + 0x30], ebx
jne 0x4ba0ba
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004ae95b
cmp eax, dword [esp + 0x34]
jne 0x4ba0ba
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x4ba056
push 1
push pe_nt_image_headers32
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x4ba09b
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x4ba0ba
cmp eax, 0x205
je 0x4ba0ba
cmp eax, 0x201
je 0x4ba0ba
cmp eax, 0x204
je 0x4ba0ba
cmp eax, ebx
jne 0x4ba081
cmp dword [esp + 0x1c], 0x1b
je 0x4ba0ba
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x57d330]
jbe 0x4ba0b0
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x4ba013
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x10025485
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
lea edx, [ecx + eax]
xor eax, eax
cmp ecx, edx
jae 0x100254a8
push esi
movzx esi, byte [ecx]
imul eax, eax, 0x1000193
xor eax, esi
inc ecx
cmp ecx, edx
jb 0x10025497
pop esi
ret

Function at 0x100254a9
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
cmp dword [esp + 8], 0
mov eax, 0x811c9dc5
je 0x100254d2
mov ecx, dword [esp + 4]
movzx edx, byte [ecx]
dec dword [esp + 8]
xor edx, eax
imul edx, edx, 0x1000193
inc ecx
cmp dword [esp + 8], 0
mov eax, edx
jne 0x100254b9
imul eax, eax, 0x2001
mov ecx, eax
shr ecx, 7
xor ecx, eax
imul ecx, ecx, 9
mov eax, ecx
shr eax, 0x11
xor eax, ecx
imul eax, eax, 0x21
ret
Function at 0x1003ae10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 0xc], edi
jmp 0x1003ae23
mov edi, dword [ebp - 0xc]
mov ebx, dword [esi + 0x3c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub ebx, eax
lea edx, [edi + ecx - 0x106]
mov dword [ebp - 4], ebx
cmp eax, edx
jb 0x1003aea1
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.1003f736
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x1003ae71
sub eax, edi
jmp 0x1003ae73
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x1003ae62
mov ecx, dword [esi + 0x40]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x1003ae92
sub eax, edi
jmp 0x1003ae94
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x1003ae83
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x1003afcc
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 4]
mov ebx, ecx
mov dword [ebp - 8], eax
cmp ebx, edx
jbe 0x1003aec7
mov ebx, edx
test ebx, ebx
je 0x1003af17
mov edx, dword [edi + 0x1c]
sub ecx, ebx
mov dword [edi + 4], ecx
mov ecx, dword [edx + 0x18]
cmp ecx, 1
jne 0x1003aeea
mov eax, dword [edi]
mov ecx, dword [edi + 0x30]
push ebx
push eax
push ecx
call fcn.1003d200
jmp 0x1003aefc
cmp ecx, 2
jne 0x1003af05
mov edx, dword [edi]
mov eax, dword [edi + 0x30]
push ebx
push edx
push eax
call fcn.1003d750
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 8]
add esp, 0xc
mov ecx, dword [edi]
push ebx
push ecx
push eax
call fcn.1003f736
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov ebx, dword [esi + 0x74]
cmp ebx, 3
jb 0x1003af41
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x58]
add edx, eax
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x1003af55
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x1003ae20
mov eax, dword [esi + 0x16c0]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jae 0x1003afcc
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp eax, edi
jae 0x1003af9b
sub ecx, edi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x1003af7c
mov ebx, 0x102
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.1003f816
add esp, 0xc
add ebx, edi
pop edi
mov dword [esi + 0x16c0], ebx
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [edi + 0x102]
cmp eax, edx
jae 0x1003afcc
sub edi, eax
add edi, 0x102
sub ecx, eax
cmp edi, ecx
jbe 0x1003afb5
mov edi, ecx
mov ecx, dword [esi + 0x38]
push edi
add ecx, eax
push 0
push ecx
call fcn.1003f816
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x963216
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
call fcn.00963025
push word [esp + 6]
pop dword [esp + 4]
mov byte [esp + 6], bh
mov dword [esp + 0x40], edi
lea esp, [esp + 0x40]
jmp 0x963259
push word [esp + 5]
pop dword [esp]
mov dword [esp], eax
push word [esp + 3]
push dword [esp + 3]
jmp 0x9631fb
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
jmp 0x963020
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x963238
Function at 0x401290
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x407018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
or esi, 0xffffffff
xor ecx, ecx
lea esp, [esp]
mov eax, ecx
shr eax, 1
mov dword [ebp + ecx*4 - 0x404], ecx
test cl, 1
je 0x4012c5
xor eax, 0xedb88320
mov dword [ebp + ecx*4 - 0x404], eax
test al, 1
je 0x4012d9
shr eax, 1
xor eax, 0xedb88320
jmp 0x4012db
shr eax, 1
mov dword [ebp + ecx*4 - 0x404], eax
test al, 1
je 0x4012ef
shr eax, 1
xor eax, 0xedb88320
jmp 0x4012f1
shr eax, 1
mov dword [ebp + ecx*4 - 0x404], eax
test al, 1
je 0x401305
shr eax, 1
xor eax, 0xedb88320
jmp 0x401307
shr eax, 1
mov dword [ebp + ecx*4 - 0x404], eax
test al, 1
je 0x40131b
shr eax, 1
xor eax, 0xedb88320
jmp 0x40131d
shr eax, 1
mov dword [ebp + ecx*4 - 0x404], eax
test al, 1
je 0x401331
shr eax, 1
xor eax, 0xedb88320
jmp 0x401333
shr eax, 1
mov dword [ebp + ecx*4 - 0x404], eax
test al, 1
je 0x401347
shr eax, 1
xor eax, 0xedb88320
jmp 0x401349
shr eax, 1
mov dword [ebp + ecx*4 - 0x404], eax
test al, 1
je 0x40135d
shr eax, 1
xor eax, 0xedb88320
jmp 0x40135f
shr eax, 1
mov dword [ebp + ecx*4 - 0x404], eax
inc ecx
cmp ecx, 0x100
jb 0x4012b0
xor ecx, ecx
test edx, edx
je 0x40139a
lea esp, [esp]
movzx eax, byte [ecx + edi]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [ebp + eax*4 - 0x404]
inc ecx
cmp ecx, edx
jb 0x401380
mov ecx, dword [ebp - 4]
not esi
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004035a2
mov esp, ebp
pop ebp
ret

Function at 0x4013b0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x407018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x108], edx
mov dword [ebp - 0x10c], ecx
xor eax, eax
jmp 0x4013e0
mov byte [ebp + eax - 0x104], al
inc eax
cmp eax, 0x100
jb 0x4013e0
xor edi, edi
xor esi, esi
mov dl, byte [ebp + esi - 0x104]
mov eax, esi
and eax, 0xf
movzx ecx, dl
movzx eax, byte [eax + ebx]
add edi, eax
add edi, ecx
and edi, 0xff
inc esi
mov al, byte [ebp + edi - 0x104]
mov byte [ebp + esi - 0x105], al
mov byte [ebp + edi - 0x104], dl
cmp esi, 0x100
jb 0x4013f3
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp dword [ebp - 0x108], ebx
jbe 0x40149d
lea esp, [esp]
inc esi
and esi, 0xff
inc edi
mov dl, byte [ebp + esi - 0x104]
movzx eax, dl
add ebx, eax
and ebx, 0xff
movzx eax, byte [ebp + ebx - 0x104]
mov byte [ebp + esi - 0x104], al
mov byte [ebp + ebx - 0x104], dl
movzx ecx, byte [ebp + esi - 0x104]
movzx eax, dl
add ecx, eax
and ecx, 0xff
movzx eax, byte [ebp + ecx - 0x104]
mov ecx, dword [ebp - 0x10c]
xor byte [ecx + edi - 1], al
cmp edi, dword [ebp - 0x108]
jb 0x401440
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004035a2
mov esp, ebp
pop ebp
ret 4
Function at 0x401ab0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa5c
mov eax, dword [0x407018]
xor eax, esp
mov dword [esp + 0xa58], eax
push ebx
push esi
mov eax, ecx
push edi
push eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x664]
push str._s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x664]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401b8e
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
je 0x401b87
mov ebx, dword [sym.imp.MSVCR110.dll_wcsstr]
cmp word [esp + 0x3c], 0x2e
je 0x401b7b
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x268]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
test byte [esp + 0x10], 0x10
je 0x401b5c
lea ecx, [esp + 0x260]
call fcn.00401ab0
jmp 0x401b7b
lea eax, [esp + 0x3c]
push str..exe
push eax
call ebx
add esp, 8
test eax, eax
je 0x401b7b
lea ecx, [esp + 0x260]
call fcn.004019b0
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x401b20
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0xa64]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004035a2
mov esp, ebp
pop ebp
ret