joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101eee2
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp + 0xc]
push eax
push 1
xor edi, edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101ef43
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x14]
mov dword [ebp - 8], 4
push dword [ebp + 0xc]
call ebx
test eax, eax
jne 0x101ef3a
cmp dword [ebp - 0xc], 4
je 0x101ef3a
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0xc]
push eax
push 1
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x101ef86
push 4
pop esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x14]
mov dword [ebp - 8], esi
push dword [ebp + 0xc]
call ebx
test eax, eax
jne 0x101ef7d
cmp dword [ebp - 0xc], esi
je 0x101ef7d
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x101ef95
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1021004]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
lea edx, [ebp - 0x10c]
push edx
push 1
xor esi, esi
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101f00d
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push edi
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x10c]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0101ce65
leave
ret 0xc

Function at 0x101f17b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x10022a0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101f1cd
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x1002284
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret
Function at 0x101f214
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x1021350]
sub esp, 0x10
cmp eax, 0xffffffff
jne 0x101f298
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x1002360
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101f287
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1002354
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101f27e
cmp dword [ebp - 0xc], 4
jne 0x101f27e
cmp dword [ebp - 0x10], eax
je 0x101f27e
mov dword [0x1021350], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x1021350]
cmp eax, 0xffffffff
jne 0x101f298
xor eax, eax
mov dword [0x1021350], eax
leave
ret
Function at 0x401070
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0
mov dword [esi], vtable.DESKTOP_PROCESS.0
je 0x401095
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4010a3
push eax
call dword [sym.imp.USER32.dll_SetThreadDesktop]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4010b1
push eax
call dword [sym.imp.USER32.dll_CloseDesktop]
test byte [esp + 8], 1
je 0x4010c1
push esi
call fcn.0040406c
add esp, 4
mov eax, esi
pop esi
ret 4

Function at 0x4010d0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x208
mov eax, dword [0x41305c]
xor eax, esp
mov dword [esp + 0x204], eax
mov eax, dword [esp + 0x20c]
cmp byte [eax + 0xc], 0
push ebp
mov ebp, dword [esp + 0x214]
mov dword [esp + 4], eax
je 0x401123
mov eax, dword [eax + 0x14]
push eax
call dword [sym.imp.USER32.dll_SetThreadDesktop]
test eax, eax
jne 0x401123
pop ebp
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.0040405d
add esp, 0x208
ret 8
push esi
push edi
push ebp
push 0
push ebx
call dword [sym.imp.USER32.dll_FindWindowExW]
mov esi, eax
test esi, esi
je 0x40119f
test edi, edi
je 0x40119f
lea esp, [esp]
push 0x100
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor edx, edx
mov word [esp + eax*2 + 0xc], dx
mov ecx, edi
lea eax, [esp + 0xc]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401186
test dx, dx
je 0x401182
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401186
add eax, 4
add ecx, 4
test dx, dx
jne 0x401160
xor eax, eax
jmp 0x40118b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40119f
push edi
push ebp
push esi
push ebx
call dword [sym.imp.USER32.dll_FindWindowExW]
mov esi, eax
test esi, esi
jne 0x401140
mov eax, dword [esp + 8]
cmp byte [eax + 0xc], 0
je 0x4011b3
mov eax, dword [eax + 0x10]
push eax
call dword [sym.imp.USER32.dll_SetThreadDesktop]
mov ecx, dword [esp + 0x20c]
mov eax, esi
pop esi
pop ebp
xor ecx, esp
call fcn.0040405d
add esp, 0x208
ret 8

Function at 0x4011d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push 0x44
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0040a980
mov ecx, dword [esp + 0x68]
add esp, 0xc
xor eax, eax
lea edx, [esp]
push edx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
push 1
push 0
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x7c]
push 0
push ecx
push 0
mov dword [esp + 0x38], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401232
add esp, 0x54
ret 0xc
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp]
mov ecx, dword [esp + 0x58]
mov dword [ecx + 8], eax
mov eax, dword [esp + 8]
add esp, 0x54
ret 0xc
Function at 0x402840
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x364
mov eax, dword [0x41305c]
xor eax, esp
mov dword [esp + 0x360], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0xff
lea eax, [esp + 0x16c]
push eax
push str.bios.bin
call edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x402a11
cmp esi, 0xff
ja 0x402a11
push 0xff
lea ecx, [esp + 0x26c]
push ecx
push str.isa.bin
call edi
test eax, eax
je 0x402a11
cmp eax, 0xff
ja 0x402a11
push 0x410f74
lea edx, [esp + 0x16c]
push edx
lea eax, [esp + 0x70]
push str.cbrom.exe__s___s_release
push eax
call fcn.0040423c
push 0x44
lea ecx, [esp + 0x34]
push 0
push ecx
call fcn.0040a980
mov edi, dword [sym.imp.KERNEL32.dll_CreateProcessA]
add esp, 0x1c
xor eax, eax
xor edx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
push edx
push edx
push 0x810
push edx
push edx
push edx
mov word [esp + 0x70], dx
lea edx, [esp + 0x88]
push edx
push 0
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x74], 1
call edi
test eax, eax
je 0x402a11
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push eax
call ebx
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
lea eax, [esp + 0x268]
push eax
push 0x410f74
lea ecx, [esp + 0x170]
push ecx
lea edx, [esp + 0x74]
push str.cbrom.exe__s___s__s
push edx
call fcn.0040423c
push 0x44
lea eax, [esp + 0x38]
push 0
push eax
call fcn.0040a980
add esp, 0x20
xor eax, eax
xor ecx, ecx
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push eax
push ecx
push ecx
push 0x810
push ecx
push ecx
push ecx
mov word [esp + 0x70], cx
lea ecx, [esp + 0x88]
push ecx
push 0
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x74], 1
call edi
test eax, eax
je 0x402a11
mov edx, dword [esp + 0x10]
push 0xffffffffffffffff
push edx
call ebx
mov eax, dword [esp + 0x14]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x360]
xor ecx, esp
call fcn.0040405d
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x36c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.0040405d
mov esp, ebp
pop ebp
ret

Function at 0x4038b0
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push 1
push eax
call fcn.004046be
add esp, 0x10
push edi
cmp eax, esi
je 0x4038cd
call fcn.004047b7
add esp, 4
xor al, al
ret
call fcn.004047b7
add esp, 4
mov al, 1
ret
Function at 0x403d90
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, dword [0x414b54]
push ebx
push ebp
push esi
push edi
push eax
call fcn.004036b0
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
xor edi, edi
push str.gwflash1.exe
call esi
test eax, eax
jne 0x403dd2
call ebp
cmp eax, 2
je 0x403dd2
push 0x64
call ebx
inc edi
cmp edi, 0x64
jl 0x403db6
push str.HUADRV.DLL
call esi
push str.MarkFunDrv.dll
call esi
push 0x410fbc
call esi
push 0x410fd0
call esi
xor edi, edi
push str.gwflash2.exe
call esi
test eax, eax
jne 0x403e0c
call ebp
cmp eax, 2
je 0x403e0c
push 0x64
call ebx
inc edi
cmp edi, 0x64
jl 0x403df0
push 0x410fec
call esi
push 0x411000
call esi
push 0x411014
call esi
xor edi, edi
push str.winflash1.exe
call esi
test eax, eax
jne 0x403e3f
call ebp
cmp eax, 2
je 0x403e3f
push 0x64
call ebx
inc edi
cmp edi, 0x64
jl 0x403e23
xor edi, edi
push str.winflash.exe
call esi
test eax, eax
jne 0x403e5d
call ebp
cmp eax, 2
je 0x403e5d
push 0x64
call ebx
inc edi
cmp edi, 0x64
jl 0x403e41
push str.winflash.sys
call esi
push str.winflash64.sys
call esi
push str.cbrom.exe
call esi
push str.isa.bin
call esi
push str.bios.bin
call esi
push 0x411088
call esi
push str.ORIGINAL.TMP
call esi
push 0x4110a4
call esi
push 0x4110b4
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x403ed0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x41305c]
xor eax, esp
mov dword [esp + 0x108], eax
push ebp
mov ebp, dword [esp + 0x114]
cmp ebp, 2
push esi
push edi
mov edi, dword [esp + 0x120]
mov esi, 3
jl 0x403f36
mov eax, dword [edi + 4]
push eax
call fcn.00404476
add esp, 4
cmp eax, 1
je 0x403f19
cmp eax, 2
je 0x403f19
cmp eax, esi
jne 0x403f1b
mov esi, eax
mov ecx, dword [edi + ebp*4 - 4]
push str.show
push ecx
call fcn.0040eb5a
add esp, 8
test eax, eax
jne 0x403f36
mov byte [0x41406e], al
push esi
push str.I:_Using_ver__d_n
call fcn.004040a8
add esp, 8
push 1
push 0x403eb0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push str.I:_Prepare_running_n
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
call fcn.004040a8
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push esi
call fcn.004038e0
add esp, 0x10
test al, al
je 0x404031
mov esi, dword [esp + 0x10]
test esi, esi
je 0x404031
mov edi, dword [esp + 0xc]
test edi, edi
je 0x404031
lea ecx, [esp + 0x14]
push ecx
push 0xff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x14]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403fb3
mov edx, dword [str._bios.bin]
mov ecx, dword [0x411138]
mov dword [eax], edx
mov dx, word [0x41113c]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [esp + 0x14]
push eax
push str.I:_Saving_old_bios_to__s_n
call fcn.004040a8
lea ecx, [esp + 0x1c]
push ecx
call esi
add esp, 0xc
test al, al
jne 0x403ffb
push str.E:_Save_old_bios_failed_n
jmp 0x404036
call fcn.00402840
test al, al
jne 0x40400b
push str.E:_Inject_bios_module_failed_n
jmp 0x404036
push str.I:_Updating_new_bios_n
call fcn.004040a8
lea edx, [esp + 0x18]
push edx
call edi
add esp, 8
test al, al
jne 0x40402a
push str.E:_Update_new_bios_failed_n
jmp 0x404036
push str.Done__Lucky_n
jmp 0x404036
push str.E:_Prepare_file_failed_n
call fcn.004040a8
add esp, 4
call fcn.00403d90
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0040405d
add esp, 0x10c
ret

Function at 0x40405d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41305c]
jne 0x404067
repz ret
jmp fcn.004049b8
Function at 0x40b42f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040943c
and dword [ebp - 4], 0
cmp dword [0x414a70], 0
mov ebx, eax
jne 0x40b4e0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b591
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41021c
push edi
call esi
test eax, eax
je 0x40b591
push eax
call fcn.004093ca
mov dword [esp], 0x41020c
push edi
mov dword [0x414a70], eax
call esi
push eax
call fcn.004093ca
mov dword [esp], 0x4101f8
push edi
mov dword [0x414a74], eax
call esi
push eax
call fcn.004093ca
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x414a78], eax
call esi
push eax
call fcn.004093ca
pop ecx
mov dword [0x414a80], eax
test eax, eax
je 0x40b4e0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004093ca
pop ecx
mov dword [0x414a7c], eax
mov eax, dword [0x414a7c]
cmp eax, ebx
je 0x40b538
cmp dword [0x414a80], ebx
je 0x40b538
push eax
call fcn.00409445
push dword [0x414a80]
mov esi, eax
call fcn.00409445
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b538
test edi, edi
je 0x40b538
call esi
test eax, eax
je 0x40b52f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b52f
test byte [ebp - 0xc], 1
jne 0x40b538
or dword [ebp + 0x10], 0x200000
jmp 0x40b571
mov eax, dword [0x414a74]
cmp eax, ebx
je 0x40b571
push eax
call fcn.00409445
pop ecx
test eax, eax
je 0x40b571
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b571
mov eax, dword [0x414a78]
cmp eax, ebx
je 0x40b571
push eax
call fcn.00409445
pop ecx
test eax, eax
je 0x40b571
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x414a70]
call fcn.00409445
pop ecx
test eax, eax
je 0x40b591
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b593
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x409350
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x468d0b
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.0045d570
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4093d2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045b31d
mov eax, dword [eax]
push 0x47f1d0
push eax
call fcn.0044d7a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045d7fb
test bl, bl
je 0x4093d2
push 0x47f1d0
lea ecx, [esp + 0xc]
call fcn.0045db8b
push 0x482d4c
lea ecx, [esp + 0xc]
call fcn.0045db8b
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 0x40940e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045d7fb
jmp 0x4094d9
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 0x409492
lea edx, [esp + 0x7c]
push 0x482d48
push edx
call fcn.0044d7a4
add esp, 8
test eax, eax
je 0x409492
lea eax, [esp + 0x7c]
push 0x482d44
push eax
call fcn.0044d7a4
add esp, 8
test eax, eax
je 0x409492
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 0x409422
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.0045d7fb
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 0x409cd0
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 0x409d32
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 0x409d40
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x468d8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4896c8]
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 0x409e78
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x409da6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045d7fb
xor eax, eax
jmp 0x409eef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045d938
push esi
lea ecx, [esp + 0xc]
call fcn.0045dbc7
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 0x409ecd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00409cd0
test eax, eax
jne 0x409ecd
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 closesocket
mov ecx, edi
call fcn.00409cd0
test eax, eax
jne 0x409ecd
lea eax, [esp + 0x14]
push 0x482d60
push eax
call fcn.0044e7e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x409eac
lea ecx, [esp + 0x14]
push 0x482d5c
push ecx
call fcn.0044e760
mov esi, eax
add esp, 8
test esi, esi
jne 0x409eac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x409eaf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045d8e8
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x409dbe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045d7fb
xor eax, eax
jmp 0x409eef
mov byte [esi], 0
push 0x482d58
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.0045d7fb
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 0x41a330
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 0x41a39e
cmp si, 0x69
ja 0x41a39e
add esi, 0xffd0
cmp si, 0x11
je 0x41a36e
push 0x11
call edi
test ax, ax
jge 0x41a36e
or esi, 0x2000
cmp si, 0x10
je 0x41a383
push 0x10
call edi
test ax, ax
jge 0x41a383
or esi, 0x4000
cmp si, 0x12
je 0x41a398
push 0x12
call edi
test ax, ax
jge 0x41a398
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41a3ab
mov esi, 0xbd
jmp 0x41a35f
cmp si, 0x6e
jne 0x41a3b8
mov esi, 0xbe
jmp 0x41a35f
cmp si, 0x6f
jne 0x41a359
mov esi, 0xbf
jmp 0x41a35f

Function at 0x41ba50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x499db8]
xor edx, edx
cmp eax, edx
jne 0x41ba76
xor eax, eax
mov byte [eax + 0x499cb8], al
inc eax
cmp eax, 0x100
jl 0x41ba5e
mov dword [0x499db8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x499cb8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41bb07
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 0x41bada
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 0x41baa8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41bb80
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 0x41bbd3
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 0x41bbba
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