joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b52de
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x4b52fb
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4b52ec
add dl, dl
jne 0x4b5306
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4b5352
xor eax, eax
add dl, dl
jne 0x4b5313
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4b53ef
add dl, dl
jne 0x4b5322
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4b532d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4b5338
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4b5343
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x4b534d
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x4b52f2
mov eax, 1
add dl, dl
jne 0x4b5360
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4b536b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4b5357
sub eax, 2
jne 0x4b539a
mov ecx, 1
add dl, dl
jne 0x4b5380
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4b538b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4b5377
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4b52f2
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x4b53b1
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4b53bc
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4b53a8
cmp eax, 0x7d00
jae 0x4b53df
cmp eax, 0x500
jb 0x4b53da
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4b52f2
cmp eax, 0x7f
ja 0x4b53e2
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4b52f2
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x4b540b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4b52f2
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret 8
Function at 0x7201b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00720140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00720140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00720140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00720140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x720bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x720c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x73287c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x720c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x720c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x4066f8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0x4066f8
lcall 0x5de5, 0x8b10c483
jmp fcn.0077718c
Function at 0x46f520
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42b0a4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x206
xor edi, edi
lea ecx, [ebp - 0x20a]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x20c], ax
call fcn.00480d30
add esp, 0xc
mov dword [ebp - 0x210], edi
cmp esi, edi
je 0x46f5da
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [fcn.00423110]
push 0x427278
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0047f3b9
push 0x427270
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.0047eea2
mov eax, dword [ebp - 0x210]
add esp, 0x18
cmp eax, edi
je 0x46f5da
push eax
push 1
push 0x200
push esi
call fcn.0047f678
mov eax, dword [ebp - 0x210]
push eax
call fcn.0047f127
add esp, 0x14
lea eax, [edi + 1]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047ed07
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0047ed07
mov esp, ebp
pop ebp
ret

Function at 0x46f7b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x3e8
mov dword [ebp - 4], 0
call dword [0x423124]
push 0x427270
lea eax, [ebp - 4]
push 0x44e0e8
push eax
call fcn.0047eea2
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
je 0x46f8d8
push 2
push 0
push eax
call fcn.0047faec
mov ecx, dword [ebp - 4]
add esp, 0xc
push ecx
call fcn.0047fcfc
mov esi, eax
add esp, 4
push esi
call fcn.0047fd61
mov edx, dword [ebp - 4]
add esp, 4
push 0
push 0
push edx
mov edi, eax
call fcn.0047faec
mov eax, dword [ebp - 4]
add esp, 0xc
push eax
push esi
push 1
push edi
call fcn.0047f678
add esp, 0x10
cmp esi, eax
jne 0x46f8bb
call dword [0x423128]
push eax
call fcn.0047fa2f
add esp, 4
call fcn.0047fa41
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fmul qword [0x429368]
fmul qword [0x429360]
fadd qword [0x429358]
call fcn.00481570
cmp esi, eax
jl 0x46f8bb
mov ebx, edi
sub ebx, eax
add ebx, esi
call fcn.0046f760
mov ecx, dword [ebp - 4]
push ecx
call fcn.0047f127
add esp, 4
push 0x44e0e8
call dword [0x423108]
push 0x426e9c
lea edx, [ebp - 4]
push 0x44e0e8
push edx
call fcn.0047eea2
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
je 0x46f8d8
push eax
push esi
push 1
push edi
call fcn.0047f040
add esp, 0x10
mov eax, dword [ebp - 4]
test eax, eax
je 0x46f8cb
push eax
call fcn.0047f127
add esp, 4
test edi, edi
je 0x46f8d8
push edi
call fcn.0047ecfc
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x470f30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
mov ebx, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
cmp ebx, eax
je 0x471023
cmp edi, 0xa
jb 0x471023
lea eax, [edi*4]
mov dword [ebp - 0xc], eax
inc eax
push eax
call fcn.0047ed16
add esp, 4
mov esi, eax
push esi
push ebx
lea edx, [ebp - 0xc]
mov ecx, edi
call fcn.00470dd0
add esp, 8
test eax, eax
je 0x47101a
mov eax, dword [ebp + 8]
push 0x426e9c
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.0047eea2
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
jne 0x470fa4
lea edi, [eax - 2]
jmp 0x470fd2
mov edi, dword [ebp - 0xc]
push eax
push edi
push 1
push esi
call fcn.0047f040
add esp, 0x10
cmp eax, edi
je 0x470fe8
mov dword [ebp - 8], 0xfffffffe
mov eax, dword [ebp - 4]
test eax, eax
je 0x470fcf
push eax
call fcn.0047f127
add esp, 4
mov edi, dword [ebp - 8]
test esi, esi
je 0x470fdf
push esi
call fcn.0047edaa
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [0x423128]
call edi
xor edx, edx
mov ecx, 0x1f4
div ecx
mov ebx, edx
call edi
xor edx, edx
mov ecx, 0x3e8
div ecx
mov eax, dword [ebp - 4]
push eax
push ebx
push 1
add edx, esi
push edx
call fcn.0047f040
add esp, 0x10
jmp 0x470fbf
mov dword [ebp - 8], 0xfffffffd
jmp 0x470fbf
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x472d90
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
jne 0x472d97
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x472e6d
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x428cd8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x428cd8]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x428cd8]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x428cd8]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x428cd8]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x428cd8]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x428cd8]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x428cd8]
add ecx, 8
sub edx, 8
dec esi
jne 0x472db0
pop edi
test edx, edx
je 0x472e8a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x428cd8]
inc ecx
dec edx
jne 0x472e71
not eax
pop esi
ret

