joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4038b0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Get windows directory from kuser_shared_data

Disassembly:
mov eax, dword [0x809e08]
sub esp, 0x20c
push ebp
mov ebp, ecx
push esi
push edi
test eax, eax
je 0x403a5d
cmp dword [0x809e0c], 0
jne 0x403a49
xor eax, eax
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
mov byte [esp + 0x1e], al
lea eax, [esp + 0x20]
push eax
call fcn.00402b90
add esp, 0xc
xor edi, edi
xor eax, eax
nop
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jb 0x403900
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x18]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41a0d4]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + edi + 0x18], dl
cmp esi, 0x100
jb 0x403910
xor esi, esi
xor edi, edi
xor edx, edx
lea eax, [esi + 1]
movzx esi, al
mov cl, byte [esp + esi + 0x18]
movzx eax, cl
add eax, edi
movzx edi, al
movzx eax, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
mov byte [esp + edi + 0x18], cl
movzx eax, byte [esp + esi + 0x18]
movzx ecx, cl
add ecx, eax
movzx eax, cl
movzx eax, byte [esp + eax + 0x18]
xor al, byte [edx + 0x41a0d8]
mov byte [esp + edx + 0xc], al
inc edx
cmp edx, 0xb
jb 0x403945
push 0x200
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00402b90
mov edx, 0x7ffe0030
add esp, 0xc
xor ecx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4039a4
sub edx, esi
sar edx, 1
je 0x403a5d
mov esi, ebp
lea edi, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x4039c0
sub esi, edi
add edx, 0xc
add edx, esi
cmp edx, 0x200
ja 0x403a5d
xor eax, eax
push ebx
test edx, edx
je 0x4039f8
movzx ebx, word [eax + eax + 0x7ffe0030]
test bx, bx
je 0x4039f8
mov byte [esp + eax + 0x1c], bl
inc ecx
inc eax
cmp eax, edx
jb 0x4039e1
xor eax, eax
test edx, edx
je 0x403a12
mov edi, edi
mov bl, byte [esp + eax + 0x10]
test bl, bl
je 0x403a12
mov byte [esp + ecx + 0x1c], bl
inc eax
inc ecx
cmp eax, edx
jb 0x403a00
xor eax, eax
test edx, edx
je 0x403a2f
lea ecx, [esp + ecx + 0x1c]
lea esp, [esp]
mov bl, byte [eax + ebp]
test bl, bl
je 0x403a2f
mov byte [ecx], bl
inc eax
inc ecx
cmp eax, edx
jb 0x403a20
push 8
push 0
lea eax, [esp + 0x24]
push eax
call dword [0x809e08]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
push 0x800
push 0
push ebp
call eax
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20c
ret
Function at 0x419fb2
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret

Function at 0x813058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008131a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x81307e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x81306a
add dl, dl
jne 0x813089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8130dc
xor eax, eax
add dl, dl
jne 0x813096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x81317d
add dl, dl
jne 0x8130a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8130b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8130bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8130c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8130d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x813075
mov eax, 1
add dl, dl
jne 0x8130ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8130f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8130e1
sub eax, ebx
mov ebx, 1
jne 0x813128
mov ecx, 1
add dl, dl
jne 0x81310e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x813119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x813105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x813075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x81313f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x81314a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x813136
cmp eax, 0x7d00
jae 0x81316d
cmp eax, 0x500
jb 0x813168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x813075
cmp eax, 0x7f
ja 0x813170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x813075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x81319e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x813075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40956e
Capabilities:
Encode data using xor

Disassembly:
add eax, 0xb743db13
pop ecx
cmpsd dword [esi], dword es:[edi]
mov ch, 0x17
stosd dword es:[edi], eax
add eax, 0xa6886799
invalid

Function at 0x40f97d
Capabilities:
Encode data using xor

Disassembly:
mov ebp, 0xcf604876
push edi
sbb eax, 0xf15535b2
and eax, 0x7b02b7b0
out 0xd8, al
clc
mov al, 0xb7
add bh, byte [ebx - 0x1a]
fdiv dword [esi]
clc
ror ch, 1
xchg ebx, eax
mov ebp, 0x2de40538
pop ebp
jecxz 0x40f979
sbb al, 0x58
cmp al, 0xd3
cwde
add byte [edx - 0x40], bl
inc byte [edx + 0x3c]
dec esi
ja 0x40f92f
mov dl, 0x6a
rcl dword [ecx + 1], 0xf7
dec edx
fistp qword [ecx - 0x253d6b7b]
xor dword [eax + 0x11], ebx
inc ecx
mov edi, 0x3947ad71
fsubr qword [ecx]
mov al, 0x70
mov bl, 0x7a
daa
cmp dword [edx + ebx*2], eax
add al, 0x58
js 0x40f93c
cmp eax, 0xd3658269
xor cl, byte es:[edi]
in eax, dx
pop ds
ja 0x40f9eb
test byte [ebx], ch
mov cl, 0x84
test al, 0x10
nop dword [ebx]
scasd eax, dword es:[edi]
sbb eax, 0x35bec4c
mov byte [esi + 0x76], dl
xlatb
invalid
push eax
das
popfd
push 0xfffffffffffffff9
sbb eax, esi
jecxz 0x40fa19
push esi
f2xm1
sahf
arpl word [edx + ecx - 0x7a], di
dec esi
mov edi, 0xb4fc215d
and byte [ebx + 0x66], 0x30
in al, dx
lodsd eax, dword [esi]
insd dword es:[edi], dx
sub cl, bl
bound esp, qword [edx - 0x935d9c7]
mov byte [0xf6ca2639], al
xor eax, 0x2c484e60
adc eax, 0x9b50e066
loopne 0x40fa49
wait
push eax
add ebp, dword [ecx + 0x32d65f63]
jns 0x40f9ca
int1
dec eax
adc esi, ecx
iretd
test byte [esi], ah
mov esp, 0xa4262322
scasb al, byte es:[edi]
sub dword [edi - 0x5b5fdd7c], esp
loopne 0x40f9f6
add edi, dword [edx - 0x68921f2e]
movsd dword es:[edi], dword [esi]
ror al, 0x2d
mov ebp, 0xacb220fe
cmp ebx, dword [ebx - 0x578f58e3]
cdq
xchg dword ss:[eax - 0x1d499050], esi
cmp eax, 0xc5f101e9
xor dword [eax], esi
sub al, 0xa7
int1
lds esi, [ecx]
xor byte [edi], ch
add byte [ecx], 0xa9
mov esi, 0x31abea26
dec ecx
aam 0xe4
outsb dx, byte [esi]
mov bh, byte [esi]
leave
cdq
cmovb eax, dword [edx]
sti
ja 0x40fa84
xor cl, byte [ecx + 0x380b63ff]
inc edx
mov word [ebp - 0x1b], es
mov ebp, 0xf964b089
xor dh, byte [edx]
add eax, 0xb48c3d4d
mov al, byte [0x2666718f]
fadd dword [edi]
jo 0x40fae2
outsd dx, dword [esi]
and bh, byte [ebp - 0x42]
cdq
sub eax, 0xcaf6a483
invalid
push eax
push 0x48
into
push edx
retf

Function at 0x423fb6
Capabilities:
Encode data using xor

Disassembly:
sbb byte [edx - 0x73051c25], ah
mov esp, dword [0x666bbf7b]
adc dword [edi + 0x56deb5b], eax
add dword [esi], eax
das
mov ds, word [edx + 0x69]
lcall 0x1a98, 0x50694b54
xor al, 0x73
leave
sbb bh, ch
std
std
fdiv dword [edx + 0xd866989]
lds edi, [edi - 0x66]
dec eax
adc eax, 0x422c90c6
mov esp, 0xa3871452
jbe 0x423f93
out dx, al
cmpsb byte [esi], byte es:[edi]
mov ebp, 0x9708dc5a
sub dword [ebp - 0x74b6e708], edx
push esp
mov bl, byte [edx + edi*2 - 0x78]
adc eax, 0xf9e643e6
invalid
Function at 0x437b2e
Capabilities:
Encode data using xor

Disassembly:
insb byte es:[edi], dx
mov esp, 0x2ce2dfad
add dword [ebp - 0x69], esi
in al, dx
push ds
jae 0x437b20
fcompi st(4)
into
dec ecx
mov esp, 0x986ce9ef
and cl, dh
out 0xdd, eax
and eax, 0x1a7744d0
scasb al, byte es:[edi]
test eax, 0xa9011a69
sub eax, 0xfbf9c9a0
jg 0x437ba0
jle 0x437b13
into
dec ebx
dec esi
sbb ch, 0xf9
movsb byte es:[edi], byte [esi]
cmp dword [ebx + esi*8 - 0x1d7382b4], edx
dec edx
mov ch, bh
jp 0x437ba9
movsd dword es:[edi], dword [esi]
hlt
enter 0x17a4, 0xffffffffffffffb9
in al, dx
add eax, 0xc3f44cbc
push edx
mov byte [eax + 0x58f762a1], cl
invalid
neg dword [eax + 0x48]
ret
Function at 0x451ace
Capabilities:
Encode data using xor

