joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bd16
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x80]
lea ecx, [esp + 0x20]
mov dword [0x4163b4], 0x1742
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.0040a8dc
lea ecx, [0x40b574]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x50], edx
mov dword [esp + 0x64], 0x135a00
mov edx, dword [0x4163a0]
mov dword [esp + 0x5c], edx
mov edx, dword [0x4163a4]
mov dword [esp + 0x58], edx
mov dword [0x4163b8], 0x848
mov edx, dword [0x4163a8]
mov dword [esp + 0x40], edx
mov edx, dword [0x4163ac]
mov dword [esp + 0x30], edx
mov edx, dword [0x4163b0]
mov dword [esp + 0x2c], edx
mov dword [0x4163b4], 0x96b
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x40bdb4
mov eax, dword [esp + 0x10]
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0xc], eax
jne 0x40bdd7
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 8], ecx
je 0x40bdeb
mov eax, dword [esp + 0xc]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x40bdb4
mov eax, dword [esp + 0xc]
mov dword [esp + 0x24], eax
mov dword [0x4163b8], 0x58
mov ecx, dword [esp + 8]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x3c], edx
mov dword [0x4163b4], 0xc36
call fcn.0040ac03
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x10], ecx
jne 0x40bdac
lea eax, [esp + 0x20]
mov dword [0x4163b4], 0x996
mov ecx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0040b416
mov dword [0x4163b4], 0x26f7
mov ecx, esp
lea edx, [esp + 0x20]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov ecx, dword [0x4163b8]
add ecx, 0xfffff46a
mov dword [0x4163b4], ecx
mov dword [esp + 0x10], eax
jmp 0x40bdac

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x10004090
Capabilities:
Enumerate gui resources
Get common file path
Log keystrokes via polling
Read .ini file

Disassembly:
push 0
push 0
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
push 0
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push 0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push 0
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push 0
call dword [sym.imp.USER32.dll_IsGUIThread]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
call dword [sym.imp.USER32.dll_EndDeferWindowPos]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_Beep]
push 0
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MapUserPhysicalPages]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeInfo]
push 0
push 0
call dword [sym.imp.USER32.dll_GetScrollPos]
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
push 0
call dword [sym.imp.USER32.dll_SetProcessDefaultLayout]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessPreferredUILanguages]
push 0
call dword [sym.imp.USER32.dll_DdeDisconnectList]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
push 0
call dword [sym.imp.KERNEL32.dll_FatalExit]

Function at 0x10004340
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
push esi
xorps xmm0, xmm0
mov dword [esp + 0x34], 0
push edi
push 0
movlpd qword [esp + 0x44], xmm0
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
mov dword [esp + 0x40], 0x10002080
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x60], str.vxkWAVJTHAAnvaExYRh
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
push 0
push 0
push 0
push 0x258
push 0x320
push 0x80000000
push 0x80000000
push 0xcf0000
push str.SXsDowyIvvNXEaNvQiqnIZjhqGC
push dword [esp + 0x84]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x10004427
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x10]
push 0
push 0
xorps xmm0, xmm0
mov dword [esp + 0x30], 0
push 0
push eax
movaps xmmword [esp + 0x20], xmm0
movq qword [esp + 0x30], xmm0
call esi
test eax, eax
je 0x10004427
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call esi
test eax, eax
jne 0x10004404
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10004430
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
push esi
xorps xmm0, xmm0
mov dword [esp + 0x34], 0
push edi
lea eax, [esp + 0x38]
movlpd qword [esp + 0x40], xmm0
push eax
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
mov dword [esp + 0x40], 0x10003090
mov dword [esp + 0x4c], 0
mov dword [esp + 0x60], str.uDFqKaVPdnJRCrLlWIrBj
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
push 0
push 0
push 0
push 0x258
push 0x320
push 0x80000000
push 0x80000000
push 0xcf0000
push str.GHYLzXWEObfhEJcYfOwiaqOWvBWnJ
push dword [esp + 0x84]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x100cd754], eax
test eax, eax
je 0x10004518
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x10]
push 0
push 0
xorps xmm0, xmm0
mov dword [esp + 0x30], 0
push 0
push eax
movaps xmmword [esp + 0x20], xmm0
movq qword [esp + 0x30], xmm0
call esi
test eax, eax
je 0x10004518
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call esi
test eax, eax
jne 0x100044f5
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10004520
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x1006eb3c], 5
mov dword [0x1006eb38], 8
mov byte [0x100cd5ad], 0
nop
push 0x100642c0
call fcn.10042bf1
add esp, 4
mov esi, 0x32
mov dl, 0x2d
call fcn.10008c90
sub esi, 1
jne 0x10004562
push 0x100cc708
call fcn.10008bf0
movzx eax, word [0x1006eb3c]
add esp, 4
mov word [ebp - 4], ax
movzx eax, word [0x1006eb38]
mov word [ebp - 2], ax
push dword [ebp - 4]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call ebx
mov dl, 0x40
call fcn.10008c90
call fcn.10040b40
test eax, eax
je 0x100045be
call fcn.10040908
cmp al, 0x20
jne 0x100045be
dec dword [0x1006eb38]
mov eax, dword [0x1006eb3c]
inc eax
mov dword [0x1006eb3c], eax
cmp eax, 0x32
jl 0x100045d5
mov byte [0x100cd5ad], 1
push 0x64
call edi
cmp byte [0x100cd5ad], 0
je 0x10004550
pop edi
pop esi
pop ebx
mov edx, str.Rainbow_flag__Nice_for_my_restroom.
mov ecx, 0x100cc708
call fcn.10008960
push eax
call fcn.10008bf0
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x100079e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1005a540
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
push 8
mov dword [edi], 0x1005c50c
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.1003b723
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.1003ac97
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.100075c0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100458d2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10045911
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10045911
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10045911
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10045911
cmp dword [ecx + 0x74], 0xe
jbe 0x10045911
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1004c301
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10060540
push 0x10060538
push 0x1005de8c
push 0x1f
call fcn.1004c16c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004c335
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005c378]
call esi
jmp 0x1004c33b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1004c37f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10060550
push 0x10060548
push str.FlsGetValue
push 0x21
call fcn.1004c16c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004c3b6
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005c378]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1004c3be
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10060558
push 0x10060550
push str.FlsSetValue
push 0x22
call fcn.1004c16c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004c3f8
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1005c378]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1004cafd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1003c5f0
mov eax, dword [0x1006e080]
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.10046c62
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1004cb3f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1004cc9b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10059bd0
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 + 0x100ccfc8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1004e2eb
mov ecx, dword [esi*4 + 0x100ccfc8]
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 0x1004cc94
cmp eax, dword [ecx + edi + 0x24]
jne 0x1004cc94
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 0x1004cc94
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1004e2eb
add esp, 0x14
test edx, edx
jl 0x1004cc94
jg 0x1004cc0a
test eax, eax
jb 0x1004cc94
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1004cc94
jl 0x1004cc24
cmp dword [ebp - 0x1008], eax
ja 0x1004cc94
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1004cc42
test ebx, ebx
je 0x1004cc7b
cmp ecx, edi
jae 0x1004cc7b
mov al, byte [ecx]
cmp al, 0xd
jne 0x1004cc5c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1004cc68
cmp byte [ecx + 1], 0xa
jne 0x1004cc68
inc ecx
jmp 0x1004cc68
movzx eax, al
movsx eax, byte [eax + 0x1006e340]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1004cc42
cmp edx, ebx
jne 0x1004cc42
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1004cc99
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1003be01
leave
ret
Function at 0x1004d783
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 + 0x100ccfc8]
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 0x1004d7c3
cmp byte [ebx], 0xa
jne 0x1004d7c3
or byte [edi + eax + 0x28], 4
jmp 0x1004d7c8
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 0x1004d8c7
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1004d8aa
inc eax
cmp dl, 0xd
je 0x1004d7f4
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1004d81a
cmp eax, ecx
jae 0x1004d828
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 0x1004d7dc
jmp 0x1004d8c7
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 0x1004d8a5
cmp dword [ebp - 0x10], 0
je 0x1004d8a5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100ccfc8]
test byte [eax + edi + 0x28], 0x48
je 0x1004d87f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1004d86a
mov byte [esi], dl
jmp 0x1004d87b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100ccfc8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1004d8c7
cmp byte [ebp - 1], 0xa
jne 0x1004d88e
cmp esi, ebx
jne 0x1004d88e
mov byte [esi], 0xa
jmp 0x1004d8c6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1004e309
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1004d8c7
mov byte [esi], 0xd
jmp 0x1004d8c6
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100ccfc8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1004d8c4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1004d8c7
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1004d8d0
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 + 0x100ccfc8]
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 0x1004d916
cmp word [ebx], dx
jne 0x1004d916
or byte [eax + edi + 0x28], 4
jmp 0x1004d91b
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 0x1004da7e
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 0x1004da5e
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1004d95c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1004d992
cmp eax, edx
jae 0x1004d9a0
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 0x1004d937
jmp 0x1004da7e
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 0x1004da59
cmp dword [ebp - 0x18], 0
je 0x1004da59
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100ccfc8]
test byte [eax + edi + 0x28], 0x48
je 0x1004da2f
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 0x1004d9f3
mov word [esi], cx
jmp 0x1004da2a
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100ccfc8]
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 + 0x100ccfc8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100ccfc8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1004da7e
pop eax
cmp word [ebp - 4], ax
jne 0x1004da3f
cmp esi, ebx
jne 0x1004da3f
mov word [esi], ax
jmp 0x1004da7b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1004e309
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1004da7e
push 0xd
pop eax
jmp 0x1004da3a
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100ccfc8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1004da78
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1004da7e
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 0x10050bd5
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 0x10050c72
push ebx
push esi
call fcn.10050b9e
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.10049f31
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10050c1f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10050c71
push edi
push eax
call fcn.10049e53
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10050c3f
call fcn.10049a6f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10050c70
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10049f31
add esp, 0x20
test eax, eax
jne 0x10050c5e
push edi
call fcn.10049a6f
jmp 0x10050c66
push ebx
call fcn.10049a6f
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 0x100536ad
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1004724b
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 0x1005371c
cmp esi, dword [ebp - 4]
je 0x10053717
cmp dword [ebp + 0xc], 0
je 0x10053717
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100536f4
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100531ff
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1005371e
xor eax, eax
inc eax
jmp 0x1005371e
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10053783
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1006e080]
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.1004724b
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.1004724b
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 0x100537fa
cmp word [ecx], dx
je 0x100537fa
mov eax, dword [0x10060bd4]
push edi
dec eax
push eax
push 0x10060ac0
call fcn.10053722
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1005386d
cmp word [eax], dx
je 0x1005386d
mov eax, dword [edi]
test eax, eax
je 0x1005381e
cmp word [eax], dx
je 0x1005381e
lea eax, [ebp - 0x10]
push eax
call fcn.10053105
jmp 0x10053827
lea eax, [ebp - 0x10]
push eax
call fcn.100531a0
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10053897
mov eax, dword [0x10060abc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100607b0
call fcn.10053722
add esp, 0xc
test al, al
je 0x10053897
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10053862
cmp word [eax], di
je 0x10053862
lea eax, [ebp - 0x10]
push eax
call fcn.10053105
pop ecx
jmp 0x10053899
lea eax, [ebp - 0x10]
push eax
call fcn.100531a0
jmp 0x1005385f
mov eax, dword [edi]
test eax, eax
je 0x10053884
cmp word [eax], dx
je 0x10053884
lea eax, [ebp - 0x10]
push eax
call fcn.100530ba
pop ecx
jmp 0x10053897
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 0x10053962
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100535a7
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10053962
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10053962
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10053962
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100538ef
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1004c4fe
test ebx, ebx
je 0x1005395d
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1004c4fe
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10053962
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 0x10053962
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100577ff
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10053964
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003be01
leave
ret