joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a0c47
Capabilities:
Encode data using xor

Disassembly:
pushaw
inc ecx
or al, 0xcd
adc ebp, dword [edx]
dec ecx
mov esp, 0x7f1acb8f
mov ebp, 0x905fdc40
enter 0x71f6, 0x2d
popal
xchg dword [edx - 0x39], edx
push eax
push ds
xor dword [ebx + esi*2], esp
sbb byte [esi - 0x5f5f6b49], 0x74
outsb dx, byte [esi]
test cl, 0x4f
mov ebx, esp
xchg ecx, eax
nop
lodsd eax, dword [esi]
arpl word [eax - 0x183f43cc], si
fdivrp st(5)
and al, 0x5d
push 0x140a34fc
jno 0x5a0cef
jecxz 0x5a0cdb
push esi
loop 0x5a0cad
cmp al, 0x32
test byte [eax], ch
in al, dx
xchg edi, eax
mov byte [0x41418825], al
xor eax, 0xe372e9e1
and dh, dl
xchg ebx, eax
imul esp, dword [edi + 0x5d], 0x806196fa
inc ebp
pop eax
jecxz 0x5a0ca1
push esp
fild qword [eax]
xchg edi, eax
mov al, 0x32
outsb dx, byte [esi]
adc al, byte [ebp + 0x67]
in al, dx
sub dword [ecx - 0x3a], esp
mov ch, 0xfa
jecxz 0x5a0ccb
sbb eax, 0x8b717bd
and eax, 0x279fbc9b
popal
push edi
inc ebp
jg 0x5a0d3d
outsd dx, dword [esi]
mov al, 0x33
adc dword [eax + 0x72f2b78b], ebx
xchg edx, eax
sti
sbb edi, edx
xlatb
mov esi, 0xb5940190
daa
mov dl, 0x78
or dword [edi + 0x40], ebp
mov dword [0xc7b0fb51], eax
inc ebx
sub al, bl
arpl word [eax - 0x16], di
xor byte [edi], 0x3f
mov dh, 0xd8
call edx
add al, 0x1c
cmp al, 0x87
mov al, byte [0xf30c7c97]
xor ah, byte [esi]
jl 0x5a0d0d
xor ah, byte [esi]
or dh, byte [edi]
inc ecx
lodsb al, byte [esi]
push 0xfb234153
jg 0x5a0cff
movsd dword es:[edi], dword gs:[esi]
dec esi
imul dword [eax]
push cs
pop eax
jl 0x5a0d6d
call 0x473969ed
mov bh, 0x6f
rol dword [esi + eax*2 - 0x431dfcd4], cl
int 0x76
push esp
mov cl, 0x63
fadd qword [edx + ecx*2]
inc esp
mov esi, 0xa28a170c
inc esp
xchg esp, eax
aaa
sub ah, 0x6a
ficom dword [edx + 0x7ac57a2]
push edi
lodsb al, byte [esi]
pop es
retf
salc
aaa
inc eax
xor byte [ebx - 0x1c], ah
pop ebx
invalid
mov esp, 0x41b1efee
popfd
mov dword [eax - 0x37], 0xc7a6bb90
jge 0x5a0df6
daa
lea ebp, [esi - 0x1b]
xor esi, dword [bp + di]
jo 0x5a0daf
sub ebx, esp
insb byte es:[edi], dx
push es
pop ebx
xor dword [edi], edi
ja 0x5a0d18
shr byte [eax], 0xae
xchg ebp, eax
or esp, dword [ebx - 0x456940a0]
or dword [ecx], ebx
std
fldpi
ret 0x20b3
pop edx
mov eax, dword [0x6849dcc1]
sub al, 0xd0
mov ch, byte [esi - 0x9d50e5c]
jb 0x5a0d64
div dword [ebx]
pop esi
mov byte [0x43c58b29], al
invalid
ja 0x5a0dfb
xchg dl, dl
and byte [ebx + 0x24], 0x2b
arpl word [ebx + ebp], sp
ror ch, 1
push esp
cmp eax, 0xa3f01000
in eax, 0x2d
cmpsd dword [esi], dword es:[edi]
popal
dec ecx
ljmp 0x9711
Function at 0x5c2667
Capabilities:
Encode data using xor

Disassembly:
lcall 0x9897, 0xc139deee
invalid
pushfd
insb byte es:[edi], dx
adc ebx, dword [esp + ecx*4]
and byte [esi - 0x57cf3ab4], 0xf
pushfd
cmpsd dword [esi], dword es:[edi]
rcl byte [edi - 0x48]
jns 0x5c25c9
pop edx
dec edx
popfd
xor eax, 0x8893080e
cmp dword [edx - 0x28], eax
mov dword [0xe4728d63], eax
aaa
sub ebp, 0xb54d14da
sti
sub bh, byte [esi]
pop edi
sbb dword [ebp - 0x1001bb73], ebp
out dx, eax
out dx, eax
in eax, dx
mov esp, ds
or dword fs:[ebx - 0x29d7b88f], 0xffffffc0
call [ecx]
mov dl, byte [edx]
out 0x61, eax
test dword [ecx - 0x7a], edi
push esp
in eax, 0x49
push edi
stosb byte es:[edi], al
ja 0x5c2633
mov dl, 0x2f
adc al, 0xd1
xchg edi, eax
insd dword es:[edi], dx
pop es
sbb byte [ecx + 0x23], bh
fsub dword [esi + 0x40c22c4a]
lds ecx, [ebp - 0x3b]
xchg esp, eax
pop edi
sub ebp, ecx
invalid

Function at 0x5e8ac7
Capabilities:
Encode data using xor

Disassembly:
out dx, eax
in eax, dx
jge 0x5e8ae9
sbb al, 0x8f
and eax, 0x5a2dad3b
outsd dx, dword [esi]
ror dword [ebp + 0x2d], 0x5b
xor ebp, dword [edx]
push eax
invalid
and dword [ecx + edx*2 + 0x50], edi
jno 0x5e8b54
invalid
push cs
and al, 0x59
imul byte [ecx]
fsub dword [ecx - 0x6c]
enter 0x1f01, 0xffffffffffffffb5
std
enter 0x414f, 0x59
aam 0x48
fild qword [edi - 0x36eff4df]
and edi, ebp
arpl word [eax], cx
mov eax, 0xf129c4b4
dec ebp
in eax, 0x7d
xchg dword [ebx*4 + 0x607a8127], ebp
sbb dword [ecx + 0x5b5b46b1], ebx
retf 0x862
Function at 0x41e6f0
Capabilities:
Encode data using xor

Disassembly:
sub eax, 0x672fb04b
jg 0x41e734
cld
and al, 0xd5
and al, 0x4c
mov ebx, ebp
inc ecx
mov ah, 0xb8
inc edx
mov al, 0x4e
sbb esp, dword [esi]
ret 0xef76
shr dword [ecx], cl
sahf
fdivrp st(0)
wait
dec esi
nop
les esp, [ebx + 0x600331c]
in al, dx
in al, 0xe8
push ecx
push ecx
clc
pop edi
invalid
Function at 0x4069c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4069e9
xor eax, eax
test eax, eax
je 0x4069fc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4069fc
xor ecx, ecx
jmp 0x4069ff
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x427dec], 0
push esi
jne 0x406b59
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 0x406b33
mov dword [ecx*4 + 0x427de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b2e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406b8a
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 + 0x427de8]
xor eax, esi
inc ecx
dec edx
jne 0x406b6c
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x4b182dac
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x222f0f0e
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x74fa11e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x50]
sub esp, 0x5c
mov dword [esp], str.WARNING:_calling_stub_MergeFontPackage___n
call sym._DbgPrint
xor eax, eax
mov ecx, 0x12
mov dword [ebp - 0x58], 0x80000100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [esp], eax
mov dword [ebp - 0x44], str.fontsub.dll
mov dword [ebp - 0x40], str.MergeFontPackage
mov dword [ebp - 0x48], 2
call sym._RtlRaiseException_4
xor eax, eax
mov edi, dword [ebp - 4]
sub esp, 4
leave
ret
Function at 0x74fa2ed0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea esi, [ebp + 0xc]
sub esp, 0x10
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], 0x74fa51ec
call sym._fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll_vfprintf]
call sym._abort
lea esi, [esi]
Function at 0x4010a0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x68
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.Control_PanelDesktop
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401117
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
push ecx
push eax
push eax
push eax
push str.ScreenSaveUtility
push edx
mov dword [esp + 0x28], eax
call esi
test eax, eax
jne 0x401117
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
push 0x40
call ebp
mov edi, eax
test edi, edi
je 0x401117
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push edi
push 0
push 0
push str.ScreenSaveUtility
push edx
call esi
test eax, eax
je 0x401120
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x68
ret
mov ecx, 0x10
lea eax, [esp + 0x18]
lea esp, [esp]
mov byte [eax], 0
add eax, 1
sub ecx, 1
jne 0x401130
mov ecx, 0x44
lea eax, [esp + 0x28]
mov byte [eax], 0
add eax, 1
sub ecx, 1
jne 0x401144
push edi
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x58], 0x81
mov word [esp + 0x5c], cx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
add eax, eax
push eax
push 0x40
call ebp
push edi
mov esi, eax
push str.__s___c
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
push edi
call esi
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x68
ret

Function at 0x4011c0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push 0x402060
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401208
push ebx
push edi
push ebp
lea edi, [esp + 0x10]
mov ebx, str.ScreenSaveBackup
jmp loc.00404000
push esi
push 0x2080
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40123f
push esi
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40123f
push str.scrnsave.scr
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x401245
pop esi
xor eax, eax
pop ebp
pop ecx
ret
mov dword [ebp], esi
pop esi
mov eax, 1
pop ebp
pop ecx
ret

Function at 0x401260
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
sub esp, 0x60
lea eax, [esp]
push esi
push eax
mov dword [esp + 8], 0
jmp loc.00404ef6
Function at 0x78b6b360
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x78b6b36f
pop dword [ebp - 0x30]
mov eax, 0x78b6b36f
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x94f13386
add dword [ebp - 0x40], 0xb96111c5
mov dword [ebp - 0x3c], 0x13d349f
sub dword [ebp - 0x3c], 0xcf09e85a
mov dword [ebp - 0x38], 0xae47c6a7
sub dword [ebp - 0x38], 0x61fb8279
mov dword [ebp - 0x34], 0x3153e757
add dword [ebp - 0x34], 0xceac18a9
lea eax, [ebp - 0x40]
push eax
mov eax, 0x8945e4ba
add eax, 0xef6f2c5e
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xa46e47c7
sub dword [ebp - 0x40], 0x2ffbde71
mov dword [ebp - 0x3c], 0xb6c355f0
add dword [ebp - 0x3c], 0x8aa90b85
mov dword [ebp - 0x38], 0x4e5cc5b6
add dword [ebp - 0x38], 0x1512a6b6
mov dword [ebp - 0x34], 0xaf3c750a
sub dword [ebp - 0x34], 0xaf3c750a
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0x8c2665a5
add eax, 0xec8eaacb
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3e7da
push 0
call eax
mov ecx, 0xa86e9ac2
sub ecx, 0xa86e5352
mov edx, eax
mov ebx, 0x78b82000
add ebx, dword [ebp - 0x30]
mov edi, 0xd452a03c
sub edi, 0x84cc614f
mov esi, dword [ebx]
sub dword [ebp - 0x14], ecx
add esi, edi
xor dword [ebp - 0x24], 0xd642c595
mov dword [edx], esi
add dword [ebp - 0x24], 0x7ed6858d
add edx, 0xb85fe9d8
add edx, 0x47a0162c
add ebx, 0x47803d69
add ebx, 0xb87fc29b
loop 0x78b6b486
add eax, 0x7b1adec1
sub eax, 0x7b19ce2e
xor ebx, ebx
add ebx, eax
add eax, 0x1f1df895
add eax, 0xe0e20770
mov ecx, 0x78b50000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x78b6d35d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x78b7b310]
jne 0x78b6d367
repz ret
jmp fcn.78b6ed18

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x409908
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424070]
jne 0x409912
repz ret
jmp fcn.0041156c

