joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fd10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0xa
push str.hlboot.dat
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40fdaf
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], 0
test edi, edi
jle 0x40fda7
test eax, eax
je 0x40fda7
lea ecx, [ebp - 4]
mov edx, edi
push ecx
mov ecx, eax
call fcn.00402220
mov esi, eax
add esp, 4
test esi, esi
jne 0x40fd8c
push str.Failed_to_load_embedded_module:
call fcn.00401010
mov eax, dword [ebp - 4]
add esp, 4
test eax, eax
je 0x40fd92
push eax
push 0x414170
call fcn.00401010
add esp, 8
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.unknown_error_n
call fcn.00401010
add esp, 4
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40fdc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0xc], edx
push 0x414250
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40fe00
cmp byte [ebp + 8], al
je 0x40fdf8
push esi
push str.File_not_found__s_n
call fcn.0040fb10
add esp, 8
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push edi
push 2
push 0
push ebx
call esi
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push 0
push 0
push ebx
mov edi, eax
call esi
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 0x20
mov ecx, eax
xor esi, esi
mov dword [ebp - 4], ecx
test edi, edi
jle 0x40fe55
push ebx
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ecx]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
test eax, eax
jle 0x40fe80
mov ecx, dword [ebp - 4]
add esi, eax
cmp esi, edi
jl 0x40fe33
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push dword [ebp - 0xc]
mov edx, edi
mov edi, dword [ebp - 4]
mov ecx, edi
call fcn.00402220
push edi
mov esi, eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 8], 0
je 0x40fe96
push dword [ebp - 8]
push str.Failed_to_read__s_n
call fcn.0040fb10
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410ba0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
mov esi, ecx
mov ecx, dword [0x416900]
test ecx, ecx
jne 0x410bd4
push str.HL_DISABLED_LIBS
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
mov ecx, 0x4136d9
test eax, eax
cmovne ecx, eax
mov dword [0x416900], ecx
push esi
push ecx
call dword [sym.imp.VCRUNTIME140.dll_strstr]
mov edx, eax
add esp, 8
test edx, edx
je 0x410c10
mov ecx, esi
push edi
lea edi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410bf0
sub ecx, edi
add edx, ecx
pop edi
mov al, byte [edx]
test al, al
je 0x410c06
cmp al, 0x2c
jne 0x410c10
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, str.builtin
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x410c37
test dl, dl
je 0x410c33
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x410c37
add eax, 2
add ecx, 2
test dl, dl
jne 0x410c17
xor eax, eax
jmp 0x410c3c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x410c4a
mov eax, 0x400000
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x414588
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x410c71
test dl, dl
je 0x410c6d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x410c71
add eax, 2
add ecx, 2
test dl, dl
jne 0x410c51
xor eax, eax
jmp 0x410c76
sbb eax, eax
or eax, 1
test eax, eax
jne 0x410ca0
push 0x41458c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x410d1f
push 0x41458c
push str.Failed_to_load_library__s
push 0x12f
jmp 0x410d11
lea edx, [ebp - 0x100]
mov ecx, esi
sub edx, esi
nop word [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x410cb0
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x410cc0
sub esi, ecx
lea edx, [ebp - 0x100]
mov ecx, str..hdll
add edx, esi
sub edx, ecx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x410ce0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x410d1f
lea eax, [ebp - 0x100]
push eax
push str.Failed_to_load_library__s
push 0x141
push str.srcmodule.c
call dword [sym.imp.libhl.dll_hl_fatal_fmt]
add esp, 0x10
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402102
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0xc]
push 1
push 0
push dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
ret 8

Function at 0x402619
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_malloc]
push edi
mov ebx, ecx
mov edi, 0x2000
push edi
mov dword [ebp - 0x18], ebx
call esi
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
jne 0x402647
mov eax, 0x8007000e
jmp 0x4027b0
push eax
mov ecx, ebx
call fcn.00402527
test eax, eax
jge 0x40265a
mov edi, eax
jmp 0x4027a0
lea eax, [ebp - 2]
push eax
push dword [ebp - 0x10]
call fcn.004023d4
test eax, eax
jne 0x402674
mov edi, 0x80020009
jmp 0x4027a0
push edi
call esi
mov esi, eax
test esi, esi
pop ecx
mov dword [ebp - 0xc], esi
jne 0x40268b
mov edi, 0x8007000e
jmp 0x4027a0
mov ecx, ebx
call fcn.00402505
push esi
mov ecx, ebx
call fcn.00402527
test eax, eax
jl 0x402796
movzx eax, word [ebp - 2]
sub eax, 8
je 0x40277b
sub eax, 9
je 0x4026de
dec eax
dec eax
jne 0x402787
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push esi
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.004020e8
jmp 0x402787
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test al, 1
mov dword [ebp - 8], eax
je 0x4026f6
mov edi, 0x80004005
jmp 0x402798
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.00404e40
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov edi, esp
mov dword [ebp - 4], edi
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
cmp esp, edi
je 0x4026ec
cmp dword [ebp - 8], edi
jle 0x402762
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + edi*2]
push eax
call fcn.00402455
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x40272c
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push dword [ebp - 4]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x402787
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
call fcn.00402102
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
call fcn.00402527
test eax, eax
jge 0x4027ae
mov edi, eax
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, edi
jmp 0x4027b0
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x402fad
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x404f22
call fcn.00404e90
sub esp, 0x210
push ebx
push esi
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
push dword [ebx]
mov dword [ebp - 4], esi
call fcn.004020b3
cmp eax, esi
jne 0x40302f
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x402ff8
lea eax, [ebp - 0x21c]
push eax
call fcn.00402fad
cmp eax, esi
jne 0x40302e
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x10]
je 0x402fe8
call fcn.0040204e
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.0040204e
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x403930
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push esi
mov esi, ecx
push 0x4063ac
mov dword [esi], 0x4016cc
mov dword [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [esi + 0xc]
pop esi
jmp 0x4042dc

Function at 0x403c8a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
push 2
push 0
push dword [ebp + 8]
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 4], ebx
jne 0x403cda
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x403cc5
call esi
mov esi, eax
jmp 0x403da2
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x403da2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x403cfb
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x403d20
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x403d0e
call esi
jmp 0x403d97
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x403d99
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp byte [ebx + esi], 0
mov edi, esi
je 0x403d5f
lea edi, [ebx + 1]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.00404e40
mov ecx, edi
mov edx, ecx
mov eax, esp
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
and byte [eax + ebx], 0
mov dword [ebp + 8], eax
mov edi, esp
test edi, edi
jne 0x403d67
xor eax, eax
jmp 0x403d8b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.00404e40
mov eax, esp
push 0
push esi
push edi
push eax
call fcn.00401fbc
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push eax
call fcn.0040398d
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x404201
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, ecx
mov ebp, 0x104
push ebp
lea eax, [esi + 0x3c]
push eax
push 0x73b
push dword [esp + 0x20]
call edi
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextW]
push eax
call ebx
push ebp
add esi, 0x244
push esi
push 0x73c
push dword [esp + 0x20]
call edi
push eax
call ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
Function at 0x404457
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esi + 0xc68]
cmp dword [eax], 0
push edi
jne 0x4044f4
mov dword [eax], 1
mov eax, dword [esi + 0x30]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
call dword [ecx + 0x34]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, 0x104
jne 0x4044ba
lea eax, [esp + 0x10]
push eax
lea eax, [esi + 0x3c]
push eax
push 0
push 0
push 0x401740
push dword [esp + 0x28]
mov dword [esp + 0x28], ebp
call edi
push dword [esp + 0x14]
call ebx
lea eax, [esp + 0x18]
push eax
lea eax, [esi + 0x450]
push eax
call fcn.00404250
test eax, eax
jne 0x4044f4
lea eax, [esp + 0x10]
push eax
lea eax, [esi + 0x244]
push eax
push 0
push 0
push 0x401750
push dword [esp + 0x2c]
mov dword [esp + 0x28], ebp
call edi
push dword [esp + 0x18]
call ebx
mov ebx, dword [esp + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x103
push 0xc5
push 0x73b
push ebx
call edi
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call ebp
lea eax, [esi + 0x3c]
push eax
push 0x73b
push ebx
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
push 0x103
push 0xc5
push 0x73c
push ebx
call edi
push eax
call ebp
add esi, 0x244
push esi
push 0x73c
push ebx
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 4

Function at 0x40445c
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esi + 0xc68]
cmp dword [eax], 0
push edi
jne 0x4044f4
mov dword [eax], 1
mov eax, dword [esi + 0x30]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
call dword [ecx + 0x34]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, 0x104
jne 0x4044ba
lea eax, [esp + 0x10]
push eax
lea eax, [esi + 0x3c]
push eax
push 0
push 0
push 0x401740
push dword [esp + 0x28]
mov dword [esp + 0x28], ebp
call edi
push dword [esp + 0x14]
call ebx
lea eax, [esp + 0x18]
push eax
lea eax, [esi + 0x450]
push eax
call fcn.00404250
test eax, eax
jne 0x4044f4
lea eax, [esp + 0x10]
push eax
lea eax, [esi + 0x244]
push eax
push 0
push 0
push 0x401750
push dword [esp + 0x2c]
mov dword [esp + 0x28], ebp
call edi
push dword [esp + 0x18]
call ebx
mov ebx, dword [esp + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x103
push 0xc5
push 0x73b
push ebx
call edi
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call ebp
lea eax, [esi + 0x3c]
push eax
push 0x73b
push ebx
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
push 0x103
push 0xc5
push 0x73c
push ebx
call edi
push eax
call ebp
add esi, 0x244
push esi
push 0x73c
push ebx
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 4
Function at 0x401849
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004019e0
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x401947
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4018ea
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x40192d
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x401901
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x40191c
test al, 0x40
je 0x401913
mov ecx, dword [edi + 0x20]
jmp 0x40191a
test al, 0x80
je 0x40192d
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x40192d
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x4018b9
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x41a440
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ade5b
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.004a27f5
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41a4c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004a05f7
mov eax, dword [eax]
push 0x72bca4
push eax
call fcn.00492814
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004a2a80
test bl, bl
je 0x41a4c2
push 0x72bca4
lea ecx, [esp + 0xc]
call fcn.004a2e10
push 0x72bcb0
lea ecx, [esp + 0xc]
call fcn.004a2e10
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 0x41a4fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004a2a80
jmp 0x41a5c9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x41a582
lea edx, [esp + 0x7c]
push 0x72bcac
push edx
call fcn.00492814
add esp, 8
test eax, eax
je 0x41a582
lea eax, [esp + 0x7c]
push 0x72bca8
push eax
call fcn.00492814
add esp, 8
test eax, eax
je 0x41a582
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 0x41a512
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.004a2a80
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 0x41adc0
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]
mov esi, eax
test esi, esi
jne 0x41ae22
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]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x41ae30
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4adedb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x741370]
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 0x41af68
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x41ae96
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004a2a80
xor eax, eax
jmp 0x41afdf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004a2bbd
push esi
lea ecx, [esp + 0xc]
call fcn.004a2e4c
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x41afbd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.0041adc0
test eax, eax
jne 0x41afbd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocString
mov ecx, edi
call fcn.0041adc0
test eax, eax
jne 0x41afbd
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.00493960
mov esi, eax
add esp, 8
test esi, esi
jne 0x41af9c
lea ecx, [esp + 0x14]
push 0x72bcbc
push ecx
call fcn.004938e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41af9c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41af9f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004a2b6d
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41aeae
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004a2a80
xor eax, eax
jmp 0x41afdf
mov byte [esi], 0
push 0x72bcb8
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.004a2a80
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 0x42be70
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x42bede
cmp si, 0x69
ja 0x42bede
add esi, 0xffd0
cmp si, 0x11
je 0x42beae
push 0x11
call edi
test ax, ax
jge 0x42beae
or esi, 0x2000
cmp si, 0x10
je 0x42bec3
push 0x10
call edi
test ax, ax
jge 0x42bec3
or esi, 0x4000
cmp si, 0x12
je 0x42bed8
push 0x12
call edi
test ax, ax
jge 0x42bed8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42beeb
mov esi, 0xbd
jmp 0x42be9f
cmp si, 0x6e
jne 0x42bef8
mov esi, 0xbe
jmp 0x42be9f
cmp si, 0x6f
jne 0x42be99
mov esi, 0xbf
jmp 0x42be9f

Function at 0x42d840
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x751b88]
xor edx, edx
cmp eax, edx
jne 0x42d866
xor eax, eax
mov byte [eax + 0x751a88], al
inc eax
cmp eax, 0x100
jl 0x42d84e
mov dword [0x751b88], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x751a88
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x42d8f7
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 0x42d8ca
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 0x42d898
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x42d970
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 0x42d9c3
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 0x42d9aa
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