joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4011c0
Capabilities:
Encode data using xor

Disassembly:
invalid
inc esi
insd dword es:[edi], dx
out 0x30, eax
lodsd eax, dword [esi]
dec edi
push esi
std
out dx, eax
movsd dword es:[edi], dword [esi]
enter 0x19fc, 0x49
xor dword [ecx + eax*2], 0xffffffeb
sbb dword [esp + ebx*4], ecx
xchg dword [ecx], ecx
cli
push edi
jp 0x40112e
mov ebx, 0x361ebc17
test dword [edi - 0x76], 0xbe590e7e
push ds
test dword ss:[edi - 0x76], 0xbe590e7e
in al, dx
push edi
push cs
jecxz 0x4011a1
mov cl, byte [edx - 0x6c]
xchg byte [edx - 0x32], cl
mov dh, 0xe0
fimul word [eax + 0x95719a6]
ja 0x401141
div byte [ebx + 0x3d8c33fa]
push edi
lahf
mov ecx, 0xbafef057
jge 0x40116b
in al, 0x5e
stosb byte es:[edi], al
dec esp
fdivr qword [ebx]
dec ebp
test al, 0x5f
pop esp
invalid
jo 0x40121d
lcall 0x957e, 0x8545035b
je 0x401156
push esi
cmpsb byte [esi], byte es:[edi]
sub edi, dword [edx]
xor al, 0xf
les ebx, [edx + 0x70]
scasb al, byte es:[edi]
push ss
and byte [esi - 0xf], bh
sbb al, 0x6d
fcmovnbe st(0), st(2)
pop ebp
cwde
aaa
and esp, dword [esi]
invalid
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x402200
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x30], 0x1042
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
mov ecx, esp
mov dword [ecx], eax
call fcn.00402ce0
sub esp, 4
xor ecx, ecx
add ecx, 0x18
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x14]
movzx ecx, word [ecx + 0x14]
add eax, ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
add eax, 0xffffefbe
mov dword [esp + 0x2c], eax
jmp 0x40228b
mov al, byte [esp + 0x37]
and al, 0x98
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x37], al
add ecx, 0xffffefbf
add ecx, dword [esp + 0x2c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x28]
add ecx, 0x28
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
movzx ecx, word [ecx + 6]
cmp eax, ecx
jb 0x4022c8
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x54]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov esi, esp
mov dword [esi + 8], eax
mov dword [esi + 4], edx
mov dword [esi], ecx
call fcn.004037d0
sub esp, 0xc
mov dword [esp + 0x10], eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 8
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
add eax, dword [ecx + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx + 0x14]
mov eax, dword [eax + 0x10]
mov edx, dword [esp + 0x1c]
add ecx, dword [esp + 0x20]
mov esi, esp
mov dword [esi + 8], eax
mov dword [esi + 4], ecx
mov dword [esi], edx
call fcn.004037d0
sub esp, 0xc
mov dword [esp + 0xc], eax
jmp 0x402264
Function at 0x4063fd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406422
mov eax, dword [0x40a8c8]
cmp eax, 0xffffffff
je 0x406419
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8c8], 0xffffffff
jmp 0x406495
cmp dword [0x424a80], ebx
je 0x406495
cmp byte [0x424680], bl
je 0x406461
cmp dword [0x40a8c8], 0xffffffff
jne 0x40646a
push 4
push 0x40000000
push 0x424680
call fcn.00405dd9
cmp eax, 0xffffffff
mov dword [0x40a8c8], eax
je 0x406495
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8c8], 0xffffffff
je 0x406495
push esi
mov esi, 0x4252a0
push 0x40ab10
push esi
call sub.KERNEL32.dll_lstrcatA
lea eax, [ebp + 8]
push ebx
push eax
push esi
call sub.KERNEL32.dll_lstrlenA
push eax
push esi
push dword [0x40a8c8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x40663d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x424284], 0
push esi
jne 0x406674
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 0x40664e
mov dword [ecx*4 + 0x424280], eax
inc ecx
cmp ecx, 0x100
jl 0x406649
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4066a5
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 + 0x424280]
xor eax, esi
inc ecx
dec edx
jne 0x406687
pop edi
not eax
pop esi
ret 0xc

Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x42b224
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x438e80]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042b1b9
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.004162c0
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 0x42b273
cmp dword [ebp - 0x1c], 5
jb 0x42b28b
jmp 0x42b287
cmp dword [ebp - 0x10], 1
jne 0x42b28b
cmp dword [ebp - 0x1c], 4
ja 0x42b287
jne 0x42b28b
cmp dword [ebp - 0x18], 0
jbe 0x42b28b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4327a4
call fcn.0042b08d
test eax, eax
jge 0x42b2ac
mov byte [0x43a368], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00416063
add ebp, 0x78
leave
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x43ab90
Capabilities:
Encode data using xor

