joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4316b0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44fdb0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xd8
mov eax, dword [0x463040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ecx + 0x10], 0
mov esi, dword [ebx + 8]
jne 0x431739
cmp dword [ecx + 0x2c], 0
jne 0x431739
push dword [esi + 0xb0]
mov ecx, esi
push dword [esi + 0xac]
push dword [esi + 0xb4]
call fcn.00431b70
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.0043435c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
cmp dword [ecx + 0x2c], 0
lea eax, [ecx + 0x1c]
mov dword [ebp - 0x30], eax
je 0x43184d
mov edx, dword [eax + 0x14]
push esi
mov ecx, dword [edx + 0xc]
test ecx, ecx
je 0x431761
push 0x434210
push eax
call ecx
add esp, 0xc
jmp 0x431719
mov eax, dword [edx + 8]
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0x2c], eax
call fcn.00428980
mov eax, dword [esi + 0xac]
mov ecx, dword [esi + 0xb0]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0xb4]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x21]
push dword [0x46b9c8]
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4317af
mov ecx, dword [eax + 4]
jmp 0x4317b1
xor ecx, ecx
push ecx
push dword [ebp - 0x2c]
mov edx, 0xc0
call fcn.00425650
mov edi, eax
mov dword [ebp - 0x18], 0
add esp, 8
lea eax, [ebp - 0xe8]
lea ecx, [edi + 4]
push eax
call fcn.00428980
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov dword [edi + 0xb0], ecx
lea ecx, [ebp - 0x20]
mov dword [edi + 0xb4], edx
mov eax, dword [ebp - 0x34]
mov dword [edi + 0xb8], eax
mov dword [edi], 0x434260
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], 0
call fcn.00431a10
lea ecx, [ebp - 0xe8]
call fcn.00425760
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
push dword [ebp - 0x30]
call dword [ebp - 0x2c]
add esp, 8
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x431719
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
jmp 0x431719
lea ecx, [ebp - 0x20]
call fcn.0040cf40
mov dword [ebp - 4], 3
call fcn.0041a510
int3
Function at 0x431930
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f560
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x463040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x43199a
lea ecx, [esi + 0x4c]
mov dword [ebp - 4], 0
cmp dword [ecx + 0x10], 0
je 0x431978
mov eax, dword [ecx + 0xc]
push ecx
mov eax, dword [eax]
call eax
add esp, 4
lea ecx, [esi + 0x1c]
mov dword [ebp - 4], 1
cmp dword [ecx + 0x10], 0
je 0x431993
mov eax, dword [ecx + 0xc]
push ecx
mov eax, dword [eax]
call eax
add esp, 4
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x4319df
push dword [0x46b9c8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4319cf
mov edx, dword [eax + 4]
test edx, edx
je 0x4319cf
mov eax, 4
nop dword [eax]
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x4319f0
inc eax
cmp eax, 6
jl 0x4319c0
push esi
call fcn.0043ca92
add esp, 4
mov dword [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov al, byte [esi + 0x80]
mov byte [esi], al
mov dword [ecx], esi
jmp 0x4319d8

Function at 0x431a10
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x431a2a
add ecx, 4
call fcn.00425760
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x431a6f
push dword [0x46b9c8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x431a5f
mov edx, dword [eax + 4]
test edx, edx
je 0x431a5f
mov eax, 4
nop dword [eax]
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x431a72
inc eax
cmp eax, 6
jl 0x431a50
push esi
call fcn.0043ca92
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
mov al, byte [esi + 0xc0]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
Function at 0x431a90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f560
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x463040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x431afa
lea ecx, [esi + 0x4c]
mov dword [ebp - 4], 0
cmp dword [ecx + 0x10], 0
je 0x431ad8
mov eax, dword [ecx + 0xc]
push ecx
mov eax, dword [eax]
call eax
add esp, 4
lea ecx, [esi + 0x1c]
mov dword [ebp - 4], 1
cmp dword [ecx + 0x10], 0
je 0x431af3
mov eax, dword [ecx + 0xc]
push ecx
mov eax, dword [eax]
call eax
add esp, 4
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x431b3f
push dword [0x46b9c8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x431b2f
mov edx, dword [eax + 4]
test edx, edx
je 0x431b2f
mov eax, 4
nop dword [eax]
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x431b50
inc eax
cmp eax, 6
jl 0x431b20
push esi
call fcn.0043ca92
add esp, 4
mov dword [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov al, byte [esi + 0x84]
mov byte [esi], al
mov dword [ecx], esi
jmp 0x431b38

Function at 0x434fd6
Capabilities:
Parse pe header

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

Function at 0x436632
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 0x436659
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x43665c
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.0043660e
pop esi
leave
ret 8
Function at 0x442cf2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4545a4
push 0x45459c
push str.FlsAlloc
push 0x1f
call fcn.00442b1d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x442d26
push dword [ebp + 8]
mov ecx, esi
call dword [0x45122c]
call esi
jmp 0x442d2c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x442d70
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4545b4
push 0x4545ac
push str.FlsGetValue
push 0x21
call fcn.00442b1d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x442da7
push dword [ebp + 8]
mov ecx, esi
call dword [0x45122c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x442daf
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4545bc
push 0x4545b4
push str.FlsSetValue
push 0x22
call fcn.00442b1d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x442de9
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x45122c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x443dad
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0044d010
mov eax, dword [0x463040]
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.0044112c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x443def
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x443f4b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0044d040
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 + 0x468230]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00444bae
mov ecx, dword [esi*4 + 0x468230]
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 0x443f44
cmp eax, dword [ecx + edi + 0x24]
jne 0x443f44
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 0x443f44
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00444bae
add esp, 0x14
test edx, edx
jl 0x443f44
jg 0x443eba
test eax, eax
jb 0x443f44
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x443f44
jl 0x443ed4
cmp dword [ebp - 0x1008], eax
ja 0x443f44
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x443ef2
test ebx, ebx
je 0x443f2b
cmp ecx, edi
jae 0x443f2b
mov al, byte [ecx]
cmp al, 0xd
jne 0x443f0c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x443f18
cmp byte [ecx + 1], 0xa
jne 0x443f18
inc ecx
jmp 0x443f18
movzx eax, al
movsx eax, byte [eax + 0x4633c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x443ef2
cmp edx, ebx
jne 0x443ef2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x443f49
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0043435c
leave
ret
Function at 0x444046
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 + 0x468230]
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 0x444086
cmp byte [ebx], 0xa
jne 0x444086
or byte [edi + eax + 0x28], 4
jmp 0x44408b
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 0x44418a
mov dl, byte [eax]
cmp dl, 0x1a
je 0x44416d
inc eax
cmp dl, 0xd
je 0x4440b7
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4440dd
cmp eax, ecx
jae 0x4440eb
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 0x44409f
jmp 0x44418a
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 0x444168
cmp dword [ebp - 0x10], 0
je 0x444168
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x468230]
test byte [eax + edi + 0x28], 0x48
je 0x444142
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x44412d
mov byte [esi], dl
jmp 0x44413e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x468230]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x44418a
cmp byte [ebp - 1], 0xa
jne 0x444151
cmp esi, ebx
jne 0x444151
mov byte [esi], 0xa
jmp 0x444189
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00444bcc
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44418a
mov byte [esi], 0xd
jmp 0x444189
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x468230]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x444187
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44418a
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x444193
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 + 0x468230]
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 0x4441d9
cmp word [ebx], dx
jne 0x4441d9
or byte [eax + edi + 0x28], 4
jmp 0x4441de
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 0x444341
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 0x444321
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x44421f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x444255
cmp eax, edx
jae 0x444263
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 0x4441fa
jmp 0x444341
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 0x44431c
cmp dword [ebp - 0x18], 0
je 0x44431c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x468230]
test byte [eax + edi + 0x28], 0x48
je 0x4442f2
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 0x4442b6
mov word [esi], cx
jmp 0x4442ed
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x468230]
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 + 0x468230]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x468230]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x444341
pop eax
cmp word [ebp - 4], ax
jne 0x444302
cmp esi, ebx
jne 0x444302
mov word [esi], ax
jmp 0x44433e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00444bcc
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x444341
push 0xd
pop eax
jmp 0x4442fd
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x468230]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x44433b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x444341
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 0x445ee4
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 0x445f81
push ebx
push esi
call fcn.00445ead
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.00445e41
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x445f2e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x445f80
push edi
push eax
call fcn.0044340a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x445f4e
call fcn.004410f2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x445f7f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00445e41
add esp, 0x20
test eax, eax
jne 0x445f6d
push edi
call fcn.004410f2
jmp 0x445f75
push ebx
call fcn.004410f2
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 0x4488cc
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004416e0
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 0x44893b
cmp esi, dword [ebp - 4]
je 0x448936
cmp dword [ebp + 0xc], 0
je 0x448936
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x448913
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0044841e
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x44893d
xor eax, eax
inc eax
jmp 0x44893d
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4489a2
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x463040]
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.004416e0
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.004416e0
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 0x448a19
cmp word [ecx], dx
je 0x448a19
mov eax, dword [0x454a24]
push edi
dec eax
push eax
push 0x454910
call fcn.00448941
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x448a8c
cmp word [eax], dx
je 0x448a8c
mov eax, dword [edi]
test eax, eax
je 0x448a3d
cmp word [eax], dx
je 0x448a3d
lea eax, [ebp - 0x10]
push eax
call fcn.00448324
jmp 0x448a46
lea eax, [ebp - 0x10]
push eax
call fcn.004483bf
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x448ab6
mov eax, dword [0x45490c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x454600
call fcn.00448941
add esp, 0xc
test al, al
je 0x448ab6
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x448a81
cmp word [eax], di
je 0x448a81
lea eax, [ebp - 0x10]
push eax
call fcn.00448324
pop ecx
jmp 0x448ab8
lea eax, [ebp - 0x10]
push eax
call fcn.004483bf
jmp 0x448a7e
mov eax, dword [edi]
test eax, eax
je 0x448aa3
cmp word [eax], dx
je 0x448aa3
lea eax, [ebp - 0x10]
push eax
call fcn.004482d9
pop ecx
jmp 0x448ab6
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 0x448b81
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004487c6
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x448b81
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x448b81
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x448b81
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x448b0e
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00442eef
test ebx, ebx
je 0x448b7c
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00442eef
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x448b81
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 0x448b81
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0044b087
add esp, 0x10
xor eax, eax
inc eax
jmp 0x448b83
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043435c
leave
ret
Function at 0x44cfb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44cfdd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44cfdd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402760
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x50c40
call fcn.0040f4d0
mov eax, dword [0x423004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x50c20], 0
push eax
push eax
push eax
mov word [ebp - 0x50c0c], ax
lea eax, [ebp - 0x50c1c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x50c20]
mov dword [ebp - 0x50c1c], 0x10001
push eax
mov dword [ebp - 0x50c18], 0x2b11
mov dword [ebp - 0x50c14], 0x2b11
mov dword [ebp - 0x50c10], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x50bfe
lea eax, [ebp - 0x50c08]
push 0
push eax
call fcn.00404620
add esp, 0xc
xor eax, eax
mov edx, eax
shr edx, 0xb
and dl, 6
xor dl, al
mov cl, dl
shl dl, 2
add cl, dl
add cl, cl
mov byte [ebp + eax - 0x50c08], cl
inc eax
cmp eax, 0x50bfe
jb 0x4027e3
lea eax, [ebp - 0x50c08]
mov dword [ebp - 0x50c3c], 0x50bfe
mov dword [ebp - 0x50c40], eax
lea eax, [ebp - 0x50c40]
push 0x20
push eax
push dword [ebp - 0x50c20]
mov dword [ebp - 0x50c38], 0
mov dword [ebp - 0x50c34], 0
mov dword [ebp - 0x50c30], 0
mov dword [ebp - 0x50c2c], 0
mov dword [ebp - 0x50c28], 0
mov dword [ebp - 0x50c24], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x50c40]
push eax
push dword [ebp - 0x50c20]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x50c40]
push eax
push dword [ebp - 0x50c20]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x50c20]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040371d
mov esp, ebp
pop ebp
ret
Function at 0x402a10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x50c44
call fcn.0040f4d0
mov eax, dword [0x423004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov dword [ebp - 0x50c20], 0
push eax
push eax
push eax
mov word [ebp - 0x50c0c], ax
lea eax, [ebp - 0x50c1c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x50c20]
mov dword [ebp - 0x50c1c], 0x10001
push eax
mov dword [ebp - 0x50c18], 0x2b11
mov dword [ebp - 0x50c14], 0x2b11
mov dword [ebp - 0x50c10], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x50bfe
lea eax, [ebp - 0x50c08]
push 0
push eax
call fcn.00404620
add esp, 0xc
xor ebx, ebx
mov ecx, ebx
mov eax, ebx
shr ecx, 0xa
and cl, bl
imul eax, ebx
xor cl, 0xa
movsx edx, cl
mov ecx, ebx
shr ecx, 1
movsx ecx, cl
shr eax, 9
movsx eax, al
imul edx, eax
movsx eax, bl
imul ecx, eax
and cl, bl
or dl, cl
mov byte [ebp + ebx - 0x50c08], dl
inc ebx
cmp ebx, 0x50bfe
jb 0x402a94
lea eax, [ebp - 0x50c08]
mov dword [ebp - 0x50c3c], 0x50bfe
mov dword [ebp - 0x50c40], eax
lea eax, [ebp - 0x50c40]
push 0x20
push eax
push dword [ebp - 0x50c20]
mov dword [ebp - 0x50c38], 0
mov dword [ebp - 0x50c34], 0
mov dword [ebp - 0x50c30], 0
mov dword [ebp - 0x50c2c], 0
mov dword [ebp - 0x50c28], 0
mov dword [ebp - 0x50c24], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x50c40]
push eax
push dword [ebp - 0x50c20]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x50c40]
push eax
push dword [ebp - 0x50c20]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x50c20]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040371d
mov esp, ebp
pop ebp
ret