joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462fa2
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x4a3eb8
call fcn.004634b0
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x462fe2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x462fe2
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x462ffa
cmp eax, 0x20b
je 0x462fe7
mov dword [ebp - 0x1c], ebx
jmp 0x46300e
cmp dword [ecx + 0x84], 0xe
jbe 0x462fe2
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x463008
cmp dword [ecx + 0x74], 0xe
jbe 0x462fe2
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x203f2bc], 0xffffffff
or dword [0x203f2c0], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x203da28]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x203da24]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x203f2b8], eax
call fcn.004635b4
call fcn.00463654
cmp dword [0x4cb060], ebx
jne 0x46306e
push fcn.00463654
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00463642
push 0x4ac4fc
push 0x4ac4f8
call sub.MSVCR71.dll__initterm
push 0x4635f8
call fcn.00462cb6
mov eax, dword [0x203da20]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x203da1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x4630c2
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x4ac4f4
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x463140
cmp al, bl
je 0x4630ec
cmp dword [ebp - 0x20], ebx
jne 0x463140
mov al, byte [esi]
cmp al, bl
je 0x4630fc
cmp al, 0x20
ja 0x4630fc
inc esi
mov dword [ebp - 0x24], esi
jmp 0x4630ec
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x463118
movzx eax, word [ebp - 0x54]
jmp 0x46311b
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00475120
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x463138
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x463195
cmp al, 0x22
jne 0x46314f
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x463162
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x4630da
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004634eb
ret
Function at 0x4643e0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [edx]
push edi
mov edi, dword [esp + 0x14]
mov ecx, esi
xor ecx, eax
and ecx, 0xff
shr esi, 8
mov ecx, dword [edi + ecx*4]
xor ecx, esi
mov esi, dword [edx + 4]
mov dword [edx], ecx
and ecx, 0xff
add ecx, esi
mov esi, dword [edx + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov ebx, esi
mov dword [edx + 4], ecx
and ebx, 0xff
shr ecx, 0x18
xor ecx, ebx
shr esi, 8
mov ecx, dword [edi + ecx*4]
pop edi
xor ecx, esi
pop esi
mov dword [edx + 8], ecx
pop ebx
ret
Function at 0x465cc0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x465ccf
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x4cb0ec]
test eax, eax
je 0x465cdd
call fcn.00465c60
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
cmp edx, 8
push ebx
not eax
jb 0x465ddf
push edi
mov edi, edx
shr edi, 3
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [ecx*4 + 0x203da2c]
sub edx, 8
xor eax, ebx
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x203da2c]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x203da2c]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x203da2c]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x203da2c]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x203da2c]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x203da2c]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x203da2c]
xor eax, ecx
inc esi
dec edi
jne 0x465cf7
pop edi
test edx, edx
je 0x465e01
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x203da2c]
xor eax, ecx
inc esi
dec edx
jne 0x465de3
pop ebx
pop esi
not eax
ret 0xc
Function at 0x43a940
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x43a94f
pop dword [ebp - 0x10]
mov eax, 0xf5277b33
sub eax, 0xf4e3d1e4
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xe863dd7b
add dword [ebp - 0x20], 0x65ee67d0
mov dword [ebp - 0x1c], 0xb5062da9
add dword [ebp - 0x1c], 0x7d2d1e9c
mov dword [ebp - 0x18], 0xe239b149
sub dword [ebp - 0x18], 0x95ed6d1b
mov dword [ebp - 0x14], 0x59ba03e6
sub dword [ebp - 0x14], 0x59ba03e6
lea eax, [ebp - 0x20]
push eax
mov eax, 0x6300ddfc
add eax, 0x9d48b258
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0xa69642f6
sub dword [ebp - 0x20], 0x3223d9a0
mov dword [ebp - 0x1c], 0xacb6d497
add dword [ebp - 0x1c], 0x94b58cde
mov dword [ebp - 0x18], 0x8fa7f09a
add dword [ebp - 0x18], 0xd3c77bd2
mov dword [ebp - 0x14], 0xbb8af752
add dword [ebp - 0x14], 0x447508ae
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x13dd04f5
sub eax, 0x139374d1
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x6f978
push 0
call eax
mov ecx, 0x28a6e0bb
add ecx, 0xd7596ee9
mov edi, eax
mov ebx, 0xfbec9518
sub ebx, 0xfba03718
add ebx, dword [ebp - 0x10]
mov esi, 0xcb469a14
sub esi, 0x7ddfc70e
sub dword [ebp - 0xc], 0x280d6241
mov edx, dword [ebx]
sub dword [ebp - 8], 0x1286c7de
sub edx, esi
add dword [ebp - 8], 0x8cf7a2b5
mov dword [edi], edx
xor dword [ebp - 0xc], edx
add edi, 4
add ebx, 4
loop 0x43aa71
add eax, 0x13163
mov ebx, eax
add eax, 5
mov ecx, 0xa75350da
sub ecx, 0xa71350da
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x10001008
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10001012
repz ret
jmp fcn.10001307

Function at 0x10003c50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x10003c62
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x10003c53
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], pe_nt_image_headers32
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.10003a0e
stc
invalid

Function at 0x10004125
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x100040e5
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
leave
mov edi, 0x60000000
jmp 0x10004103
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x10004161
mov edx, edi
mov dword [ebp + 8], edi
or byte [ecx + 0x865], al
add byte [eax - 0x77], al
jge 0x10004140
or byte [ecx + 0x865], al
add byte [eax - 0x77], al
jge 0x10004140
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x10004148
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x10004151
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1000415b
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x1000413d
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x100040c7
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x100041ae
dec eax
je 0x100041a5
sub eax, 3
je 0x1000419c
mov dword [ebp - 4], 0x40
jmp 0x100041cb
mov dword [ebp - 4], 4
jmp 0x100041b1
mov dword [ebp - 4], 0x20
jmp 0x100041b1
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x100041fd
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1000417d
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.10003a0e
std
in al, 0xde
push esi
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x10004209
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004150
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x100040e5
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
leave
mov edi, 0x60000000
jmp 0x10004103
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x10004161
mov edx, edi
mov dword [ebp + 8], edi
or byte [ecx + 0x865], al
add byte [eax - 0x77], al
jge 0x10004140
or byte [ecx + 0x865], al
add byte [eax - 0x77], al
jge 0x10004140
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x10004148
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x10004151
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1000415b
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x1000413d
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x100040c7
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x100041ae
dec eax
je 0x100041a5
sub eax, 3
je 0x1000419c
mov dword [ebp - 4], 0x40
jmp 0x100041cb
mov dword [ebp - 4], 4
jmp 0x100041b1
mov dword [ebp - 4], 0x20
jmp 0x100041b1
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x100041fd
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1000417d
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.10003a0e
std
in al, 0xde
push esi
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x10004209
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x409d20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x409d2f
pop dword [ebp - 0x50]
mov eax, 0x2a1506a5
sub eax, 0x29d46976
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x3715a
push 0
mov eax, 0x8e74a753
sub eax, 0x8e33c67b
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x3f86
xor ebx, ebx
add ebx, eax
mov edx, 0x413bc4
add edx, dword [ebp - 0x50]
mov edi, 0xe33b13b3
add edi, 0x4fbfb820
sub dword [ebp - 0x40], esi
mov esi, dword [edx]
add dword [ebp - 0x2c], edx
xor esi, edi
xor dword [ebp - 0x48], 0x749cfc51
mov dword [ebx], esi
add ebx, 0x63df89a
add ebx, 0xf9c2076a
add edx, 0x33ed3b3c
sub edx, 0x33ed3b38
loop 0x409d84
add eax, 0x948ba34a
add eax, 0x6b754da1
mov ebx, eax
add eax, 0x634787b4
add eax, 0x9cb87851
mov ecx, 0x51085730
add ecx, 0xaf37a8d0
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x408850
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x410344]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 5], 1
test edi, edi
je 0x408941
push dword [ebp + 0x10]
call fcn.00408dc0
test al, al
jne 0x408941
cmp dword [ebp + 0x14], esi
je 0x408941
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40adb5
cmp dword [ebp - 0x14], 1
jne 0x40ae06
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x408935
shr ebx, 1
xor ecx, ecx
mov edx, 2
lea eax, [ebx + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00409248
mov esi, eax
add esp, 4
test esi, esi
je 0x40893d
xor eax, eax
mov word [esi + ebx*2], ax
lea eax, [ebp - 0x10]
mov ebx, dword [ebp + 0xc]
push eax
push esi
push 0
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ae0e
cmp ax, word [esi]
je 0x40ae68
mov al, byte [ebp - 5]
pop ebx
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [edi], esi
pop edi
pop esi
call fcn.00409600
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp + 0xc]
jmp 0x40ae68
xor al, al
jmp 0x40891d
xor al, al
jmp 0x40891e
lea edx, [ebp - 0xc]
mov dword [ebp - 0xc], esi
mov ecx, eax
call fcn.0040e152
test eax, eax
je 0x40893d
push dword [ebp - 0xc]
mov eax, dword [0x4106d4]
push ebx
push dword [ebp + 0x10]
mov edi, dword [eax]
push 0x16
push 0
push eax
mov edi, dword [edi + 4]
mov ecx, edi
call dword [0x4111f8]
call edi
mov eax, dword [ebp - 0xc]
add esp, 0x18
test eax, eax
je 0x40893d
push eax
call sub.msvcrt.dll_free
add esp, 4
jmp 0x40893d
push ebx
push dword [ebp + 0x10]
push 0x18
jmp 0x40ae6e
lea edx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
mov ecx, eax
call fcn.0040e152
test eax, eax
je 0x40ae56
push dword [ebp - 0xc]
mov eax, dword [0x4106d4]
push ebx
push dword [ebp + 0x10]
mov edi, dword [eax]
push 0x16
push 0
push eax
mov edi, dword [edi + 4]
mov ecx, edi
call dword [0x4111f8]
call edi
mov eax, dword [ebp - 0xc]
add esp, 0x18
test eax, eax
je 0x40ae56
push eax
call sub.msvcrt.dll_free
add esp, 4
push esi
call sub.msvcrt.dll_free
add esp, 4
xor esi, esi
xor al, al
jmp 0x40891d
push ebx
push dword [ebp + 0x10]
push 0xe
mov eax, dword [0x4106d4]
push 0
push eax
mov edi, dword [eax]
mov edi, dword [edi + 4]
mov ecx, edi
call dword [0x4111f8]
call edi
add esp, 0x14
jmp 0x40893d
Function at 0x409984
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x40f110
call fcn.00409cd8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4099e4
cmp eax, 0xffffffff
je 0x4099e4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x4099dd
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x4099dd
cmp edx, 0x10000000
jae 0x4099dd
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x4099da
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00409d1d
ret 4

Function at 0x409a40
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 0x409a7e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x409a76
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x409a80
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x409a66
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x409b50
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x409b66
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x409b81
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x40c453
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [0x4108fc]
push edi
mov edi, edx
test edi, edi
je 0x40c4a2
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x40c4a1
and dword [ebp - 4], 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
and eax, 0xffff7fff
cmp eax, 2
lea eax, [ebp - 4]
push 0
push eax
jne 0x40c495
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x40c4a1
lea eax, [esi + esi]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40ce10
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x410344]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [0x4108f8]
jne 0x40ceac
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 6
push eax
push 1
xor edi, edi
push edi
push 0x403ee0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ceab
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x403f98
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x40ceab
push 3
push dword [edi*8 + 0x401248]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x40ce9d
inc edi
cmp edi, 0x1c
jb 0x40ce7b
jmp 0x40ceab
mov ax, word [edi*8 + 0x40124c]
mov word [0x4108f8], ax
pop edi
mov ecx, dword [ebp - 4]
mov ax, word [0x4108f8]
xor ecx, ebp
call fcn.00409600
mov esp, ebp
pop ebp
ret
Function at 0x402b18
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x402b27
pop dword [ebp - 0x2c]
mov eax, 0x402b27
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x17fe3450
add dword [ebp - 0x3c], 0x365410fb
mov dword [ebp - 0x38], 0x99063c8d
add dword [ebp - 0x38], 0x992d0fb8
mov dword [ebp - 0x34], 0xb9b8169a
sub dword [ebp - 0x34], 0x6d6bd26c
mov dword [ebp - 0x30], 0x465b2a83
sub dword [ebp - 0x30], 0x465b2a83
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x2bf596ef
add eax, 0xd44c9985
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x13ab787
sub dword [ebp - 0x3c], 0x8cc84e31
mov dword [ebp - 0x38], 0x5a955c91
add dword [ebp - 0x38], 0xe6d704e4
mov dword [ebp - 0x34], 0xf9158b19
add dword [ebp - 0x34], 0x6a59e153
mov dword [ebp - 0x30], 0xcd011bf
add dword [ebp - 0x30], 0xf32fee41
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x9b42f5fb
sub eax, 0x9b00c4d7
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3fa8c
push 0
call eax
mov ecx, 0x4fd0
mov ebx, eax
mov esi, 0x434400
add esi, dword [ebp - 0x2c]
mov edi, 0x9eb4a296
add dword [ebp - 0x28], 0x7298a27b
mov edx, dword [esi]
xor dword [ebp - 4], edi
xor edx, edi
xor dword [ebp - 0xc], esi
mov dword [ebx], edx
add ebx, 4
add esi, 0x82e8be9a
add esi, 0x7d17416a
loop 0x402c32
add eax, 0x9a8a9a21
sub eax, 0x9a89680e
mov ebx, eax
add eax, 5
mov ecx, 0x772a545f
add ecx, 0x8915aba1
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x41cb26
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x41cb35
pop dword [ebp - 0x50]
mov eax, 0x41cb35
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xf48f2b45
add dword [ebp - 0x60], 0x59c31a06
mov dword [ebp - 0x5c], 0x8be44513
add dword [ebp - 0x5c], 0xa64f0732
mov dword [ebp - 0x58], 0xed374dca
sub dword [ebp - 0x58], 0xa0eb099c
mov dword [ebp - 0x54], 0x6ef27b57
sub dword [ebp - 0x54], 0x6ef27b57
lea eax, [ebp - 0x60]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x3c915485
sub dword [ebp - 0x60], 0xc81eeb2f
mov dword [ebp - 0x5c], 0xaeef6cc8
sub dword [ebp - 0x5c], 0x6d830b53
mov dword [ebp - 0x58], 0x720d6914
add dword [ebp - 0x58], 0xf1620358
mov dword [ebp - 0x54], 0x8fb86def
add dword [ebp - 0x54], 0x70479211
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0xd0d039a7
sub eax, 0xd08c76b7
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x4a234
push 0
call eax
mov ecx, 0x13292a28
add ecx, 0xecd72ecb
xor ebx, ebx
add ebx, eax
mov esi, 0x475600
add esi, dword [ebp - 0x50]
mov edi, 0xb454fab0
add dword [ebp - 0x30], edi
mov edx, dword [esi]
xor dword [ebp - 0x2c], 0x7c33c429
sub edx, edi
mov dword [ebp - 0x38], 0xc96966a5
mov dword [ebx], edx
sub dword [ebp - 0x1c], 0x39717eb
add ebx, 0x134b1163
add ebx, 0xecb4eea1
add esi, 0x86d36247
sub esi, 0x86d36243
loop 0x41cc43
add eax, 0x1f6d341b
add eax, 0xe0942284
mov ebx, eax
add eax, 0x34e017c5
add eax, 0xcb1fe840
mov ecx, 0xd4ae0bfb
sub ecx, 0xd46e0bfb
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x42105f
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x44e8a8
call fcn.00422e90
call main
movzx esi, ax
push 2
call main
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x420f16
xor ebx, ebx
jmp 0x420f49
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x420f12
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x420f12
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x420f49
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004279ab
test eax, eax
jne 0x420f5d
push 0x1c
call main
pop ecx
call fcn.00427918
test eax, eax
jne 0x420f6e
push 0x10
call main
pop ecx
call fcn.00428296
and dword [ebp - 4], 0
call fcn.004279c0
test eax, eax
jns 0x420f88
push 0x1b
call main
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov dword [0x457adc], eax
call main
mov dword [0x455a24], eax
call main
test eax, eax
jns 0x420fae
push 8
call main
pop ecx
call fcn.00427eb1
test eax, eax
jns 0x420fbf
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x420fd2
push eax
call main
pop ecx
call fcn.00428714
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x420ff4
push esi
call main
call fcn.00426cd7
jmp 0x421029
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00422ed5
ret
call main
jmp 0x420ee8