Disassembly:
push eax
xchg byte [ecx + 5], ah
or dl, bl
xor ebp, dword [edx + ecx*8 + 4]
or ah, dl
jnp 0x451ad3
dec edx
add dword [ecx - 0x1d], ebx
mov edx, 0xfa56ca93
lodsb al, byte [esi]
add ch, al
xor al, 0x18
shl ecx, 1
push esp
inc ebx
ret 0x5c68

Function at 0x4adfbe
Capabilities:
Encode data using xor

Disassembly:
inc esp
outsb dx, byte [esi]
xor byte [edx - 0x1a9cc412], ch
movsb byte es:[edi], byte [esi]
in al, 0x68
sub eax, 0x6b64d7b0
shr byte [ebx - 0x3b], 0xa1
dec esp
bound ecx, qword [ebp - 0x6b217f02]

Function at 0x4bb041
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c2390
cmp edx, dword [eax]
je 0x4bb063
add eax, 8
inc ecx
cmp eax, 0x4c2420
jl 0x4bb054
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c2390]
jne 0x4bb191
mov eax, dword [0x4c6d1c]
cmp eax, 1
je 0x4bb16b
test eax, eax
jne 0x4bb094
cmp dword [0x4c22bc], 1
je 0x4bb16b
cmp edx, 0xfc
je 0x4bb191
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb0cb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bba20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bbeb0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb10e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bbeb0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c072c
push edi
call fcn.004bdd80
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bba20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bba30
lea eax, [ebp - 0xa0]
push 0x4c070c
push eax
call fcn.004bba30
push dword [esi + 0x4c2394]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bba30
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bdcf4
add esp, 0x2c
pop edi
jmp 0x4bb191
lea eax, [ebp + 8]
lea esi, [esi + 0x4c2394]
push 0
push eax
push dword [esi]
call fcn.004bbeb0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401000
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Get windows directory from kuser_shared_data

