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

Disassembly:
sub esp, 0x64
mov eax, dword [0x4f7600]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
mov ebx, dword [esp + 0x70]
lea eax, [esp + 0x34]
push ebp
mov ebp, dword [esp + 0x78]
xorps xmm0, xmm0
push esi
mov esi, dword [esp + 0x74]
mov ecx, 0x4c42e0
push ebp
push ebx
push eax
movups xmmword [esp + 0x5c], xmm0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
call fcn.004801c0
mov eax, dword [esp + 0x4c]
add eax, 0xffffffff
je 0x484d7b
lea ecx, [esp + 0xc]
cmp eax, 1
jne 0x484d50
mov eax, dword [esp + 0x44]
movq xmm0, qword [esp + 0x3c]
mov dword [esp + 0x14], eax
jmp 0x484d5b
xorps xmm0, xmm0
mov dword [esp + 0x14], 0
movq qword [esp + 0xc], xmm0
movq xmm0, qword [ecx]
mov ecx, dword [ecx + 8]
movq qword [esi], xmm0
mov dword [esi + 8], ecx
mov dword [esi + 0x1c], 2
jmp 0x484ebf
lea eax, [esp + 0x3c]
movups xmm0, xmmword [eax]
push edi
mov edi, dword [ebx]
mov eax, ebp
sub eax, edi
movups xmmword [esp + 0x54], xmm0
cmp eax, 3
jl 0x484e47
cmp byte [edi], 0x25
jne 0x484e47
cmp byte [edi + 1], 0x32
jne 0x484e47
cmp byte [edi + 2], 0x35
jne 0x484e47
lea eax, [edi + 3]
mov dword [ebx], eax
lea eax, [esp + 0x20]
movups xmm0, xmmword [0x4c42e8]
push eax
push ebp
movups xmmword [esp + 0x28], xmm0
lea eax, [esp + 0x18]
movups xmm0, xmmword [0x4c42f8]
push ebx
push eax
movups xmmword [esp + 0x40], xmm0
call fcn.00481070
mov eax, dword [esp + 0x2c]
add esp, 0x10
add eax, 0xffffffff
jne 0x484e1b
cmp dword [esp + 0x14], eax
je 0x484e1b
movups xmm1, xmmword [esp + 0x54]
lea eax, [esp + 0x10]
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movups xmmword [esi], xmm1
movq qword [esi + 0x10], xmm0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 1
jmp 0x484ebe
push 0
push 5
lea ecx, [esp + 0x18]
mov dword [ebx], edi
call fcn.0047f030
mov eax, dword [esp + 0x18]
movq xmm0, qword [esp + 0x10]
test eax, eax
je 0x484eb0
cmp eax, 1
je 0x484eb0
and eax, 1
or eax, 0x4c4464
jmp 0x484eb0
mov ecx, dword [0x4f7440]
mov eax, dword [0x4f7444]
cmp ecx, 0x257edfd1
jne 0x484e61
cmp eax, 0xb2ab117a
je 0x484e70
cmp ecx, 0x257edfd0
jne 0x484e74
cmp eax, 0xb2ab117a
jne 0x484e74
mov al, 1
jmp 0x484e85
mov eax, dword [0x4f7438]
mov ecx, 0x4f7438
push 5
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
add eax, 2
mov dword [esp + 0x10], 5
mov ecx, eax
mov dword [esp + 0x14], 0x4f7438
movq xmm0, qword [esp + 0x10]
cmp ecx, 1
je 0x484eb0
and eax, 1
or eax, 0x4c4308
movq qword [esi], xmm0
mov dword [esi + 8], eax
mov dword [esi + 0x1c], 2
pop edi
mov ecx, dword [esp + 0x6c]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00489fe1
add esp, 0x64
ret 0xc
Function at 0x4858c0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1edd
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4f7600]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x238], edi
lea esi, [edi + 4]
mov dword [edi], vtable.CLog.0
xorps xmm0, xmm0
movups xmmword [esi], xmm0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [edi + 0x1c]
mov dword [ebp - 4], eax
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov dword [edi + 0x54], eax
mov dword [edi + 0x58], eax
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], eax
mov dword [edi + 0x64], eax
mov dword [edi + 0x68], eax
push 7
push str.log.log
mov byte [ebp - 4], 3
call fcn.00401eb0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x208
mov dword [edi + 0x34], eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0048bfd0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 1
jl 0x485aab
xorps xmm0, xmm0
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
movups xmmword [ebp - 0x230], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4859b6
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00402ad0
lea eax, [ebp - 0x230]
cmp esi, eax
je 0x485a50
mov ecx, dword [esi + 0x14]
cmp ecx, 7
jbe 0x485a1b
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x485a11
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x485ad9
mov eax, edx
push ecx
push eax
call fcn.00489c99
add esp, 8
movups xmm0, xmmword [ebp - 0x230]
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov ecx, 7
movups xmmword [esi], xmm0
mov word [ebp - 0x230], ax
movq xmm0, qword [ebp - 0x220]
movq qword [esi + 0x10], xmm0
jmp 0x485a56
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x485a8c
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x485a82
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x485ad9
push ecx
push edx
call fcn.00489c99
add esp, 8
push 8
push str.yjs_log
mov ecx, esi
call fcn.00428120
cmp dword [esi + 0x14], 7
jbe 0x485aa2
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [edi + 0x38]
mov dword [edi + 0x50], 4
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00489fe1
mov esp, ebp
pop ebp
ret
call fcn.0048f8ef
int3
Function at 0x486060
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x74
push 0xffffffffffffffff
push 0x4b1fdf
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x4f7600]
xor eax, ebp
mov dword [ebp + 0x70], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0x7c]
lea eax, [edi + 4]
push eax
lea ecx, [ebp + 0x24]
mov dword [ebp + 4], esi

Function at 0x48aed0
Capabilities:
Parse pe header

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

Function at 0x49f19f
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 + 0x4ff248]
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 0x49f1df
cmp byte [ebx], 0xa
jne 0x49f1df
or byte [edi + eax + 0x28], 4
jmp 0x49f1e4
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 0x49f2e3
mov dl, byte [eax]
cmp dl, 0x1a
je 0x49f2c6
inc eax
cmp dl, 0xd
je 0x49f210
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x49f236
cmp eax, ecx
jae 0x49f244
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 0x49f1f8
jmp 0x49f2e3
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 0x49f2c1
cmp dword [ebp - 0x10], 0
je 0x49f2c1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4ff248]
test byte [eax + edi + 0x28], 0x48
je 0x49f29b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49f286
mov byte [esi], dl
jmp 0x49f297
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4ff248]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49f2e3
cmp byte [ebp - 1], 0xa
jne 0x49f2aa
cmp esi, ebx
jne 0x49f2aa
mov byte [esi], 0xa
jmp 0x49f2e2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004a21a8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49f2e3
mov byte [esi], 0xd
jmp 0x49f2e2
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4ff248]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49f2e0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49f2e3
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49f2ec
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 + 0x4ff248]
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 0x49f332
cmp word [ebx], dx
jne 0x49f332
or byte [eax + edi + 0x28], 4
jmp 0x49f337
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 0x49f49a
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 0x49f47a
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x49f378
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49f3ae
cmp eax, edx
jae 0x49f3bc
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 0x49f353
jmp 0x49f49a
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 0x49f475
cmp dword [ebp - 0x18], 0
je 0x49f475
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4ff248]
test byte [eax + edi + 0x28], 0x48
je 0x49f44b
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 0x49f40f
mov word [esi], cx
jmp 0x49f446
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4ff248]
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 + 0x4ff248]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4ff248]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x49f49a
pop eax
cmp word [ebp - 4], ax
jne 0x49f45b
cmp esi, ebx
jne 0x49f45b
mov word [esi], ax
jmp 0x49f497
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004a21a8
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x49f49a
push 0xd
pop eax
jmp 0x49f456
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4ff248]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x49f494
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x49f49a
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 0x4a0683
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c8e14
push 0x4c8e0c
push str.FlsAlloc
push 0x1f
call fcn.004a04ae
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a06b7
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b3548]
call esi
jmp 0x4a06bd
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4a0701
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c8e24
push 0x4c8e1c
push str.FlsGetValue
push 0x21
call fcn.004a04ae
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a0738
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b3548]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4a0740
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c8e2c
push 0x4c8e24
push str.FlsSetValue
push 0x22
call fcn.004a04ae
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a077a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4b3548]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4a1b0d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0048a020
mov eax, dword [0x4f7600]
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.0049e45b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a1b4f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a1cab
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0048a0e0
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 + 0x4ff248]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004a218a
mov ecx, dword [esi*4 + 0x4ff248]
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 0x4a1ca4
cmp eax, dword [ecx + edi + 0x24]
jne 0x4a1ca4
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 0x4a1ca4
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004a218a
add esp, 0x14
test edx, edx
jl 0x4a1ca4
jg 0x4a1c1a
test eax, eax
jb 0x4a1ca4
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a1ca4
jl 0x4a1c34
cmp dword [ebp - 0x1008], eax
ja 0x4a1ca4
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a1c52
test ebx, ebx
je 0x4a1c8b
cmp ecx, edi
jae 0x4a1c8b
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a1c6c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a1c78
cmp byte [ecx + 1], 0xa
jne 0x4a1c78
inc ecx
jmp 0x4a1c78
movzx eax, al
movsx eax, byte [eax + 0x4f78d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a1c52
cmp edx, ebx
jne 0x4a1c52
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a1ca9
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00489fe1
leave
ret
Function at 0x4a4259
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4f7600]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4a42a4
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a43f4
test al, al
jne 0x4a429e
sub edx, 2
cmp edx, edi
jne 0x4a4284
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a42c6
lea eax, [edi + 2]
cmp edx, eax
je 0x4a42c6
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a41a5
add esp, 0x10
jmp 0x4a43c0
push esi
lea ecx, [ebp - 0x255]
call fcn.004a43f4
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a4309
push dword [ebp - 0x25c]
jmp 0x4a42b6
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4a4346
cmp word [ebp - 0x226], 0
je 0x4a4367
cmp word [ebp - 0x226], ax
jne 0x4a4346
cmp word [ebp - 0x224], 0
je 0x4a4367
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a41a5
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a43b3
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a4320
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a439b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a43c0
push 0x4a3fd5
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004ac110
add esp, 0x10
jmp 0x4a4390
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00489fe1
leave
ret

Function at 0x4a4cd6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a4ce7
pop esi
ret
push ebx
push edi
push esi
call fcn.004a4c9f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0049d55b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a4d0f
push ebx
push esi
push edi
call fcn.0048ba50
add esp, 0xc
push 0
call fcn.0049d521
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4a50df
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a4d24
Function at 0x4a76df
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0049d236
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 0x4a774e
cmp esi, dword [ebp - 4]
je 0x4a7749
cmp dword [ebp + 0xc], 0
je 0x4a7749
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4a7726
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004a7231
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4a7750
xor eax, eax
inc eax
jmp 0x4a7750
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4a77b5
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4f7600]
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.0049d236
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.0049d236
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 0x4a782c
cmp word [ecx], dx
je 0x4a782c
mov eax, dword [0x4ccbcc]
push edi
dec eax
push eax
push 0x4ccab8
call fcn.004a7754
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4a789f
cmp word [eax], dx
je 0x4a789f
mov eax, dword [edi]
test eax, eax
je 0x4a7850
cmp word [eax], dx
je 0x4a7850
lea eax, [ebp - 0x10]
push eax
call fcn.004a7137
jmp 0x4a7859
lea eax, [ebp - 0x10]
push eax
call fcn.004a71d2
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4a78c9
mov eax, dword [0x4ccab4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4cc7a8
call fcn.004a7754
add esp, 0xc
test al, al
je 0x4a78c9
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4a7894
cmp word [eax], di
je 0x4a7894
lea eax, [ebp - 0x10]
push eax
call fcn.004a7137
pop ecx
jmp 0x4a78cb
lea eax, [ebp - 0x10]
push eax
call fcn.004a71d2
jmp 0x4a7891
mov eax, dword [edi]
test eax, eax
je 0x4a78b6
cmp word [eax], dx
je 0x4a78b6
lea eax, [ebp - 0x10]
push eax
call fcn.004a70ec
pop ecx
jmp 0x4a78c9
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 0x4a7994
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004a75d9
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4a7994
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4a7994
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4a7994
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4a7921
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004a0880
test ebx, ebx
je 0x4a798f
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004a0880
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4a7994
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 0x4a7994
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004ac8aa
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4a7996
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00489fe1
leave
ret