joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4096d4
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x40d1b8
call fcn.004098e8
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x40970f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40970f
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x409727
cmp eax, 0x20b
je 0x409714
mov dword [ebp - 0x1c], edi
jmp 0x40973b
cmp dword [ecx + 0x84], 0xe
jbe 0x40970f
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x409735
cmp dword [ecx + 0x74], 0xe
jbe 0x40970f
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x410704], 0xffffffff
or dword [0x410708], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x4106fc]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x4106f8]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x410700], eax
call fcn.004099e7
call fcn.00409aaf
cmp dword [0x410070], edi
jne 0x40979b
push 0x409aa7
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00409a85
push 0x40f010
push 0x40f00c
call sub.MSVCR71.dll__initterm
push 0x409a30
call fcn.004099d0
mov eax, dword [0x4106f4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x4106f0]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x34], eax
cmp eax, edi
jge 0x4097ef
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x40f008
push section..data
call sub.MSVCR71.dll__initterm
call dword [sym.imp.MSVCR71.dll___p___winitenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.00401010
add esp, 0x14
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x40982b
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x409860
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00409923
ret
Function at 0x401000
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
jne 0x40103d
push eax
push str.Out_of_memory___aborting
push str.Fatal_Error
push 0x10
call sub.SDL2.dll_SDL_ShowSimpleMessageBox
add esp, 0x10
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push ebx
lea edx, [ecx*4 + 4]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
jne 0x40107e
push eax
push str.Out_of_memory___aborting
push str.Fatal_Error
push 0x10
call sub.SDL2.dll_SDL_ShowSimpleMessageBox
add esp, 0x10
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], 0
push esi
mov dword [ebp - 8], 0
jle 0x401113
sub ebx, edi
mov dword [ebp - 0xc], ebx
mov eax, dword [edi]
push eax
call sub.SDL2.dll_SDL_wcslen
mov edx, dword [edi]
lea ecx, [eax + eax + 2]
push ecx
push edx
push str.UTF_16LE
push str.UTF_8
call sub.SDL2.dll_SDL_iconv_string
mov esi, eax
add esp, 0x14
test esi, esi
je 0x401171
push esi
call sub.SDL2.dll_SDL_strlen
mov ebx, eax
add esp, 4
lea eax, [ebx + 1]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + edi], eax
test eax, eax
je 0x401171
push ebx
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
push esi
call sub.SDL2.dll_SDL_free
mov eax, dword [ebp - 8]
inc eax
add esp, 0x10
add edi, 4
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 4]
jl 0x401095
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
push edi
mov dword [ebx + edx*4], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
call sub.SDL2.dll_SDL_SetMainReady
mov eax, dword [ebp - 4]
push ebx
push eax
call fcn.0045fb05
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 4], esi
jle 0x40115b
mov ecx, dword [ebx + esi*4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
inc esi
cmp esi, dword [ebp - 4]
jl 0x401146
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
mov eax, dword [ebp - 0x14]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push str.Out_of_memory___aborting
push str.Fatal_Error
push 0x10
call sub.SDL2.dll_SDL_ShowSimpleMessageBox
add esp, 0x10
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x40231d
Capabilities:
Create process on windows

Disassembly:
push 1
xor eax, eax
push eax
push eax
push str.https:__github.com_Eduardiko_Kalise_Engine
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret 4
Function at 0x405f82
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
mov edx, dword [ebp + 8]
push edi
mov edi, ecx
not edx
movzx eax, byte [edi]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x46bc68]
inc edi
sub esi, 1
jne 0x405f90
not edx
pop edi
mov eax, edx
pop esi
pop ebp
ret

Function at 0x405fb0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov edx, ebx
test edi, edi
je 0x406014
mov al, byte [esi]
dec edi
inc esi
cmp al, 0x23
jne 0x405fdc
cmp edi, 2
jb 0x405fdc
cmp byte [esi], al
jne 0x405fdc
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x46bc68]
test edi, edi
jne 0x405fc5
jmp 0x40601b
cmp al, 0x23
jne 0x406002
cmp byte [esi], al
jne 0x406002
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x46bc68]
mov al, byte [esi]
inc esi
test al, al
jne 0x405ff4
pop edi
not edx
pop esi
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x406143
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edx
push dword [ebp + 0x10]
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
xor edx, edx
pop ebp
ret