Disassembly:
jbe 0x43aba2
sahf
pop ebp
or eax, 0xf6649740
dec edi
mov al, 0xc7
xchg edi, eax
test byte fs:[edi - 0x50], 0xc7
xchg ecx, eax
inc ebx
dec edi
movsb byte es:[edi], byte [esi]
adc eax, 0x9e883613
leave
xor eax, 0x919fb903
mov byte ss:[esi - 0x46fcca37], bl
lahf
xchg ecx, eax
xor edi, dword [edi + 0x5c90a6be]
stosd dword es:[edi], eax
and al, 0x48
fcom qword [ebx + edi]
jecxz 0x43ab96
stc
fcom dword [edx - 0x7c]
dec ebx
invalid

Function at 0x43b280
Capabilities:
Encode data using xor

Disassembly:
xchg dword [edi - 0x2c303dc3], edx
lodsd eax, dword [esi]
inc esi
inc esp
push esp
xor cl, byte [edx - 6]
insb byte es:[edi], dx
call 0xe31abfa7
add eax, 0x493a34c2
sub eax, 0xd251db7a
lea eax, [ebp - 0x3e]
xchg ebx, eax
mov byte [eax], ah
xchg edi, eax
or esp, dword [0xdee5cfd5]
add al, 0x5f
cmp eax, 0xaf1b32b5
js 0x43b2fb
int 0x3e
adc byte [edi + 0x40], bl
ret 0x8e9b
push edi
add ch, dh
salc
and eax, 0x707df479
in al, dx
mov bh, byte [0x9d29c9f3]
dec ecx
loop 0x43b37c
jmp 0x43b34b
test dword [edx], ebp
mov byte [0x68c5a8be], al
sub ah, byte [edx + 0x68c5a8be]
test eax, edx
stosb byte es:[edi], al
sti
and dword [ebx], esp
pop edx
enter 0x2e87, 0xffffffffffffffe6
mov bl, 0xfd
cmp bh, byte [edi + 0x1670df4d]
pop ebp
cmp dword [0xc4ea2da6], eax
xor dword [ebp - 0x38], ebx
loope 0x43b383
inc esi
lahf
mov bl, 0x4c
push ecx
add al, 0x12
pop esp
fiadd dword [edi + ecx]
imul edi, dword [edi - 0x23c66ba], 0xb2932a44
and dword [ebx - 0x6430b381], eax
xor ch, byte [0x3bd6c1dd]
xchg ebx, eax
cmovl edi, dword [ecx + 0x66]
ja sym.Files_Loader.exe__ControllerTmsToFloat_8
sub dl, byte [ebx + 0x7f8321b2]
dec esp
iretd
cli
dec ebp
pop edi
jl 0x43b389
mov word [edx], ss
sar dword [eax + 0x75], cl
pop esp
pop edi
jo 0x43b404
xor dword [edx], edx
or dword [esi + 0x5c], ebp
mov bh, 0x51
int 0xcd
jno 0x43b407
xor cl, cl
call 0x2acacc48
mov ah, 0xaa
pop ss
xchg dword [ecx + 9], ebp
inc ebp
jb 0x43b34a
mov ecx, dword [edi]
retf 0x5b1b
aam 0x5e
enter 0xffffffffffffc76b, 0xffffffffffffffcd
imul eax, edi, 0xffffffcd
dec ebp
xor esi, ebp
jmp 0x43b436
imul ecx, dword [eax - 0x5731642d], 0xc8f530e5
xor eax, 0x9050f9f4
out 0xa4, al
into
jmp 0xfcd304bd
Function at 0x1001aaf0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001ab2f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001ab2f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001ab2f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001ab2f
cmp dword [ecx + 0x74], 0xe
jbe 0x1001ab2f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001d7ed
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001d88a
push ebx
push esi
call fcn.1001d7b6
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001d74a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001d837
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001d889
push edi
push eax
call fcn.1001b82d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001d857
call fcn.1001c292
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001d888
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001d74a
add esp, 0x20
test eax, eax
jne 0x1001d876
push edi
call fcn.1001c292
jmp 0x1001d87e
push ebx
call fcn.1001c292
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001daf7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025d10
push 0x10025d08
push str.FlsAlloc
push 0x1f
call fcn.1001da13
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001db2b
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002414c]
call esi
jmp 0x1001db31
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001db75
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025d20
push 0x10025d18
push str.FlsGetValue
push 0x21
call fcn.1001da13
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001dbac
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002414c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001dbb4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025d28
push 0x10025d20
push str.FlsSetValue
push 0x22
call fcn.1001da13
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001dbee
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002414c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10023190
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100231bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100231bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 2
jge 0x40100e
or eax, 0xffffffff
pop ebp
ret
push esi
mov esi, dword [ebp + 0xc]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401048
xor eax, eax
push eax
push eax
push 3
push eax
push 7
push 0x40000000
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x401041
xor eax, eax
inc eax
jmp 0x40104a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ebp
ret

Function at 0x40104d
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4030e0]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x401069
call eax
test eax, eax
jne 0x401069
push 0xfffffffffffffffe
jmp 0x401083
push 1
push 0x403010
push 0x403008
call fcn.00401219
add esp, 0xc
test eax, eax
je 0x401089
push 0xfffffffffffffffd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push edi
push 0x403004
push section..data
call fcn.00401219
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, eax
cmp ebx, edi
jne 0x4010ad
mov ebx, 0x402024
push edi
push edi
lea eax, [ebp - 4]
push eax
push ebx
call fcn.00401180
push eax
call fcn.0040116d
mov esi, eax
add esp, 0x14
cmp esi, edi
je 0x4010e0
mov eax, dword [ebp - 4]
lea eax, [esi + eax*4 + 4]
push eax
push esi
lea eax, [ebp - 4]
push eax
push ebx
call fcn.00401180
add esp, 0x10
jmp 0x4010e3
mov dword [ebp - 4], edi
test eax, 0xa0d0a0d
sub eax, 0x54524357
sub eax, 0xa0d0a0d
cmp esi, edi
push edi
je 0x40110d
push esi
push dword [ebp - 4]
call fcn.00401000
push esi
mov edi, eax
call fcn.0040115a
add esp, 0x10
jmp 0x401119
push edi
push edi
call fcn.00401000
add esp, 0xc
mov edi, eax
push edi
call fcn.00401125
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401125
Capabilities:
Terminate process

Disassembly:
call fcn.00401240
push 0
push 0x403018
push 0x403014
call fcn.00401219
push 0
push 0x403020
push 0x40301c
call fcn.00401219
add esp, 0x18
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x418716
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4312c8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004186ab
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.00419940
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 0x418765
cmp dword [ebp - 0x1c], 5
jb 0x41877d
jmp 0x418779
cmp dword [ebp - 0x10], 1
jne 0x41877d
cmp dword [ebp - 0x1c], 4
ja 0x418779
jne 0x41877d
cmp dword [ebp - 0x18], 0
jbe 0x41877d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42b908
call fcn.00401020
test eax, eax
jge 0x41879e
mov byte [0x432280], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00418ff5
add ebp, 0x78
leave
ret

Function at 0x418ff5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4312c8]
jne 0x418fff
repz ret
jmp fcn.0041cefc

Function at 0x41a747
Capabilities:
Access peb ldr_data

