joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002a8d
Capabilities:
Accept command line arguments

Disassembly:
push 0xf0
push 0x1008c10
call fcn.01004114
push dword [section..data]
call fcn.010040d5
pop ecx
mov dword [section..data], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 0xb0], 0x94
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1002a7d
mov ecx, dword [ebp - 0xa4]
and ecx, 0x7fff
mov edi, dword [ebp - 0xa0]
cmp edi, 2
je 0x1002924
or ecx, 0x8000
mov edx, dword [ebp - 0xac]
mov eax, edx
shl eax, 8
mov esi, dword [ebp - 0xa8]
add eax, esi
mov dword [0x100ad90], edi
mov dword [0x100ad98], eax
mov dword [0x100ad9c], edx
mov dword [0x100ada0], esi
mov dword [0x100ad94], ecx
call fcn.01002864
mov dword [ebp - 0xb8], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.0100400a
pop ecx
test eax, eax
jne 0x1002975
push 0x1c
call fcn.01002836
pop ecx
call fcn.01003e29
test eax, eax
jne 0x1002986
push 0x10
call fcn.01002836
pop ecx
mov dword [ebp - 4], ebx
call fcn.010037b0
test eax, eax
jge 0x100299a
push 0x1b
call fcn.01002b72
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100b91c], eax
call fcn.01003674
mov dword [0x100ad80], eax
call fcn.01003580
test eax, eax
jge 0x10029c0
push 8
call fcn.01002b72
pop ecx
call fcn.01003232
test eax, eax
jge 0x10029d1
push 9
call fcn.01002b72
pop ecx
push ebx
call fcn.01002c96
pop ecx
test eax, eax
je 0x10029e3
push eax
call fcn.01002b72
pop ecx
call fcn.010031ce
test byte [ebp - 0xd4], bl
je 0x10029f9
movzx ecx, word [ebp - 0xd0]
jmp 0x10029fc
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x1000000
call main
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb8], 0
jne 0x1002a1f
push eax
call fcn.01002df6
call fcn.01002e2c
jmp 0x1002a60
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0xb4]
jmp 0x1002a82
mov eax, 0xff
call fcn.0100415c
ret
call fcn.01004301
jmp 0x10028b0
Function at 0x1002e9b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x100a008]
je 0x1002ec1
inc esi
mov dword [ebp - 4], esi
cmp esi, 0x17
jb 0x1002eaf
cmp esi, 0x17
jae 0x100301b
push 3
call fcn.01005121
pop ecx
cmp eax, 1
je 0x1002fe5
push 3
call fcn.01005121
pop ecx
test eax, eax
jne 0x1002ef4
cmp dword [section..data], 1
je 0x1002fe5
cmp edi, 0xfc
je 0x100301b
push 0x100172c
mov edi, 0x314
push edi
mov esi, 0x100add8
push esi
call fcn.010050b4
add esp, 0xc
test eax, eax
je 0x1002f2a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01004897
add esp, 0x14
mov byte [0x100aef5], bl
push 0x104
mov ebx, 0x100adf1
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1002f6d
push 0x1001714
push 0x2fb
push ebx
call fcn.010050b4
add esp, 0xc
test eax, eax
je 0x1002f6d
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.01004897
add esp, 0x14
push ebx
push edi
push esi
call fcn.0100503b
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x1002f8b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01004897
add esp, 0x14
push 0x1001710
push edi
push esi
call fcn.0100503b
add esp, 0xc
test eax, eax
je 0x1002fab
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01004897
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x100a00c]
push edi
push esi
call fcn.0100503b
add esp, 0xc
test eax, eax
je 0x1002fd0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01004897
add esp, 0x14
push 0x12010
push 0x10016e8
push esi
call fcn.01004e94
add esp, 0xc
jmp 0x100301b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x100301b
cmp edi, 0xffffffff
je 0x100301b
mov edx, dword [esi*8 + 0x100a00c]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003004
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003e29
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x1001758
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x1003e7b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10017c4
push edi
call esi
push 0x10017b8
push edi
mov dword [0x100b1fc], eax
call esi
push 0x10017ac
push edi
mov dword [0x100b200], eax
call esi
push 0x10017a4
push edi
mov dword [0x100b204], eax
call esi
mov dword [0x100b208], eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [0x100b1fc], ebx
je 0x1003ea1
cmp dword [0x100b200], ebx
je 0x1003ea1
cmp dword [0x100b204], ebx
je 0x1003ea1
cmp dword [0x100b208], ebx
jne 0x1003ec5
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x100b200], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x100b1fc], 0x1003aed
mov dword [0x100b204], esi
mov dword [0x100b208], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x100a16c], eax
cmp eax, 0xffffffff
je 0x1003f38
push dword [0x100b200]
push eax
call esi
test eax, eax
je 0x1003f38
call fcn.01002e54
push dword [0x100b1fc]
call fcn.010039ef
push dword [0x100b200]
mov dword [0x100b1fc], eax
call fcn.010039ef
push dword [0x100b204]
mov dword [0x100b200], eax
call fcn.010039ef
push dword [0x100b208]
mov dword [0x100b204], eax
call fcn.010039ef
add esp, 0x10
mov dword [0x100b208], eax
call fcn.010046c9
test eax, eax
jne 0x1003f3e
call fcn.01003b2a
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x1003cd9
push dword [0x100b1fc]
call fcn.01003a75
pop ecx
call eax
mov dword [0x100a170], eax
cmp eax, 0xffffffff
je 0x1003f33
push 0x214
push 1
call fcn.0100618d
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x1003f33
push esi
push dword [0x100a170]
push dword [0x100b204]
call fcn.01003a75
pop ecx
call eax
test eax, eax
jne 0x1003f91
push esi
call fcn.010045e2
pop ecx
jmp 0x1003f33
push ebx
push esi
call fcn.01003b6c
or dword [esi + 4], 0xffffffff
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x1003f3a
Function at 0x1004e94
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.01003a67
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
cmp dword [0x100b6a4], ebx
jne 0x1004f6d
push ebx
push ebx
push 0x10018b8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
jne 0x1004ed8
xor eax, eax
jmp 0x1005031
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10018ac
push edi
call esi
cmp eax, ebx
je 0x1004ed1
push eax
call fcn.010039ef
mov dword [esp], 0x100189c
push edi
mov dword [0x100b6a4], eax
call esi
push eax
call fcn.010039ef
mov dword [esp], 0x1001888
push edi
mov dword [0x100b6a8], eax
call esi
push eax
call fcn.010039ef
mov dword [0x100b6ac], eax
lea eax, [ebp - 8]
push eax
call fcn.01002c0f
pop ecx
pop ecx
test eax, eax
je 0x1004f3b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01004897
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1004f6d
push 0x100186c
push edi
call esi
push eax
call fcn.010039ef
pop ecx
mov dword [0x100b6b4], eax
cmp eax, ebx
je 0x1004f6d
push 0x1001854
push edi
call esi
push eax
call fcn.010039ef
pop ecx
mov dword [0x100b6b0], eax
mov eax, dword [0x100b6b0]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1004fe6
cmp dword [0x100b6b4], esi
je 0x1004fe6
push eax
call fcn.01003a75
pop ecx
call eax
cmp eax, ebx
je 0x1004fb3
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x100b6b4]
call fcn.01003a75
pop ecx
call eax
test eax, eax
je 0x1004fb3
test byte [ebp - 0x18], 1
jne 0x1004fe6
lea eax, [ebp - 0xc]
push eax
call fcn.01002c50
pop ecx
test eax, eax
je 0x1004fce
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01004897
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1004fdd
or dword [ebp + 0x10], 0x200000
jmp 0x1005017
or dword [ebp + 0x10], 0x40000
jmp 0x1005017
mov eax, dword [0x100b6a8]
cmp eax, esi
je 0x1005017
push eax
call fcn.01003a75
pop ecx
call eax
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x1005017
mov eax, dword [0x100b6ac]
cmp eax, esi
je 0x1005017
push dword [ebp - 4]
push eax
call fcn.01003a75
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x100b6a4]
call fcn.01003a75
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1008405
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x100a178]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
xor esi, esi
push eax
mov dword [ebp - 0xc], esi
call fcn.01002c0f
pop ecx
test eax, eax
je 0x100843a
push esi
push esi
push esi
push esi
push esi
call fcn.01004897
add esp, 0x14
push 4
pop eax
call fcn.01008670
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1008556
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec edi
neg edi
sbb edi, edi
and edi, 0x103
inc edi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], esi
jne 0x10084cf
mov dword [ebp - 0x10], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x1001834
call esi
test eax, eax
jne 0x10084a6
push 0x100256c
call esi
test eax, eax
je 0x10084cf
push 0x10024a8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10084cf
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
call eax
cmp eax, 1
jne 0x10084cf
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x10084cf
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea esi, [ebx - 1]
push esi
push dword [ebp - 8]
call fcn.0100336d
add esp, 0xc
test eax, eax
jl 0x1008556
not esi
and dword [ebp - 8], esi
je 0x1008501
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.0100336d
add esp, 0xc
test eax, eax
jl 0x1008556
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x100850c
mov dword [ebp - 8], eax
lea esi, [ebx - 1]
not esi
and esi, dword [ebp - 0x14]
sub esi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x1008520
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp esi, ebx
jb 0x1008556
push 4
push 0x1000
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x1008556
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1008556
xor eax, eax
inc eax
jmp 0x1008558
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01002a9c
leave
ret
Function at 0x402242
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004023f2
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 0x402340
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 0x4022e3
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x402326
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4022fa
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x402315
test al, 0x40
je 0x40230c
mov ecx, dword [edi + 0x20]
jmp 0x402313
test al, 0x80
je 0x402326
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x402326
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 0x4022b2
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x41972e
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004198de
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 0x41982c
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 0x4197cf
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x419812
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4197e6
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x419801
test al, 0x40
je 0x4197f8
mov ecx, dword [edi + 0x20]
jmp 0x4197ff
test al, 0x80
je 0x419812
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x419812
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 0x41979e
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x41b4a6
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.0041da0a
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.0041da0a
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 8], 0
jne 0x41b522
mov eax, dword [0x5cf574]
mov dword [ebp + 8], eax
mov dword [ebp - 0x18], esp
push dword [ebp + 8]
push 0
push 0x1f0fff
mov eax, 0x25
call fcn.0041da22
cmp dword [ebp - 0x18], esp
je 0x41b54e
push 6
call fcn.0041da1c
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], esp
lea eax, [ebp - 8]
push eax
push 0xf01ff
push dword [ebp - 4]
mov eax, 0x2a
call fcn.0041da22
cmp dword [ebp - 0x18], esp
je 0x41b57c
push 6
call fcn.0041da1c
add esp, 4
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
push str.SeDebugPrivilege
push 0
mov eax, 0x2b
call fcn.0041da22
cmp dword [ebp - 0x18], esp
je 0x41b5a8
push 6
call fcn.0041da1c
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 2
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov dword [ebp - 0x18], esp
push 0
push 0
push 0
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
mov eax, 0x2c
call fcn.0041da22
cmp dword [ebp - 0x18], esp
je 0x41b637
push 6
call fcn.0041da1c
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
mov eax, 0x2d
call fcn.0041da22
cmp dword [ebp - 0x18], esp
je 0x41b65c
push 6
call fcn.0041da1c
add esp, 4
mov eax, dword [ebp - 0x14]
jmp 0x41b664
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.0041da10
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.0041da10
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x42b720
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c415b
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.004b3f43
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x42b7a2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004b168a
mov eax, dword [eax]
push 0x5b9288
push eax
call fcn.00491294
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004b41ce
test bl, bl
je 0x42b7a2
push 0x5b9288
lea ecx, [esp + 0xc]
call fcn.004b45aa
push 0x5bce0c
lea ecx, [esp + 0xc]
call fcn.004b45aa
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 0x42b7de
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004b41ce
jmp 0x42b8a9
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 0x42b862
lea edx, [esp + 0x7c]
push 0x5bce08
push edx
call fcn.00491294
add esp, 8
test eax, eax
je 0x42b862
lea eax, [esp + 0x7c]
push 0x5bce04
push eax
call fcn.00491294
add esp, 8
test eax, eax
je 0x42b862
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 0x42b7f2
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.004b41ce
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 0x42cb00
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 0x42cb62
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 0x42cb70
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c42bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5c9ee4]
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 0x42cca8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x42cbd6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004b41ce
xor eax, eax
jmp 0x42cd1f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004b4357
push esi
lea ecx, [esp + 0xc]
call fcn.004b45e6
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x5bce44
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x42ccfd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0042cb00
test eax, eax
jne 0x42ccfd
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 accept
mov ecx, edi
call fcn.0042cb00
test eax, eax
jne 0x42ccfd
lea eax, [esp + 0x14]
push 0x5bce20
push eax
call fcn.00492450
mov esi, eax
add esp, 8
test esi, esi
jne 0x42ccdc
lea ecx, [esp + 0x14]
push 0x5bce1c
push ecx
call fcn.004923d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x42ccdc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x42ccdf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004b4307
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x42cbee
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004b41ce
xor eax, eax
jmp 0x42cd1f
mov byte [esi], 0
push 0x5bce18
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.004b41ce
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 0x4407f0
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 0x44085e
cmp si, 0x69
ja 0x44085e
add esi, 0xffd0
cmp si, 0x11
je 0x44082e
push 0x11
call edi
test ax, ax
jge 0x44082e
or esi, 0x2000
cmp si, 0x10
je 0x440843
push 0x10
call edi
test ax, ax
jge 0x440843
or esi, 0x4000
cmp si, 0x12
je 0x440858
push 0x12
call edi
test ax, ax
jge 0x440858
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x44086b
mov esi, 0xbd
jmp 0x44081f
cmp si, 0x6e
jne 0x440878
mov esi, 0xbe
jmp 0x44081f
cmp si, 0x6f
jne 0x440819
mov esi, 0xbf
jmp 0x44081f

Function at 0x442020
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5dbca8]
xor edx, edx
cmp eax, edx
jne 0x442046
xor eax, eax
mov byte [eax + 0x5dbba8], al
inc eax
cmp eax, 0x100
jl 0x44202e
mov dword [0x5dbca8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5dbba8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4420d7
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 0x4420aa
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 0x442078
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x442150
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 0x4421a3
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 0x44218a
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