Function at 0x424040
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
mov esi, dword [esp + 0x360]
push edi
xor edi, edi
mov dword [esp + 0x14], ecx
push esi
mov dword [esp + 0x14], edi
call fcn.0040c9d0
add esp, 4
test eax, eax
je 0x42420e
mov ebx, dword [esp + 0x368]
test ebx, ebx
je 0x42420e
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea eax, [esp + 0x18]
push esi
push eax
call edi
lea ecx, [esp + 0x18]
push 0x104
push ecx
call fcn.0040ce70
mov ebp, dword [sym.imp.KERNEL32.DLL_lstrcatA]
add esp, 8
lea edx, [esp + 0x18]
push ebx
push edx
call ebp
lea eax, [esp + 0x220]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x424137
call fcn.004246e0
lea edx, [esp + 0x11c]
push esi
push edx
call edi
lea eax, [esp + 0x11c]
push 0x104
push eax
call fcn.0040ce70
add esp, 8
lea ecx, [esp + 0x24c]
lea edx, [esp + 0x11c]
push ecx
push edx
call ebp
test byte [esp + 0x220], 0x10
jne 0x42411d
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x11c]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
jl 0x42411d
inc dword [esp + 0x10]
lea eax, [esp + 0x220]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x4240c3
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [esp + 0x18]
push esi
push ecx
call edi
lea edx, [esp + 0x18]
push 0x104
push edx
call fcn.0040ce70
add esp, 8
lea eax, [esp + 0x18]
push 0x42b1bc
push eax
call ebp
lea ecx, [esp + 0x220]
lea edx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4241fd
call fcn.004246e0
test byte [esp + 0x220], 0x10
je 0x4241e3
cmp byte [esp + 0x24c], 0x2e
je 0x4241e3
lea eax, [esp + 0x11c]
push esi
push eax
call edi
lea ecx, [esp + 0x11c]
push 0x104
push ecx
call fcn.0040ce70
add esp, 8
lea edx, [esp + 0x24c]
lea eax, [esp + 0x11c]
push edx
push eax
call ebp
mov ecx, dword [esp + 0x368]
lea edx, [esp + 0x11c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00424040
add dword [esp + 0x10], eax
lea eax, [esp + 0x220]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x42417b
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret 8
Function at 0x4020a0
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 0x4020eb
xor esi, esi
lea edi, [esp + 0x818]
mov al, byte [esi + ecx]
test al, al
je 0x4020db
cbw
inc esi
mov word [edi], ax
add edi, 2
cmp esi, 0x1ff
jb 0x4020c1
jmp 0x4020e0
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 0x40213b
mov edi, edx
lea ecx, [edi + 2]
jmp 0x402100
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x402100
sub edi, ecx
sar edi, 1
cmp edi, 0x200
jb 0x40211c
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 0x40215d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x4021d0
mov esi, dword [ebx]
cmp esi, ebx
je 0x4021d0
test esi, esi
je 0x4021d0
cmp word [esi + 0x24], 2
jbe 0x4021ca
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x4021ca
cmp dword [esi + 0x18], 0
je 0x4021ca
test ebp, ebp
je 0x402185
cmp ebp, eax
jne 0x4021ca
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 0x4021aa
cmp eax, dword [esi + 0x18]
jne 0x4021ca
cmp dword [esp + 0x10], 0
je 0x4021dd
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00401030
add esp, 8
test eax, eax
je 0x4021dd
mov esi, dword [esi]
cmp esi, ebx
jne 0x402163
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 0x403700
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 0x403728
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 0x403736
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
test ecx, ecx
jle 0x40374f
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 0x40375d
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
jle 0x403776
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 0x403784
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
test ecx, ecx
jle 0x40379d
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 0x4037ab
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 0x4037f2
add dword [esp], 5
retf

Function at 0x4038d0
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 0x40392b
mov edi, ecx
lea edx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4038f0
sub edi, edx
sar edi, 1
cmp edi, 0x200
jb 0x40390c
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 0x40394d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x4039bf
mov esi, dword [ebx]
cmp esi, ebx
je 0x4039bf
test esi, esi
je 0x4039bf
cmp word [esi + 0x24], 2
jbe 0x4039b9
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x4039b9
cmp dword [esi + 0x18], 0
je 0x4039b9
test ebp, ebp
je 0x403975
cmp ebp, eax
jne 0x4039b9
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 0x40399a
cmp edx, dword [esi + 0x18]
jne 0x4039b9
cmp dword [esp + 0x14], eax
je 0x4039cc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00401030
add esp, 8
test eax, eax
je 0x4039cc
mov esi, dword [esi]
cmp esi, ebx
jne 0x403953
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 0x403b70
Capabilities:
Check os version

Disassembly:
mov ecx, 1
mov edx, 0x7f9b48
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x403c99
cmp dword fs:[0xc0], eax
je 0x403b9b
mov dword [0x7f9b44], 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 [0x7f9a2c], eax
mov eax, dword [esi + 0xa8]
mov dword [0x7f9a30], eax
movzx edx, word [esi + 0xac]
mov dword [0x7f9a34], edx
mov eax, dword [esi + 0xb0]
mov dword [0x7f9a38], eax
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x403bfb
push 0x7f
push eax
push 0x7f9a3c
call fcn.004043d0
mov edx, dword [0x7f9a34]
add esp, 0xc
jmp 0x403c03
xor eax, eax
mov word [0x7f9a3c], ax
movzx eax, byte [esi + 0xaf]
mov ecx, 0xff
mov word [0x7f9b3c], ax
movzx eax, word [esi + 0xae]
and ax, cx
mov word [0x7f9b3e], ax
movzx eax, word [0x7ffe02d0]
mov word [0x7f9b40], ax
mov ecx, eax
mov byte [0x7f9b42], 0
cmp byte [0x7ffe0268], 0
je 0x403c4a
mov ebx, dword [0x7ffe0264]
pop esi
mov byte [0x7f9b42], bl
cmp ebx, 1
pop ebx
jne 0x403c64
and ecx, 0xffef
mov word [0x7f9b40], cx
test edx, edx
jne 0x403c99
call fcn.00403b70
cmp dword [0x7f9a2c], 6
ja 0x403c99
jb 0x403c81
cmp dword [0x7f9a30], 4
jae 0x403c99
call fcn.00403b70
cmp dword [0x7f9a2c], 0xa
jae 0x403c99
mov dword [0x7f9a34], 1
ret

Function at 0x403ce0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x7fa468]
sub esp, 0x11c
test eax, eax
jne 0x403dde
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.00402070
add esp, 0xc
xor edi, edi
xor eax, eax
lea ebx, [ebx]
mov byte [esp + eax + 0x28], al
inc eax
cmp eax, 0x100
jb 0x403d30
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 + 0x41e100]
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 0x403d40
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 + 0x41e104]
mov byte [esp + esi + 0xc], al
inc esi
cmp esi, 0x1a
jb 0x403d75
xor edx, edx
lea ecx, [esp + 0xc]
call fcn.004038d0
pop edi
pop esi
pop ebx
test eax, eax
je 0x403dd9
mov eax, dword [eax + 0x18]
test eax, eax
je 0x403dd9
mov dword [0x7fa468], eax
add esp, 0x11c
ret
mov eax, dword [0x7fa468]
add esp, 0x11c
ret