joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c9ec0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
mov dword [ebp - 4], ebx
push esi
push edi
mov edi, edx
test ebx, ebx
je 0x4c9fcd
test edi, edi
je 0x4c9fcd
cmp dword [ebp + 8], 0
je 0x4c9fcd
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c9ef0
sub ecx, edx
mov esi, 0x1505
mov edx, 0
je 0x4c9f20
mov bl, byte [edx + edi]
test bl, bl
je 0x4c9f1d
mov eax, esi
inc edx
shl esi, 5
add esi, eax
movzx eax, bl
add esi, eax
cmp edx, ecx
jb 0x4c9f05
mov ebx, dword [ebp - 4]
mov ecx, edi
mov dword [ebp - 4], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c9f30
lea eax, [ebp - 4]
sub ecx, edx
push eax
push esi
push ecx
mov edx, edi
mov ecx, ebx
call fcn.004c9e10
add esp, 0xc
mov edx, eax
cmp dword [ebp - 4], 0
jne 0x4c9fcd
mov ecx, dword [ebx + 0x18]
cmp ecx, dword [ebx + 0x1c]
jb 0x4c9f90
mov ecx, ebx
call fcn.004c9d60
test eax, eax
jne 0x4c9fcd
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c9f70
lea eax, [ebp - 4]
sub ecx, edx
push eax
push esi
push ecx
mov edx, edi
mov ecx, ebx
call fcn.004c9e10
mov ecx, dword [ebx + 0x18]
add esp, 0xc
mov edx, eax
mov eax, dword [ebx + 0xc]
mov dword [eax + ecx*4], edi
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 0x18]
mov edi, dword [ebp + 8]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x10]
mov dword [eax + ecx*4], edi
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x14]
mov dword [eax + ecx*4], edx
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 8]
mov dword [eax + ecx*4], esi
inc dword [ebx + 0x18]
mov eax, dword [ebx]
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c9fe0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, ecx
mov dword [ebp - 8], eax
push edi
mov edi, edx
test eax, eax
je 0x4ca058
test edi, edi
je 0x4ca058
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, 0x1505
test ebx, ebx
je 0x4ca021
mov cl, byte [edx + edi]
test cl, cl
je 0x4ca01e
mov eax, esi
inc edx
shl esi, 5
add esi, eax
movzx eax, cl
add esi, eax
cmp edx, ebx
jb 0x4ca006
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push esi
push ebx
mov edx, edi
mov ecx, eax
call fcn.004c9e10
add esp, 0xc
mov edx, eax
cmp dword [ebp - 4], 0
pop esi
pop ebx
je 0x4ca058
mov eax, dword [ebp - 8]
pop edi
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0x10]
mov ecx, dword [ecx + edx*4]
mov eax, dword [eax + ecx*4]
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4cb750
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 8], ebx
push edi
mov edi, edx
mov dword [ebp - 0xc], edi
test ebx, ebx
je 0x4cb8d4
test edi, edi
je 0x4cb8d4
mov eax, dword [ebp + 8]
test eax, eax
je 0x4cb8d4
cmp dword [eax], 0
jne 0x4cb8d4
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4cb790
sub ecx, edx
mov esi, 0x1505
mov edx, 0
je 0x4cb7c0
mov bl, byte [edx + edi]
test bl, bl
je 0x4cb7bd
mov eax, esi
inc edx
shl esi, 5
add esi, eax
movzx eax, bl
add esi, eax
cmp edx, ecx
jb 0x4cb7a5
mov ebx, dword [ebp - 8]
mov ecx, edi
mov dword [ebp - 4], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4cb7d0
lea eax, [ebp - 4]
sub ecx, edx
push eax
push esi
push ecx
mov edx, edi
mov ecx, ebx
call fcn.004c9e10
add esp, 0xc
mov edx, eax
cmp dword [ebp - 4], 0
mov dword [ebp - 8], edx
je 0x4cb824
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + edx*4]
mov ecx, dword [ebx + 0x10]
lea esi, [eax*4]
mov ecx, dword [esi + ecx]
call fcn.004cb520
mov eax, dword [ebx + 0x10]
mov edx, dword [ebp + 8]
pop edi
mov dword [esi + eax], edx
mov eax, dword [ebx]
pop esi
mov dword [edx], eax
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x18]
cmp eax, dword [ebx + 0x1c]
jb 0x4cb85e
mov ecx, ebx
call fcn.004c9d60
test eax, eax
jne 0x4cb8d4
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4cb840
lea eax, [ebp - 4]
sub ecx, edx
push eax
push esi
push ecx
mov edx, edi
mov ecx, ebx
call fcn.004c9e10
add esp, 0xc
mov dword [ebp - 8], eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4cb861
sub edi, ecx
lea eax, [edi + 1]
push eax
call fcn.004eceef
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x4cb8d4
push edi
push dword [ebp - 0xc]
mov byte [edi + eax], 0
push eax
call fcn.004e9580
mov ecx, dword [ebx + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0xc]
mov edx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov dword [eax + ecx*4], edx
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 0x18]
mov edx, dword [ebp + 8]
mov dword [ecx + edi*4], eax
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x10]
mov dword [eax + ecx*4], edx
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x14]
mov dword [eax + ecx*4], edi
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 8]
pop edi
mov dword [eax + ecx*4], esi
inc dword [ebx + 0x18]
mov eax, dword [ebx]
pop esi
mov dword [edx], eax
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cc6d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 4], ebx
mov edi, dword [ebx + 0x14]
lea eax, [edi + 0x6c]
mov dword [ebx], vtable.ComponentMesh.0
cmp dword [eax], 0
je 0x4cc6fb
push eax
mov eax, dword [sym.imp.glew32.dll___glewDeleteBuffers]
push 1
mov eax, dword [eax]
call eax
cmp dword [edi + 0x70], 0
lea eax, [edi + 0x70]
je 0x4cc710
push eax
mov eax, dword [sym.imp.glew32.dll___glewDeleteBuffers]
push 1
mov eax, dword [eax]
call eax
cmp dword [edi + 0x74], 0
lea eax, [edi + 0x74]
je 0x4cc725
push eax
mov eax, dword [sym.imp.glew32.dll___glewDeleteBuffers]
push 1
mov eax, dword [eax]
call eax
cmp dword [edi + 0x78], 0
lea eax, [edi + 0x78]
je 0x4cc73a
push eax
mov eax, dword [sym.imp.glew32.dll___glewDeleteBuffers]
push 1
mov eax, dword [eax]
call eax
push 0
push 0x527b0c
mov ecx, edi
call fcn.00402920
push 0
push 0x527b0c
lea ecx, [edi + 0x44]
call fcn.00402920
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 + 0x38], 0
mov dword [edi + 0x3c], 0
mov esi, dword [0x562950]
mov eax, dword [0x562954]
cmp esi, eax
je 0x4cc7ce
lea ebx, [esi + 4]
cmp dword [esi], edi
jne 0x4cc7c1
sub eax, ebx
push eax
push ebx
push esi
call fcn.004e9580
mov eax, dword [0x562954]
add esp, 0xc
sub eax, 4
mov dword [0x562954], eax
jmp 0x4cc7c7
add esi, 4
add ebx, 4
cmp esi, eax
jne 0x4cc7a1
mov ebx, dword [ebp - 4]
push 0x74
push ebx
mov dword [ebx + 0x18], 0x527b0c
mov dword [ebx], vtable.ComponentManager.0
call fcn.004e7ced
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4ce750
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x55c054]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x18]
push edi
push eax
push 0
push dword [ebp + 0x14]
mov dword [0x569ee8], eax
push 0x1000
push 0x568ee8
call fcn.0041b9f0
push dword [eax + 4]
push dword [eax]
call fcn.004f285d
add esp, 0x1c
mov dword [0x569ee8], 0
push 0x568ee8
push dword [ebp + 0xc]
push esi
push str._n_s__d__:__s
push 0x1000
push 0x569ef0
call fcn.004c2c70
add esp, 0x18
push 0x569ef0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, 0x569ef0
mov dword [esp + 0x34], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0xf
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ce7f0
sub ecx, edx
push ecx
push 0x569ef0
lea ecx, [esp + 0x3c]
call fcn.00402920
mov eax, dword [0x562820]
test eax, eax
je 0x4ce924
cmp dword [eax + 0x10], 0
je 0x4ce924
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402810
mov edx, dword [0x562820]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov ecx, dword [edx + 0x10]
add ecx, 0xc
je 0x4ce855
lea eax, [esp + 0x18]
push eax
call fcn.004ce970
mov edx, dword [0x562820]
add esp, 4
mov esi, dword [edx + 0x10]
add esi, 0x18
mov dword [esp + 0x10], esi
je 0x4ce8f2
mov ecx, dword [esi + 4]
mov ebx, ecx
mov edi, dword [esi + 8]
mov eax, edi
mov edx, dword [esi]
sub ebx, edx
sub eax, edx
sar ebx, 2
sar eax, 2
mov dword [esp + 0xc], ebx
cmp ebx, eax
jne 0x4ce8d6
xor ebx, ebx
cmp dword [esp + 0xc], ebx
jbe 0x4ce8c8
mov edi, edx
nop dword [eax]
mov eax, ecx
lea esi, [ebx + 1]
sub ecx, edi
mov dword [esp + 0xc], esi
sar ecx, 2
mov edx, edi
cmp esi, ecx
mov esi, dword [esp + 0x10]
jae 0x4ce8b4
mov eax, dword [edi + ebx*4 + 4]
mov dword [edi + ebx*4], eax
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov ebx, dword [esp + 0xc]
mov ecx, eax
sub eax, edx
mov edi, edx
sar eax, 2
cmp ebx, eax
jb 0x4ce890
mov edi, dword [esi + 8]
mov eax, dword [ebp + 0x10]
sub edi, edx
sar edi, 2
mov dword [edx + edi*4 - 4], eax
jmp 0x4ce8f2
cmp ecx, edi
je 0x4ce8e5
mov eax, dword [ebp + 0x10]
mov dword [ecx], eax
add dword [esi + 4], 4
jmp 0x4ce8f2
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.0040dc00
mov edx, dword [esp + 0x2c]
cmp edx, 0x10
jb 0x4ce924
mov ecx, dword [esp + 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4ce91a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ce968
push edx
push ecx
call fcn.004e7ced
add esp, 8
mov edx, dword [esp + 0x48]
cmp edx, 0x10
jb 0x4ce956
mov ecx, dword [esp + 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4ce94c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ce968
push edx
push ecx
call fcn.004e7ced
add esp, 8
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e7a8e
mov esp, ebp
pop ebp
ret
call fcn.004ec64f
int3
Function at 0x4e8a80
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
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 esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x4e8bba
mov ecx, dword [ebp - 4]
lea ecx, [ecx*4 + 4]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x4e8bba
xor ebx, ebx
cmp dword [ebp - 4], ebx
jle 0x4e8b5c
sub eax, esi
mov dword [ebp - 0xc], eax
mov edi, edi
push dword [esi]
call sub.SDL2.dll_SDL_wcslen
lea eax, [eax*2 + 2]
push eax
push dword [esi]
push str.UTF_16LE
push str.UTF_8
call sub.SDL2.dll_SDL_iconv_string
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4e8bba
push edi
call sub.SDL2.dll_SDL_strlen
add esp, 4
mov dword [ebp - 0x10], eax
lea ecx, [eax + 1]
push ecx
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 + esi], eax
test eax, eax
je 0x4e8bba
push dword [ebp - 0x10]
push edi
push eax
call sub.SDL2.dll_SDL_memcpy
push edi
call sub.SDL2.dll_SDL_free
inc ebx
add esp, 0x10
add esi, 4
cmp ebx, dword [ebp - 4]
jl 0x4e8ae0
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 8]
push esi
mov dword [edi + ebx*4], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
call sub.SDL2.dll_SDL_SetMainReady
push edi
push dword [ebp - 4]
call fcn.004cec20
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 4], esi
jle 0x4e8ba4
jmp 0x4e8b90
push dword [edi + esi*4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
inc esi
cmp esi, dword [ebp - 4]
jl 0x4e8b90
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
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
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f7945
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004e8a30
mov eax, dword [0x55c054]
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.00501541
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4f7987
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4f7ae3
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.005105c0
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 + 0x5624e0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00501bcb
mov ecx, dword [esi*4 + 0x5624e0]
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 0x4f7adc
cmp eax, dword [ecx + edi + 0x24]
jne 0x4f7adc
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 0x4f7adc
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00501bcb
add esp, 0x14
test edx, edx
jl 0x4f7adc
jg 0x4f7a52
test eax, eax
jb 0x4f7adc
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4f7adc
jl 0x4f7a6c
cmp dword [ebp - 0x1008], eax
ja 0x4f7adc
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4f7a8a
test ebx, ebx
je 0x4f7ac3
cmp ecx, edi
jae 0x4f7ac3
mov al, byte [ecx]
cmp al, 0xd
jne 0x4f7aa4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4f7ab0
cmp byte [ecx + 1], 0xa
jne 0x4f7ab0
inc ecx
jmp 0x4f7ab0
movzx eax, al
movsx eax, byte [eax + 0x55c2d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4f7a8a
cmp edx, ebx
jne 0x4f7a8a
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4f7ae1
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004e7a8e
leave
ret

Function at 0x4fba0b
Capabilities:
Parse pe header

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

Function at 0x4ff5db
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ff55d
Function at 0x4ffec2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x51b858
push 0x51b850
push str.FlsAlloc
push 0x1f
call fcn.004ffcad
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ffef6
push dword [ebp + 8]
mov ecx, esi
call dword [0x517494]
call esi
jmp 0x4ffefc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4fff40
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x51b868
push 0x51b860
push str.FlsGetValue
push 0x21
call fcn.004ffcad
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4fff77
push dword [ebp + 8]
mov ecx, esi
call dword [0x517494]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4fff7f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x51b870
push 0x51b868
push str.FlsSetValue
push 0x22
call fcn.004ffcad
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4fffb9
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x517494]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x501c47
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 + 0x5624e0]
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 0x501c87
cmp byte [ebx], 0xa
jne 0x501c87
or byte [edi + eax + 0x28], 4
jmp 0x501c8c
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 0x501d8b
mov dl, byte [eax]
cmp dl, 0x1a
je 0x501d6e
inc eax
cmp dl, 0xd
je 0x501cb8
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x501cde
cmp eax, ecx
jae 0x501cec
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 0x501ca0
jmp 0x501d8b
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 0x501d69
cmp dword [ebp - 0x10], 0
je 0x501d69
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5624e0]
test byte [eax + edi + 0x28], 0x48
je 0x501d43
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x501d2e
mov byte [esi], dl
jmp 0x501d3f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5624e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x501d8b
cmp byte [ebp - 1], 0xa
jne 0x501d52
cmp esi, ebx
jne 0x501d52
mov byte [esi], 0xa
jmp 0x501d8a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00501be9
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x501d8b
mov byte [esi], 0xd
jmp 0x501d8a
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5624e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x501d88
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x501d8b
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x501d94
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 + 0x5624e0]
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 0x501dda
cmp word [ebx], dx
jne 0x501dda
or byte [eax + edi + 0x28], 4
jmp 0x501ddf
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 0x501f42
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 0x501f22
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x501e20
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x501e56
cmp eax, edx
jae 0x501e64
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 0x501dfb
jmp 0x501f42
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 0x501f1d
cmp dword [ebp - 0x18], 0
je 0x501f1d
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5624e0]
test byte [eax + edi + 0x28], 0x48
je 0x501ef3
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 0x501eb7
mov word [esi], cx
jmp 0x501eee
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5624e0]
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 + 0x5624e0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5624e0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x501f42
pop eax
cmp word [ebp - 4], ax
jne 0x501f03
cmp esi, ebx
jne 0x501f03
mov word [esi], ax
jmp 0x501f3f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00501be9
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x501f42
push 0xd
pop eax
jmp 0x501efe
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5624e0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x501f3c
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x501f42
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 0x508d15
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 0x508db2
push ebx
push esi
call fcn.00508cde
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.00507b2f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x508d5f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x508db1
push edi
push eax
call fcn.004ff8ef
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x508d7f
call fcn.004ff93d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x508db0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00507b2f
add esp, 0x20
test eax, eax
jne 0x508d9e
push edi
call fcn.004ff93d
jmp 0x508da6
push ebx
call fcn.004ff93d
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 0x508db5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x508dc6
pop esi
ret
push ebx
push edi
push esi
call fcn.00508cde
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004ff8ef
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x508dee
push ebx
push esi
push edi
call fcn.004e9580
add esp, 0xc
push 0
call fcn.004ff93d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x5091be
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00508e03

Function at 0x50b6c9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004fee63
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 0x50b738
cmp esi, dword [ebp - 4]
je 0x50b733
cmp dword [ebp + 0xc], 0
je 0x50b733
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x50b710
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0050b21b
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x50b73a
xor eax, eax
inc eax
jmp 0x50b73a
xor eax, eax
pop edi
pop esi
leave
ret