Function at 0x40615a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edx
push dword [ebp + 0x10]
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
xor edx, edx
pop ebp
ret
Function at 0x43d395
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push 2
pop edx
dec ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
cmp ebx, edx
jl 0x43d41a
push esi
push edi
push 0x1f
mov ecx, ebx
pop esi
and ecx, esi
mov dword [ebp + 8], ecx
mov eax, edx
mov edi, edx
or eax, esi
sar edi, 5
cmp ebx, eax
push 0x1f
cmovg ecx, esi
xor esi, esi
inc ecx
xor eax, eax
bts esi, ecx
cmp ecx, 0x20
cmovae eax, esi
xor esi, eax
cmp ecx, 0x40
mov ecx, edx
cmovae eax, esi
xor edx, edx
and ecx, 0x1f
xor eax, eax
bts edx, ecx
dec esi
cmp ecx, 0x20
cmovae eax, edx
xor edx, eax
cmp ecx, 0x40
mov ecx, dword [ebp + 8]
cmovae eax, edx
dec edx
mov eax, dword [ebp - 8]
not edx
and esi, edx
mov edx, dword [ebp - 4]
add edx, 0x20
and edx, 0xffffffe0
or dword [eax + edi*4], esi
mov dword [ebp - 4], edx
pop esi
cmp edx, ebx
jle 0x43d3b8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45fabc
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push dword [ebp + 0x10]
lea eax, [ebp + 0x14]
mov dword [0x48d6c8], eax
call fcn.0045fa80
and dword [0x48d6c8], 0
mov esi, 0x48c6c8
push 0x48d6d0
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._n_s__d__:__s
push 0x1000
push esi
call fcn.0045faa1
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
pop ebp
ret

