joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006b20
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x100ab90
call fcn.01007004
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x100e254
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x10068ce
cmp eax, esi
jne 0x10068c1
xor esi, esi
inc esi
mov ebx, esi
jmp 0x10068d1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10068a8
xor esi, esi
inc esi
mov eax, dword [0x100e250]
cmp eax, esi
jne 0x10068e4
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1006913
mov eax, dword [0x100e250]
test eax, eax
jne 0x100690d
mov dword [0x100e250], esi
push 0x100129c
push 0x1001290
call fcn.0100680d
pop ecx
pop ecx
test eax, eax
je 0x1006913
jmp 0x1006a3b
mov dword [0x100cd94], esi
mov eax, dword [0x100e250]
cmp eax, esi
jne 0x1006937
push 0x100128c
push 0x1001284
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100e250], 2
test ebx, ebx
jne 0x1006943
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100e25c], 0
je 0x1006967
push 0x100e25c
call fcn.01006f7b
pop ecx
test eax, eax
je 0x1006967
push 0
push 2
push 0
call dword [0x100e25c]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x10069c3
test al, al
je 0x1006981
cmp dword [ebp - 0x1c], 0
jne 0x10069c3
mov al, byte [esi]
test al, al
je 0x1006991
cmp al, 0x20
ja 0x1006991
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1006981
test byte [ebp - 0x3c], 1
je 0x100699d
movzx eax, word [ebp - 0x38]
jmp 0x10069a0
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x100cd90], eax
cmp dword [0x100cd84], 0
jne 0x1006a17
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x10069d2
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x10069e5
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x100696e
cmp dword [0x100cd94], 0
jne 0x1006a26
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100cd90]
jmp 0x1006a47
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01007049
ret
call fcn.01007146
jmp 0x100686e

Function at 0x1006ef0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1006f03
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1006eff
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret
Function at 0x1006f30
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x1006f6f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1006f65
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1006f71
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x1006f55
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10074fb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1007512
xor eax, eax
jmp 0x100751a
shr eax, 4
not eax
and eax, 1
pop ebp
ret 4

Function at 0x1007680
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0xa8], 0
cmp dword [0x100c5e4], 0xfffffffe
mov dword [ebp - 0xb0], 0xc
jne 0x10077a5
and dword [0x100c5e4], 0
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10077a5
cmp dword [ebp - 0x94], 1
jne 0x10077a5
cmp dword [ebp - 0xa0], 4
jne 0x10077a5
cmp dword [ebp - 0x9c], 0xa
jae 0x10077a5
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x10077a5
lea eax, [ebp - 0xac]
push eax
push 0x20019
push 0
push 0x10015bc
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10077a5
push edi
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb4]
push eax
push 0
push 0x10012e1
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xac]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x10077a5
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0100755e
test eax, eax
je 0x10077a5
and dword [ebp - 0xa8], 0x3ff
cmp dword [ebp - 0xa8], 1
je 0x100779b
cmp dword [ebp - 0xa8], 0xd
jne 0x10077a5
mov dword [0x100c5e4], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x100c5e4]
xor ecx, ebp
call fcn.01006b2f
leave
ret

Function at 0x1007816
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.010077bb
Function at 0x1008b76
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 2
test eax, eax
jle 0x1008bb5
push esi
movzx esi, byte [ecx]
xor ebx, ebx
dec eax
inc ecx
mov bh, byte [ecx]
or esi, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or esi, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or esi, ebx
inc ecx
xor edx, esi
test eax, eax
jg 0x1008b90
pop esi
and edi, 3
xor eax, eax
dec edi
je 0x1008bd1
dec edi
je 0x1008bca
dec edi
jne 0x1008bd6
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor ebx, ebx
mov bh, byte [ecx]
or eax, ebx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
pop edi
xor eax, edx
pop ebx
pop ebp
ret 0xc
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
je 0x42e072
nop
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x446252ae
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..rsrc_1
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x538d2791
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x10016b9f
Capabilities:
Print debug messages

Disassembly:
jmp 0x1004041b
push esi
mov esi, ecx
call fcn.10016c85
mov eax, 0x10000000
mov dword [esi], 0x38
lea ecx, [esi + 0x14]
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], 0xe00
mov dword [esi + 0x10], 0x1004b384
call fcn.100164d8
test eax, eax
jns 0x1004046a
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10040463
push str.ERROR_:_Unable_to_initialize_critical_section_in_CAtlBaseModule_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x10050cf8], 1
mov eax, esi
pop esi
ret

Function at 0x1001b1e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push ebx
push esi
push edi
lea edi, [ebp - 0x7c]
mov ecx, 0x1f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x1004e038]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x100580a7
call fcn.10016c3f
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1001b233
mov esi, esp
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, esp
call fcn.100168f2
xor eax, eax
jmp 0x1001b31b
push 0x1c
push 0
lea eax, [ebp - 0x30]
push eax
call fcn.10016537
add esp, 0xc
mov esi, esp
push 0x1c
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp esi, esp
call fcn.100168f2
test eax, eax
jne 0x1001b26b
xor eax, eax
jmp 0x1001b31b
mov esi, esp
push 0
push 0x40
lea eax, [ebp - 0x78]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp esi, esp
call fcn.100168f2
test eax, eax
jne 0x1001b295
xor eax, eax
jmp 0x1001b31b
movzx eax, word [ebp - 0x78]
cmp eax, 0x5a4d
jne 0x1001b2ae
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x24]
ja 0x1001b2ae
cmp dword [ebp - 0x3c], 0x40
jae 0x1001b2c6
mov esi, esp
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, esp
call fcn.100168f2
xor eax, eax
jmp 0x1001b31b
mov esi, esp
push 0
push 0xf8
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp esi, esp
call fcn.100168f2
test eax, eax
jne 0x1001b2f3
xor eax, eax
jmp 0x1001b31b
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0x4550
je 0x1001b316
mov esi, esp
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, esp
call fcn.100168f2
xor eax, eax
jmp 0x1001b31b
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x1001b34c]
call fcn.1001677b
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001651e
add esp, 0x13c
cmp ebp, esp
call fcn.100168f2
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001f810
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
push ebx
push esi
push edi
lea edi, [ebp - 0x3c]
mov ecx, 0xf
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x1005816b
call fcn.10016c3f
mov eax, dword [ebp + 0xc]
sub eax, dword [section..data]
push eax
call fcn.1001fb40
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jbe 0x1001f912
mov eax, dword [ebp - 8]
cmp eax, dword [0x1004e004]
jb 0x1001f879
mov eax, dword [ebp - 8]
cmp eax, dword [0x1004e008]
ja 0x1001f879
mov eax, dword [ebp - 8]
sub eax, 0x8000000
mov dword [ebp - 8], eax
jmp 0x1001f84a
push 0x1c
push 0
lea eax, [ebp - 0x2c]
push eax
call fcn.10016537
add esp, 0xc
mov esi, esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp esi, esp
call fcn.100168f2
test eax, eax
jne 0x1001f8a8
jmp 0x1001f912
cmp dword [ebp - 0x1c], 0x10000
jne 0x1001f8f8
mov eax, dword [ebp - 0x20]
cmp eax, dword [section..data]
jb 0x1001f8f8
mov esi, esp
push 0x40
push 0x3000
mov eax, dword [section..data]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp esi, esp
call fcn.100168f2
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x1001f8ea
mov eax, dword [ebp - 0x38]
jmp 0x1001f914
mov eax, dword [ebp - 8]
sub eax, dword [section..data]
mov dword [ebp - 8], eax
jmp 0x1001f90d
mov eax, dword [ebp - 0x28]
sub eax, dword [section..data]
push eax
call fcn.1001fb40
add esp, 4
mov dword [ebp - 8], eax
jmp 0x1001f84a
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x1001f93c]
call fcn.1001677b
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0xfc
cmp ebp, esp
call fcn.100168f2
mov esp, ebp
pop ebp
ret
Function at 0x1001f9b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
push ebx
push esi
push edi
lea edi, [ebp - 0x3c]
mov ecx, 0xf
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x1005816b
call fcn.10016c3f
mov eax, dword [ebp + 8]
push eax
call fcn.1001fbb0
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jae 0x1001faa6
mov eax, dword [ebp - 8]
cmp eax, dword [0x1004e004]
jb 0x1001fa13
mov eax, dword [ebp - 8]
cmp eax, dword [0x1004e008]
ja 0x1001fa13
mov eax, dword [ebp - 8]
add eax, 0x8000000
mov dword [ebp - 8], eax
jmp 0x1001f9e4
push 0x1c
push 0
lea eax, [ebp - 0x2c]
push eax
call fcn.10016537
add esp, 0xc
mov esi, esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp esi, esp
call fcn.100168f2
test eax, eax
jne 0x1001fa42
jmp 0x1001faa6
cmp dword [ebp - 0x1c], 0x10000
jne 0x1001fa8f
mov eax, dword [ebp - 0x20]
cmp eax, dword [section..data]
jb 0x1001fa8f
mov esi, esp
push 0x40
push 0x3000
mov eax, dword [section..data]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp esi, esp
call fcn.100168f2
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x1001fa84
mov eax, dword [ebp - 0x38]
jmp 0x1001faa8
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
jmp 0x1001faa1
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x20]
push eax
call fcn.1001fbb0
add esp, 4
mov dword [ebp - 8], eax
jmp 0x1001f9e4
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x1001fad0]
call fcn.1001677b
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0xfc
cmp ebp, esp
call fcn.100168f2
mov esp, ebp
pop ebp
ret
Function at 0x10020c80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1004cae0
push fcn.1003c160
mov eax, dword fs:[0]
push eax
add esp, 0xfffffebc
push ebx
push esi
push edi
lea edi, [ebp - 0x94]
mov ecx, 0x1f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x1004e038]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ecx, 0x1005816b
call fcn.10016c3f
mov esi, esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp esi, esp
call fcn.100168f2
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x10020d1f
mov byte [ebp - 0x119], 0
mov dword [ebp - 4], 0xfffffffe
mov al, byte [ebp - 0x119]
jmp 0x10020e03
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x44]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x50]
cmp dword [eax], 0x4550
je 0x10020d4f
mov byte [ebp - 0x125], 0
mov dword [ebp - 4], 0xfffffffe
mov al, byte [ebp - 0x125]
jmp 0x10020e03
mov eax, 8
imul ecx, eax, 0xc
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x44]
add eax, dword [edx + ecx + 0x78]
cmp dword [ebp + 0xc], eax
jb 0x10020da2
mov eax, 8
imul ecx, eax, 0xc
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x44]
add eax, dword [edx + ecx + 0x78]
mov ecx, 8
imul edx, ecx, 0xc
mov ecx, dword [ebp - 0x50]
add eax, dword [ecx + edx + 0x7c]
cmp dword [ebp + 0xc], eax
jae 0x10020da2
mov byte [ebp - 0x131], 1
mov dword [ebp - 4], 0xfffffffe
mov al, byte [ebp - 0x131]
jmp 0x10020e03
mov dword [ebp - 4], 0xfffffffe
jmp 0x10020e01
xor al, al
push edx
mov ecx, ebp
push eax
lea edx, [0x10020e34]
call fcn.1001677b
pop eax
pop edx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x154
cmp ebp, esp
call fcn.100168f2
mov esp, ebp
pop ebp
ret

Function at 0x100212b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
push edi
lea edi, [ebp - 0x18]
mov ecx, 6
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x1005816b
call fcn.10016c3f
mov eax, dword [0x1004e4fc]
mov dword [ebp - 8], eax
jmp 0x100212e8
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10021325
mov esi, esp
lea eax, [ebp - 0x14]
push eax
push 0x40
mov ecx, dword [section..data]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.100168f2
test eax, eax
jne 0x10021323
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.100168f2
jmp 0x10021327
jmp 0x100212df
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x1002134c]
call fcn.1001677b
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0xd8
cmp ebp, esp
call fcn.100168f2
mov esp, ebp
pop ebp
ret
Function at 0x439710
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4be3ab
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.004b0cfe
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x439792
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004ae123
mov eax, dword [eax]
push 0x4f9cfc
push eax
call fcn.004a0824
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004b0f89
test bl, bl
je 0x439792
push 0x4f9cfc
lea ecx, [esp + 0xc]
call fcn.004b1365
push 0x4f9d08
lea ecx, [esp + 0xc]
call fcn.004b1365
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 0x4397ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004b0f89
jmp 0x439899
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 0x439852
lea edx, [esp + 0x7c]
push 0x4f9d04
push edx
call fcn.004a0824
add esp, 8
test eax, eax
je 0x439852
lea eax, [esp + 0x7c]
push 0x4f9d00
push eax
call fcn.004a0824
add esp, 8
test eax, eax
je 0x439852
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 0x4397e2
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.004b0f89
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 0x43a090
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 0x43a0f2
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 0x43a100
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4be42b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5042fc]
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 0x43a238
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x43a166
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004b0f89
xor eax, eax
jmp 0x43a2af
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004b1112
push esi
lea ecx, [esp + 0xc]
call fcn.004b13a1
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 0x43a28d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0043a090
test eax, eax
jne 0x43a28d
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.0043a090
test eax, eax
jne 0x43a28d
lea eax, [esp + 0x14]
push 0x4f9d18
push eax
call fcn.004a1a10
mov esi, eax
add esp, 8
test esi, esi
jne 0x43a26c
lea ecx, [esp + 0x14]
push 0x4f9d14
push ecx
call fcn.004a1990
mov esi, eax
add esp, 8
test esi, esi
jne 0x43a26c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x43a26f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004b10c2
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x43a17e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004b0f89
xor eax, eax
jmp 0x43a2af
mov byte [esi], 0
push 0x4f9d10
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.004b0f89
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 0x44be00
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 0x44be6e
cmp si, 0x69
ja 0x44be6e
add esi, 0xffd0
cmp si, 0x11
je 0x44be3e
push 0x11
call edi
test ax, ax
jge 0x44be3e
or esi, 0x2000
cmp si, 0x10
je 0x44be53
push 0x10
call edi
test ax, ax
jge 0x44be53
or esi, 0x4000
cmp si, 0x12
je 0x44be68
push 0x12
call edi
test ax, ax
jge 0x44be68
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x44be7b
mov esi, 0xbd
jmp 0x44be2f
cmp si, 0x6e
jne 0x44be88
mov esi, 0xbe
jmp 0x44be2f
cmp si, 0x6f
jne 0x44be29
mov esi, 0xbf
jmp 0x44be2f

Function at 0x44d850
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5152a0]
xor edx, edx
cmp eax, edx
jne 0x44d876
xor eax, eax
mov byte [eax + 0x5151a0], al
inc eax
cmp eax, 0x100
jl 0x44d85e
mov dword [0x5152a0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5151a0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x44d907
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 0x44d8da
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 0x44d8a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x44d980
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 0x44d9d3
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 0x44d9ba
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