joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d639
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x431264], 0
push esi
jne 0x40d5ac
call fcn.0040d4d7
test eax, eax
je 0x40d5ef
mov eax, dword [0x431264]
cmp eax, 1
jne 0x40d5cd
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40d5ef
pop esi
ret
push eax
call dword [0x43126c]
test eax, eax
jne 0x40d637
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40d5f3
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x431264]
call dword [0x43126c]
mov edi, eax
test edi, edi
je 0x40d61a
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x40d636
lea edi, [esi + 0xff0]
push esi
push dword [0x431264]
call dword [0x431268]
add esi, 0x10
cmp esi, edi
jb 0x40d620
mov eax, esi
pop edi
pop esi
ret
jmp 0x40d599

Function at 0x40d866
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x42f050]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040d7a5
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00410b00
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40d8b5
cmp dword [ebp - 0x1c], 5
jb 0x40d8cd
jmp 0x40d8c9
cmp dword [ebp - 0x10], 1
jne 0x40d8cd
cmp dword [ebp - 0x1c], 4
ja 0x40d8c9
jne 0x40d8cd
cmp dword [ebp - 0x18], 0
jbe 0x40d8cd
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42643c
call fcn.0040d66f
test eax, eax
jge 0x40d8ee
mov byte [0x432078], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040db28
add ebp, 0x78
leave
ret

Function at 0x40db28
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42f050]
jne 0x40db32
repz ret
jmp fcn.00410d76
Function at 0x40fd26
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x40fd63
cmp dword [ebp + 0x14], edi
je 0x40fd63
cmp ecx, edi
jne 0x40fd6a
call fcn.00412105
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0040e5bf
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x40fd7e
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x40fd9f
cmp ebx, 0xffffffff
je 0x40fd8e
push ebx
push edi
push ecx
call fcn.00410b00
add esp, 0xc
cmp esi, edi
je 0x40fd4b
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x40fd4b
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x40fdbb
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x40fdc2
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x40feb3
test word [esi + 0xc], 0x10c
je 0x40fe16
mov eax, dword [esi + 4]
test eax, eax
je 0x40fe16
jl 0x40ff14
cmp ebx, eax
mov edi, ebx
jb 0x40fde7
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x40febb
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0040e5f3
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x40feab
cmp ebx, dword [ebp - 0xc]
jb 0x40fe83
cmp dword [ebp - 0xc], 0
je 0x40fe40
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x40fe35
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x40fe3c
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x40fe4b
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x40fe4b
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x40fee7
push eax
push dword [ebp - 8]
push esi
call fcn.00418441
pop ecx
push eax
call fcn.004193b5
add esp, 0xc
test eax, eax
je 0x40ff26
cmp eax, 0xffffffff
je 0x40ff14
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x40feab
push esi
call fcn.00418cd4
cmp eax, 0xffffffff
pop ecx
je 0x40ff18
cmp dword [ebp - 4], 0
je 0x40fee7
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x40fdca
mov eax, dword [ebp + 0x14]
jmp 0x40fd65
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x40fed2
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00410b00
add esp, 0xc
call fcn.00412105
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x40fd5b
cmp dword [ebp + 0xc], 0xffffffff
je 0x40fefd
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00410b00
add esp, 0xc
call fcn.00412105
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x40fd5b
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x40fd65
or dword [esi + 0xc], 0x10
jmp 0x40ff18
Function at 0x411ef1
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x42f188]
je 0x411f0c
inc edi
cmp edi, 0x17
jb 0x411efd
cmp edi, 0x17
jae 0x41208c
push ebp
push 3
call fcn.0041b555
cmp eax, 1
pop ecx
je 0x412058
push 3
call fcn.0041b555
test eax, eax
pop ecx
jne 0x411f40
cmp dword [0x42f044], 1
je 0x412058
cmp ebx, 0xfc
je 0x41208b
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4317f0
push ebp
call fcn.004158a5
add esp, 0xc
test eax, eax
je 0x411f76
push esi
push esi
push esi
push esi
push esi
call fcn.0040e4c3
add esp, 0x14
push 0x104
mov esi, 0x431809
push esi
push 0
mov byte [0x43190d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x411fba
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004158a5
add esp, 0xc
test eax, eax
je 0x411fba
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040e4c3
add esp, 0x14
push esi
call fcn.00410550
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x411fff
push esi
call fcn.00410550
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x431b04
push 0x426ac4
sub ecx, eax
push ecx
push eax
call fcn.0041b4a2
add esp, 0x14
test eax, eax
je 0x411fff
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040e4c3
add esp, 0x14
jmp 0x412001
xor esi, esi
push 0x426ac0
push ebx
push ebp
call fcn.0041b431
add esp, 0xc
test eax, eax
je 0x412021
push esi
push esi
push esi
push esi
push esi
call fcn.0040e4c3
add esp, 0x14
push dword [edi*8 + 0x42f18c]
push ebx
push ebp
call fcn.0041b431
add esp, 0xc
test eax, eax
je 0x412043
push esi
push esi
push esi
push esi
push esi
call fcn.0040e4c3
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041b274
add esp, 0xc
jmp 0x41208b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41208b
cmp ebp, 0xffffffff
je 0x41208b
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x42f18c]
push dword [esi]
call fcn.00410550
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x41b274
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004136a7
xor ebx, ebx
cmp dword [0x431dc0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41b34a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41b42a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x41b42a
push eax
call fcn.00413639
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x431dc0], eax
call esi
push eax
call fcn.00413639
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x431dc4], eax
call esi
push eax
call fcn.00413639
mov dword [0x431dc8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00411c7e
test eax, eax
pop ecx
pop ecx
je 0x41b318
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040e4c3
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41b34a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00413639
cmp eax, ebx
pop ecx
mov dword [0x431dd0], eax
je 0x41b34a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00413639
pop ecx
mov dword [0x431dcc], eax
mov eax, dword [0x431dcc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x41b3cf
cmp dword [0x431dd0], ecx
je 0x41b3cf
push eax
call fcn.004136b0
push dword [0x431dd0]
mov esi, eax
call fcn.004136b0
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x41b3cf
cmp edi, ebx
je 0x41b3cf
call esi
cmp eax, ebx
je 0x41b39c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41b39c
test byte [ebp - 0x18], 1
jne 0x41b3cf
lea eax, [ebp - 0x10]
push eax
call fcn.00411cb5
test eax, eax
pop ecx
je 0x41b3b7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040e4c3
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41b3c6
or dword [ebp + 0x10], 0x200000
jmp 0x41b40a
or dword [ebp + 0x10], 0x40000
jmp 0x41b40a
mov eax, dword [0x431dc4]
cmp eax, dword [ebp - 8]
je 0x41b40a
push eax
call fcn.004136b0
cmp eax, ebx
pop ecx
je 0x41b40a
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41b40a
mov eax, dword [0x431dc8]
cmp eax, dword [ebp - 8]
je 0x41b40a
push eax
call fcn.004136b0
cmp eax, ebx
pop ecx
je 0x41b40a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x431dc0]
call fcn.004136b0
cmp eax, ebx
pop ecx
je 0x41b42a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41b42c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405cd8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422eb4], 0
push esi
jne 0x405d0f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405ce9
mov dword [ecx*4 + 0x422eb0], eax
inc ecx
cmp ecx, 0x100
jl 0x405ce4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405d40
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422eb0]
xor eax, esi
inc ecx
dec edx
jne 0x405d22
pop edi
not eax
pop esi
ret 0xc

Function at 0x4022c0
Capabilities:
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
push 8
xor eax, eax
shl ecx, 1
pop esi
sar ecx, 1
mov edx, eax
xor edx, ecx
test dl, 1
je 0x4022e0
shr eax, 1
xor eax, 0xedb88320
jmp 0x4022e2
shr eax, 1
dec esi
jne 0x4022cc
pop esi
ret 4

Function at 0x402309
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [0x4082a0]
mov edx, ecx
dec ecx
test edx, edx
je 0x40233c
push edi
lea edx, [ecx + 1]
mov ecx, dword [esp + 8]
push esi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x407ea0]
xor eax, esi
inc ecx
dec edx
jne 0x402322
pop esi
pop edi
mov dword [0x4082a0], eax
ret

Function at 0x404779
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x40840e]
test eax, eax
jg 0x40478c
and dword [0x4083d4], 0
xor eax, eax
ret
push edi
push esi
mov esi, 0x800
cmp eax, esi
ja 0x404799
mov esi, eax
mov edi, dword [0x4060ac]
push esi
push dword [0x4083d0]
push dword [0x407e04]
call edi
cmp dword [0x407e14], 0
mov ecx, eax
mov dword [0x4083d4], ecx
je 0x404808
cmp ecx, 0xffffffff
je 0x404808
cmp ecx, esi
je 0x404819
test ecx, ecx
jl 0x404808
mov ax, word [0x4078d0]
push dword [0x407e18]
inc ax
push eax
call fcn.00401f2a
mov ecx, dword [0x4083d4]
test ecx, ecx
jne 0x404801
push esi
push dword [0x4083d0]
push dword [0x407e04]
call edi
mov ecx, eax
mov dword [0x4083d4], ecx
cmp ecx, 0xffffffff
je 0x404808
mov esi, ecx
cmp ecx, esi
je 0x404819
push 2
call fcn.00402971
mov ecx, dword [0x4083d4]
sub dword [0x40840e], ecx
mov esi, dword [0x4083d0]
cmp dword [0x407e08], 0
mov dword [0x40841c], esi
je 0x40485b
mov eax, ecx
mov edx, eax
dec eax
test edx, edx
je 0x40485b
lea edi, [eax + 1]
call 0x4060cc
xor byte [esi], al
movzx eax, byte [esi]
push eax
call 0x4060e2
inc esi
dec edi
pop ecx
jne 0x404840
mov ecx, dword [0x4083d4]
mov eax, ecx
dec ecx
pop esi
mov dword [0x4083d4], ecx
pop edi
ret
Function at 0x40693c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x44a62c], 0
push esi
jne 0x406973
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40694d
mov dword [ecx*4 + 0x44a628], eax
inc ecx
cmp ecx, 0x100
jl 0x406948
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4069a4
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x44a628]
xor eax, esi
inc ecx
dec edx
jne 0x406986
pop edi
not eax
pop esi
ret 0xc
Function at 0x10003001
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, dword [esi + 0x3c]
add ebx, esi
push 0x40
lea eax, [ebx + 0x18]
push 0x3000
push dword [eax + 0x38]
mov dword [ebp - 4], ecx
push 0
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], eax
call dword [0x675070]
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x1000316b
push 0x40
mov edx, esi
mov ecx, edi
call 0x10005240
mov esi, dword [edi + 0x3c]
movzx eax, word [ebx + 0x14]
add esi, edi
push eax
mov edx, ebx
mov ecx, esi
call 0x10005240
mov eax, dword [ebp - 8]
lea ebx, [esi + 0x18]
movzx ecx, word [eax + 0x14]
movzx esi, word [esi + 0x14]
lea edx, [eax + 0x18]
movzx eax, word [eax + 6]
add ecx, edx
add esi, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x100030c9
mov ebx, ecx
sub ebx, esi
mov edi, eax
push 0x28
lea edx, [ebx + esi]
mov ecx, esi
call 0x10005240
add esi, 0x28
dec edi
jne 0x10003087
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
test eax, eax
je 0x100030c9
lea esi, [ecx + 0x14]
mov ebx, eax
mov edx, dword [esi]
mov ecx, dword [esi - 8]
push dword [esi - 4]
add edx, dword [ebp + 8]
add ecx, edi
call 0x10005240
lea esi, [esi + 0x28]
dec ebx
jne 0x100030ae
mov ebx, dword [ebp - 0xc]
push ebx
mov edx, edi
mov ecx, edi
call fcn.10001f85
push dword [ebp - 0x18]
mov ecx, dword [0x676438]
mov edx, edi
call fcn.10001ee1
mov edx, dword [ebx + 0x60]
test edx, edx
je 0x10003168
cmp dword [ebx + 0x64], 0
je 0x10003168
xor eax, eax
lea ecx, [edx + edi]
inc eax
sub eax, dword [ecx + 0x10]
cmp eax, dword [ecx + 0x14]
jae 0x10003110
push eax
push ecx
push dword [ebx + 0x64]
mov ecx, edi
call fcn.10001eb3
mov ecx, eax
xor eax, eax
jmp 0x10003114
xor eax, eax
mov ecx, eax
mov edx, dword [ebp - 4]
push 2
mov dword [edx + 4], ecx
mov edx, dword [ebx + 0x60]
pop ecx
lea esi, [edx + edi]
sub ecx, dword [esi + 0x10]
cmp ecx, dword [esi + 0x14]
jae 0x1000313d
push ecx
push esi
push dword [ebx + 0x64]
mov ecx, edi
call fcn.10001eb3
mov ecx, eax
xor eax, eax
jmp 0x1000313f
mov ecx, eax
mov edx, dword [ebp - 4]
push 3
mov dword [edx + 8], ecx
mov edx, dword [ebx + 0x60]
pop ecx
lea esi, [edx + edi]
sub ecx, dword [esi + 0x10]
cmp ecx, dword [esi + 0x14]
jae 0x10003162
push ecx
push esi
push dword [ebx + 0x64]
mov ecx, edi
call fcn.10001eb3
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10012220
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x10083ceb
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.10078bff
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x100122a2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.10076b11
mov eax, dword [eax]
push 0x10253c80
push eax
call fcn.10069644
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.10078e8a
test bl, bl
je 0x100122a2
push 0x10253c80
lea ecx, [esp + 0xc]
call fcn.1007921a
push 0x10253c8c
lea ecx, [esp + 0xc]
call fcn.1007921a
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 0x100122de
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.10078e8a
jmp 0x100123a9
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 0x10012362
lea edx, [esp + 0x7c]
push 0x10253c88
push edx
call fcn.10069644
add esp, 8
test eax, eax
je 0x10012362
lea eax, [esp + 0x7c]
push 0x10253c84
push eax
call fcn.10069644
add esp, 8
test eax, eax
je 0x10012362
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 0x100122f2
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.10078e8a
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 0x10012ba0
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 0x10012c02
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 0x10012c10
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x10083d6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x1025d714]
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 0x10012d48
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x10012c76
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.10078e8a
xor eax, eax
jmp 0x10012dbf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.10078fc7
push esi
lea ecx, [esp + 0xc]
call fcn.10079256
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 0x10012d9d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.10012ba0
test eax, eax
jne 0x10012d9d
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.10012ba0
test eax, eax
jne 0x10012d9d
lea eax, [esp + 0x14]
push 0x10253c9c
push eax
call fcn.1006a790
mov esi, eax
add esp, 8
test esi, esi
jne 0x10012d7c
lea ecx, [esp + 0x14]
push 0x10253c98
push ecx
call fcn.1006a710
mov esi, eax
add esp, 8
test esi, esi
jne 0x10012d7c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x10012d7f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.10078f77
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x10012c8e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.10078e8a
xor eax, eax
jmp 0x10012dbf
mov byte [esi], 0
push 0x10253c94
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.10078e8a
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 0x10022100
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 0x1002216e
cmp si, 0x69
ja 0x1002216e
add esi, 0xffd0
cmp si, 0x11
je 0x1002213e
push 0x11
call edi
test ax, ax
jge 0x1002213e
or esi, 0x2000
cmp si, 0x10
je 0x10022153
push 0x10
call edi
test ax, ax
jge 0x10022153
or esi, 0x4000
cmp si, 0x12
je 0x10022168
push 0x12
call edi
test ax, ax
jge 0x10022168
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x1002217b
mov esi, 0xbd
jmp 0x1002212f
cmp si, 0x6e
jne 0x10022188
mov esi, 0xbe
jmp 0x1002212f
cmp si, 0x6f
jne 0x10022129
mov esi, 0xbf
jmp 0x1002212f

Function at 0x100238b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x1026de80]
xor edx, edx
cmp eax, edx
jne 0x100238d6
xor eax, eax
mov byte [eax + 0x1026dd80], al
inc eax
cmp eax, 0x100
jl 0x100238be
mov dword [0x1026de80], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x1026dd80
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x10023967
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 0x1002393a
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 0x10023908
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x100239e0
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 0x10023a33
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 0x10023a1a
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