Disassembly:
mov eax, dword [0x817408]
sub esp, 0x20c
push ebp
mov ebp, ecx
push esi
push edi
test eax, eax
je 0x4011ad
cmp dword [0x81740c], 0
jne 0x401199
xor eax, eax
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
mov byte [esp + 0x1e], al
lea eax, [esp + 0x20]
push eax
call fcn.00402140
add esp, 0xc
xor edi, edi
xor eax, eax
nop
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jb 0x401050
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x18]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41d0d4]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + edi + 0x18], dl
cmp esi, 0x100
jb 0x401060
xor esi, esi
xor edi, edi
xor edx, edx
lea eax, [esi + 1]
movzx esi, al
mov cl, byte [esp + esi + 0x18]
movzx eax, cl
add eax, edi
movzx edi, al
movzx eax, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
mov byte [esp + edi + 0x18], cl
movzx eax, byte [esp + esi + 0x18]
movzx ecx, cl
add ecx, eax
movzx eax, cl
movzx eax, byte [esp + eax + 0x18]
xor al, byte [edx + 0x41d0d8]
mov byte [esp + edx + 0xc], al
inc edx
cmp edx, 0xb
jb 0x401095
push 0x200
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00402140
mov edx, 0x7ffe0030
add esp, 0xc
xor ecx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4010f4
sub edx, esi
sar edx, 1
je 0x4011ad
mov esi, ebp
lea edi, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x401110
sub esi, edi
add edx, 0xc
add edx, esi
cmp edx, 0x200
ja 0x4011ad
xor eax, eax
push ebx
test edx, edx
je 0x401148
movzx ebx, word [eax + eax + 0x7ffe0030]
test bx, bx
je 0x401148
mov byte [esp + eax + 0x1c], bl
inc ecx
inc eax
cmp eax, edx
jb 0x401131
xor eax, eax
test edx, edx
je 0x401162
mov edi, edi
mov bl, byte [esp + eax + 0x10]
test bl, bl
je 0x401162
mov byte [esp + ecx + 0x1c], bl
inc eax
inc ecx
cmp eax, edx
jb 0x401150
xor eax, eax
test edx, edx
je 0x40117f
lea ecx, [esp + ecx + 0x1c]
lea esp, [esp]
mov bl, byte [eax + ebp]
test bl, bl
je 0x40117f
mov byte [ecx], bl
inc eax
inc ecx
cmp eax, edx
jb 0x401170
push 8
push 0
lea eax, [esp + 0x24]
push eax
call dword [0x817408]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
push 0x800
push 0
push ebp
call eax
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20c
ret
Function at 0x4012c0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x8180b0]
sub esp, 0x11c
test eax, eax
jne 0x4013be
push ebx
push esi
push edi
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x30]
push eax
call fcn.00402140
add esp, 0xc
xor edi, edi
xor eax, eax
lea ebx, [ebx]
mov byte [esp + eax + 0x28], al
inc eax
cmp eax, 0x100
jb 0x401310
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x28]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41d100]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x28]
mov byte [esp + esi + 0x28], al
inc esi
mov byte [esp + edi + 0x28], dl
cmp esi, 0x100
jb 0x401320
xor edi, edi
xor ebx, ebx
xor esi, esi
lea eax, [edi + 1]
movzx edi, al
mov cl, byte [esp + edi + 0x28]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
movzx eax, byte [esp + ebx + 0x28]
mov byte [esp + edi + 0x28], al
mov byte [esp + ebx + 0x28], cl
movzx eax, byte [esp + edi + 0x28]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0x28]
xor al, byte [esi + 0x41d104]
mov byte [esp + esi + 0xc], al
inc esi
cmp esi, 0x1a
jb 0x401355
xor edx, edx
lea ecx, [esp + 0xc]
call fcn.00402430
pop edi
pop esi
pop ebx
test eax, eax
je 0x4013b9
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4013b9
mov dword [0x8180b0], eax
add esp, 0x11c
ret
mov eax, dword [0x8180b0]
add esp, 0x11c
ret
Function at 0x401a20
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0xc08
push ebx
push ebp
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], edx
push esi
push edi
test ecx, ecx
je 0x401a6b
xor esi, esi
lea edi, [esp + 0x818]
mov al, byte [esi + ecx]
test al, al
je 0x401a5b
cbw
inc esi
mov word [edi], ax
add edi, 2
cmp esi, 0x1ff
jb 0x401a41
jmp 0x401a60
xor eax, eax
mov word [edi], ax
lea edx, [esp + 0x818]
mov dword [esp + 0x10], edx
xor edi, edi
xor ebp, ebp
test edx, edx
je 0x401abb
mov edi, edx
lea ecx, [edi + 2]
jmp 0x401a80
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x401a80
sub edi, ecx
sar edi, 1
cmp edi, 0x200
jb 0x401a9c
mov edi, 0x1ff
push edi
push edx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.004043d0
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x401add
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x401b50
mov esi, dword [ebx]
cmp esi, ebx
je 0x401b50
test esi, esi
je 0x401b50
cmp word [esi + 0x24], 2
jbe 0x401b4a
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x401b4a
cmp dword [esi + 0x18], 0
je 0x401b4a
test ebp, ebp
je 0x401b05
cmp ebp, eax
jne 0x401b4a
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.004043d0
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x401b2a
cmp eax, dword [esi + 0x18]
jne 0x401b4a
cmp dword [esp + 0x10], 0
je 0x401b5d
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00403740
add esp, 8
test eax, eax
je 0x401b5d
mov esi, dword [esi]
cmp esi, ebx
jne 0x401ae3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc08
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc08
ret
Function at 0x401fc0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
sub esp, 0x40
push ebx
push esi
push edi
test ecx, ecx
jle 0x401fe8
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 0x18]
dec ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0xc], eax
jmp 0x401ff6
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
test ecx, ecx
jle 0x40200f
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x14], eax
jmp 0x40201d
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
jle 0x402036
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x1c], eax
jmp 0x402044
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
test ecx, ecx
jle 0x40205d
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x24], eax
jmp 0x40206b
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, edx
mov dword [ebp - 0x30], 0
cdq
mov dword [ebp - 0x40], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov word [ebp - 8], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 4], esp
and esp, 0xfffffff0
push 0x33
call 0x4020b2
add dword [esp], 5
retf

Function at 0x402430
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0x808
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edx
xor ebp, ebp
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x40248b
mov edi, ecx
lea edx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x402450
sub edi, edx
sar edi, 1
cmp edi, 0x200
jb 0x40246c
mov edi, 0x1ff
push edi
push ecx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.004043d0
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x4024ad
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x40251f
mov esi, dword [ebx]
cmp esi, ebx
je 0x40251f
test esi, esi
je 0x40251f
cmp word [esi + 0x24], 2
jbe 0x402519
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x402519
cmp dword [esi + 0x18], 0
je 0x402519
test ebp, ebp
je 0x4024d5
cmp ebp, eax
jne 0x402519
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.004043d0
mov edx, dword [esp + 0x1c]
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
test edx, edx
je 0x4024fa
cmp edx, dword [esi + 0x18]
jne 0x402519
cmp dword [esp + 0x14], eax
je 0x40252c
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00403740
add esp, 8
test eax, eax
je 0x40252c
mov esi, dword [esi]
cmp esi, ebx
jne 0x4024b3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x808
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret
Function at 0x4030a0
Capabilities:
Check os version

Disassembly:
mov ecx, 1
mov edx, 0x817548
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x4031c9
cmp dword fs:[0xc0], eax
je 0x4030cb
mov dword [0x817544], 1
mov eax, dword fs:[0x18]
push ebx
push esi
mov ebx, 1
mov esi, dword [eax + 0x30]
mov eax, dword [esi + 0xa4]
mov dword [0x81742c], eax
mov eax, dword [esi + 0xa8]
mov dword [0x817430], eax
movzx edx, word [esi + 0xac]
mov dword [0x817434], edx
mov eax, dword [esi + 0xb0]
mov dword [0x817438], eax
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x40312b
push 0x7f
push eax
push 0x81743c
call fcn.004043d0
mov edx, dword [0x817434]
add esp, 0xc
jmp 0x403133
xor eax, eax
mov word [0x81743c], ax
movzx eax, byte [esi + 0xaf]
mov ecx, 0xff
mov word [0x81753c], ax
movzx eax, word [esi + 0xae]
and ax, cx
mov word [0x81753e], ax
movzx eax, word [0x7ffe02d0]
mov word [0x817540], ax
mov ecx, eax
mov byte [0x817542], 0
cmp byte [0x7ffe0268], 0
je 0x40317a
mov ebx, dword [0x7ffe0264]
pop esi
mov byte [0x817542], bl
cmp ebx, 1
pop ebx
jne 0x403194
and ecx, 0xffef
mov word [0x817540], cx
test edx, edx
jne 0x4031c9
call fcn.004030a0
cmp dword [0x81742c], 6
ja 0x4031c9
jb 0x4031b1
cmp dword [0x817430], 4
jae 0x4031c9
call fcn.004030a0
cmp dword [0x81742c], 0xa
jae 0x4031c9
mov dword [0x817434], 1
ret
Function at 0x41cc82
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret
Function at 0x10003ebf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x10003ece
pop dword [ebp - 8]
mov eax, 0x10003ece
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xa034bd62
sub dword [ebp - 0x18], 0x51e27817
mov dword [ebp - 0x14], 0xce8389a4
add dword [ebp - 0x14], 0x63afc2a1
mov dword [ebp - 0x10], 0x36cd984c
sub dword [ebp - 0x10], 0xea81541e
mov dword [ebp - 0xc], 0x4d414e7f
add dword [ebp - 0xc], 0xb2beb181
lea eax, [ebp - 0x18]
push eax
mov eax, 0x955d1c1b
add eax, 0x7aa33429
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xa1607fd5
add dword [ebp - 0x18], 0xd311e981
mov dword [ebp - 0x14], 0x87b518af
add dword [ebp - 0x14], 0xb9b748c6
mov dword [ebp - 0x10], 0xe6838b9f
sub dword [ebp - 0x10], 0x83141f33
mov dword [ebp - 0xc], 0x1394d0d4
add dword [ebp - 0xc], 0xec6b2f2c
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0xdfd7ecd6
add eax, 0x3028636a
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x38126
push 0
call eax
mov ecx, 0x4dc1
mov edi, eax
mov edx, 0x6b48379
sub edx, 0xf6b3cd79
add edx, dword [ebp - 8]
mov esi, 0x1e56b26b
sub esi, 0x2b61d665
sub dword [ebp - 4], edx
mov ebx, dword [edx]
xor dword [ebp - 4], eax
sub ebx, esi
add dword [ebp - 4], edx
mov dword [edi], ebx
sub dword [ebp - 4], edi
add edi, 4
add edx, 4
loop 0x10003fe5
add eax, 0x9e762b4c
sub eax, 0x9e750175
xor ebx, ebx
add ebx, eax
add eax, 0x80a3cb89
sub eax, 0x80a3cb84
mov ecx, 0xca2accf0
add ecx, 0x45d53310
add ecx, dword [ebp - 8]
call ebx
leave
ret