Disassembly:
push esi
push ebx
push edx
sub esi, esi
add esi, 0x30
mov ebx, dword fs:[esi]
push ecx
mov ecx, dword [ebx + 8]
dec ebx
or byte [ebx - 0x75], cl
push ebx
or eax, 0xc683328d
or al, 0x8b
push ds
push edi
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x41a78f
mov edx, ebx
add edx, 0x30
mov edx, dword [edx]
mov edi, dword [edx]
and edi, 0xdf00df
mov edx, dword [edx + 0xb]
add edx, edi
shr edx, 1
sub edx, 0x192299a5
cmp edx, 0
je 0x41a795
mov edx, dword [ebx]
lea ebx, [edx]
jmp 0x41a762
call fcn.0041a898
call fcn.0041a859
push eax
call fcn.0041a84e
mov ebx, edi
mov eax, dword [ebx]
add eax, esi
mov ebx, dword [eax + 0xb]
add ebx, ebx
sub ebx, 0xe8c6ca
cmp ebx, 0
jne 0x41a7bd
jmp 0x41a7c2
add edi, 4
jmp 0x41a7a5
mov ebx, edx
add ebx, 0x20
mov ebx, dword [ebx]
sub edi, esi
sub edi, ebx
shr edi, 1
mov ebx, dword [edx + 0x24]
add ebx, edi
add ebx, esi
mov edi, dword [ebx]
shl edi, 0x10
shr edi, 0xe
mov ebx, dword [edx + 0x1c]
add ebx, esi
add ebx, edi
mov edi, dword [ebx]
add edi, esi
mov ebx, 0x95000
push esi
mov edx, 0x195000
lea eax, [0x40]
push ecx
add edx, ecx
push ebx
push esp
push eax
push ebx
push edx
call edi
pop ebx
pop ecx
push eax
mov esi, 0x14d7c0
lea ebx, [0x1b3000]
add esi, ecx
add ebx, ecx
mov edx, 0x2854
call fcn.0041a864
lea esi, [0x3dff]
mov edx, 0x1b0a4
mov ebx, 0x195000
add ebx, ecx
lea edi, [0x4f]
imul esi, edi
add esi, 0x40f
add esi, ecx
call fcn.0041a864
jmp 0x41a89e
nop
ret
lea edx, [0x4d0]
mov esi, 0x10000000
lea ebx, [0x195000]
add ebx, ecx
mov edi, 3
imul edx, edi
add edx, 0x190
sub ebx, edx
lea edx, [ebx]
sub edx, esi
lea esi, [0x1505c0]
add esi, ecx
mov edi, dword [esi]
xor edi, 0x3f94b851
not dword [ecx - 0x48]
xchg esp, eax
aas
dec edi
test edi, edi
je 0x41a8e7
add edi, ebx
mov eax, dword [edi]
add eax, edx
mov dword [edi], eax
add esi, 4
jmp 0x41a8cd
lea ebx, [0x2b13]
lea esi, [0x2c90]
add esi, ecx
add esi, 0x1947f8
add esi, ebx
push esi
lea edx, [edi]
test edi, edi
jmp 0x41a888
Function at 0x402dec
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403a0c
test esi, esi
jne 0x402e22
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403ad0
jmp 0x402e40
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402c90
mov edi, eax
test esi, esi
je 0x402e40
cmp dword [ebx], 0
je 0x402e40
dec esi
jmp 0x402e29
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4030d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x407010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403168
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403148
xor eax, eax
push ebp
push 0x403141
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403184
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403148
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x407010]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x407010], ax
mov esp, ebp
pop ebp
ret

Function at 0x40388c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x408034], 0
je 0x4038ed
cmp word [0x408208], 0xd7b2
jne 0x4038b5
cmp dword [0x408210], 0
jbe 0x4038b5
mov eax, 0x408204
call dword [0x408220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403914
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40701c], 0
jne 0x403909
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4045dc
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x4045ff
cmp dword [esp + 4], 5
setae byte [0x407794]
add esp, 0x94
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
je 0x431072
nop
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x6bd57b2e
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x431060
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x6f0374aa
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219