Function at 0x4600a3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10004
call fcn.00465280
mov eax, dword [0x486138]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
lea edx, [ebp - 0x10003]
xor esi, esi
mov ebx, 0x80
xor ecx, ecx
mov eax, ecx
mov byte [edx + 2], 0xff
xor eax, esi
shr eax, 3
and eax, 1
imul eax, eax, 0xff
inc ecx
mov byte [edx - 1], al
mov byte [edx], al
mov byte [edx + 1], al
add edx, 4
cmp ecx, ebx
jl 0x4600ce
inc esi
cmp esi, ebx
jl 0x4600cc
push 1
push 0xcf5
call dword [sym.imp.OPENGL32.dll_glPixelStorei]
lea esi, [edi + 0x24]
push esi
push 1
call dword [sym.imp.OPENGL32.dll_glGenTextures]
push dword [esi]
mov edi, dword [sym.imp.OPENGL32.dll_glBindTexture]
mov esi, 0xde1
push esi
call edi
mov ebx, 0x2901
push ebx
push 0x2802
push esi
mov esi, dword [sym.imp.OPENGL32.dll_glTexParameteri]
call esi
push ebx
push 0x2803
mov ebx, 0xde1
push ebx
call esi
push 0x2601
push 0x2800
push ebx
call esi
push 0x2600
push 0x2801
push ebx
call esi
lea eax, [ebp - 0x10004]
xor esi, esi
push eax
push 0x1401
mov eax, 0x1908
mov ecx, 0x80
push eax
push esi
push ecx
push ecx
push eax
push esi
push ebx
call dword [sym.imp.OPENGL32.dll_glTexImage2D]
push esi
push ebx
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00464142
mov esp, ebp
pop ebp
ret
Function at 0x401300
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
add esi, 0xfffe792c
test esi, esi
jle 0x401349
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
nop dword [eax + eax]
push 0x17ff5
push 0x1372e
push 0x14805
push 0x2a4e
push 0x322
push 0x1df9
call edi
add esp, 0x18
sub esi, 1
jne 0x401320
pop edi
pop esi
pop ebp
ret
Function at 0x405ab0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [0x569958]
mov ebx, 0xc
push edi
mov edi, dword [0x569a48]
add edi, 0xfffffff2
test edi, edi
jle 0x405b0e
xor eax, eax
cmp dword [0x56990c], 0x1f
setl al
mov dword [ebp - 4], eax
nop
lea edx, [ebx + 0x4e]
xor ecx, ecx
dec ebx
mov eax, ebx
or eax, 0x63
cmp eax, 0x60
mov eax, 1
setl cl
or ecx, dword [ebp - 4]
cmp edx, 0x39
cmovl ecx, eax
test ecx, ecx
je 0x405b04
inc esi
sub edi, eax
jne 0x405ae0
mov dword [0x569958], esi
push ecx
lea eax, [esi + 0xa]
push eax
push ecx
call fcn.004013e0
mov edi, dword [0x56995c]
xor ecx, ecx
mov esi, dword [0x569904]
add esp, 0xc
cmp ebx, 0x60
mov ebx, dword [0x569a48]
setl cl
lea eax, [edi - 0x2b]
and ecx, eax
cmp esi, 0x2c
mov eax, 1
cmovl ecx, eax
test ecx, ecx
je 0x405b86
mov eax, dword [0x569a98]
and eax, 0x2c
cmp eax, ebx
jge 0x405b86
mov edx, dword [0x572990]
xor ecx, ecx
mov eax, dword [0x569958]
inc edx
cmp eax, dword [0x5729e8]
mov dword [0x572990], edx
setl cl
xor eax, eax
cmp edx, 0x49
setg al
or ecx, eax
je 0x405b86
dec edi
mov dword [0x56995c], edi
lea eax, [ebx - 0x186af]
test eax, eax
jle 0x405b9e
sub dword [0x56990c], eax
add esi, eax
mov dword [0x569904], esi
sub esp, 0x20
call fcn.00401a10
mov eax, dword [0x569a98]
add esp, 0x20
add eax, 0xfffe7913
test eax, eax
jle 0x405bc3
sub dword [0x56995c], eax
sub dword [0x572a88], eax
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x407130
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x573e58]
dec dword [0x572a88]
push ebx
push esi
push edi
push 0x11
push 8
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
call dword [0x573e4c]
push eax
call dword [0x573e34]
mov esi, dword [0x572994]
xor edx, edx
mov ebx, dword [0x56995c]
dec esi
cmp esi, dword [0x569958]
mov edi, eax
mov eax, 1
mov dword [0x572994], esi
setl dl
xor ecx, ecx
cmp ebx, 0x4d
setg cl
and edx, ecx
cmp dword [0x569a48], 0x33
cmovl edx, eax
test edx, edx
je 0x4071c4
mov edx, dword [0x5729b8]
xor ecx, ecx
inc edx
cmp dword [0x5729e8], 0x2f
mov dword [0x5729b8], edx
setg cl
xor eax, eax
cmp dword [0x569a98], 0x28
setl al
and ecx, eax
test edx, ecx
je 0x4071c4
dec ebx
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
cmp dword [ecx], eax
jle 0x407221
mov esi, dword [0x569908]
nop dword [eax]
cmp eax, 0x10
jge 0x40721b
inc esi
mov dword [0x569908], esi
cmp esi, dword [0x572994]
jge 0x4071f5
inc ebx
lea eax, [ebp - 8]
push eax
push ecx
push dword [ebp + 8]
lea edx, [ebp - 4]
mov ecx, edi
call fcn.00406de0
mov eax, dword [ebp - 8]
add esp, 0xc
mov ecx, dword [ebp + 0xc]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ecx]
mov eax, dword [ebp - 4]
jl 0x4071e0
mov esi, dword [0x572994]
mov dword [ebp - 8], 0
cmp eax, 0x10
jge 0x40724e
nop dword [eax]
lea eax, [ebp - 8]
mov ecx, edi
push eax
lea eax, [ebp - 4]
push eax
push edi
mov edx, eax
call fcn.00406de0
inc dword [ebp - 8]
add esp, 0xc
cmp dword [ebp - 4], 0x10
jl 0x407230
mov edx, dword [0x572a88]
mov eax, edx
or eax, 0x28
cmp eax, esi
jge 0x407277
mov eax, dword [0x569a48]
add eax, dword [0x572990]
je 0x407277
lea eax, [edx - 0x35]
test eax, eax
je 0x407277
dec dword [0x56990c]
mov edx, dword [0x573e54]
inc ebx
mov eax, dword [ebp + 0x14]
shr edx, 1
mov dword [0x573e54], edx
mov dword [0x56995c], ebx
cmp dword [eax], edx
jae 0x40729d
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
test edx, edx
je 0x4072ea
mov ebx, dword [ebp - 0x10]
mov al, byte [ebx]
xor ecx, ecx
nop word [eax + eax]
cmp byte [edi + ecx], al
je 0x4072be
inc ecx
cmp ecx, 0x10
jb 0x4072b0
or ecx, 0xffffffff
mov dl, byte [ebx + 1]
xor eax, eax
cmp byte [edi + eax], dl
je 0x4072d1
inc eax
cmp eax, 0x10
jb 0x4072c3
or eax, 0xffffffff
shl cl, 4
add ebx, 2
add cl, al
mov eax, dword [ebp - 0xc]
mov byte [esi + eax], cl
inc esi
mov edx, dword [0x573e54]
cmp esi, edx
jb 0x4072a6
mov eax, dword [0x569958]
xor ecx, ecx
mov esi, dword [0x572a88]
add eax, 0x2e
cmp eax, 0x2b
mov eax, esi
setl cl
xor eax, 0x1c
test eax, ecx
je 0x407310
dec dword [0x569904]
nop
dec dword [0x56990c]
lea eax, [esi - 2]
xor ecx, ecx
mov dword [0x572a88], eax
test edx, edx
je 0x407347
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
nop word [eax + eax]
mov eax, ecx
cdq
idiv dword [esi]
mov al, byte [edx + edi]
mov edx, dword [ebp - 0xc]
xor byte [ecx + edx], al
inc ecx
cmp ecx, dword [0x573e54]
jb 0x407330
inc dword [0x572990]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d3470
Capabilities:
Terminate process

Disassembly:
sub esp, 0x20
call fcn.00401860
add esp, 0x20
call fcn.004d3170
jmp fcn.00405ab0

Function at 0x4d4524
Capabilities:
Parse pe header

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

Function at 0x4e08b4
Capabilities:
Parse pe header

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

Function at 0x500539
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0050040d
Function at 0x501034
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
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 0x50107f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.005014d4
test al, al
jne 0x501079
sub edx, 2
cmp edx, edi
jne 0x50105f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x5010a1
lea eax, [edi + 2]
cmp edx, eax
je 0x5010a1
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00500cfb
add esp, 0x10
jmp 0x50119b
push esi
lea ecx, [ebp - 0x255]
call fcn.005014d4
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 0x5010e4
push dword [ebp - 0x25c]
jmp 0x501091
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 0x501121
cmp word [ebp - 0x226], 0
je 0x501142
cmp word [ebp - 0x226], ax
jne 0x501121
cmp word [ebp - 0x224], 0
je 0x501142
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00500cfb
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x50118e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x5010fb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x501176
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x50119b
push 0x50074b
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0050c2c0
add esp, 0x10
jmp 0x50116b
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.004d3956
leave
ret
Function at 0x502a1b
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 0x502ab8
push ebx
push esi
call fcn.005029d7
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.00502914
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x502a65
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x502ab7
push edi
push eax
call fcn.0050521e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x502a85
call fcn.005006f9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x502ab6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00502914
add esp, 0x20
test eax, eax
jne 0x502aa4
push edi
call fcn.005006f9
jmp 0x502aac
push ebx
call fcn.005006f9
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 0x502abb
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x502acc
pop esi
ret
push ebx
push edi
push esi
call fcn.005029d7
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0050521e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x502af4
push ebx
push esi
push edi
call fcn.004dd320
add esp, 0xc
push 0
call fcn.005006f9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x5033e3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00502d69

Function at 0x507536
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004ffa53
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 0x5075a5
cmp esi, dword [ebp - 4]
je 0x5075a0
cmp dword [ebp + 0xc], 0
je 0x5075a0
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x50757d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00507088
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x5075a7
xor eax, eax
inc eax
jmp 0x5075a7
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x50760c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
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.004ffa53
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.004ffa53
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 0x507683
cmp word [ecx], dx
je 0x507683
mov eax, dword [0x520d2c]
push edi
dec eax
push eax
push 0x520c18
call fcn.005075ab
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x5076f6
cmp word [eax], dx
je 0x5076f6
mov eax, dword [edi]
test eax, eax
je 0x5076a7
cmp word [eax], dx
je 0x5076a7
lea eax, [ebp - 0x10]
push eax
call fcn.00506f8e
jmp 0x5076b0
lea eax, [ebp - 0x10]
push eax
call fcn.00507029
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x507720
mov eax, dword [0x520c14]
push dword [ebp - 0x14]
dec eax
push eax
push 0x520908
call fcn.005075ab
add esp, 0xc
test al, al
je 0x507720
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x5076eb
cmp word [eax], di
je 0x5076eb
lea eax, [ebp - 0x10]
push eax
call fcn.00506f8e
pop ecx
jmp 0x507722
lea eax, [ebp - 0x10]
push eax
call fcn.00507029
jmp 0x5076e8
mov eax, dword [edi]
test eax, eax
je 0x50770d
cmp word [eax], dx
je 0x50770d
lea eax, [ebp - 0x10]
push eax
call fcn.00506f25
pop ecx
jmp 0x507720
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 0x5077eb
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00507430
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5077eb
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x5077eb
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x5077eb
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x507778
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.005084f9
test ebx, ebx
je 0x5077e6
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.005084f9
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5077eb
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 0x5077eb
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0050d783
add esp, 0x10
xor eax, eax
inc eax
jmp 0x5077ed
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d3956
leave
ret