joyce8/EMBER2024-capa huggingface dataset:
Function at 0x486f58
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x486f7a
add esp, 0xfffffff0
call fcn.00403720
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x4870e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0047909c
test al, al
jne 0x486fb7
mov ecx, 0x487118
mov dl, 1
mov eax, dword [0x46d798]
call fcn.0040c3c8
call fcn.00403c4c
push dword [0x4cfb60]
lea edx, [ebp - 0x10]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xbc]
push dword [ebp - 0x10]
push dword [0x4cfb60]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404c20
mov eax, dword [ebp - 0xc]
call fcn.00479b74
test al, al
jne 0x487089
push dword [0x4cfb5c]
push dword [ebp + 8]
push dword [0x4cfb5c]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404c20
mov eax, dword [ebp - 0x14]
call fcn.00479b74
test al, al
jne 0x487089
push dword [0x4cfb60]
lea edx, [ebp - 0x1c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xb8]
push dword [ebp - 0x1c]
push dword [0x4cfb60]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404c20
mov eax, dword [ebp - 0x18]
call fcn.00479c8c
test al, al
jne 0x487089
push dword [0x4cfb5c]
push edi
push dword [0x4cfb5c]
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404c20
mov eax, dword [ebp - 0x20]
call fcn.00479c8c
test al, al
jne 0x487089
mov ecx, 0x487118
mov dl, 1
mov eax, dword [0x46d798]
call fcn.0040c3c8
call fcn.00403c4c
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.00480980
lea eax, [ebx + 4]
mov edx, esi
call fcn.004049fc
lea eax, [ebx + 8]
call fcn.004049c0
lea eax, [ebx + 0x30]
mov edx, edi
call fcn.004049fc
lea eax, [ebx + 0x34]
mov edx, dword [ebp + 8]
call fcn.004049fc
mov byte [ebx + 0xc], 0xc
mov ax, word [0x487134]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4870ec
lea eax, [ebp - 0x20]
mov edx, 6
call fcn.004049d8
ret

