joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406726
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00403960
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4067c1
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40990c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4067c1
cmp eax, 1
je 0x4067e2
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4067c1
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40678e
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4067bd
xor eax, eax
inc eax
jmp 0x406801
cmp edi, eax
jae 0x4067c5
xor eax, eax
jmp 0x406801
cmp eax, esi
jae 0x4067cc
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40990c]
jmp 0x4067e5
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405ed6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232f4], 0
push esi
jne 0x405f0d
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 0x405ee7
mov dword [ecx*4 + 0x4232f0], eax
inc ecx
cmp ecx, 0x100
jl 0x405ee2
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f3e
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 + 0x4232f0]
xor eax, esi
inc ecx
dec edx
jne 0x405f20
pop edi
not eax
pop esi
ret 0xc

Function at 0x4659a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x457015
lea edi, [esi - 0x56015]
push edi
or ebp, 0xffffffff
jmp 0x4659c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4659c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4659b8
mov eax, 1
add ebx, ebx
jne 0x4659db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4659d0
jne 0x4659ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4659d0
xor ecx, ecx
sub eax, 3
jb 0x465a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x465a72
mov ebp, eax
add ebx, ebx
jne 0x465a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x465a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x465a3c
inc ecx
add ebx, ebx
jne 0x465a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x465a1d
jne 0x465a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x465a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x465a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x465a4d
jmp 0x4659be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x465a5c
add edi, ecx
jmp 0x4659be
pop esi
mov edi, esi
mov ecx, 0x33e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x465a7a
cmp byte [edi], 0
jne 0x465a7a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x465a7f
lea edi, [esi + 0x63000]
mov eax, dword [edi]
or eax, eax
je 0x465aee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x651f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x65254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x465aac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x65258]
or eax, eax
je 0x465ae8
mov dword [ebx], eax
add ebx, 4
jmp 0x465ac9
call dword [esi + 0x6525c]
popal
jmp 0x40da18
Function at 0x4f4b02
Capabilities:
Encode data using xor

Disassembly:
push 0x4f486f
mov ecx, dword [esp]
add esp, 4
inc ebx
call fcn.004f4b3b
mov edi, 0xb5193830
xor dword [esi], ecx
add ebx, 1
and ebx, edi
inc esi
add ebx, 0xba5781a0
or edi, edi
or ebx, ebx
cmp esi, edx
jne fcn.004f4b02
sub edi, 0xd3c3874f
ret
Function at 0x401fd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x70
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x4027b0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov word [ebp - 0x42], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x30]
jae 0x40216f
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x68]
mov dword [esp], eax
call fcn.00402810
sub esp, 4
cmp dword [ebp + 8], 0
jbe 0x402134
cmp dword [ebp + 0xc], 3
jbe 0x402134
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x10], 0
mov eax, esp
lea ecx, [ebp - 0x68]
mov dword [eax], ecx
mov dword [eax + 4], 0x14d
call fcn.00401e40
mov dword [ebp - 0x74], eax
jmp 0x4020d3
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x40212f
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp + 0xc]
jne 0x40212a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x24]
mov ecx, dword [ebp - 0x48]
shl ecx, 1
add eax, ecx
mov ax, word [eax]
mov word [ebp - 0x42], ax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x1c]
movzx ecx, word [ebp - 0x42]
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x70], 2
jmp 0x402144
jmp 0x40212f
jmp 0x402134
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x68]
call fcn.004028d0
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x402161
jmp 0x40215c
jmp 0x40216f
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x402068
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
add eax, ecx
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x70
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4021b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x446000], eax
pop esi
pop edi
pop ebp
ret
Function at 0x40105f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0x10]
xor ebx, ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x4010a5
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov dword [esi + 0xc], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [esi + 8], eax
je 0x4010a5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4019f4
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x401a35
cmp dword [eax], edi
je 0x401a15
xor eax, eax
jmp 0x401baf
push dword [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [esi + 4]
mov dword [ecx], eax
mov eax, dword [esi + 4]
xor ecx, ecx
cmp dword [eax], edi
setne cl
mov eax, ecx
jmp 0x401baf
cmp dword [esi], 0xffffffff
jne 0x401a0e
or dword [esi], 0xffffffff
mov edi, dword [ebp + 8]
push ebx
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
je 0x401ba6
push dword [ebp + 0xc]
push edi
call fcn.0040cf27
pop ecx
cmp eax, 0xffffffff
pop ecx
mov dword [esi], eax
jne 0x401b9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x10c]
mov ebx, eax
call fcn.00402b8b
push 0xcb
lea ecx, [ebp - 0x214]
call fcn.00402b98
cmp ebx, 5
je 0x401b07
cmp ebx, 0x20
jne 0x401b9d
push edi
lea eax, [ebp - 0x31c]
push ebx
push eax
call fcn.004018cd
pop ecx
pop ecx
mov ecx, eax
call fcn.00402c19
push eax
lea eax, [ebp - 0x10c]
push 0xe7
push eax
call fcn.00402c20
add esp, 0x10
lea ecx, [ebp - 0x214]
push 0x15
call fcn.00402c19
push eax
lea ecx, [ebp - 0x10c]
call fcn.00402c19
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 4
je 0x401b9d
push dword [ebp + 0xc]
push edi
call fcn.0040cf27
and dword [ebp - 4], 0
pop ecx
pop ecx
mov dword [esi], eax
jmp 0x401b9d
push edi
lea eax, [ebp - 0x10c]
push 0xe6
push eax
call fcn.00402c20
add esp, 0xc
cmp dword [0x415190], 6
je 0x401b4d
push 0x34
lea ecx, [ebp - 0x214]
call fcn.00402c19
push eax
lea ecx, [ebp - 0x10c]
call fcn.00402c19
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x401af1
cmp dword [0x415190], 0
jne 0x401b91
lea eax, [ebp - 0x10c]
push 0xea
push eax
call fcn.00402c20
pop ecx
pop ecx
push 0x44
lea ecx, [ebp - 0x214]
call fcn.00402c19
push eax
lea ecx, [ebp - 0x10c]
call fcn.00402c19
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [0x415190], eax
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [esi], 0xffffffff
je 0x401a48
xor eax, eax
cmp dword [esi], 0xffffffff
pop ebx
setne al
pop edi
pop esi
leave
ret 0xc
Function at 0x401c42
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x401c82
mov edx, dword [eax]
test edx, edx
jne 0x401c57
or eax, 0xffffffff
jmp 0x401c94
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push edi
mov edi, dword [esp + 0x10]
sub ecx, eax
cmp edi, ecx
jbe 0x401c6a
mov edi, ecx
add eax, edx
push edi
push eax
push dword [esp + 0x14]
call fcn.0040d4a0
add esp, 0xc
add dword [esi + 0xc], edi
mov eax, edi
pop edi
jmp 0x401c94
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esi]
call fcn.0040d2a7
add esp, 0xc
pop esi
ret 8

Function at 0x401d1f
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push edi
push eax
mov ax, word [esi + 0x1a]
push eax
mov ax, word [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov al, byte [esi + 0x1c]
push dword [ebp + 0xc]
and eax, 0x27
mov edi, eax
lea eax, [ebp - 0x114]
push eax
call fcn.0040da40
lea eax, [ebp - 0x114]
push eax
call fcn.0040199a
push dword [esi + 4]
lea eax, [ebp - 0x114]
push eax
call fcn.0040da50
add esp, 0x14
lea eax, [ebp - 0x114]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor esi, esi
lea eax, [ebp - 0x114]
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
leave
ret 8
Function at 0x401e08
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, esi
je 0x401eaa
cmp byte [edi], 0x2a
jne 0x401ef3
cmp dword [0x415194], esi
jne 0x401eaa
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x104]
push eax
push esi
lea eax, [ebp - 0x20c]
push 0x41405c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x10
call fcn.004064de
cmp eax, esi
pop ecx
je 0x401e75
push esi
push esi
mov ecx, eax
call fcn.004019d3
jmp 0x401e77
xor eax, eax
cmp eax, esi
mov dword [0x415194], eax
je 0x401eaa
push esi
lea ecx, [ebp - 0x104]
push esi
push ecx
mov ecx, eax
call fcn.004019f4
test eax, eax
jne 0x401eb2
mov eax, dword [0x415194]
cmp eax, esi
je 0x401ea4
push eax
call fcn.004064e9
pop ecx
mov dword [0x415194], esi
or eax, 0xffffffff
jmp 0x401fa2
mov eax, dword [edi + 2]
mov ecx, dword [0x415194]
dec eax
push esi
push eax
call fcn.00401beb
cmp eax, 0xffffffff
jne 0x401ed5
mov ecx, dword [0x415194]
call fcn.00401cee
jmp 0x401ea4
mov ecx, dword [0x415194]
lea eax, [ebp - 0x104]
push 1
push eax
call fcn.00401c98
mov eax, dword [0x415194]
jmp 0x401fa2
push 0x10
call fcn.004064de
cmp eax, esi
pop ecx
je 0x401f0c
push esi
push esi
mov ecx, eax
call fcn.004019d3
mov ebx, eax
jmp 0x401f0e
xor ebx, ebx
cmp ebx, esi
je 0x401eaa
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp + 0xc]
push edi
call fcn.00401bb5
test eax, eax
jne 0x401fa0
jmp 0x401f29
mov edi, dword [ebp + 8]
push edi
call fcn.00401965
pop ecx
mov edi, eax
lea ecx, [ebp - 0x210]
call fcn.00402b8b
push edi
lea eax, [ebp - 0x210]
push 0xb6
push eax
call fcn.00402c20
add esp, 0xc
lea ecx, [ebp - 0x108]
push 0xcb
call fcn.00402b98
push 0x31
lea ecx, [ebp - 0x108]
call fcn.00402c19
push eax
lea ecx, [ebp - 0x210]
call fcn.00402c19
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x401eaa
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401bb5
test eax, eax
je 0x401f26
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4026f7
Capabilities:
Hash data via wincrypt

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
ret 8

Function at 0x40299c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x108]
call fcn.00402b8b
cmp dword [esi + 8], 0
lea ebx, [esi + 8]
jne 0x4029cf
push ebx
push str.SOFTWAREMicrosoftCryptographyDefaultsProvider
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edi, dword [esi + 0xc]
lea ecx, [ebp - 0x108]
lea eax, [edi + 1]
mov dword [esi + 0xc], eax
mov eax, 0x105
push eax
push eax
call fcn.00402e3f
push eax
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x108]
call fcn.00402e5b
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call fcn.00402bd3
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x402b00
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
cmp edi, ebp
mov esi, ecx
je 0x402b2e
call fcn.00402a75
test eax, eax
jne 0x402b2e
push 0x10
push str.Crypt
push 0x414168
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
xor edi, edi
cmp edi, ebp
mov dword [esi + 0x10], edi
mov eax, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
jne 0x402b3f
mov eax, str.Microsoft_Base_Cryptographic_Provider_v1.0
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push ebp
push 1
add esi, 4
push eax
push ebp
push esi
call edi
mov ebx, eax
cmp ebx, ebp
jne 0x402b6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x402b6e
push 8
push 1
push ebp
push ebp
push esi
call edi
mov ebx, eax
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret 4

Function at 0x403559
Capabilities:
Accept command line arguments

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0
mov esi, 0x4151c0
push dword [esp + 0xc]
mov ecx, esi
push 0
call fcn.00403592
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, esi
mov dword [0x415244], eax
call fcn.00403657
push esi
call fcn.004040de
xor eax, eax
pop esi
ret 0x10

Function at 0x403592
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
mov dword [esi + 0x70], 0x414210
mov dword [0x4151b0], esi
mov dword [esi], 0x84
push esi
mov dword [esi + 0x64], 0x300
call fcn.0040405b
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x4035db
push 0x10
push dword [ebp + 0x10]
push 0x4151a0
call fcn.0040de50
add esp, 0xc
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
cmp eax, 1
jbe 0x403649
or dword [esi + 0x74], 0xffffffff
add eax, eax
xor ecx, ecx
test eax, 0x80000000
jne 0x403613
shr dword [esi + 0x74], 1
shl eax, 1
inc ecx
cmp ecx, 0x20
jl 0x403601
shr dword [esi + 0x74], 1
mov eax, dword [esi + 0x74]
push edi
lea eax, [eax*4 + 4]
push eax
push ebx
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x78], eax
xor edi, edi
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov ecx, dword [esi + 0x78]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, dword [esi + 0x74]
jbe 0x403631
pop edi
jmp 0x40364f
mov dword [esi + 0x78], ebx
mov dword [esi + 0x74], ebx
pop esi
xor eax, eax
pop ebx
leave
ret 0xc
Function at 0x4043c6
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0xffffffff
jne 0x4043f3
push esi
mov esi, dword [ebp + 0xc]
push 0
push 0
push 0x402
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
push 5
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret
cmp dword [ebp + 8], 0xfffffffe
push 0
jne 0x404409
mov eax, dword [ebp + 0xc]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret
push dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push 0x402
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
pop ebp
ret

Function at 0x404737
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x4116f4
call fcn.0040cf08
sub esp, 0x338
push ebx
push esi
mov esi, ecx
and dword [ebp - 0x14], 0
push edi
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x568]
mov dword [ebp - 0x10], esp
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x570]
jae 0x404834
mov eax, dword [ebp - 0x18]
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x2c]
lea edi, [eax + 0xc]
mov al, byte [eax + 0xc]
mov byte [ebp - 0x2c], al
call fcn.004058df
push dword [0x412254]
lea ecx, [ebp - 0x2c]
push ebx
push edi
call fcn.00405811
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x4047a6
mov eax, 0x412250
push eax
lea ecx, [ebp - 0x134]
call fcn.00402b98
lea ecx, [ebp - 0x18]
call fcn.00405f15
lea eax, [ebp - 0x134]
lea edi, [esi + 0x45c]
push eax
lea eax, [ebp - 0x23c]
push edi
push eax
mov byte [ebp - 4], 1
call fcn.00402cec
add esp, 0xc
mov ecx, eax
call fcn.00402c19
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x344]
push edi
push eax
call fcn.00402cec
add esp, 0xc
mov ecx, eax
call fcn.00402c19
push eax
call fcn.0040303c
pop ecx
jmp 0x40481e
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x2c]
call fcn.004058df
inc dword [ebp - 0x14]
jmp 0x404761
mov eax, dword [esi + 0x568]
push eax
mov ecx, dword [eax]
lea eax, [ebp - 0x1c]
push ecx
push eax
lea ecx, [esi + 0x564]
call fcn.0040591b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4051a2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x684
push ebx
push esi
push edi
push 0x44
pop edi
xor esi, esi
push edi
lea eax, [ebp - 0x54]
push esi
mov ebx, ecx
push eax
call fcn.0040db30
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.0040db30
add esp, 0x18
mov dword [ebp - 0x54], edi
lea ecx, [ebp - 0x15c]
mov word [ebp - 0x24], 5
push 1
pop edi
push dword [ebp + 0xc]
mov dword [ebp - 0x28], edi
call fcn.00402b98
push dword [ebp + 0x10]
lea ecx, [ebp - 0x57c]
call fcn.00402b98
push 0x5c
lea ecx, [ebp - 0x15c]
call fcn.00402da3
cmp eax, 0xffffffff
jne 0x405235
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x57c]
push eax
lea eax, [ebp - 0x36c]
push eax
call fcn.00402cec
add esp, 0xc
lea ecx, [ebp - 0x15c]
push eax
call fcn.00402bd3
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 0x10]
push esi
push 0x4000000
push edi
push esi
push esi
call fcn.00402c19
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4052ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0x474]
push edi
push eax
call fcn.004018cd
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x36c]
call fcn.00402bd3
lea ecx, [ebp - 0x264]
call fcn.00402b8b
push edi
lea eax, [ebp - 0x264]
push str._0x_x__n
push eax
call fcn.00402c62
add esp, 0xc
lea ecx, [ebp - 0x15c]
call fcn.00402c19
mov edi, eax
lea eax, [ebp - 0x36c]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x474]
push 0x414540
push eax
call fcn.00402d64
add esp, 0xc
push eax
lea eax, [ebp - 0x684]
push eax
call fcn.00402cec
add esp, 0xc
mov ecx, eax
call fcn.00402c19
push esi
push edi
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x405314
cmp dword [0x415254], esi
je 0x405312
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x407dfc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x407e43
cmp edx, 0x10
jl 0x407e2f
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x407e1c
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x407e43
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x407e3b
and edx, 3
cmp edx, 3
jne 0x407e57
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x407e5c
cmp edx, 2
jne 0x407e68
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x407e6d
cmp edx, 1
jne 0x407e73
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret