joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434900
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x4e04c4]
xor eax, esp
mov dword [esp + 0x84], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
movss xmm0, dword [0x4d4340]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
movss xmm7, dword [edx]
movaps xmm1, xmmword [0x4d4420]
push esi
movss xmm4, dword [eax]
xor esi, esi
movss xmm5, dword [eax + 4]
subss xmm7, xmm4
movss xmm6, dword [eax + 8]
addss xmm4, dword [edx]
push edi
mov dword [esp + 0x24], ecx
mulss xmm7, xmm0
mov dword [esp + 0x14], esi
mulss xmm4, xmm0
movss dword [esp + 8], xmm7
movss xmm7, dword [edx + 4]
subss xmm7, xmm5
movss dword [esp + 0x18], xmm4
addss xmm5, dword [edx + 4]
movaps xmmword [esp + 0x50], xmm1
mulss xmm7, xmm0
mulss xmm5, xmm0
movss dword [esp + 0x10], xmm7
movss xmm7, dword [edx + 8]
subss xmm7, xmm6
movss dword [esp + 0x1c], xmm5
addss xmm6, dword [edx + 8]
mulss xmm7, xmm0
mulss xmm6, xmm0
movss dword [esp + 0xc], xmm7
movss xmm7, dword [esp + 8]
movss dword [esp + 0x20], xmm6
nop
movss xmm3, dword [esp + 0x10]
movaps xmm2, xmm1
mov esi, dword [esp + 0x24]
movaps xmm0, xmm1
shufps xmm2, xmm1, 0x55
xor edi, edi
shufps xmm1, xmm1, 0xaa
mulss xmm1, dword [esp + 0xc]
mulss xmm0, xmm7
mulss xmm2, xmm3
addss xmm1, xmm6
addss xmm0, xmm4
addss xmm2, xmm5
nop dword [eax]
nop dword [eax + eax]
mov eax, 0xaaaaaaab
movss dword [esp + 0x70], xmm0
mul edi
movss dword [esp + 0x78], xmm1
movss dword [esp + 0x74], xmm2
mov ecx, edi
mov dword [esp + 0x7c], 0
shr edx, 1
push dword [esp + 0x28]
mov dword [esp + 0x70], 0
lea eax, [edx + edx*2]
sub ecx, eax
mov eax, dword [esi]
movss xmm0, dword [esp + ecx*4 + 0x54]
mulss xmm0, dword [0x4d43a0]
movss dword [esp + ecx*4 + 0x54], xmm0
lea ecx, [esp + 0x64]
movaps xmm1, xmmword [esp + 0x54]
movaps xmm0, xmm1
mulss xmm0, xmm7
push ecx
lea ecx, [esp + 0x78]
push ecx
addss xmm0, xmm4
mov ecx, esi
movss dword [esp + 0x38], xmm0
movss dword [esp + 0x6c], xmm0
movaps xmm0, xmm1
shufps xmm0, xmm1, 0x55
shufps xmm1, xmm1, 0xaa
mulss xmm1, dword [esp + 0x18]
mulss xmm0, xmm3
addss xmm1, xmm6
addss xmm0, xmm5
movaps xmmword [esp + 0x3c], xmm1
movss dword [esp + 0x74], xmm1
movups xmmword [esp + 0x4c], xmm0
movss dword [esp + 0x70], xmm0
call dword [eax + 0x10]
movaps xmm1, xmmword [esp + 0x30]
inc edi
movss xmm0, dword [esp + 0x2c]
movss xmm4, dword [esp + 0x18]
movss xmm5, dword [esp + 0x1c]
movss xmm6, dword [esp + 0x20]
movss xmm7, dword [esp + 8]
movss xmm3, dword [esp + 0x10]
movups xmm2, xmmword [esp + 0x40]
cmp edi, 3
jl 0x434a00
movaps xmm1, xmmword [0x4d4430]
mov esi, dword [esp + 0x14]
movaps xmmword [esp + 0x50], xmm1
cmp esi, 3
jae 0x434b10
movss xmm0, dword [esp + esi*4 + 0x50]
mulss xmm0, dword [0x4d43a0]
movss dword [esp + esi*4 + 0x50], xmm0
movaps xmm1, xmmword [esp + 0x50]
inc esi
mov dword [esp + 0x14], esi
cmp esi, 4
jl 0x4349c0
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
xor ecx, esp
call fcn.004968dc
mov esp, ebp
pop ebp
ret 0xc
Function at 0x438900
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf117
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x38
push esi
push edi
mov eax, dword [0x4e04c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x58
call fcn.004968f8
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
push 0x58
push 0
push esi
mov dword [ebp - 4], 0
call fcn.00499720
movaps xmm0, xmmword [0x4d44a0]
lea eax, [ebp - 0x48]
add esp, 0xc
mov dword [ebp - 0x38], 0
mov ecx, esi
mov dword [ebp - 0x34], 1
movups xmmword [ebp - 0x48], xmm0
push eax
call fcn.00443d90
mov dword [ebp - 4], 0xffffffff
push 0x28ac
mov dword [edi], eax
call fcn.004968f8
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
push 0x28ac
push 0
push esi
mov dword [ebp - 4], 1
call fcn.00499720
add esp, 0xc
mov ecx, esi
push dword [edi]
call fcn.00444770
mov dword [ebp - 4], 0xffffffff
push 0xb0
mov dword [edi + 4], eax
call fcn.004968f8
add esp, 4
mov dword [ebp - 0x14], eax
push 0
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.00446240
push 0x10
mov dword [ebp - 4], 0xffffffff
push 0x110
mov dword [edi + 8], eax
call fcn.0048cfb0
mov esi, eax
add esp, 8
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 3
test esi, esi
je 0x438a2b
push 0x110
push 0
push esi
call fcn.00499720
add esp, 0xc
mov ecx, esi
call fcn.00478240
jmp 0x438a2d
xor eax, eax
push 0x10
mov dword [ebp - 4], 0xffffffff
push 0x180
mov dword [edi + 0xc], eax
call fcn.0048cfb0
mov esi, eax
add esp, 8
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 4
test esi, esi
je 0x438a7a
push 0x180
push 0
push esi
call fcn.00499720
add esp, 0xc
mov ecx, esi
push dword [edi]
push dword [edi + 0xc]
push dword [edi + 8]
push dword [edi + 4]
call fcn.00480550
jmp 0x438a7c
xor eax, eax
mov dword [ebp - 4], 0xffffffff
push 4
mov dword [0x4e4354], eax
call fcn.004968f8
mov dword [ebp - 0x14], eax
add esp, 4
mov dword [eax], vtable.btGhostPairCallback.0
mov dword [edi + 0x10], eax
mov eax, dword [0x4e4354]
mov ecx, dword [eax + 0x48]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
push dword [edi + 0x10]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x44]
push 0x18
call fcn.004968f8
add esp, 4
mov dword [ebp - 0x14], eax
xorps xmm0, xmm0
mov dword [ebp - 4], 5
movups xmmword [eax], xmm0
mov ecx, eax
movq qword [eax + 0x10], xmm0
call fcn.004386d0
mov dword [ebp - 4], 0xffffffff
mov ecx, eax
push 1
mov dword [0x4e4350], eax
mov edx, dword [eax]
call dword [edx + 0x30]
mov ecx, dword [0x4e4354]
push dword [0x4e4350]
mov eax, dword [ecx]
call dword [eax + 0xc]
push 4
call fcn.004968f8
mov ecx, dword [0x4e4354]
add esp, 4
mov dword [eax], vtable.CActionInterface.0
mov dword [edi + 0x14], eax
mov edx, dword [ecx]
push eax
call dword [edx + 0x40]
mov ecx, dword [0x4e4354]
lea edx, [ebp - 0x30]
movaps xmm0, xmmword [0x4d43d0]
push edx
movaps xmmword [ebp - 0x30], xmm0
mov eax, dword [ecx]
call dword [eax + 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x441e60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf7b8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4e04c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], 0xffffffff
mov dword [esi], 0x4c2500
mov dword [ebp - 4], 0
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
cmp byte [ebp + 8], 0
mov dword [esi + 0x30], 0x5d5e0b6b
mov dword [esi + 0x34], 0x5d5e0b6b
mov dword [esi + 0x38], 0x5d5e0b6b
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0xdd5e0b6b
mov dword [esi + 0x44], 0xdd5e0b6b
mov dword [esi + 0x48], 0xdd5e0b6b
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 1
mov dword [esi + 0x58], 0
mov dword [esi + 0x60], 0x3f800000
mov dword [esi + 0x64], 0x3f800000
mov dword [esi + 0x68], 0x3f800000
mov dword [esi + 0x6c], 0
mov byte [ebp - 4], 1
mov dword [esi + 4], 0x1f
je 0x441f57
push 0x10
push 0x28
call fcn.0048cfb0
add esp, 8
mov ecx, eax
call fcn.00449ac0
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0xc]
cmp dword [esi + 0x1c], eax
jge 0x442006
test eax, eax
je 0x441f7a
lea eax, [eax + eax*4]
shl eax, 4
push 0x10
push eax
call fcn.0048cfb0
add esp, 8
jmp 0x441f7c
xor eax, eax
mov edi, dword [esi + 0x18]
mov dword [ebp + 8], eax
test edi, edi
jle 0x441fe0
mov ecx, 0xffffffe0
lea edx, [eax + 0x20]
sub ecx, eax
mov dword [ebp - 0x10], ecx
lea eax, [edx - 0x20]
test eax, eax
je 0x441fd8
mov ecx, dword [esi + 0x20]
add ecx, dword [ebp - 0x10]
add ecx, edx
movups xmm0, xmmword [ecx]
movups xmmword [edx - 0x20], xmm0
movups xmm0, xmmword [ecx + 0x10]
movups xmmword [edx - 0x10], xmm0
movups xmm0, xmmword [ecx + 0x20]
movups xmmword [edx], xmm0
movups xmm0, xmmword [ecx + 0x30]
movups xmmword [edx + 0x10], xmm0
mov eax, dword [ecx + 0x40]
mov dword [edx + 0x20], eax
mov eax, dword [ecx + 0x44]
mov dword [edx + 0x24], eax
mov eax, dword [ecx + 0x48]
mov dword [edx + 0x28], eax
mov eax, dword [ecx + 0x4c]
mov dword [edx + 0x2c], eax
add edx, 0x50
sub edi, 1
jne 0x441f93
mov eax, dword [esi + 0x20]
test eax, eax
je 0x441ff6
cmp byte [esi + 0x24], 0
je 0x441ff6
push eax
call fcn.0048cfc0
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0xc]
mov byte [esi + 0x24], 1
mov dword [esi + 0x1c], eax
mov eax, esi
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 0x45c300
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c044b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x208
mov eax, dword [0x4e04c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1bc], ecx
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x1b1]
mov edi, dword [ebx + 0xc]
mov esi, dword [ebx + 0x10]
push str.convexSweepTest
mov dword [ebp - 0x1b8], eax
call fcn.0048d650
movups xmm0, xmmword [edi]
lea eax, [ebp - 0x1c0]
mov dword [ebp - 4], 0
push eax
movups xmmword [ebp - 0x60], xmm0
lea eax, [ebp - 0x1d0]
movups xmm0, xmmword [edi + 0x10]
push eax
lea eax, [ebp - 0xa0]
movups xmmword [ebp - 0x50], xmm0
push eax
movups xmm0, xmmword [edi + 0x20]
lea eax, [ebp - 0x60]
push eax
movups xmmword [ebp - 0x40], xmm0
movups xmm0, xmmword [edi + 0x30]
movups xmmword [ebp - 0x30], xmm0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0xa0], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ebp - 0x90], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [ebp - 0x80], xmm0
movups xmm0, xmmword [esi + 0x30]
movups xmmword [ebp - 0x70], xmm0
call fcn.00447550
movss xmm1, dword [ebp - 0x1c0]
lea ecx, [ebp - 0xe0]
movss xmm0, dword [ebp - 0x1d0]
add esp, 0x10
mulss xmm0, xmm1
mov dword [ebp - 0x1d4], 0
movss dword [ebp - 0x1e0], xmm0
movss xmm0, dword [ebp - 0x1cc]
mulss xmm0, xmm1
movss dword [ebp - 0x1dc], xmm0
movss xmm0, dword [ebp - 0x1c8]
mulss xmm0, xmm1
movss dword [ebp - 0x1d8], xmm0
xorps xmm0, xmm0
movaps xmmword [ebp - 0x1f0], xmm0
call fcn.00433d60
lea eax, [ebp - 0x1d0]
push eax
lea ecx, [ebp - 0x60]
call fcn.004339a0
lea eax, [ebp - 0x1d0]
push eax
lea ecx, [ebp - 0xe0]
call fcn.00410550
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x210]
push eax
push ecx
mov ecx, dword [ebp - 0x1b8]
lea eax, [ebp - 0x1e0]
mov dword [esp], 0x3f800000
push eax
lea eax, [ebp - 0x1f0]
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.00440650
movss xmm0, dword [ebx + 0x18]
push ecx
movss dword [esp], xmm0
lea ecx, [ebp - 0x1b0]
push dword [ebx + 0x14]
push dword [ebp - 0x1bc]
push esi
push edi
push dword [ebp - 0x1b8]
call fcn.0045b3e0
mov eax, dword [ebp - 0x1bc]
lea edx, [ebp - 0x200]
push edx
lea edx, [ebp - 0x210]
mov byte [ebp - 4], 1
push edx
mov ecx, dword [eax + 0x48]
lea edx, [ebp - 0x1b0]
push edx
lea edx, [ebp - 0x70]
push edx
mov eax, dword [ecx]
lea edx, [ebp - 0x30]
push edx
call dword [eax + 0x14]
lea ecx, [ebp - 0x1b1]
mov dword [ebp - 0x1b0], 0x4c273c
call fcn.0048d670
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004968dc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x14
Function at 0x468e80
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
test eax, eax
je 0x468e99
cmp byte [esi + 0x14], 0
je 0x468e99
push eax
call fcn.0048cfc0
add esp, 4
mov byte [esi + 0x14], 1
mov dword [esi + 0x10], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x468ec8
cmp byte [esi + 0x28], 0
je 0x468ec8
push eax
call fcn.0048cfc0
add esp, 4
mov byte [esi + 0x28], 1
mov dword [esi + 0x24], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov eax, dword [esi + 0x38]
test eax, eax
je 0x468ef7
cmp byte [esi + 0x3c], 0
je 0x468ef7
push eax
call fcn.0048cfc0
add esp, 4
mov byte [esi + 0x3c], 1
mov dword [esi + 0x38], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
cmp dword [esi + 0xc], 2
jge 0x468f74
push edi
push 0x10
push 0x18
call fcn.0048cfb0
mov edx, dword [esi + 8]
add esp, 8
mov edi, eax
test edx, edx
jle 0x468f4f
xor ecx, ecx
nop
mov eax, dword [esi + 0x10]
lea ecx, [ecx + 0xc]
movq xmm0, qword [eax + ecx - 0xc]
movq qword [ecx + edi - 0xc], xmm0
mov eax, dword [eax + ecx - 4]
mov dword [ecx + edi - 4], eax
sub edx, 1
jne 0x468f30
mov eax, dword [esi + 0x10]
test eax, eax
je 0x468f65
cmp byte [esi + 0x14], 0
je 0x468f65
push eax
call fcn.0048cfc0
add esp, 4
mov dword [esi + 0x10], edi
mov byte [esi + 0x14], 1
mov dword [esi + 0xc], 2
pop edi
mov ecx, esi
pop esi
jmp fcn.00468a50
Function at 0x4a6232
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4a6271
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4a6271
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4a6271
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4a6271
cmp dword [ecx + 0x74], 0xe
jbe 0x4a6271
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4ab236
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00497210
mov eax, dword [0x4e04c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004a98ae
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4ab278
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4ab3d4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004973c0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4e3e00]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004aadbf
mov ecx, dword [esi*4 + 0x4e3e00]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4ab3cd
cmp eax, dword [ecx + edi + 0x24]
jne 0x4ab3cd
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ab3cd
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004aadbf
add esp, 0x14
test edx, edx
jl 0x4ab3cd
jg 0x4ab343
test eax, eax
jb 0x4ab3cd
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4ab3cd
jl 0x4ab35d
cmp dword [ebp - 0x1008], eax
ja 0x4ab3cd
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4ab37b
test ebx, ebx
je 0x4ab3b4
cmp ecx, edi
jae 0x4ab3b4
mov al, byte [ecx]
cmp al, 0xd
jne 0x4ab395
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4ab3a1
cmp byte [ecx + 1], 0xa
jne 0x4ab3a1
inc ecx
jmp 0x4ab3a1
movzx eax, al
movsx eax, byte [eax + 0x4e0748]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4ab37b
cmp edx, ebx
jne 0x4ab37b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4ab3d2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004968dc
leave
ret
Function at 0x4ab59a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4e3e00]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4ab5da
cmp byte [ebx], 0xa
jne 0x4ab5da
or byte [edi + eax + 0x28], 4
jmp 0x4ab5df
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4ab6de
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4ab6c1
inc eax
cmp dl, 0xd
je 0x4ab60b
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4ab631
cmp eax, ecx
jae 0x4ab63f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4ab5f3
jmp 0x4ab6de
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ab6bc
cmp dword [ebp - 0x10], 0
je 0x4ab6bc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4e3e00]
test byte [eax + edi + 0x28], 0x48
je 0x4ab696
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4ab681
mov byte [esi], dl
jmp 0x4ab692
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4e3e00]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4ab6de
cmp byte [ebp - 1], 0xa
jne 0x4ab6a5
cmp esi, ebx
jne 0x4ab6a5
mov byte [esi], 0xa
jmp 0x4ab6dd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004aaddd
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4ab6de
mov byte [esi], 0xd
jmp 0x4ab6dd
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4e3e00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4ab6db
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4ab6de
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4ab6e7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4e3e00]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4ab72d
cmp word [ebx], dx
jne 0x4ab72d
or byte [eax + edi + 0x28], 4
jmp 0x4ab732
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4ab895
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4ab875
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4ab773
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4ab7a9
cmp eax, edx
jae 0x4ab7b7
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4ab74e
jmp 0x4ab895
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ab870
cmp dword [ebp - 0x18], 0
je 0x4ab870
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4e3e00]
test byte [eax + edi + 0x28], 0x48
je 0x4ab846
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4ab80a
mov word [esi], cx
jmp 0x4ab841
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4e3e00]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4e3e00]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4e3e00]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4ab895
pop eax
cmp word [ebp - 4], ax
jne 0x4ab856
cmp esi, ebx
jne 0x4ab856
mov word [esi], ax
jmp 0x4ab892
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004aaddd
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4ab895
push 0xd
pop eax
jmp 0x4ab851
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4e3e00]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4ab88f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4ab895
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4ac2f7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c9620
push 0x4c9618
push str.FlsAlloc
push 0x1f
call fcn.004ac1bf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ac32b
push dword [ebp + 8]
mov ecx, esi
call dword [0x4c2294]
call esi
jmp 0x4ac331
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4ac375
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c9630
push 0x4c9628
push str.FlsGetValue
push 0x21
call fcn.004ac1bf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ac3ac
push dword [ebp + 8]
mov ecx, esi
call dword [0x4c2294]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4ac3b4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c9638
push 0x4c9630
push str.FlsSetValue
push 0x22
call fcn.004ac1bf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ac3ee
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4c2294]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4b1c6c
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 0x4b1d09
push ebx
push esi
call fcn.004b1c35
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.004b0a0a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4b1cb6
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4b1d08
push edi
push eax
call fcn.004aca62
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4b1cd6
call fcn.004a980b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4b1d07
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004b0a0a
add esp, 0x20
test eax, eax
jne 0x4b1cf5
push edi
call fcn.004a980b
jmp 0x4b1cfd
push ebx
call fcn.004a980b
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

Function at 0x4b436e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004a9330
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4b43dd
cmp esi, dword [ebp - 4]
je 0x4b43d8
cmp dword [ebp + 0xc], 0
je 0x4b43d8
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4b43b5
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004b3ec0
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4b43df
xor eax, eax
inc eax
jmp 0x4b43df
xor eax, eax
pop edi
pop esi
leave
ret