joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005490
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0x414
push ebx
push ebp
push edi
push 0x208
lea eax, [esp + 0x21c]
mov ebx, edx
push 0
push eax
mov dword [esp + 0x18], ebx
call fcn.1002fe10
add esp, 0xc
xor edi, edi
xor ebp, ebp
test ebx, ebx
je 0x100054f4
mov edi, ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x100054c3
sub edi, ecx
sar edi, 1
cmp edi, 0x104
jb 0x100054df
mov edi, 0x103
push edi
lea eax, [esp + 0x21c]
push ebx
push eax
lea ebp, [edi + edi]
call fcn.10033476
add esp, 0xc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x10005523
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
mov ebx, dword [ecx + 0xc]
add ebx, 0x14
jne 0x10005523
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x414
ret
push esi
mov esi, dword [ebx]
cmp esi, ebx
je 0x1000559a
lea ebx, [ebx]
test esi, esi
je 0x1000559a
cmp word [esi + 0x24], 2
jbe 0x10005594
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x10005594
cmp dword [esi + 0x18], 0
je 0x10005594
test ebp, ebp
je 0x10005552
cmp ebp, eax
jne 0x10005594
push 0x208
lea eax, [esp + 0x18]
push 0
push eax
call fcn.1002fe10
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x28]
push eax
call fcn.10033476
add esp, 0x18
cmp dword [esp + 0x10], 0
je 0x100055a7
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x220]
push eax
call fcn.1003220d
add esp, 8
test eax, eax
je 0x100055a7
mov esi, dword [esi]
cmp esi, ebx
jne 0x10005530
xor eax, eax
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x414
ret
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x414
ret
Function at 0x100058e0
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
sub esp, 0x110
push ebx
push ebp
mov ebp, dword [0x1012e40c]
push esi
push edi
mov edi, ecx
test ebp, ebp
je 0x10005a0a
cmp dword [0x1012e410], 0
jne 0x100059f5
xor eax, eax
mov edx, 0xb
mov dword [esp + 0x10], eax
mov ecx, 0x100491a4
mov dword [esp + 0x14], eax
mov word [esp + 0x18], ax
mov byte [esp + 0x1a], al
lea eax, [esp + 0x10]
push eax
push 4
push 0x100491a0
call fcn.10007600
push 0x104
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.1002fe10
mov edx, 0x7ffe0030
add esp, 0x18
xor ecx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10005953
sub edx, esi
sar edx, 1
je 0x10005a0a
mov esi, edi
lea ebx, [esi + 1]
lea ecx, [ecx]
mov al, byte [esi]
inc esi
test al, al
jne 0x10005970
sub esi, ebx
add edx, 0xc
add edx, esi
cmp edx, 0x104
ja 0x10005a0a
xor eax, eax
test edx, edx
je 0x100059a7
movzx ebx, word [eax + eax + 0x7ffe0030]
test bx, bx
je 0x100059a7
mov byte [esp + eax + 0x1c], bl
inc ecx
inc eax
cmp eax, edx
jb 0x10005990
xor eax, eax
test edx, edx
je 0x100059c2
lea ecx, [ecx]
mov bl, byte [esp + eax + 0x10]
test bl, bl
je 0x100059c2
mov byte [esp + ecx + 0x1c], bl
inc eax
inc ecx
cmp eax, edx
jb 0x100059b0
xor eax, eax
test edx, edx
je 0x100059df
lea ecx, [esp + ecx + 0x1c]
lea esp, [esp]
mov bl, byte [eax + edi]
test bl, bl
je 0x100059df
mov byte [ecx], bl
inc eax
inc ecx
cmp eax, edx
jb 0x100059d0
push 8
push 0
lea eax, [esp + 0x24]
push eax
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
push 0x800
push 0
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret
Function at 0x10007600
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x108
push ebp
push 0x100
lea eax, [esp + 0x10]
mov dword [esp + 8], edx
mov ebp, ecx
push 0
push eax
mov dword [esp + 0x14], ebp
call fcn.1002fe10
add esp, 0xc
test ebp, ebp
je 0x10007713
cmp dword [esp + 0x110], 0
je 0x10007713
mov ecx, dword [esp + 0x114]
test ecx, ecx
je 0x10007713
cmp dword [esp + 0x118], 0
push edi
je 0x10007712
xor eax, eax
jmp 0x10007660
mov byte [esp + eax + 0x10], al
inc eax
cmp eax, 0x100
jb 0x10007660
mov ebp, dword [esp + 0x114]
push esi
xor esi, esi
xor edi, edi
push ebx
lea esp, [esp]
mov eax, esi
mov bl, byte [esp + esi + 0x18]
xor edx, edx
div ecx
movzx ecx, bl
movzx eax, byte [edx + ebp]
add eax, edi
add ecx, eax
movzx edi, cl
mov ecx, dword [esp + 0x120]
mov al, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + edi + 0x18], bl
cmp esi, 0x100
jb 0x10007680
mov edi, dword [esp + 0x124]
xor ebx, ebx
mov ebp, dword [esp + 0x14]
xor esi, esi
cmp dword [esp + 0x10], ebx
jbe 0x10007710
sub ebp, edi
jmp 0x100076d0
lea eax, [esi + 1]
movzx esi, al
lea edi, [edi + 1]
mov cl, byte [esp + esi + 0x18]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
movzx eax, byte [esp + ebx + 0x18]
mov byte [esp + esi + 0x18], al
mov byte [esp + ebx + 0x18], cl
movzx eax, byte [esp + esi + 0x18]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0x18]
xor al, byte [edi + ebp - 1]
sub dword [esp + 0x10], 1
mov byte [edi - 1], al
jne 0x100076d0
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x108
ret
Function at 0x1000a320
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1040
call fcn.100418b0
push ebx
push ebp
push esi
push edi
push 0x101c
lea eax, [esp + 0x34]
mov edi, ecx
push 0
push eax
mov dword [esp + 0x24], edi
call fcn.1002fe10
xor esi, esi
add esp, 0xc
xor eax, eax
cmp dword [edi], esi
jne 0x1000a4f3
mov dword [esp + 0x1c], eax
lea edx, [esi + 0x14]
mov dword [esp + 0x20], eax
mov ecx, 0x10048c34
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x1c]
push eax
push 4
push 0x10048c30
call fcn.10007600
add esp, 0xc
lea edx, [esp + 0x1c]
call fcn.10005490
test eax, eax
je 0x1000a4f1
mov edx, dword [eax + 0x18]
mov dword [esp + 0x14], edx
test edx, edx
je 0x1000a4f1
mov eax, dword [edx + 0x3c]
add eax, edx
je 0x1000a4f1
add eax, 0x78
je 0x1000a4f1
mov ecx, dword [eax]
test ecx, ecx
je 0x1000a4f1
cmp dword [eax + 4], esi
je 0x1000a4f1
lea eax, [edx + ecx]
test eax, eax
je 0x1000a4f1
mov ecx, dword [eax + 0x1c]
mov ebp, dword [eax + 0x24]
add ecx, edx
mov edi, dword [eax + 0x18]
add ebp, 0xfffffffe
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x20]
mov eax, 0x775a
add ecx, edx
add ebp, edx
lea ebx, [edi - 1]
lea ebp, [ebp + edi*2]
lea ebx, [ecx + ebx*4]
mov ecx, dword [ebx]
add ecx, edx
je 0x1000a458
cmp word [ecx], ax
jne 0x1000a458
add ecx, 2
mov edx, 0x5eb4592e
cmp byte [ecx], 0
je 0x1000a433
lea esp, [esp]
movzx eax, word [ecx]
lea ecx, [ecx + 1]
imul edx, edx, 0x1003f
add edx, eax
cmp byte [ecx], 0
jne 0x1000a420
movzx eax, word [ebp]
mov ecx, dword [esp + 0x10]
mov dword [esp + esi*8 + 0x34], edx
mov eax, dword [ecx + eax*4]
mov dword [esp + esi*8 + 0x38], eax
inc esi
cmp esi, 0x203
je 0x1000a463
mov edx, dword [esp + 0x14]
mov eax, 0x775a
sub ebx, 4
sub ebp, 2
sub edi, 1
jne 0x1000a404
lea eax, [esi - 1]
mov dword [esp + 0x30], esi
xor edi, edi
test eax, eax
je 0x1000a4ba
mov ecx, esi
xor eax, eax
sub ecx, edi
sub ecx, 1
je 0x1000a4b2
jmp 0x1000a480
mov ebp, dword [esp + eax*8 + 0x38]
mov ebx, dword [esp + eax*8 + 0x40]
cmp ebp, ebx
jbe 0x1000a4a8
mov edx, dword [esp + eax*8 + 0x34]
mov ecx, dword [esp + eax*8 + 0x3c]
mov dword [esp + eax*8 + 0x34], ecx
mov dword [esp + eax*8 + 0x38], ebx
mov dword [esp + eax*8 + 0x3c], edx
mov dword [esp + eax*8 + 0x40], ebp
mov esi, dword [esp + 0x30]
mov ecx, esi
inc eax
sub ecx, edi
dec ecx
cmp eax, ecx
jb 0x1000a480
inc edi
lea eax, [esi - 1]
cmp edi, eax
jb 0x1000a470
mov ebx, dword [esp + 0x18]
xor ecx, ecx
mov dword [ebx], esi
test esi, esi
je 0x1000a4df
lea edx, [ebx + 4]
lea esp, [esp]
mov eax, dword [esp + ecx*8 + 0x34]
lea edx, [edx + 4]
inc ecx
mov dword [edx - 4], eax
cmp ecx, esi
jb 0x1000a4d0
cmp dword [ebx], 0
je 0x1000a4f1
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000a880
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
xor edx, edx
xor eax, eax
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, 0x1012e708
push edi
lock cmpxchg dword [ecx], edx
mov edx, eax
test edx, edx
jne 0x1000a9e2
push ecx
push 0x40
mov ecx, esi
call fcn.10009af0
mov ecx, dword [esi + 0x14]
mov eax, esi
cmp ecx, 8
jb 0x1000a8bc
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push ecx
push eax
call edi
push ecx
mov ecx, esi
cmp eax, dword [esi + 0x14]
ja 0x1000a8d6
push eax
call fcn.10009af0
jmp 0x1000a948
add eax, 0x10
push eax
call fcn.10009af0
mov ecx, dword [esi + 0x14]
mov eax, esi
cmp ecx, 8
jb 0x1000a8eb
mov eax, dword [esi]
push ecx
push eax
call edi
cmp eax, dword [esi + 0x14]
ja 0x1000a8ff
push ecx
push eax
mov ecx, esi
call fcn.10009af0
jmp 0x1000a948
xor eax, eax
mov edx, 0x14
mov dword [esp + 0x14], eax
mov ecx, 0x10049984
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push eax
push 4
push 0x10049980
call fcn.10007600
add esp, 0xc
mov ecx, esi
call fcn.1000a7f0
push 9
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.100040e0
mov ecx, dword [esi + 0x10]
lea edi, [esi + 0x10]
test ecx, ecx
je 0x1000a994
mov edx, dword [esi + 0x14]
mov eax, esi
cmp edx, 8
jb 0x1000a95e
mov eax, dword [esi]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x1000a994
cmp ecx, edx
jae 0x1000a981
lea eax, [ecx + 1]
mov dword [edi], eax
mov eax, esi
cmp edx, 8
jb 0x1000a978
mov eax, dword [esi]
mov dword [eax + ecx*2], 0x5c
jmp 0x1000a994
push 0x5c
mov byte [esp + 0x14], 0
push dword [esp + 0x14]
push ecx
mov ecx, esi
call fcn.10006d30
mov eax, dword [edi]
lea ebp, [eax*2 + 4]
push ebp
call fcn.10005e10
mov ecx, eax
call fcn.10005ed0
mov ebx, eax
test ebx, ebx
je 0x1000a9f8
mov ecx, dword [edi]
add ecx, ecx
cmp dword [esi + 0x14], 8
jb 0x1000a9bc
mov esi, dword [esi]
push ecx
push esi
mov edx, ebp
mov ecx, ebx
call fcn.10007c50
mov eax, dword [edi]
add esp, 8
mov ecx, 0x1012e720
xchg dword [ecx], eax
mov eax, 0x1012e708
xchg dword [eax], ebx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov edi, 0x1012e720
xor eax, eax
lock cmpxchg dword [edi], ecx
push eax
push edx
mov ecx, esi
call fcn.10004330
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000ab60
Capabilities:
Check os version

Disassembly:
mov ecx, 1
mov edx, 0x1012e560
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x1000ac9a
cmp dword fs:[0xc0], eax
je 0x1000ab92
mov dword [0x1012e43c], 1
mov eax, 0x8664
jmp 0x1000ab97
mov eax, 0x14c
mov dword [0x1012d870], eax
mov eax, dword fs:[0x18]
push ebx
push esi
mov ebx, 1
mov esi, dword [eax + 0x30]
mov eax, dword [esi + 0xa4]
mov dword [0x1012e444], eax
mov eax, dword [esi + 0xa8]
mov dword [0x1012e448], eax
movzx edx, word [esi + 0xac]
mov dword [0x1012e44c], edx
mov eax, dword [esi + 0xb0]
mov dword [0x1012e450], eax
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x1000abfc
push 0x7f
push eax
push 0x1012e454
call fcn.10033476
mov edx, dword [0x1012e44c]
add esp, 0xc
jmp 0x1000ac04
xor eax, eax
mov word [0x1012e454], ax
movzx eax, byte [esi + 0xaf]
mov ecx, 0xff
mov word [0x1012e554], ax
movzx eax, word [esi + 0xae]
and ax, cx
mov word [0x1012e556], ax
movzx eax, word [0x7ffe02d0]
mov word [0x1012e558], ax
mov ecx, eax
mov byte [0x1012e55a], 0
cmp byte [0x7ffe0268], 0
je 0x1000ac4b
mov ebx, dword [0x7ffe0264]
pop esi
mov byte [0x1012e55a], bl
cmp ebx, 1
pop ebx
jne 0x1000ac65
and ecx, 0xffef
mov word [0x1012e558], cx
test edx, edx
jne 0x1000ac9a
call fcn.1000ab60
cmp dword [0x1012e444], 6
ja 0x1000ac9a
jb 0x1000ac82
cmp dword [0x1012e448], 4
jae 0x1000ac9a
call fcn.1000ab60
cmp dword [0x1012e444], 0xa
jae 0x1000ac9a
mov dword [0x1012e44c], 1
ret
Function at 0x1000be90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
push esi
push edi
push 0x30
lea eax, [esp + 0x64]
push 0
push eax
call fcn.1002fe10
xor eax, eax
add esp, 0xc
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call fcn.1000ab60
cmp dword [0x1012e43c], 0
mov eax, dword [ebp + 8]
je 0x1000bf70
lea ecx, [esp + 0x30]
mov dword [esp + 0x60], 0x30
mov dword [esp + 0x68], 0
lea edi, [esp + 0x60]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0xc], ecx
jmp 0x1000bfb0
mov dword [esp + 0x24], eax
lea edi, [esp + 0x40]
lea eax, [esp + 0x20]
mov dword [esp + 0x40], 0x18
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0xc], eax
mov eax, dword [0x1012e438]
test eax, eax
je 0x1000bfd4
mov ecx, dword [eax]
xor esi, esi
test ecx, ecx
je 0x1000bfd4
add eax, 4
cmp dword [eax], 0x15865d22
je 0x1000bfe6
inc esi
add eax, 4
cmp esi, ecx
jb 0x1000bfc4
mov ecx, 0x307
call fcn.10006110
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x1000bfd4
call fcn.1000ab60
cmp dword [0x1012e43c], 0
je 0x1000c01d
mov eax, dword [esp + 0xc]
cdq
push edx
push eax
mov eax, edi
cdq
push edx
push eax
push 0
push 2
lea eax, [esp + 0x28]
cdq
push edx
push eax
push 4
push esi
call fcn.10001050
add esp, 0x28
jmp 0x1000c034
push dword [esp + 0xc]
lea eax, [esp + 0x14]
push edi
push 2
push eax
push 4
push esi
call fcn.1002e100
add esp, 0x18
test eax, eax
js 0x1000bfd4
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000d320
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
xor edx, edx
xor eax, eax
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, 0x1012e768
push edi
lock cmpxchg dword [ecx], edx
mov edx, eax
test edx, edx
jne 0x1000d461
mov ecx, 0x7ffe0030
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d350
sub ecx, edx
sar ecx, 1
cmp ecx, 2
ja 0x1000d3ba
xor eax, eax
mov edx, 0x18
mov dword [esp + 0x18], eax
mov ecx, 0x10049ec4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x18]
push eax
push 4
push str.__rXJ
call fcn.10007600
lea ecx, [esp + 0x24]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d3a3
sub ecx, edx
lea eax, [esp + 0x18]
sar ecx, 1
push ecx
push eax
jmp 0x1000d3c0
push ecx
push 0x7ffe0030
mov ecx, esi
call fcn.10004330
mov edx, dword [esi + 0x14]
lea ebx, [esi + 0x10]
mov ecx, dword [ebx]
mov eax, esi
cmp edx, 8
jb 0x1000d3d8
mov eax, dword [esi]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x1000d40e
cmp ecx, edx
jae 0x1000d3fb
lea eax, [ecx + 1]
mov dword [ebx], eax
mov eax, esi
cmp edx, 8
jb 0x1000d3f2
mov eax, dword [esi]
mov dword [eax + ecx*2], 0x5c
jmp 0x1000d40e
push 0x5c
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
push ecx
mov ecx, esi
call fcn.10006d30
mov eax, dword [ebx]
lea ebp, [eax*2 + 4]
push ebp
call fcn.10005e10
mov ecx, eax
call fcn.10005ed0
mov edi, eax
test edi, edi
je 0x1000d477
cmp dword [esi + 0x14], 8
mov ecx, dword [ebx]
lea eax, [ecx + ecx]
jb 0x1000d437
mov esi, dword [esi]
test eax, eax
je 0x1000d44b
push eax
push esi
mov edx, ebp
mov ecx, edi
call fcn.1000acc0
mov ecx, dword [ebx]
add esp, 8
mov eax, 0x1012e778
xchg dword [eax], ecx
mov eax, 0x1012e768
xchg dword [eax], edi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov edi, 0x1012e778
xor eax, eax
lock cmpxchg dword [edi], ecx
push eax
push edx
mov ecx, esi
call fcn.10004330
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000d700
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
push esi
push edi
push 0x30
lea eax, [esp + 0x54]
mov dword [esp + 0x10], ecx
push 0
push eax
call fcn.1002fe10
xor eax, eax
mov dword [esp + 0x34], 1
add esp, 0xc
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], 2
call fcn.1000ab60
cmp dword [0x1012e43c], 0
lea eax, [esp + 0x20]
je 0x1000d7bb
cdq
lea edi, [esp + 0x50]
mov dword [esp + 0x50], 0x30
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
jmp 0x1000d7eb
mov dword [esp + 0x30], 0x18
lea edi, [esp + 0x30]
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], eax
mov eax, dword [0x1012e438]
test eax, eax
je 0x1000d810
mov ecx, dword [eax]
xor esi, esi
test ecx, ecx
je 0x1000d810
add eax, 4
nop
cmp dword [eax], 0x5df35d9c
je 0x1000d822
inc esi
add eax, 4
cmp esi, ecx
jb 0x1000d800
mov ecx, 0x307
call fcn.10006110
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x1000d810
call fcn.1000ab60
cmp dword [0x1012e43c], 0
lea eax, [esp + 0x10]
je 0x1000d861
cdq
push edx
push eax
push 0
push 2
push 0
push 0
mov eax, edi
cdq
push edx
push eax
mov eax, dword [esp + 0x2c]
push 0
push 0xc
cdq
push edx
push eax
push 6
push esi
call fcn.10001050
add esp, 0x38
jmp 0x1000d878
push eax
push 2
push 0
push edi
push 0xc
push dword [esp + 0x20]
push 6
push esi
call fcn.1002e100
add esp, 0x20
test eax, eax
js 0x1000d810
mov ecx, dword [ebp + 0x14]
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword [ecx], eax
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x10012010
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x200
cmp dword [esp + 0x208], 1
jne 0x100120f5
push ebx
push esi
push edi
push 0x100
lea eax, [esp + 0x110]
push 0
push eax
call fcn.1002fe10
lea eax, [esp + 0x118]
mov edx, 0x100
push eax
push 4
push 0x10111860
mov ecx, 0x10111864
call fcn.10007600
push 0x100
lea eax, [esp + 0x28]
push 0
push eax
call fcn.1002fe10
add esp, 0x24
xor esi, esi
xor eax, eax
mov byte [esp + eax + 0xc], al
inc eax
cmp eax, 0x100
jb 0x10012071
xor ebx, ebx
nop
mov dl, byte [esp + ebx + 0xc]
movzx eax, bl
movzx ecx, dl
movzx eax, byte [esp + eax + 0x10c]
add eax, esi
add ecx, eax
movzx esi, cl
mov al, byte [esp + esi + 0xc]
mov byte [esp + ebx + 0xc], al
inc ebx
mov byte [esp + esi + 0xc], dl
cmp ebx, 0x100
jb 0x10012080
xor edi, edi
xor ebx, ebx
xor esi, esi
lea eax, [edi + 1]
movzx edi, al
mov cl, byte [esp + edi + 0xc]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
movzx eax, byte [esp + ebx + 0xc]
mov byte [esp + edi + 0xc], al
mov byte [esp + ebx + 0xc], cl
movzx eax, byte [esp + edi + 0xc]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0xc]
xor byte [esi + 0x1012e570], al
inc esi
cmp esi, 0x100
jb 0x100120b4
pop edi
pop esi
pop ebx
add esp, 0x200
ret 0xc

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

Disassembly:
sub esp, 0x200
sub dword [esp + 0x208], 1
jne 0x10012285
push ebx
push esi
push edi
push 0x100
lea eax, [esp + 0x110]
push 0
push eax
call fcn.1002fe10
lea eax, [esp + 0x118]
mov edx, 0x100
push eax
push 4
push 0x101114f0
mov ecx, 0x101114f4
call fcn.10007600
push 0x100
lea eax, [esp + 0x28]
push 0
push eax
call fcn.1002fe10
add esp, 0x24
xor esi, esi
xor eax, eax
mov byte [esp + eax + 0xc], al
inc eax
cmp eax, 0x100
jb 0x10012201
xor ebx, ebx
nop
mov dl, byte [esp + ebx + 0xc]
movzx eax, bl
movzx ecx, dl
movzx eax, byte [esp + eax + 0x10c]
add eax, esi
add ecx, eax
movzx esi, cl
mov al, byte [esp + esi + 0xc]
mov byte [esp + ebx + 0xc], al
inc ebx
mov byte [esp + esi + 0xc], dl
cmp ebx, 0x100
jb 0x10012210
xor edi, edi
xor ebx, ebx
xor esi, esi
lea eax, [edi + 1]
movzx edi, al
mov cl, byte [esp + edi + 0xc]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
movzx eax, byte [esp + ebx + 0xc]
mov byte [esp + edi + 0xc], al
mov byte [esp + ebx + 0xc], cl
movzx eax, byte [esp + edi + 0xc]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0xc]
xor byte [esi + 0x1012e570], al
inc esi
cmp esi, 0x100
jb 0x10012244
pop edi
pop esi
pop ebx
mov eax, 1
add esp, 0x200
ret 0xc
Function at 0x100122a0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x2c
push 0x100099b0
call fcn.1003336d
mov eax, dword [0x1012e6c4]
add esp, 4
test eax, eax
jne 0x10012356
mov dword [esp], eax
mov edx, 0xd
mov dword [esp + 4], eax
mov ecx, 0x10049244
mov dword [esp + 8], eax
mov byte [esp + 0xc], al
lea eax, [esp]
push eax
push 4
push 0x10049240
call fcn.10007600
mov eax, dword [0x1012e6bc]
add esp, 0xc
test eax, eax
jne 0x1001233d
mov dword [esp + 0x10], eax
mov edx, 0x1a
mov dword [esp + 0x14], eax
mov ecx, 0x100492a4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov word [esp + 0x28], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0x100492a0
call fcn.10007600
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x1012e6bc], eax
lea ecx, [esp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1012e6c4], eax
test eax, eax
jne 0x10012356
call fcn.10005c70
push 0x8003
call eax
cmp dword [esp + 0x30], 0
je 0x1001236f
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.10012380
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1002e122
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret

Function at 0x1003795c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100451b8
push 0x100451b0
push str.FlsAlloc
push 0x1e
call fcn.1003787a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10037990
push dword [ebp + 8]
mov ecx, esi
call dword [0x10043140]
call esi
jmp 0x10037996
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100379da
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100451c8
push 0x100451c0
push str.FlsGetValue
push 0x20
call fcn.1003787a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10037a11
push dword [ebp + 8]
mov ecx, esi
call dword [0x10043140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1003a2d2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1003a36f
push ebx
push esi
call fcn.1003a29b
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1003a1e4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1003a31c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003a36e
push edi
push eax
call fcn.10037b7e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1003a33c
call fcn.100374cf
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003a36d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1003a1e4
add esp, 0x20
test eax, eax
jne 0x1003a35b
push edi
call fcn.100374cf
jmp 0x1003a363
push ebx
call fcn.100374cf
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret