joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416ac0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x441ea3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebx, 0x44501c
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edi
mov eax, dword [ecx]
call dword [eax]
mov esi, dword [edi + 0x4c]
xor ebp, ebp
mov dword [esp + 0x28], ebp
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea edx, [eax + 1]
cmp edx, ecx
jbe 0x416bf6
mov eax, dword [esi + 8]
cmp eax, ebp
jne 0x416b2b
push str.SSLifo0001e:_Stack_full
push 8
mov ecx, esi
call fcn.0040f160
jmp 0x416c0d
lea edi, [eax + ecx]
lea eax, [edi*8 + 4]
push eax
call fcn.00427cde
add esp, 4
mov dword [esp + 0x30], eax
cmp eax, ebp
mov byte [esp + 0x28], 1
je 0x416b6b
push 0x401401
push 0x418e20
lea ebp, [eax + 4]
push edi
push 8
push ebp
mov dword [eax], edi
call fcn.00428f4b
mov edi, ebp
mov dword [esp + 0x30], edi
jmp 0x416b71
mov dword [esp + 0x30], ebp
mov edi, ebp
mov eax, dword [esi + 0x14]
xor ebx, ebx
test eax, eax
mov byte [esp + 0x28], 0
jbe 0x416bc8
mov eax, 0xfffffffc
lea ebp, [edi + 4]
sub eax, edi
mov dword [esp + 0x10], eax
jmp 0x416b93
mov eax, dword [esp + 0x10]
mov edi, dword [esi + 0x10]
add edi, eax
add edi, ebp
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x416ba5
mov edx, dword [ecx]
call dword [edx]
mov ecx, dword [ebp]
test ecx, ecx
je 0x416bb3
mov eax, dword [ecx]
push 1
call dword [eax + 8]
mov ecx, dword [edi + 4]
inc ebx
mov dword [ebp], ecx
mov eax, dword [esi + 0x14]
add ebp, 8
cmp ebx, eax
jb 0x416b8f
mov edi, dword [esp + 0x30]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x416bd5
mov edx, dword [ecx]
push 3
call dword [edx]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
add ecx, eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], edi
lea ecx, [edi + eax*8 - 8]
mov edi, dword [esp + 0x14]
mov dword [esi + 4], ecx
mov ebx, 0x44501c
mov ecx, dword [esi + 4]
lea edx, [esp + 0x18]
inc eax
add ecx, 8
push edx
mov dword [esi + 0xc], eax
mov dword [esi + 4], ecx
call fcn.00418e30
mov eax, dword [esi]
mov dword [esi], 0
mov ecx, dword [esp + 0x1c]
mov dword [edi + 4], eax
test eax, eax
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x18], ebx
je 0x416c3e
test ecx, ecx
je 0x416c37
mov eax, dword [ecx]
push 1
call dword [eax + 8]
mov eax, 1
jmp 0x416c4b
test ecx, ecx
je 0x416c49
mov edx, dword [ecx]
push 1
call dword [edx + 8]
xor eax, eax
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x42f938
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4520e0
cmp edx, dword [eax]
je 0x42f95a
add eax, 8
inc ecx
cmp eax, 0x452170
jl 0x42f94b
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4520e0]
jne 0x42fa88
mov eax, dword [0x45444c]
cmp eax, 1
je 0x42fa62
test eax, eax
jne 0x42f98b
cmp dword [0x44f808], 1
je 0x42fa62
cmp edx, 0xfc
je 0x42fa88
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42f9c2
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0042d4e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00429790
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x42fa05
lea eax, [ebp - 0x1a4]
push eax
call fcn.00429790
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x446130
push edi
call fcn.00431770
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0042d4e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0042d4f0
lea eax, [ebp - 0xa0]
push 0x446110
push eax
call fcn.0042d4f0
push dword [esi + 0x4520e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0042d4f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00433750
add esp, 0x2c
pop edi
jmp 0x42fa88
lea eax, [ebp + 8]
lea esi, [esi + 0x4520e4]
push 0
push eax
push dword [esi]
call fcn.00429790
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..00cfg
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x76115c34
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x53670b49
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x751326b4
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x8cc5380
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401190
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x435360]
test eax, eax
push esi
push edi
je 0x4011eb
mov eax, dword [esp + 0x10]
mov edx, dword [0x434054]
mov ecx, dword [0x434058]
lea esi, [edx + eax]
cmp esi, ecx
jl 0x4011b6
sub ecx, edx
mov eax, ecx
test eax, eax
jle 0x40125f
mov esi, dword [0x434050]
mov edi, dword [esp + 0xc]
add esi, edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x434054]
add ecx, eax
pop edi
mov dword [0x434054], ecx
pop esi
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
push eax
push ecx
push 1
push esi
call fcn.00420378
mov edi, eax
mov eax, dword [0x435350]
add esp, 0x10
test eax, eax
je 0x40125d
test edi, edi
jle 0x40125d
mov edx, dword [0x4351bc]
mov eax, dword [0x4351a0]
lea ecx, [eax + edx]
mov edx, dword [0x4351ac]
mov eax, dword [0x4351a8]
add eax, edx
and ecx, 0xff
and eax, 0xff
test edi, edi
jle 0x40125d
mov dl, byte [0x4351b4]
push ebx
push ebp
mov ebp, edi
mov bl, byte [esi]
xor bl, cl
sub bl, al
add dl, bl
mov byte [esi], dl
inc esi
dec ebp
jne 0x401247
pop ebp
mov byte [0x4351b4], dl
pop ebx
mov eax, edi
pop edi
pop esi
ret

Function at 0x411780
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x44
mov cl, byte [esp + 0x50]
test cl, 2
mov dword [esp], 0
mov dword [esp + 4], 0
mov eax, 0xa
je 0x4117a5
mov eax, 2
mov edx, dword [esp + 0x4c]
cmp byte [edx], 0
je 0x41185c
push edi
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [0x4361fc]
mov ecx, dword [eax + 0x34]
lea eax, [esp + 4]
push eax
push edx
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], ecx
call fcn.0041f7e0
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x28], eax
call fcn.0041f7e0
mov dword [esp + 0x2c], eax
add esp, 0x10
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x2c], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
pop edi
lea ecx, [esp]
push ecx
jne 0x411846
call fcn.0041f7f0
lea edx, [esp + 8]
push edx
call fcn.0041f7f0
add esp, 8
push 0x432754
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x58], 0xe
call fcn.00420833
call fcn.0041f7f0
lea edx, [esp + 8]
push edx
call fcn.0041f7f0
add esp, 8
add esp, 0x44
ret
test cl, 0x10
push esi
push eax
lea eax, [esp + 8]
je 0x41188c
mov ecx, dword [esp + 0x50]
push 0x42d3a1
push 0x42d3a1
push eax
push ecx
call fcn.0041f7e0
add esp, 8
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x4118ca
test cl, 0x20
mov ecx, dword [esp + 0x50]
je 0x4118b9
push 0x42d3a1
push 0x42d3a1
push eax
push ecx
call fcn.0041f7e0
add esp, 8
push eax
push str.print
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x4118ca
push eax
push ecx
call fcn.0041f7e0
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
lea edx, [esp + 4]
push edx
mov esi, eax
call fcn.0041f7f0
add esp, 4
cmp esi, 0x20
pop esi
jge 0x411858
push 0x432754
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x58], 0xe
call fcn.00420833
int3
Function at 0x414cd0
Capabilities:
Log keystrokes

Disassembly:
push ecx
push edi
push esi
call dword [sym.imp.USER32.dll_TranslateMessage]
push esi
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [0x43621c]
test byte [eax + 0x30c], 2
je 0x414d5c
mov edx, dword [esi + 4]
cmp edx, 0x200
mov edi, dword [0x436214]
jne 0x414d3d
test edi, edi
movzx eax, word [esi + 0xc]
movzx ecx, word [esi + 0xe]
jne 0x414d32
cmp dword [0x43620c], eax
jne 0x414d1b
cmp dword [0x436210], ecx
je 0x414d3d
push 0x432754
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.00420833
mov dword [0x43620c], eax
mov dword [0x436210], ecx
cmp edx, 0x100
jne 0x414d5c
test edi, edi
jne 0x414d5c
push 0x432754
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], edi
call fcn.00420833
cmp dword [esi + 4], 0x100
jne 0x414d9a
cmp dword [esi + 8], 9
jne 0x414d70
call fcn.00414a40
push 2
call fcn.00403f50
add esp, 4
test eax, eax
je 0x414d9a
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ecx
push eax
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push 2
call fcn.00404d10
add esp, 0x10
pop edi
pop ecx
ret
Function at 0x414da0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x38]
cmp dword [edi + 0xec], 9
je 0x414f5b
mov ebx, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov ebp, dword [sym.imp.WINMM.dll_timeGetTime]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x414df4
cmp dword [esp + 0x1c], 0x12
je 0x414f6d
lea esi, [esp + 0x18]
call fcn.00414cd0
jmp 0x414f4e
mov eax, dword [edi + 0xec]
dec eax
cmp eax, 7
ja case.0x414e04.4
jmp dword [eax*4 + 0x414fcc]
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
cmp dword [esp + 0x1c], 0x12
je 0x414f84
lea esi, [esp + 0x18]
call fcn.00414cd0
cmp dword [edi + 0xec], 3
je case.0x414e04.3
push 0xff
push 0x3e8
push 0
push 0
push 0
call ebx
jmp 0x414f4e
cmp dword [0x434168], 0xffffffff
jne 0x414e66
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x414e68
call ebp
push eax
call fcn.00403cb0
add esp, 4
mov dword [edi + 0xec], eax
cmp dword [0x434168], 0xffffffff
jne 0x414ed7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
push esi
call fcn.00403cf0
add esp, 4
test eax, eax
je 0x414eb0
mov edx, dword [edi + 0xf8]
push 0xff
sub edx, esi
push edx
push 0
push 0
push 0
call ebx
jmp 0x414f4e
mov eax, dword [0x43621c]
test byte [eax + 0x30c], 2
je 0x414f4e
mov eax, dword [0x436214]
test eax, eax
je 0x414f4e
dec eax
mov dword [0x436214], eax
jmp 0x414f4e
call ebp
mov esi, eax
add esi, 5
push esi
call fcn.00403cf0
add esp, 4
test eax, eax
je 0x414f03
mov ecx, dword [edi + 0xf8]
push 0xff
sub ecx, esi
push ecx
push 0
push 0
push 0
call ebx
jmp 0x414f4e
call ebp
cmp eax, dword [edi + 0xf8]
jge 0x414f22
lea ecx, [ecx]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebp
cmp eax, dword [edi + 0xf8]
jl 0x414f10
mov edx, dword [0x43621c]
mov dword [edi + 0xfc], eax
mov dword [edi + 0xec], 0
test byte [edx + 0x30c], 2
jmp 0x414ebc
mov dword [edi + 0xec], 3
cmp dword [edi + 0xec], 9
jne 0x414dc4
mov dword [edi + 0xec], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
push 0x432754
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x40], 0
call fcn.00420833
push 0x432754
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x40], 0
call fcn.00420833
push 0x432754
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], 0xa
call fcn.00420833
push 0x432754
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0x2a
call fcn.00420833
lea ecx, [ecx]
push ebp
dec esi
inc ecx
add byte [edi + 0x4e], dh
inc ecx
add byte [eax], dl
dec esi
inc ecx
add byte [ebp + 0x4f], ah
inc ecx
add byte [ebp + 0x4f], ah
inc ecx
add byte [ebx - 0x4dffbeb1], bl
dec edi
inc ecx
add byte [edi + ecx*2 + 0x41], al
add ah, cl
int3
Function at 0x4174c0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x114
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetClientRect]
push esi
mov esi, dword [esp + 0x124]
push edi
lea eax, [esp + 0x14]
mov ebx, ecx
mov ecx, dword [esi + 8]
push eax
push ecx
mov dword [esp + 0x18], 0
call ebp
mov eax, dword [esi + 0xc]
test eax, eax
mov edi, dword [esp + 0x12c]
jl 0x417555
mov ecx, dword [ebx + 0x130]
push eax
call fcn.00418310
mov ecx, dword [esp + 0x130]
dec ecx
je 0x417527
dec ecx
je 0x41751d
movsx ecx, word [esi + 0x14]
movsx edx, word [esi + 0x16]
jmp 0x41752f
movsx ecx, word [esi + 0x18]
movsx edx, word [esi + 0x1a]
jmp 0x41752f
movsx ecx, word [esi + 0x1c]
movsx edx, word [esi + 0x1e]
push 0xcc0020
push edx
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
test byte [esi + 3], 2
je 0x417581
push 0xfffffffffffffffd
push 0xfffffffffffffffd
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
lea edx, [esp + 0x14]
push edx
push edi
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov ecx, dword [esi + 8]
lea eax, [esp + 0x14]
push eax
push ecx
call ebp
mov eax, dword [esi + 8]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [esp + 0x24]
push edx
push 0xff
push 0xd
push eax
call ebx
mov ecx, dword [esi + 8]
push 0
push 0
push 0x31
push ecx
call ebx
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
call esi
push 1
push edi
mov ebx, eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x25
lea edx, [esp + 0x18]
push edx
push 0xffffffffffffffff
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.0041f7e0
add esp, 8
push eax
push edi
call dword [sym.imp.USER32.dll_DrawTextA]
lea edx, [esp + 0x10]
push edx
call fcn.0041f7f0
add esp, 4
push ebx
push edi
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 0xc
Function at 0x41a850
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
push ebx
mov edi, ecx
call fcn.00418260
mov eax, dword [edi + 0x320]
mov ecx, dword [eax + ebx*4]
xor ebp, ebp
test ecx, ecx
je 0x41a8a1
mov ecx, eax
mov esi, dword [ecx + ebx*4]
test esi, esi
mov ebp, dword [esi + 0x34]
je 0x41a88b
mov ecx, esi
call fcn.0041a430
push esi
call fcn.004207ef
add esp, 4
mov edx, dword [edi + 0x320]
push 0
push ebp
mov dword [edx + ebx*4], 0
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x158
call fcn.004207f4
add esp, 4
test eax, eax
je 0x41a8bc
mov dword [eax], 0
mov esi, eax
jmp 0x41a8be
xor esi, esi
mov eax, dword [edi + 0x320]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
and ecx, 1
push ecx
mov dword [eax + ebx*4], esi
mov eax, dword [esp + 0x1c]
push edx
push eax
mov dword [esi + 0x48], ebx
mov dword [esi + 0x130], edi
mov dword [esi + 0x44], 1
mov ecx, dword [edi + 0x31c]
push ebp
push ecx
mov ecx, esi
call fcn.0041a670
xor eax, eax
pop edi
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
pop esi
pop ebp
pop ebx
ret 0x10

Function at 0x41ca40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [ebx + 8]
push ebp
push esi
mov esi, eax
and esi, 7
je 0x41ca6a
cmp eax, esi
jge 0x41ca58
mov eax, ebx
call fcn.0041c360
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
mov ecx, esi
shr edx, cl
sub eax, esi
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
mov ecx, dword [ebx + 8]
xor eax, eax
test ecx, ecx
jle 0x41ca9f
mov esi, 0xfffffff8
mov edx, ecx
lea ebx, [ebx]
mov cl, byte [ebx + 0xc]
mov ebp, dword [ebx + 0xc]
mov byte [esp + eax + 8], cl
shr ebp, 8
add edx, esi
inc eax
test edx, edx
mov dword [ebx + 0xc], ebp
jg 0x41ca80
cmp eax, 4
mov dword [ebx + 8], edx
jge 0x41cabb
mov edx, dword [ebx + 4]
mov esi, dword [ebx]
cmp esi, edx
jb 0x41caac
xor cl, cl
jmp 0x41cab1
mov cl, byte [esi]
inc esi
mov dword [ebx], esi
mov byte [esp + eax + 8], cl
inc eax
cmp eax, 4
jl 0x41caa2
mov eax, dword [esp + 8]
movzx ecx, byte [esp + 0xa]
movzx ebp, ah
movzx edx, al
movzx eax, byte [esp + 0xb]
shl ebp, 8
add ebp, edx
shl eax, 8
mov edx, ebp
add eax, ecx
xor edx, 0xffff
cmp eax, edx
je 0x41caf5
pop esi
mov dword [0x436260], 0x42d8d0
xor eax, eax
pop ebp
pop ecx
ret
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
add eax, ebp
cmp eax, ecx
jbe 0x41cb10
pop esi
mov dword [0x436260], 0x42d8bc
xor eax, eax
pop ebp
pop ecx
ret
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x18]
lea ecx, [eax + ebp]
cmp ecx, edx
push edi
jbe 0x41cb32
push ebp
mov edi, ebx
call fcn.0041c450
add esp, 4
test eax, eax
jne 0x41cb32
pop edi
pop esi
pop ebp
pop ecx
ret
mov esi, dword [ebx]
mov edi, dword [ebx + 0x10]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x10]
add ecx, ebp
add eax, ebp
pop edi
pop esi
mov dword [ebx + 0x10], eax
mov dword [ebx], ecx
mov eax, 1
pop ebp
pop ecx
ret
Function at 0x41fb10
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
jmp 0x421f62
push 0x128
push 0x42dbf0
call fcn.00428e0c
mov eax, dword [0x43450c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x422072
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x134], esi
cmp esi, 0x104
jle 0x422023
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.00421d20
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x422010
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x422072
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x422072
mov al, byte [edi]
cmp al, 0x5c
je 0x422031
cmp al, 0x2f
jne 0x422036
cmp al, byte [edi + 1]
je 0x42206c
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.00428cb0
pop ecx
mov byte [ebp - 0x127], al
mov byte [ebp - 0x126], 0x3a
mov byte [ebp - 0x125], bl
push edi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x422072
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00428c51
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x42208e
push edi
call fcn.004204ff
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00428b59
call fcn.00428e47
ret

Function at 0x41fb30
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push edi
xor edi, edi
test bl, 1
je 0x41fb4c
mov edi, 0x10
test bl, 2
je 0x41fb54
or edi, 6
mov ecx, dword [esp + 0x154]
lea eax, [esp + 0x10]
push eax
push ecx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41fb7e
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144
ret
push esi
mov esi, dword [esp + 0x15c]
and ebx, 4
lea esp, [esp]
mov edx, dword [esp + 0x14]
xor eax, eax
and edx, edi
cmp eax, edx
sbb eax, eax
neg eax
test ebx, ebx
jne 0x41fbab
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
test eax, eax
je 0x41fbe9
mov al, byte [esp + 0x40]
test al, al
je 0x41fbe9
cmp al, 0x2e
jne 0x41fbcf
mov al, byte [esp + 0x41]
test al, al
je 0x41fbe9
cmp al, 0x2e
jne 0x41fbcf
mov al, byte [esp + 0x42]
test al, al
je 0x41fbe9
lea edx, [esp + 0x40]
push edx
push esi
inc ebp
call fcn.0040b520
push 0x42d488
push esi
call fcn.0040b520
add esp, 0x10
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41fb90
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x144
ret
Function at 0x421bc9
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x421bf7
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x421bfc
cmp eax, 1
je 0x421bfc
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x421c00
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x43450c]
push ebx
mov ebx, dword [ebp + 0x98]
xor eax, ebp
test ebx, ebx
push edi
mov edi, dword [ebp + 0x9c]
mov dword [ebp + 0x8c], eax
je 0x421c90
push ebx
call fcn.00421bc9
test eax, eax
pop ecx
jne 0x421c65
mov dword [0x4363f4], 0xf
mov dword [0x4363f0], 0xd
xor eax, eax
mov ecx, dword [ebp + 0x8c]
pop edi
xor ecx, ebp
pop ebx
call fcn.00428b59
add ebp, 0x90
leave
ret
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x104
lea eax, [ebp - 0x7c]
add bl, 0x40
push eax
mov byte [ebp - 0x7c], bl
mov byte [ebp - 0x7b], 0x3a
mov byte [ebp - 0x7a], 0x2e
mov byte [ebp - 0x79], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x421c9f
lea eax, [ebp - 0x78]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x421c4c
inc eax
cmp eax, 0x104
ja 0x421c4c
test edi, edi
mov ecx, edi
jne 0x421cdb
cmp eax, dword [ebp + 0xa0]
jg 0x421cbf
mov eax, dword [ebp + 0xa0]
push eax
call fcn.004204ed
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x421cf2
mov dword [0x4363f0], 0xc
jmp 0x421c4c
cmp eax, dword [ebp + 0xa0]
jle 0x421cf2
mov dword [0x4363f0], 0x22
jmp 0x421c4c
lea eax, [ebp - 0x78]
push eax
push ecx
call fcn.00428a30
pop ecx
pop ecx
jmp 0x421c4e