Function at 0x472e90
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x428cd8]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x428cd8]
mov dword [edx + 8], ecx
ret

Function at 0x472ee0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x428cd8]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x428cd8]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret
Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x20202e51
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x6a9f5b4e
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x5d8a97
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x5d87dc
sub ecx, esi
add ecx, 1
call fcn.005d8ad4
or ecx, esi
xor dword [eax], edx
add esi, esi
sub esi, ecx
add esi, esi
add eax, 2
add ecx, 1
mov esi, 0x4959437b
cmp eax, edi
jl fcn.005d8a97
add esi, ecx
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x35a52d76
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x137e3c55
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408f6c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x27350f3
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x79b218fc
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x404130
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x40946e]
test eax, eax
jg 0x404143
and dword [0x409434], 0
xor eax, eax
ret
push edi
push esi
mov esi, 0x800
cmp eax, esi
ja 0x404150
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll__lread]
push esi
push dword [0x409430]
push dword [0x408e4c]
call edi
cmp dword [0x408e5c], 0
mov ecx, eax
mov dword [0x409434], ecx
je 0x4041bf
cmp ecx, 0xffffffff
je 0x4041bf
cmp ecx, esi
je 0x4041d0
test ecx, ecx
jl 0x4041bf
mov ax, word [0x408968]
push dword [0x408e60]
inc ax
push eax
call fcn.00401317
mov ecx, dword [0x409434]
test ecx, ecx
jne 0x4041b8
push esi
push dword [0x409430]
push dword [0x408e4c]
call edi
mov ecx, eax
mov dword [0x409434], ecx
cmp ecx, 0xffffffff
je 0x4041bf
mov esi, ecx
cmp ecx, esi
je 0x4041d0
push 2
call fcn.00401d5e
mov ecx, dword [0x409434]
sub dword [0x40946e], ecx
mov esi, dword [0x409430]
cmp dword [0x408e50], 0
mov dword [0x40947c], esi
je 0x404212
mov eax, ecx
mov edx, eax
dec eax
test edx, edx
je 0x404212
lea edi, [eax + 1]
call fcn.00405a83
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.00405a99
inc esi
dec edi
pop ecx
jne 0x4041f7
mov ecx, dword [0x409434]
mov eax, ecx
dec ecx
pop esi
mov dword [0x409434], ecx
pop edi
ret

Function at 0x405a99
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x408ed0]
xor eax, ecx
mov edx, 0xff
and eax, edx
push esi
shr ecx, 8
mov eax, dword [eax*4 + 0x408f00]
xor eax, ecx
mov ecx, dword [0x408ed8]
mov dword [0x408ed0], eax
and eax, edx
add eax, dword [0x408ed4]
mov esi, ecx
and esi, edx
imul eax, eax, 0x8088405
inc eax
mov dword [0x408ed4], eax
shr eax, 0x18
xor esi, eax
shr ecx, 8
mov eax, dword [esi*4 + 0x408f00]
pop esi
xor eax, ecx
mov dword [0x408ed8], eax
ret

Function at 0x405b80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push dword [0x408e58]
call fcn.00405af4
pop ecx
lea eax, [ebp - 0xc]
push 0xc
push dword [ebp + 8]
push eax
call fcn.00401000
add esp, 0xc
xor edi, edi
lea esi, [ebp + edi - 0xc]
call fcn.00405a83
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.00405a99
inc edi
pop ecx
cmp edi, 0xc
jl 0x405ba7
cmp dword [0x408e54], 0
movzx ax, byte [ebp - 1]
je 0x405bda
xor ecx, ecx
mov cl, byte [0x409467]
jmp 0x405be3
mov ecx, dword [0x40946a]
shr ecx, 0x18
cmp ax, cx
je 0x405bed
or eax, 0xffffffff
jmp 0x405bef
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x5c351f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x5c351f
lcall 0x5de5, 0x8b10c483
jmp loc.00c4c3d8
Function at 0x4010b2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x410284]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x4010ff
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x804]
push 0x3ff
push 0x400
push eax
call fcn.0040170c
lea eax, [ebp - 0x804]
push eax
call fcn.0040170c
add esp, 0x18
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401ea2
leave
ret

Function at 0x40110b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x410284]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x401158
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push 0x3ff
push 0x400
push eax
call fcn.0040170c
lea eax, [ebp - 0x404]
push eax
call fcn.0040170c
add esp, 0x18
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401ea2
leave
ret

Function at 0x40170c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x40171b
pop dword [ebp - 8]
mov eax, 0x40171b
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x51b7ed15
sub dword [ebp - 0x18], 0x365a7ca
mov dword [ebp - 0x14], 0xda9a21dc
add dword [ebp - 0x14], 0x57992a69
mov dword [ebp - 0x10], 0x8100e38a
sub dword [ebp - 0x10], 0x34b49f5c
mov dword [ebp - 0xc], 0xe10f25a4
add dword [ebp - 0xc], 0x1ef0da5c
lea eax, [ebp - 0x18]
push eax
mov eax, 0xaebedccf
sub eax, 0xae7e0c7b
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x165c8de2
sub dword [ebp - 0x18], 0xa1ea248c
mov dword [ebp - 0x14], 0xe3d36f1d
add dword [ebp - 0x14], 0x5d98f258
mov dword [ebp - 0x10], 0x3d947fa1
add dword [ebp - 0x10], 0x25daeccb
mov dword [ebp - 0xc], 0x96c9737f
add dword [ebp - 0xc], 0x69368c81
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0x9bb1e590
sub eax, 0x9b711544
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3678a
push 0
call eax
mov ecx, 0xd5284aec
sub ecx, 0xd5280ff7
xor ebx, ebx
add ebx, eax
mov esi, 0x350eef15
add esi, 0xcb32c0eb
add esi, dword [ebp - 8]
mov edx, 0x337db3d6
add edx, 0x18f153f6
sub dword [ebp - 4], eax
mov edi, dword [esi]
sub dword [ebp - 4], 0x3a8ab6a9
add edi, edx
add dword [ebp - 4], eax
mov dword [ebx], edi
xor dword [ebp - 4], ecx
add ebx, 4
add esi, 4
loop 0x40183a
add eax, 0x3bf349bf
add eax, 0xc40d94e8
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x40ed59
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push 0x40eae0
pop ecx
sub esi, esi
add edi, edi
call fcn.0040ed8e
and edi, edi
xor dword [edx], ecx
inc edx
cmp edx, eax
jne fcn.0040ed59
sub esp, 4
mov dword [esp], 0xd604a196
mov edi, dword [esp]
add esp, 4
mov edi, 0xaecdb6e1
ret
Function at 0x402a94
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.00404598
test esi, esi
jne 0x402aca
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.00404688
jmp 0x402ae8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402948
mov edi, eax
test esi, esi
je 0x402ae8
cmp dword [ebx], 0
je 0x402ae8
dec esi
jmp 0x402ad1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4036c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4ac020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403758
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403738
xor eax, eax
push ebp
push 0x403731
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 0x403774
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 0x403738
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4ac020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4ac020], ax
mov esp, ebp
pop ebp
ret

Function at 0x40441c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b0048], 0
je 0x40447d
cmp word [0x4b021c], 0xd7b2
jne 0x404445
cmp dword [0x4b0224], 0
jbe 0x404445
mov eax, 0x4b0218
call dword [0x4b0234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4ac070
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 0x4044a4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ac030], 0
jne 0x404499
push 0
push 0x4ac068
push 0x4ac070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret