joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10067e00
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 8], ebx
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
jbe 0x10067e31
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ecx - 1]
mov esi, dword [ebx + 4]
or eax, 1
mov dword [ebp - 0xc], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.10027490
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x10067f3c
nop word [eax + eax]
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
imul edx, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, edx
mov edx, dword [ebx + 0xc]
lea edx, [edx + edi*8]
mov edi, dword [edx]
mov dword [ebp - 0x10], edx
cmp edi, esi
jne 0x10067ec1
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x10067f32
mov edx, dword [edx + 4]
mov ebx, dword [eax + 8]
cmp ebx, dword [edx + 8]
jne 0x10067efb
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x10067ef3
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], eax
jmp 0x10067f2f
cmp edi, edx
je 0x10067f0c
nop
mov edx, dword [edx + 4]
cmp ebx, dword [edx + 8]
je 0x10067f45
cmp edi, edx
jne 0x10067f00
mov ebx, dword [eax + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edi
mov dword [edx], eax
mov ebx, dword [ebp - 8]
mov eax, ecx
cmp ecx, esi
jne 0x10067e70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x10067f2f

Function at 0x10069560
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x1006958b
push 0
push 0
push 0
push 0x100247f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1006958b
mov eax, 1
pop ebp
ret 0xc
xor eax, eax
pop ebp
ret 0xc
Function at 0x1007b8a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x1007ba31
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x280]
call eax
test al, al
je 0x1007ba31
mov eax, dword [0x100c95c8]
cmp dword [eax + 0x174], 0xffffffff
je 0x1007ba31
mov eax, dword [0x100c9858]
add eax, 0xffffff91
xor eax, 0x6dbe5afd
cmp dword [eax + ebx], 0
mov eax, dword [0x100c9820]
setle cl
add eax, 0xffffff9f
xor eax, 0x6dbe5aef
xor edi, edi
mov byte [eax + ebx], cl
mov eax, dword [0x100c9814]
add eax, 0xffffffa2
xor eax, 0x6dbe5aec
mov dword [eax + ebx + 0xc], 0
mov eax, dword [0x100c9818]
add eax, 0xffffffa1
xor eax, 0x6dbe5aed
mov dword [eax + ebx + 0xc], 0
mov ecx, dword [0x100c981c]
lea eax, [ecx - 0x60]
xor eax, 0x6dbe5aee
mov edx, dword [eax + ebx + 0xc]
mov dword [ebp - 4], edx
test edx, edx
je 0x1007b98e
lea eax, [ecx - 0x60]
xor eax, 0x6dbe5aee
mov eax, dword [eax + ebx]
mov esi, dword [eax + edi*4]
lea ebx, [eax + edi*4]
test esi, esi
je 0x1007b986
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x1007b97a
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x1007b977
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov edx, dword [ebp - 4]
mov dword [ebx], 0
mov ecx, dword [0x100c981c]
mov ebx, dword [ebp + 8]
inc edi
cmp edi, edx
jb 0x1007b943
lea eax, [ecx - 0x60]
xor eax, 0x6dbe5aee
lea ecx, [ebx + 8]
push 0
mov dword [eax + ebx + 0xc], 0
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x1c]
call eax
mov eax, dword [ebx + 8]
lea ecx, [ebx + 8]
push 0
mov eax, dword [eax + 0x14]
call eax
mov ecx, dword [0x100c95dc]
xor ebx, ebx
mov dword [ebp - 4], ecx
mov eax, dword [ecx + 0x28]
mov dword [ebp - 8], eax
test eax, eax
je 0x1007ba22
nop dword [eax]
mov eax, dword [ecx + 0x1c]
mov ecx, dword [eax + ebx*4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov esi, eax
mov edi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [ecx + esi], 0
jne 0x1007b9e6
xor edx, edx
test ecx, ecx
je 0x1007ba0c
movsx eax, byte [edx + esi]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x1007b9f3
cmp edi, 0x79705c5e
je 0x1007ba17
inc ebx
cmp ebx, dword [ebp - 8]
jae 0x1007ba22
mov ecx, dword [ebp - 4]
jmp 0x1007b9d0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax + ebx*4]
jmp 0x1007ba24
xor ecx, ecx
push 0
push dword [ebp + 8]
push 0
call dword [0x100c96b0]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4fe3f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd6000]
push edi
or ebp, 0xffffffff
jmp 0x4fe412
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4fe419
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fe408
mov eax, 1
add ebx, ebx
jne 0x4fe42b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4fe43c
jne 0x4fe45b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fe45b
dec eax
add ebx, ebx
jne 0x4fe448
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4fe420
add ebx, ebx
jne 0x4fe457
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4fe4ad
xor ecx, ecx
sub eax, 3
jb 0x4fe473
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4fe4e2
sar eax, 1
mov ebp, eax
jmp 0x4fe47e
add ebx, ebx
jne 0x4fe47e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fe44c
inc ecx
add ebx, ebx
jne 0x4fe48c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fe44c
add ebx, ebx
jne 0x4fe499
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4fe48e
jne 0x4fe4aa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4fe48e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4fe4cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4fe4be
jmp 0x4fe40e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4fe4cc
add edi, ecx
jmp 0x4fe40e
pop esi
mov edi, esi
mov ecx, 0x162
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4fe4ea
cmp byte [edi], 1
jne 0x4fe4ea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4fe4ef
lea edi, [esi + 0xfc000]
mov eax, dword [edi]
or eax, eax
je 0x4fe55e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xfe310]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xfe3b0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4fe51c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xfe3b4]
or eax, eax
je 0x4fe558
mov dword [ebx], eax
add ebx, 4
jmp 0x4fe539
call dword [esi + 0xfe3c4]
mov ebp, dword [esi + 0xfe3b8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4fe592
sub esp, 0xffffff80
jmp 0x408a8c
Function at 0x401960
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 0x4019ab
xor esi, esi
lea edi, [esp + 0x818]
mov al, byte [esi + ecx]
test al, al
je 0x40199b
cbw
inc esi
mov word [edi], ax
add edi, 2
cmp esi, 0x1ff
jb 0x401981
jmp 0x4019a0
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 0x4019fb
mov edi, edx
lea ecx, [edi + 2]
jmp 0x4019c0
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4019c0
sub edi, ecx
sar edi, 1
cmp edi, 0x200
jb 0x4019dc
mov edi, 0x1ff
push edi
push edx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00401180
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 0x401a1d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x401a90
mov esi, dword [ebx]
cmp esi, ebx
je 0x401a90
test esi, esi
je 0x401a90
cmp word [esi + 0x24], 2
jbe 0x401a8a
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x401a8a
cmp dword [esi + 0x18], 0
je 0x401a8a
test ebp, ebp
je 0x401a45
cmp ebp, eax
jne 0x401a8a
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00401180
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x401a6a
cmp eax, dword [esi + 0x18]
jne 0x401a8a
cmp dword [esp + 0x10], 0
je 0x401a9d
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00402f30
add esp, 8
test eax, eax
je 0x401a9d
mov esi, dword [esi]
cmp esi, ebx
jne 0x401a23
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 0x402730
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 0x40278b
mov edi, ecx
lea edx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x402750
sub edi, edx
sar edi, 1
cmp edi, 0x200
jb 0x40276c
mov edi, 0x1ff
push edi
push ecx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00401180
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 0x4027ad
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x40281f
mov esi, dword [ebx]
cmp esi, ebx
je 0x40281f
test esi, esi
je 0x40281f
cmp word [esi + 0x24], 2
jbe 0x402819
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x402819
cmp dword [esi + 0x18], 0
je 0x402819
test ebp, ebp
je 0x4027d5
cmp ebp, eax
jne 0x402819
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00401180
mov edx, dword [esp + 0x1c]
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
test edx, edx
je 0x4027fa
cmp edx, dword [esi + 0x18]
jne 0x402819
cmp dword [esp + 0x14], eax
je 0x40282c
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00402f30
add esp, 8
test eax, eax
je 0x40282c
mov esi, dword [esi]
cmp esi, ebx
jne 0x4027b3
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 0x402a10
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 0x402a38
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 0x402a46
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
test ecx, ecx
jle 0x402a5f
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 0x402a6d
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
jle 0x402a86
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 0x402a94
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
test ecx, ecx
jle 0x402aad
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 0x402abb
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 0x402b02
add dword [esp], 5
retf
Function at 0x402fa0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x813bec]
sub esp, 0x11c
test eax, eax
jne 0x40309e
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.00403b00
add esp, 0xc
xor edi, edi
xor eax, eax
lea ebx, [ebx]
mov byte [esp + eax + 0x28], al
inc eax
cmp eax, 0x100
jb 0x402ff0
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 0x403000
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 0x403035
xor edx, edx
lea ecx, [esp + 0xc]
call fcn.00402730
pop edi
pop esi
pop ebx
test eax, eax
je 0x403099
mov eax, dword [eax + 0x18]
test eax, eax
je 0x403099
mov dword [0x813bec], eax
add esp, 0x11c
ret
mov eax, dword [0x813bec]
add esp, 0x11c
ret

Function at 0x4030b0
Capabilities:
Check os version

Disassembly:
mov ecx, 1
mov edx, 0x813348
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x4031d9
cmp dword fs:[0xc0], eax
je 0x4030db
mov dword [0x813344], 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 [0x81322c], eax
mov eax, dword [esi + 0xa8]
mov dword [0x813230], eax
movzx edx, word [esi + 0xac]
mov dword [0x813234], edx
mov eax, dword [esi + 0xb0]
mov dword [0x813238], eax
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x40313b
push 0x7f
push eax
push 0x81323c
call fcn.00401180
mov edx, dword [0x813234]
add esp, 0xc
jmp 0x403143
xor eax, eax
mov word [0x81323c], ax
movzx eax, byte [esi + 0xaf]
mov ecx, 0xff
mov word [0x81333c], ax
movzx eax, word [esi + 0xae]
and ax, cx
mov word [0x81333e], ax
movzx eax, word [0x7ffe02d0]
mov word [0x813340], ax
mov ecx, eax
mov byte [0x813342], 0
cmp byte [0x7ffe0268], 0
je 0x40318a
mov ebx, dword [0x7ffe0264]
pop esi
mov byte [0x813342], bl
cmp ebx, 1
pop ebx
jne 0x4031a4
and ecx, 0xffef
mov word [0x813340], cx
test edx, edx
jne 0x4031d9
call fcn.004030b0
cmp dword [0x81322c], 6
ja 0x4031d9
jb 0x4031c1
cmp dword [0x813230], 4
jae 0x4031d9
call fcn.004030b0
cmp dword [0x81322c], 0xa
jae 0x4031d9
mov dword [0x813234], 1
ret
Function at 0x4031e0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Get windows directory from kuser_shared_data

Disassembly:
mov eax, dword [0x813208]
sub esp, 0x20c
push ebp
mov ebp, ecx
push esi
push edi
test eax, eax
je 0x40338d
cmp dword [0x81320c], 0
jne 0x403379
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.00403b00
add esp, 0xc
xor edi, edi
xor eax, eax
nop
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jb 0x403230
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 0x403240
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 + 0x41c0d8]
mov byte [esp + edx + 0xc], al
inc edx
cmp edx, 0xb
jb 0x403275
push 0x200
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00403b00
mov edx, 0x7ffe0030
add esp, 0xc
xor ecx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4032d4
sub edx, esi
sar edx, 1
je 0x40338d
mov esi, ebp
lea edi, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x4032f0
sub esi, edi
add edx, 0xc
add edx, esi
cmp edx, 0x200
ja 0x40338d
xor eax, eax
push ebx
test edx, edx
je 0x403328
movzx ebx, word [eax + eax + 0x7ffe0030]
test bx, bx
je 0x403328
mov byte [esp + eax + 0x1c], bl
inc ecx
inc eax
cmp eax, edx
jb 0x403311
xor eax, eax
test edx, edx
je 0x403342
mov edi, edi
mov bl, byte [esp + eax + 0x10]
test bl, bl
je 0x403342
mov byte [esp + ecx + 0x1c], bl
inc eax
inc ecx
cmp eax, edx
jb 0x403330
xor eax, eax
test edx, edx
je 0x40335f
lea ecx, [esp + ecx + 0x1c]
lea esp, [esp]
mov bl, byte [eax + ebp]
test bl, bl
je 0x40335f
mov byte [ecx], bl
inc eax
inc ecx
cmp eax, edx
jb 0x403350
push 8
push 0
lea eax, [esp + 0x24]
push eax
call dword [0x813208]
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 0x41bb92
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret
Function at 0x100023fd
Capabilities:
Identify system language via api

Disassembly:
push esi
push edi
xor edi, edi
cmp dword [esp + 0x14], edi
je 0x1000240f
call dword [sym.imp.kernel32.dll_GetUserDefaultLCID]
jmp 0x10002415
call dword [sym.imp.kernel32.dll_GetUserDefaultUILanguage]
movzx eax, ax
push eax
call fcn.1000b889
mov esi, eax
pop ecx
cmp esi, edi
je 0x1000243f
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x29c]
push esi
mov edi, eax
call dword [sym.imp.msvcr100.dll_free]
pop ecx
jmp 0x1000244d
push str.memory_allocation_error
push dword [esp + 0x10]
call sym.java.dll__JNU_ThrowOutOfMemoryError_8
mov eax, edi
pop edi
pop esi
ret 0xc
Function at 0x10006ed9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xe0
mov eax, dword [0x1001cf10]
xor eax, ebp
mov dword [ebp + 0x74], eax
push edi
lea eax, [ebp - 0x5c]
push eax
push 0x20019
xor edi, edi
and dword [ebp - 0x5c], edi
push edi
push str.SystemCurrentControlSetControlTimeZoneInformation
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10006f4f
and dword [ebp - 0x60], edi
push ebx
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x60]
push eax
push edi
push str.ActiveTimeBias
push dword [ebp - 0x5c]
mov dword [ebp - 0x64], 4
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov ebx, eax
test ebx, ebx
jne 0x10006f41
mov edi, dword [ebp - 0x68]
push dword [ebp - 0x5c]
call dword [sym.imp.advapi32.dll_RegCloseKey]
test ebx, ebx
pop ebx
je 0x10006f61
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.kernel32.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
je 0x10006f61
mov edi, dword [ebp - 0x58]
lea eax, [ebp + 0x54]
push eax
mov eax, edi
call fcn.100067f8
lea eax, [ebp + 0x54]
push eax
call dword [sym.imp.msvcr100.dll__strdup]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
pop edi
call fcn.100122d0
add ebp, 0x78
leave
ret

Function at 0x10007644
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.advapi32.dll_CryptAcquireContextA]
push edi
xor ebx, ebx
push ebx
push 1
push ebx
mov edi, str.J2SE
push edi
lea eax, [ebp - 8]
push eax
mov byte [ebp - 1], bl
call esi
test eax, eax
jne 0x1000767f
push 8
push 1
push ebx
push edi
lea eax, [ebp - 8]
push eax
call esi
test eax, eax
jne 0x1000767f
xor al, al
jmp 0x100076d4
push dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push esi
call dword [eax + 0x2ac]
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 8], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x2e0]
mov edi, eax
cmp edi, ebx
je 0x100076c7
push edi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_CryptGenRandom]
test eax, eax
je 0x100076b9
mov byte [ebp - 1], 1
mov eax, dword [esi]
push ebx
push edi
push dword [ebp + 0x10]
push esi
call dword [eax + 0x300]
push ebx
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_CryptReleaseContext]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push esi
push dword [0x1001cf68]
push dword [esp + 0x14]
push dword [esp + 0x10]
call fcn.1000a207
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10007e43
xor al, al
jmp 0x10007e74
push ebx
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
push eax
push esi
call fcn.1000b889
push esi
mov ebx, eax
call dword [sym.imp.msvcr100.dll_free]
add esp, 0xc
cmp ebx, 0xffffffff
je 0x10007e83
mov eax, dword [esp + 0x18]
dec eax
je 0x10007e71
dec eax
je 0x10007e78
dec eax
dec eax
jne 0x10007e83
mov al, 1
pop ebx
pop esi
ret 0x10
mov al, 1
test bl, 0x10
jne 0x10007e73
test al, bl
je 0x10007e73
xor al, al
jmp 0x10007e73