joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f9e0
Capabilities:
Hash data using sha1

Disassembly:
cmp byte [0x48ee1c], 0
jne 0x42f9ee
call fcn.00439cd0
cmp byte [0x48ee26], 0
je 0x42fa0c
push 0
push 0x40
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.0043a0e0
add esp, 0x10
ret
jmp fcn.0042c740

Function at 0x42fa20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp byte [0x48ee1c], 0
jne 0x42fa2e
call fcn.00439cd0
cmp byte [0x48ee26], 0
je 0x42fa4c
push 0
push 0x40
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.0043a4a0
add esp, 0x10
ret
jmp fcn.0042dd40
Function at 0x432f80
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ae2d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x48a140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 0xf0000000
push 1
push 0
push 0
push esi
mov dword [esi], 0
call edi
test eax, eax
jne 0x432ff6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 8
push 1
push 0
push str.Crypto_RNG
push esi
mov ebx, eax
call edi
test eax, eax
jne 0x432ff6
push 0x28
push 1
push eax
push str.Crypto_RNG
push esi
call edi
test eax, eax
je 0x433014
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043de82
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CryptAcquireContext
lea ecx, [ebp - 0x28]
call fcn.0040f630
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x50]
call fcn.004330e0
push 0x486f94
lea eax, [ebp - 0x50]
push eax
call fcn.0043f808
int3

Function at 0x4334e0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b089
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x48a140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x48f144]
mov esi, dword [ebp + 8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x48ddf0]
cmp eax, dword [ecx + 4]
jg 0x433558
push esi
push dword [ebp + 0xc]
push dword [0x48ddec]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x43359f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043de82
mov esp, ebp
pop ebp
ret 8
push 0x48ddf0
call fcn.0043df11
add esp, 4
cmp dword [0x48ddf0], 0xffffffff
jne 0x433528
mov ecx, 0x48ddec
mov dword [ebp - 4], 0
call fcn.00432f80
push 0x46bd30
call fcn.0043e1ed
push 0x48ddf0
mov dword [ebp - 4], 0xffffffff
call fcn.0043dec0
add esp, 8
jmp 0x433528
push 0x46e3ac
lea ecx, [ebp - 0x28]
call fcn.0040f630
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x50]
call fcn.004330e0
push 0x486f94
lea eax, [ebp - 0x50]
push eax
call fcn.0043f808
int3
Function at 0x4335d0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b0d9
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x48a140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x64], 0xffffffff
mov dword [ebp - 0x60], ebx
test ebx, ebx
jne 0x433612
xor esi, esi
jmp 0x43361d
push ebx
call fcn.004359b0
add esp, 4
mov esi, eax
mov dword [ebp - 0x5c], esi
push 1
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.00419780
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x58], vtable.CryptoPP::NonblockingRng.0
call fcn.00432f80
mov eax, dword fs:[0x2c]
mov ecx, dword [0x48f144]
mov byte [ebp - 4], 1
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x48ddf0]
cmp eax, dword [ecx + 4]
jg 0x4336d4
push esi
push ebx
push dword [0x48ddec]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x43371c
mov eax, dword [ebp - 0x54]
mov byte [ebp - 4], 0
mov dword [ebp - 0x58], vtable.CryptoPP::NonblockingRng.0
test eax, eax
je 0x433691
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [edi]
mov ecx, edi
push ebx
push esi
call dword [eax + 0x10]
mov dword [ebp - 4], 5
test esi, esi
je 0x4336b6
xor al, al
mov edi, esi
mov ecx, ebx
rep stosb byte es:[edi], al
push esi
call fcn.00435a10
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043de82
mov esp, ebp
pop ebp
ret 8
push 0x48ddf0
call fcn.0043df11
add esp, 4
cmp dword [0x48ddf0], 0xffffffff
jne 0x433660
mov ecx, 0x48ddec
mov byte [ebp - 4], 2
call fcn.00432f80
push 0x46bd30
call fcn.0043e1ed
push 0x48ddf0
mov byte [ebp - 4], 1
call fcn.0043dec0
add esp, 8
jmp 0x433660
push 0x46e3ac
lea ecx, [ebp - 0x28]
call fcn.0040f630
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x50]
call fcn.004330e0
push 0x486f94
lea eax, [ebp - 0x50]
push eax
call fcn.0043f808
int3
Function at 0x436c60
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x14]
cmp eax, 4
jb 0x436c94
mov esi, eax
shr esi, 2
nop dword [eax]
mov ecx, dword [edi]
sub eax, 4
xor ecx, dword [edx]
add edi, 4
or ebx, ecx
add edx, 4
sub esi, 1
jne 0x436c80
mov esi, ebx
mov ecx, ebx
shr esi, 8
xor ebp, ebp
or esi, ebx
shr ecx, 0x10
and esi, 0xff00
or esi, ecx
movzx ecx, bl
shr esi, 8
or esi, ecx
test eax, eax
je 0x436d74
mov ebx, edi
sub ebx, edx
cmp eax, 8
jb 0x436d53
mov ecx, eax
xorps xmm4, xmm4
and ecx, 0xfffffff8
xorps xmm3, xmm3
mov dword [esp + 0x1c], ecx
lea ecx, [edx + 4]
nop dword [eax]
movd xmm2, dword [edi + ebp]
lea ecx, [ecx + 8]
movd xmm1, dword [ecx - 0xc]
xorps xmm0, xmm0
punpcklbw xmm2, xmm0
add ebp, 8
punpcklbw xmm1, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
movd xmm1, dword [ecx - 8]
orps xmm4, xmm2
movd xmm2, dword [ebx + ecx - 8]
punpcklbw xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
orps xmm3, xmm2
cmp ebp, dword [esp + 0x1c]
jb 0x436ce0
orps xmm3, xmm4
movaps xmm0, xmm3
psrldq xmm0, 8
orps xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 4
orps xmm3, xmm0
movd ecx, xmm3
or esi, ecx
cmp ebp, eax
jae 0x436d74
lea edi, [edx + ebp]
sub eax, ebp
nop dword [eax + eax]
movzx edx, byte [ebx + edi]
lea edi, [edi + 1]
movzx ecx, byte [edi - 1]
xor edx, ecx
or esi, edx
sub eax, 1
jne 0x436d60
pop edi
test esi, esi
pop esi
pop ebp
sete al
pop ebx
ret
Function at 0x436d80
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x24
test eax, eax
je 0x436f28
mov edx, dword [esp + 0x2c]
push ebx
mov ebx, dword [esp + 0x34]
push esi
mov esi, dword [esp + 0x30]
push edi
cmp eax, 4
jb 0x436dc3
mov edi, eax
shr edi, 2
mov ecx, dword [edx]
sub eax, 4
xor ecx, dword [ebx]
add edx, 4
mov dword [esi], ecx
add ebx, 4
add esi, 4
sub edi, 1
jne 0x436da8
mov dword [esp + 0x40], eax
push ebp
xor ebp, ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebx
test eax, eax
je 0x436f24
cmp eax, 8
jb 0x436f09
lea ecx, [ebx - 1]
lea edi, [esi - 1]
add ecx, eax
add edi, eax
cmp esi, ecx
ja 0x436df9
cmp edi, ebx
jae 0x436f09
lea ecx, [edx - 1]
add ecx, eax
cmp esi, ecx
ja 0x436e0a
cmp edi, edx
jae 0x436f09
cmp eax, 0x40
jb 0x436ebe
mov edi, eax
mov ecx, eax
mov eax, edx
and edi, 0x3f
sub eax, ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x1c], eax
sub ecx, edi
mov eax, esi
mov dword [esp + 0x2c], ecx
sub eax, ebx
lea edi, [esi + 0x20]
mov dword [esp + 0x20], eax
lea ecx, [ebx + 0x10]
mov ebx, dword [esp + 0x20]
mov eax, edx
sub eax, esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
lea eax, [edx + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x44]
movups xmm1, xmmword [edx + ebp]
mov edx, dword [esp + 0x24]
lea ecx, [ecx + 0x40]
movups xmm0, xmmword [ecx - 0x50]
lea edi, [edi + 0x40]
xorps xmm1, xmm0
movups xmmword [edi - 0x60], xmm1
movups xmm0, xmmword [ecx - 0x40]
movups xmm1, xmmword [esi + ecx - 0x40]
xorps xmm1, xmm0
movups xmmword [ebx + ecx - 0x40], xmm1
movups xmm1, xmmword [edx + edi - 0x40]
mov edx, dword [esp + 0x28]
movups xmm0, xmmword [ecx - 0x30]
xorps xmm1, xmm0
movups xmmword [edi - 0x40], xmm1
movups xmm1, xmmword [edx + ebp]
mov edx, dword [esp + 0x10]
add ebp, 0x40
movups xmm0, xmmword [ecx - 0x20]
xorps xmm1, xmm0
movups xmmword [edi - 0x30], xmm1
cmp ebp, dword [esp + 0x2c]
jb 0x436e55
cmp dword [esp + 0x30], 8
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
jb 0x436f05
and eax, 0xfffffff8
lea ecx, [ebx + ebp]
mov dword [esp + 0x30], eax
sub edx, ebx
mov edi, dword [esp + 0x30]
mov eax, esi
sub eax, ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
mov eax, edx
mov edx, dword [esp + 0x28]
movq xmm1, qword [ecx + eax]
lea ecx, [ecx + 8]
movq xmm0, qword [ecx - 8]
add ebp, 8
xorps xmm1, xmm0
movq qword [edx + ecx - 8], xmm1
cmp ebp, edi
jb 0x436ee0
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x10]
cmp ebp, eax
jae 0x436f24
sub edx, ebx
lea edi, [ebx + ebp]
sub esi, ebx
sub eax, ebp
mov cl, byte [edi + edx]
lea edi, [edi + 1]
xor cl, byte [edi - 1]
mov byte [esi + edi - 1], cl
sub eax, 1
jne 0x436f12
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x436f30
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0xc
test eax, eax
je 0x437061
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
push edi
cmp eax, 4
jb 0x436f69
mov edi, eax
shr edi, 2
mov ecx, dword [esi]
sub eax, 4
xor dword [edx], ecx
add esi, 4
add edx, 4
sub edi, 1
jne 0x436f53
mov dword [esp + 0x20], eax
push ebx
xor ebx, ebx
test eax, eax
je 0x43705e
cmp eax, 8
jb 0x437042
lea ecx, [esi - 1]
lea edi, [edx - 1]
add ecx, eax
add edi, eax
cmp edx, ecx
ja 0x436f93
cmp edi, esi
jae 0x437042
push ebp
cmp eax, 0x40
jb 0x437015
mov ebp, eax
lea edi, [esi + 0x30]
and ebp, 0x3f
mov ecx, eax
sub ecx, ebp
mov dword [esp + 0x10], ebp
mov ebp, esi
mov dword [esp + 0x18], ecx
sub ebp, edx
lea ecx, [edx + 0x10]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
movups xmm0, xmmword [ecx - 0x10]
add ebx, 0x40
lea edi, [edi + 0x40]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [edi - 0x70]
xorps xmm1, xmm0
movups xmmword [ecx - 0x50], xmm1
movups xmm0, xmmword [ecx - 0x40]
movups xmm1, xmmword [eax + ecx - 0x40]
xorps xmm1, xmm0
movups xmmword [ecx - 0x40], xmm1
movups xmm0, xmmword [ecx - 0x30]
movups xmm1, xmmword [edi - 0x50]
xorps xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
movups xmm1, xmmword [ecx - 0x20]
movups xmm0, xmmword [edi - 0x40]
xorps xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
cmp ebx, dword [esp + 0x18]
jb 0x436fc0
mov eax, dword [esp + 0x28]
cmp ebp, 8
jb 0x43703d
mov edi, eax
lea ecx, [ebx + edx]
mov ebp, esi
and edi, 0xfffffff8
sub ebp, edx
movq xmm1, qword [ecx + ebp]
lea ecx, [ecx + 8]
movq xmm0, qword [ecx - 8]
add ebx, 8
xorps xmm1, xmm0
movq qword [ecx - 8], xmm1
cmp ebx, edi
jb 0x437021
pop ebp
cmp ebx, eax
jae 0x43705e
sub esi, edx
lea edi, [ebx + edx]
sub eax, ebx
nop dword [eax]
mov cl, byte [esi + edi]
lea edi, [edi + 1]
xor byte [edi - 1], cl
sub eax, 1
jne 0x437050
pop ebx
pop edi
pop esi
add esp, 0xc
ret

Function at 0x43ca92
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x43cab9
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x43cabc
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0043ca6e
pop esi
leave
ret 8

Function at 0x43ee1b
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x4564bb
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x4564d2
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x45652a
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.0045edc3
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x45652a
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x45652a
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x45652a
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x456524
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x456526
xor bl, bl
mov al, bl
jmp 0x45652c
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x45aee0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0043f0c0
mov eax, dword [0x48a140]
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.004562b2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x45af22
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x45b099
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00467370
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x48f838]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0045be43
mov ecx, dword [esi*4 + 0x48f838]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x45b092
cmp eax, dword [edi + ecx + 0x24]
jne 0x45b092
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45b092
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0045be43
add esp, 0x14
cmp edx, esi
jl 0x45b092
jg 0x45afed
cmp eax, esi
jb 0x45b092
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x45b092
jl 0x45b00f
cmp dword [ebp - 0x1008], eax
ja 0x45b092
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x45b034
cmp ebx, esi
je 0x45b079
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x45b079
mov al, byte [ecx]
cmp al, 0xd
jne 0x45b05a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x45b066
cmp byte [ecx + 1], 0xa
jne 0x45b066
inc ecx
jmp 0x45b066
movzx eax, al
movsx eax, byte [eax + 0x48a410]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x45b040
cmp edx, ebx
jne 0x45b040
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x45b097
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0043de82
leave
ret
Function at 0x45b2cf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x48f838]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x45b311
cmp byte [ebx], 0xa
jne 0x45b311
or byte [edi + eax + 0x28], 4
jmp 0x45b316
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x45b419
mov cl, byte [eax]
cmp cl, 0x1a
je 0x45b3f4
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x45b345
mov eax, dword [ebp - 8]
jmp 0x45b365
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x45b381
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x45b35f
add eax, 2
mov cl, 0xa
jmp 0x45b362
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x45b327
jmp 0x45b419
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 0x45b3ef
cmp dword [ebp - 0x10], 0
je 0x45b3ef
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x48f838]
test byte [eax + edi + 0x28], 0x48
je 0x45b3ce
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x45b3be
mov byte [esi], 0xa
jmp 0x45b418
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x48f838]
mov byte [eax + edi + 0x2a], cl
jmp 0x45b418
cmp byte [ebp - 1], 0xa
jne 0x45b3d8
cmp esi, ebx
je 0x45b3b9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0045be61
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x45b419
mov byte [esi], 0xd
jmp 0x45b418
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x48f838]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x45b416
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x45b419
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x45b422
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x48f838]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x45b466
push 0xa
pop esi
cmp word [ebx], si
jne 0x45b466
or byte [eax + edi + 0x28], 4
jmp 0x45b46b
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x45b5d6
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x45b5ae
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x45b4b8
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x45b4e2
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x45b501
push 0xa
pop ebx
cmp word [edx], bx
jne 0x45b4cf
push ebx
add eax, 4
pop edx
jmp 0x45b4d7
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x45b47d
jmp 0x45b5d6
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45b5a9
cmp dword [ebp - 0x14], 0
je 0x45b5a9
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x48f838]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x45b585
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x45b54d
mov word [esi], ax
jmp 0x45b5d3
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x48f838]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x48f838]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x48f838]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x45b5d3
cmp word [ebp - 4], ax
jne 0x45b58f
cmp esi, ebx
je 0x45b545
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0045be61
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x45b5d6
push 0xd
pop eax
jmp 0x45b545
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x48f838]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x45b5d0
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x45b5d6
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x45e407
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 0x45e4a4
push ebx
push esi
call fcn.0045e3d0
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.0045c4ce
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x45e451
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x45e4a3
push edi
push eax
call fcn.00457ed0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x45e471
call fcn.00457ab0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x45e4a2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0045c4ce
add esp, 0x20
test eax, eax
jne 0x45e490
push edi
call fcn.00457ab0
jmp 0x45e498
push ebx
call fcn.00457ab0
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 0x460dbc
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00456921
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 0x460e2b
cmp esi, dword [ebp - 4]
je 0x460e26
cmp dword [ebp + 0xc], 0
je 0x460e26
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x460e03
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00460911
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x460e2d
xor eax, eax
inc eax
jmp 0x460e2d
xor eax, eax
pop edi
pop esi
leave
ret