Function at 0x4bbbe8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4bbc63
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
push 0x59
call sub.kernel32.dll_GetThreadLocale_1
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4bbc4a
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.00404524
mov eax, dword [ebp - 0x104]
mov edx, ebx
call fcn.004089f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bbc6a
lea eax, [ebp - 0x104]
call fcn.004042b4
ret
Function at 0x40f960
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549f8b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6f9540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0x6e6190
mov dword [ebp - 4], 0
mov dword [edi + 8], 0x6e6190
mov dword [edi + 0x14], 0x6e6190
mov dword [edi + 0x20], 0x6e6190
mov dword [edi + 0x24], 0x6e6190
mov dword [edi + 0x28], 0x6e6190
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov dword [edi + 0x30], eax
cmp dword [esi + 4], 3
sete al
mov byte [edi + 0x34], al
cmp dword [esi + 4], 5
sete al
mov byte [edi + 0x35], al
mov dword [edi + 0x48], 0x6e6190
mov dword [edi + 0x50], 0x6e6190
mov dword [edi + 0x68], 0
mov dword [edi + 0x74], 0x6e6190
mov byte [ebp - 4], 9
call fcn.00418ca0
push dword [esi + 4]
lea eax, [ebp + 8]
push esi
push eax
call fcn.00418040
add esp, 0xc
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0xa
mov ecx, dword [eax + 0xc]
mov esi, dword [eax + 4]
add ecx, eax
push esi
push ecx
mov ecx, edi
call fcn.004163f0
cmp eax, esi
sete cl
mov byte [edi + 0x2e], cl
je 0x40fa52
mov eax, dword [edi + 0x74]
mov byte [edi + 0x2d], 0
cmp dword [eax + 4], 0
jne 0x40fa52
push str.missing_left_delim
push 0x12
lea ecx, [edi + 0x74]
call fcn.00405f50
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
je 0x40fa72
cmp eax, 0xffffffff
je 0x40fa81
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x40fa81
push 4
push 2
push dword [ebp + 8]
call fcn.00403d20
add esp, 0xc
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x419ac0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
sub ecx, eax
push ebx
sar ecx, 2
push ebp
mov ebx, ecx
mov dword [esp + 0x14], ecx
sar ebx, 1
push esi
push edi
test ebx, ebx
jle 0x419be9
lea esi, [ecx - 1]
sar esi, 1
mov dword [esp + 0x18], esi
nop dword [eax]
dec ebx
mov dword [esp + 0x14], ebx
lea ecx, [eax + ebx*4]
mov eax, dword [ecx]
mov ebp, ebx
mov dword [esp + 0x10], eax
mov edx, ebx
mov dword [ecx], 0x6e6190
mov edi, dword [esp + 0x24]
cmp ebx, esi
jge 0x419b4d
mov ebx, dword [esp + 0x18]
lea esi, [edx + edx]
lea ecx, [edi + 8]
lea ecx, [ecx + esi*4]
lea eax, [ecx - 4]
push eax
push ecx
call fcn.004066b0
mov ecx, dword [edi + ebp*4]
add esp, 8
movzx edx, al
xor edx, 1
inc edx
add edx, esi
mov eax, dword [edi + edx*4]
mov dword [edi + ebp*4], eax
mov ebp, edx
mov dword [edi + edx*4], ecx
cmp edx, ebx
jl 0x419b14
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
cmp ebp, esi
jne 0x419b6b
mov edx, dword [esp + 0x1c]
test dl, 1
jne 0x419b6b
mov ecx, dword [edi + ebp*4]
mov eax, dword [edi + edx*4 - 4]
mov dword [edi + ebp*4], eax
lea ebp, [edx - 1]
mov dword [edi + edx*4 - 4], ecx
cmp ebx, ebp
jge 0x419ba4
nop
lea ebx, [ebp - 1]
sar ebx, 1
lea eax, [esp + 0x10]
push eax
lea esi, [edi + ebx*4]
push esi
call fcn.004066b0
add esp, 8
test al, al
je 0x419b9c
mov ecx, dword [edi + ebp*4]
mov eax, dword [esi]
mov dword [edi + ebp*4], eax
mov ebp, ebx
mov dword [esi], ecx
cmp dword [esp + 0x14], ebx
jl 0x419b70
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ecx, dword [edi + ebp*4]
mov eax, dword [esp + 0x10]
mov dword [edi + ebp*4], eax
mov dword [esp + 0x10], ecx
mov eax, dword [ecx]
test eax, eax
je 0x419bcc
cmp eax, 0xffffffff
je 0x419bdc
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x419bdc
push 4
push 2
push dword [esp + 0x18]
call fcn.00403d20
add esp, 0xc
test ebx, ebx
jle 0x419be9
mov eax, dword [esp + 0x24]
jmp 0x419af0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x419e70
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov edx, ebp
lea ebx, [eax - 1]
mov dword [esp + 0x10], edx
push esi
sar ebx, 1
mov esi, ebp
push edi
mov edi, dword [esp + 0x14]
cmp ebp, ebx
jge 0x419ed1
add esi, esi
lea ecx, [edi + 8]
lea ecx, [ecx + esi*4]
lea eax, [ecx - 4]
push eax
push ecx
call fcn.004066b0
movzx eax, al
add esp, 8
xor eax, 1
inc eax
add esi, eax
mov eax, dword [esp + 0x14]
mov edx, dword [eax + ebp*4]
mov ecx, dword [eax + esi*4]
mov dword [eax + ebp*4], ecx
mov ebp, esi
mov dword [eax + esi*4], edx
cmp esi, ebx
jl 0x419e91
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp esi, ebx
jne 0x419ef2
test al, 1
jne 0x419ef2
mov ecx, dword [edi + ebp*4]
mov eax, dword [edi + eax*4 - 4]
mov dword [edi + ebp*4], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + eax*4 - 4], ecx
lea ebp, [eax - 1]
mov edi, dword [esp + 0x14]
cmp edx, ebp
jge 0x419f21
push dword [esp + 0x20]
lea ebx, [ebp - 1]
sar ebx, 1
lea esi, [edi + ebx*4]
push esi
call fcn.004066b0
add esp, 8
test al, al
je 0x419f21
mov ecx, dword [edi + ebp*4]
mov eax, dword [esi]
mov dword [edi + ebp*4], eax
mov ebp, ebx
mov dword [esi], ecx
cmp dword [esp + 0x18], ebx
jl 0x419ef6
mov edx, dword [esp + 0x20]
mov ecx, dword [edi + ebp*4]
mov eax, dword [edx]
mov dword [edi + ebp*4], eax
pop edi
pop esi
pop ebp
mov dword [edx], ecx
pop ebx
ret
Function at 0x425b60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x5c
mov eax, dword [0x6f9540]
xor eax, esp
mov dword [esp + 0x58], eax
push edi
mov edi, dword [esp + 0x64]
lea eax, [esp + 4]
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftCryptography
mov dword [esp + 0x18], edi
push 0x80000002
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x425bfe
push esi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x4a
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push str.MachineGuid
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x425bfe
mov eax, dword [esp + 8]
lea ecx, [esp + 0x10]
dec eax
push ecx
shr eax, 1
push eax
push edi
call fcn.00408590
add esp, 0xc
mov eax, edi
pop edi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00524b20
add esp, 0x5c
ret
mov ecx, dword [esp + 0x5c]
mov eax, edi
mov dword [edi], 0x6e6190
pop edi
xor ecx, esp
call fcn.00524b20
add esp, 0x5c
ret
Function at 0x429570
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54bdbd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6f9540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0x6fb1a4
mov ecx, 1
mov edi, 0x6fb1a4
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
je 0x4295ba
mov ecx, edi
call fcn.0043f420
mov byte [ebp - 0x14], 1
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [ebx]
cmp dword [eax + 4], 0x7ffe
jg 0x4295e6
mov ecx, ebx
call fcn.0040dd20
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4296bd
push 0xfffe
call fcn.00524f92
mov edx, eax
xor esi, esi
mov eax, dword [ebx]
add esp, 4
mov dword [ebp - 0x10], edx
cmp dword [eax + 4], esi
jle 0x4296b4
mov ebx, 0x7ffe
nop word [eax + eax]
mov ecx, dword [eax + 4]
mov edi, ecx
sub edi, esi
mov dword [ebp - 0x14], ecx
cmp edi, 0x7ffe
mov ecx, edi
cmovg ecx, ebx
cmp eax, 0x6e6190
jne 0x429630
xor ebx, ebx
jmp 0x429635
mov ebx, dword [eax + 0xc]
add ebx, eax
cmp ecx, 0xffffffff
je 0x42965f
lea edx, [ecx + esi]
mov eax, esi
mov ecx, dword [ebp - 0x14]
cmp ecx, edx
cmovl edx, ecx
cmp ecx, esi
cmovl eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
xor edi, edi
test edx, edx
cmovg edi, edx
mov edx, dword [ebp - 0x10]
sub edi, ecx
cmp dword [ebp - 0x14], esi
mov ecx, esi
cmovl ecx, dword [ebp - 0x14]
xor eax, eax
test ecx, ecx
cmovg eax, ecx
add edi, edi
lea eax, [ebx + eax*2]
test eax, eax
je 0x429683
push edi
push eax
push edx
call fcn.00526450
add esp, 0xc
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push eax
mov word [edi + eax], cx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ebx, dword [ebp + 8]
add esi, 0x7ffe
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx]
mov ebx, 0x7ffe
cmp esi, dword [eax + 4]
jl 0x429610
mov edi, 0x6fb1a4
push edx
call fcn.00524f9b
add esp, 4
xor edx, edx
mov eax, 1
lock cmpxchg dword [edi], edx
cmp eax, 1
je 0x4296d4
mov ecx, edi
call fcn.0043f850
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43a020
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d26c
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6f9540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
push 8
mov dword [ebp - 4], 0
call fcn.005247b1
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push dword [ebp + 8]
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00493380
mov esi, eax
mov byte [ebp - 4], 0
push 1
mov ecx, esi
call fcn.004424d0
mov edx, dword [esi]
mov ecx, esi
push dword [ebp + 0xc]
call dword [edx + 0x30]
mov dword [edi + 4], esi
mov eax, edi
mov word [edi + 8], 1
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0x13
mov dword [edi + 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x43dbe0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x10]
xor eax, eax
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
mov ecx, edi
sub ecx, esi
mov dword [esp + 0xc], ecx
cmp edx, 0x20
jb 0x43dc64
mov edi, 0x10
add esi, 0x10
sub edi, dword [esp + 0x1c]
nop dword [eax]
mov edx, dword [esp + 0x14]
lea esi, [esi + 0x20]
movups xmm2, xmmword [ecx + esi - 0x20]
lea ecx, [edi + esi]
movups xmm1, xmmword [eax + edx]
mov edx, dword [esp + 0x18]
add eax, 0x20
cmp ecx, edx
mov ecx, dword [esp + 0xc]
movaps xmm0, xmm1
psrlw xmm1, 8
psllw xmm0, 8
xorps xmm0, xmm1
movups xmmword [esi - 0x30], xmm0
movaps xmm0, xmm2
psrlw xmm2, 8
psllw xmm0, 8
xorps xmm0, xmm2
movups xmmword [esi - 0x20], xmm0
jbe 0x43dc10
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
jmp 0x43dc68
mov dword [esp + 0xc], ecx
lea ecx, [eax + 0x10]
mov dword [esp + 8], ecx
cmp ecx, edx
mov ecx, dword [esp + 0xc]
ja 0x43dc93
movups xmm1, xmmword [eax + edi]
movaps xmm0, xmm1
psrlw xmm1, 8
psllw xmm0, 8
xorps xmm0, xmm1
movups xmmword [eax + esi], xmm0
mov eax, dword [esp + 8]
xor edi, edi
cmp eax, edx
jae 0x43dcc5
add esi, eax
nop dword [eax + eax]
cmp edi, 0x10
jae 0x43dcc5
mov cx, word [ecx + esi]
add eax, 2
mov dh, cl
add edi, 2
mov dl, ch
mov ecx, dword [esp + 0xc]
mov word [esi], dx
add esi, 2
mov edx, dword [esp + 0x18]
cmp eax, edx
jb 0x43dca0
pop edi
mov eax, edx
pop esi
add esp, 8
ret

Function at 0x43e330
Capabilities:
Encode data using add xor sub operations

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
test edx, edx
je 0x43e362
movzx ecx, word [esi]
lea esi, [esi + 2]
shl eax, 4
add ecx, eax
mov eax, ecx
shr eax, 0x17
and eax, 0x1e0
xor eax, ecx
and eax, 0xfffffff
sub edx, 1
jne 0x43e341
pop esi
ret
Function at 0x44b6c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x44b70f
lea edx, [esi + 8]
mov edi, eax
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x44b6d2
mov eax, dword [esi]
jmp 0x44b7f8
cmp eax, 0x4e0
jb 0x44b7f8
push ebx
mov ebx, dword [esi + 0x9c4]
lea edi, [esi + 0x9c4]
push ebp
mov ebp, 0xe3
nop dword [eax]
lea edx, [edi]
mov eax, ebx
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, ebx
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x634]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub ebp, 1
jne 0x44b730
mov ebx, dword [esi + 0xd50]
lea edi, [esi + 0xd50]
mov ebp, 0x18c
nop dword [eax]
mov eax, ebx
lea edx, [edi]
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx - 0xd4c]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub ebp, 1
jne 0x44b780
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop ebp
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
pop ebx
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
ret

Function at 0x44b830
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x44b8ad
push ebp
mov ebp, 0x6fb500
cmp edi, 0x6fb540
jne 0x44b85d
mov ecx, 1
xor eax, eax
lock cmpxchg dword [ebp], ecx
test eax, eax
je 0x44b85d
mov ecx, ebp
call fcn.0043f420
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x44b886
nop dword [eax + eax]
lea ecx, [edi + 4]
call fcn.0044b6c0
mov dword [esi], eax
add esi, 4
cmp esi, ebx
jne 0x44b870
mov ebp, 0x6fb500
pop esi
pop ebx
cmp edi, 0x6fb540
jne 0x44b8a8
xor edx, edx
mov eax, 1
lock cmpxchg dword [ebp], edx
cmp eax, 1
je 0x44b8a8
mov ecx, ebp
call fcn.0043f850
pop ebp
pop edi
ret 8
pop edi
mov ecx, 0x6fb508
jmp fcn.0044b8c0
Function at 0x44b8c0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e3a0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6f9540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movq xmm0, qword [0x6fea78]
xor ebx, ebx
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
sub edi, edx
movq qword [ebp - 0x14], xmm0
mov ecx, dword [ebp - 0x14]
mov eax, ecx
sar edi, 2
or eax, dword [ebp - 0x10]
jne 0x44b916
call fcn.00494230
mov edx, dword [ebp + 8]
mov ecx, eax
and ecx, 0x1000
or ecx, ebx
je 0x44b92c
push edi
push edx
call fcn.00494430
add esp, 8
mov ebx, eax
cmp ebx, edi
je 0x44b98b
mov esi, edi
sub esi, ebx
shl esi, 2
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 4], 0
lea eax, [eax + ebx*4]
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
xor ecx, ecx
test al, al
cmovne ecx, esi
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
add ebx, eax
cmp ebx, edi
je 0x44b98b
mov eax, dword [ebp + 8]
sub edi, ebx
lea esi, [eax + ebx*4]
lea edi, [esi + edi*4]
cmp esi, edi
je 0x44b98b
lea eax, [ebp + 8]
push eax
call fcn.00530117
mov eax, dword [ebp + 8]
add esp, 4
mov dword [esi], eax
add esi, 4
cmp esi, edi
jne 0x44b973
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x44ba10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub esp, 0x9c4
mov eax, dword [0x6f9540]
xor eax, esp
mov dword [esp + 0x9c0], eax
push ebx
mov ebx, dword [esp + 0x9cc]
mov edx, 0x1571
push ebp
push esi
mov ecx, 1
mov dword [ebx], 1
lea esi, [ebx + 0xc]
mov dword [ebx + 0x1388], 0xffffffff
mov dword [ebx + 8], 0x1571
mov eax, edx
lea esi, [esi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
inc ecx
mov dword [esi - 4], edx
cmp ecx, 0x270
jb 0x44ba52
push edi
lea eax, [esp + 0x9d0]
mov dword [ebx + 4], 0x270
push eax
lea eax, [esp + 0x14]
mov ecx, 0x6fb508
push eax
call fcn.0044b8c0
xor edx, edx
lea edi, [ebx + 8]
xor esi, esi
mov eax, dword [esp + esi*4 + 0x10]
lea edi, [edi + 4]
mov ecx, eax
mov dword [edi - 4], eax
or ecx, edx
mov edx, eax
shr edx, 0x1f
test esi, esi
cmovne edx, ecx
inc esi
cmp esi, 0x270
jb 0x44ba96
pop edi
test edx, edx
jne 0x44bac3
mov dword [ebx + 8], 0x80000000
mov ecx, dword [esp + 0x9cc]
pop esi
pop ebp
mov dword [ebx + 4], 0x270
pop ebx
xor ecx, esp
call fcn.00524b20
add esp, 0x9c4
ret
Function at 0x4503b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54ec85
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x6f9540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x60]
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x20], esi
test eax, eax
jne 0x4504d9
cmp dword [ebx + 0x78], 0xffffffff
jne 0x45054d
cmp dword [ebx + 0x64], 0xffffffff
je 0x450534
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov edi, dword [ebp + 0xc]
movlpd qword [ebp - 0x1c], xmm0
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
nop dword [eax]
test eax, eax
jg 0x450432
jl 0x45042e
cmp edi, 0x2000000
jae 0x450432
mov eax, edi
jmp 0x450437
mov eax, 0x2000000
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
push dword [ebx + 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x450492
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x45047a
add esi, eax
adc ecx, 0
sub edi, eax
mov eax, dword [ebp - 0x14]
sbb eax, 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
cmp ecx, dword [ebp + 0x10]
jg 0x45047a
jl 0x450420
cmp esi, dword [ebp + 0xc]
jb 0x450420
mov eax, esi
mov edx, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, esi
or eax, ecx
jne 0x45047a
lea eax, [ebp + 8]
push 0xffffffffffffffff
push eax
call fcn.00450f60
add esp, 8
mov ecx, dword [ebp - 0x20]
push eax
push 1
mov dword [ebp - 4], 1
call fcn.0044c7c0
lea ecx, [ebp + 8]
call fcn.00401a70
or eax, 0xffffffff
or edx, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push eax
call fcn.0053237d
push eax
call fcn.005329d6
add esp, 8
cmp eax, 0xffffffff
je 0x45054d
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x4504fe
cmp eax, 3
jne 0x45054d
push dword [ebx + 0x60]
call fcn.005302b4
add esp, 4
test eax, eax
je 0x45054d
lea eax, [ebp + 0x10]
push 0xffffffffffffffff
push eax
call fcn.00451130
add esp, 8
push eax
push 1
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.0044c7c0
lea ecx, [ebp + 0x10]
call fcn.00401a70
or eax, 0xffffffff
or edx, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044e190
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4507d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54eced
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x6f9540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x60], 0
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x20], eax
jne 0x4508f1
cmp dword [ebx + 0x78], 0xffffffff
jne 0x4508f1
cmp dword [ebx + 0x64], 0xffffffff
je 0x4508d8
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov edi, dword [ebp + 0xc]
movlpd qword [ebp - 0x1c], xmm0
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
test eax, eax
jg 0x45084a
jl 0x450846
cmp edi, 0x2000000
jae 0x45084a
mov eax, edi
jmp 0x45084f
mov eax, 0x2000000
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
push dword [ebx + 0x64]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x4508aa
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x450892
add esi, eax
adc ecx, 0
sub edi, eax
mov eax, dword [ebp - 0x14]
sbb eax, 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
cmp ecx, dword [ebp + 0x10]
jg 0x450892
jl 0x450838
cmp esi, dword [ebp + 0xc]
jb 0x450838
mov eax, esi
mov edx, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, esi
or eax, ecx
jne 0x450892
lea eax, [ebp + 8]
push 0xffffffffffffffff
push eax
call fcn.00450f60
add esp, 8
mov ecx, dword [ebp - 0x20]
push eax
push 2
mov dword [ebp - 4], 0
call fcn.0044c7c0
lea ecx, [ebp + 8]
call fcn.00401a70
or eax, 0xffffffff
or edx, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044ec50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc