joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10013bd0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x10065a80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0xd8]
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov dword [ebp - 0xdc], ebx
call fcn.10013040
mov esi, eax
test esi, esi
je 0x10013c33
mov ecx, dword [ebp - 0xd8]
sub esi, edi
mov edx, dword [ebp - 0xd4]
mov al, 3
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov byte [ebx + 8], al
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004cd7e
mov esp, ebp
pop ebp
ret 8
push 0x10050c68
push edi
call fcn.10033d60
add esp, 8
test eax, eax
je 0x10013c65
movzx ebx, byte [eax]
or ebx, 0x20
cmp ebx, 0x6e
jne 0x10013c67
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004cd7e
mov esp, ebp
pop ebp
ret 8
xor ebx, ebx
push ebx
lea eax, [ebp - 0xd8]
push eax
push edi
call fcn.10012fd0
mov esi, eax
test esi, esi
jne 0x10013d01
push 0x2e
push edi
call fcn.10027b20
mov esi, eax
add esp, 8
test esi, esi
je 0x10013c50
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10013c95
sub ecx, edx
cmp ecx, 0xc8
ja 0x10013c50
lea edx, [ebp - 0xd0]
mov ecx, edi
sub edx, edi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x10013cb0
call fcn.100309ed
sub esi, edi
push ebx
mov eax, dword [eax]
mov al, byte [eax]
mov byte [ebp + esi - 0xd0], al
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.10012fd0
mov esi, eax
test esi, esi
je 0x10013c50
mov eax, edi
lea ecx, [ebp - 0xd0]
sub eax, ecx
add esi, eax
test esi, esi
je 0x10013c50
mov ebx, dword [ebp - 0xdc]
sub esi, edi
movsd xmm0, qword [ebp - 0xd8]
mov al, 0x13
mov ecx, dword [ebp - 4]
pop edi
movsd qword [ebx], xmm0
xor ecx, ebp
mov byte [ebx + 8], al
lea eax, [esi + 1]
pop esi
pop ebx
call fcn.1004cd7e
mov esp, ebp
pop ebp
ret 8
Function at 0x10013de0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
call fcn.100309ed
mov ecx, dword [ebp + 8]
xor edi, edi
xor esi, esi
xorps xmm1, xmm1
mov eax, dword [eax]
movsx eax, byte [eax]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov al, byte [ecx]
mov byte [ebp - 1], al
movzx eax, al
test byte [eax + 0x1004ff49], 8
je 0x10013e33
nop dword [eax]
mov al, byte [ecx + 1]
inc ecx
mov byte [ebp - 1], al
movzx eax, al
test byte [eax + 0x1004ff49], 8
jne 0x10013e20
mov al, byte [ebp - 1]
lea edx, [ecx + 1]
cmp al, 0x2d
jne 0x10013e46
mov dword [ebp - 0x14], 1
jmp 0x10013e4e
cmp al, 0x2b
mov dword [ebp - 0x14], esi
cmovne edx, ecx
cmp byte [edx], 0x30
jne 0x10013f87
mov al, byte [edx + 1]
cmp al, 0x78
je 0x10013e66
cmp al, 0x58
jne 0x10013f87
movsd xmm2, qword [0x10050ce8]
add edx, 2
mov al, byte [edx]
movsx ecx, al
mov dword [ebp - 0x10], edx
mov byte [ebp - 1], al
cmp ecx, dword [ebp - 0x18]
jne 0x10013e91
cmp dword [ebp - 8], 0
jne 0x10013ee3
mov dword [ebp - 8], 1
inc edx
jmp 0x10013e71
movzx eax, al
test byte [eax + 0x1004ff49], 0x10
je 0x10013ee3
test edi, edi
jne 0x10013eac
cmp byte [ebp - 1], 0x30
jne 0x10013eac
inc dword [ebp - 0xc]
jmp 0x10013ed9
inc edi
cmp edi, 0x1e
jg 0x10013ed8
test byte [ecx + 0x1004ff49], 2
je 0x10013ec0
add ecx, 0xffffffd0
jmp 0x10013ec6
or ecx, 0x20
sub ecx, 0x57
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm0
jmp 0x10013ed9
inc esi
cmp dword [ebp - 8], 0
je 0x10013ee0
dec esi
inc edx
jmp 0x10013e71
mov eax, dword [ebp - 0xc]
add eax, edi
je 0x10013f87
mov eax, dword [ebp + 0xc]
shl esi, 2
mov dword [eax], edx
mov al, byte [edx]
cmp al, 0x70
je 0x10013f00
cmp al, 0x50
jne 0x10013f61
mov al, byte [edx + 1]
inc edx
xor ecx, ecx
cmp al, 0x2d
jne 0x10013f15
mov edx, dword [ebp - 0x10]
lea edi, [ecx + 1]
add edx, 2
jmp 0x10013f21
cmp al, 0x2b
jne 0x10013f1f
mov edx, dword [ebp - 0x10]
add edx, 2
xor edi, edi
mov al, byte [edx]
mov byte [ebp - 1], al
movzx eax, al
test byte [eax + 0x1004ff49], 2
je 0x10013f87
movsx eax, byte [ebp - 1]
lea ecx, [ecx + ecx*4]
inc edx
lea ecx, [ecx - 0x18]
lea ecx, [eax + ecx*2]
mov al, byte [edx]
mov byte [ebp - 1], al
movzx eax, al
test byte [eax + 0x1004ff49], 2
jne 0x10013f32
mov eax, ecx
neg eax
test edi, edi
cmove eax, ecx
add esi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
cmp dword [ebp - 0x14], 0
je 0x10013f6e
xorps xmm1, xmmword [0x10050cf0]
push esi
sub esp, 8
movsd qword [esp], xmm1
call fcn.1002ea86
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
fldz
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10018db0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
xor eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x10018dde
movzx edx, byte [edi + esi - 1]
mov ecx, eax
shl ecx, 5
add edx, ecx
mov ecx, eax
shr ecx, 2
add edx, ecx
xor eax, edx
sub esi, 1
jne 0x10018dc4
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10018df0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 6], 0
jne 0x10018e3c
mov edx, dword [edi + 8]
push esi
mov esi, dword [edi + 0xc]
xor edx, esi
test esi, esi
je 0x10018e2d
push ebx
lea ebx, [edi + 0xf]
add ebx, esi
mov ecx, edx
lea ebx, [ebx - 1]
mov eax, edx
shl ecx, 5
shr eax, 2
add ecx, eax
movzx eax, byte [ebx + 1]
add ecx, eax
xor edx, ecx
sub esi, 1
jne 0x10018e10
pop ebx
pop esi
mov dword [edi + 8], edx
mov eax, edx
mov byte [edi + 6], 1
pop edi
pop ebp
ret 4
mov eax, dword [edi + 8]
pop edi
pop ebp
ret 4

Function at 0x10025b10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10025b74
mov eax, dword [ebp + 0x14]
shl dword [ebp + 0x10], 8
mov ecx, dword [ebp + 8]
push ebx
mov eax, dword [eax]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push esi
mov cl, byte [ecx]
movsx edx, cl
sub cl, 0x61
cmp cl, 0x19
mov ecx, dword [ebp + 0x10]
lea esi, [edx - 0x20]
cmova esi, edx
mov edx, dword [ebp - 4]
add ecx, esi
add eax, ebx
xor eax, dword [edx + ecx*4]
mov ecx, ebx
shl ecx, 5
add ecx, 3
add ecx, esi
add ebx, ecx
mov ecx, dword [ebp + 8]
inc ecx
add ebx, eax
mov dword [ebp + 8], ecx
sub edi, 1
jne 0x10025b33
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0x18]
pop edi
mov esp, ebp
pop ebp
ret 0x18

Function at 0x10025e10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
xor eax, 0x61754c1b
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp + 0xc], eax
jbe 0x10025e55
mov edx, dword [ebp + 0x10]
sub edi, edx
push ebx
push esi
mov ecx, eax
lea esi, [ebp - 4]
and ecx, 3
add edx, eax
add esi, ecx
mov bl, byte [esi]
xor byte [edx], bl
movzx ecx, byte [edx + edi]
mov edx, dword [ebp + 0x10]
xor cl, al
add cl, bl
inc eax
mov byte [esi], cl
cmp eax, dword [ebp + 0xc]
jb 0x10025e30
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10027310
Capabilities:
Listen for remote procedure calls

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x10065a80]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [0x100532d0]
mov eax, dword [0x10053310]
push edi
mov edi, dword [ebp + 8]
movups xmmword [ebp - 0x148], xmm0
mov dword [ebp - 0x108], eax
movups xmm0, xmmword [0x100532e0]
movups xmmword [ebp - 0x138], xmm0
movups xmm0, xmmword [0x100532f0]
movups xmmword [ebp - 0x128], xmm0
movups xmm0, xmmword [0x10053300]
movups xmmword [ebp - 0x118], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov eax, dword [ebp - 0x114]
push dword [eax + 4]
lea eax, [ebp - 0x104]
push str._s_d
push eax
call fcn.10027220
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100273a9
mov eax, 0x6aa
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004cd7e
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x114]
push esi
push 0
mov eax, dword [eax]
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x150]
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x148]
push eax
push 0xa
call dword [sym.imp.RPCRT4.dll_RpcServerUseAllProtseqsIf]
mov esi, eax
test esi, esi
jne 0x1002742e
push eax
push eax
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.RPCRT4.dll_RpcServerRegisterIf]
mov esi, eax
test esi, esi
jne 0x1002742e
push 0x10065bdc
push dword [ebp + 0xc]
mov ecx, edi
push fcn.10027250
call dword [0x1004f1a4]
call edi
mov esi, eax
test esi, esi
js 0x1002742c
push 1
push 0x4d2
push 1
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
mov esi, eax
test esi, esi
je 0x1002743c
cmp dword [0x10065bdc], 0
je 0x1002743c
call fcn.10027450
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop edi
call fcn.1004cd7e
mov esp, ebp
pop ebp
ret 8

Function at 0x10028979
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10053a8c
push 0x10053a84
push 0x10053a8c
push 0x21
call fcn.100287e4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100289b0
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004f1a4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100289b8
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10053aa0
push 0x10053a98
push 0x10053aa0
push 0x22
call fcn.100287e4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100289f2
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1004f1a4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x10028a90
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.GetTempPath2W
push 0x1005395c
push str.GetTempPath2W
push 5
call fcn.100287e4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10028aca
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1004f1a4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetTempPathW]
Function at 0x10034da5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10034de4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10034de4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10034de4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10034de4
cmp dword [ecx + 0x74], 0xe
jbe 0x10034de4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1003981e
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 + 0x10065e88]
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 0x1003985e
cmp byte [ebx], 0xa
jne 0x1003985e
or byte [edi + eax + 0x28], 4
jmp 0x10039863
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 0x10039962
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10039945
inc eax
cmp dl, 0xd
je 0x1003988f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100398b5
cmp eax, ecx
jae 0x100398c3
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 0x10039877
jmp 0x10039962
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 0x10039940
cmp dword [ebp - 0x10], 0
je 0x10039940
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10065e88]
test byte [eax + edi + 0x28], 0x48
je 0x1003991a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10039905
mov byte [esi], dl
jmp 0x10039916
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10065e88]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10039962
cmp byte [ebp - 1], 0xa
jne 0x10039929
cmp esi, ebx
jne 0x10039929
mov byte [esi], 0xa
jmp 0x10039961
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10045c83
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10039962
mov byte [esi], 0xd
jmp 0x10039961
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10065e88]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1003995f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10039962
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1003996b
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 + 0x10065e88]
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 0x100399b1
cmp word [ebx], dx
jne 0x100399b1
or byte [eax + edi + 0x28], 4
jmp 0x100399b6
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 0x10039b19
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 0x10039af9
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100399f7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10039a2d
cmp eax, edx
jae 0x10039a3b
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 0x100399d2
jmp 0x10039b19
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 0x10039af4
cmp dword [ebp - 0x18], 0
je 0x10039af4
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10065e88]
test byte [eax + edi + 0x28], 0x48
je 0x10039aca
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 0x10039a8e
mov word [esi], cx
jmp 0x10039ac5
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10065e88]
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 + 0x10065e88]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10065e88]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10039b19
pop eax
cmp word [ebp - 4], ax
jne 0x10039ada
cmp esi, ebx
jne 0x10039ada
mov word [esi], ax
jmp 0x10039b16
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10045c83
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10039b19
push 0xd
pop eax
jmp 0x10039ad5
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10065e88]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10039b13
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10039b19
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 0x1004577f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10036efa
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 0x100457ee
cmp esi, dword [ebp - 4]
je 0x100457e9
cmp dword [ebp + 0xc], 0
je 0x100457e9
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100457c6
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100452bc
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100457f0
xor eax, eax
inc eax
jmp 0x100457f0
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10045855
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10065a80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10036efa
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10036efa
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x100458cc
cmp word [ecx], dx
je 0x100458cc
mov eax, dword [0x100613ec]
push edi
dec eax
push eax
push 0x100612d8
call fcn.100457f4
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1004593f
cmp word [eax], dx
je 0x1004593f
mov eax, dword [edi]
test eax, eax
je 0x100458f0
cmp word [eax], dx
je 0x100458f0
lea eax, [ebp - 0x10]
push eax
call fcn.100451c2
jmp 0x100458f9
lea eax, [ebp - 0x10]
push eax
call fcn.1004525d
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10045969
mov eax, dword [0x100612d4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10060fc8
call fcn.100457f4
add esp, 0xc
test al, al
je 0x10045969
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10045934
cmp word [eax], di
je 0x10045934
lea eax, [ebp - 0x10]
push eax
call fcn.100451c2
pop ecx
jmp 0x1004596b
lea eax, [ebp - 0x10]
push eax
call fcn.1004525d
jmp 0x10045931
mov eax, dword [edi]
test eax, eax
je 0x10045956
cmp word [eax], dx
je 0x10045956
lea eax, [ebp - 0x10]
push eax
call fcn.10045177
pop ecx
jmp 0x10045969
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10045a34
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10045679
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10045a34
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10045a34
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10045a34
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100459c1
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10028bd6
test ebx, ebx
je 0x10045a2f
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10028bd6
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10045a34
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10045a34
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100420e1
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10045a36
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004cd7e
leave
ret
Function at 0x1004ae1b
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 0x1004aeb8
push ebx
push esi
call fcn.1004ade4
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.10040239
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1004ae65
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004aeb7
push edi
push eax
call fcn.1003a338
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1004ae85
call fcn.100371fc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004aeb6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10040239
add esp, 0x20
test eax, eax
jne 0x1004aea4
push edi
call fcn.100371fc
jmp 0x1004aeac
push ebx
call fcn.100371fc
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 0x1004aebb
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1004aecc
pop esi
ret
push ebx
push edi
push esi
call fcn.1004ade4
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1003a338
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1004aef4
push ebx
push esi
push edi
call fcn.100275a0
add esp, 0xc
push 0
call fcn.100371fc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1004b64e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1004b169