joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408061
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 0x4080fe
push ebx
push esi
call fcn.0040802a
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.00407fbe
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4080ab
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4080fd
push edi
push eax
call fcn.004069ab
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4080cb
call fcn.00406b06
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4080fc
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00407fbe
add esp, 0x20
test eax, eax
jne 0x4080ea
push edi
call fcn.00406b06
jmp 0x4080f2
push ebx
call fcn.00406b06
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 0x408f0c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411000
push 0x410ff8
push str.FlsAlloc
push 0x1f
call fcn.00408e28
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408f40
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f134]
call esi
jmp 0x408f46
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408f8a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411010
push 0x411008
push str.FlsGetValue
push 0x21
call fcn.00408e28
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408fc1
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x408fc9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411018
push 0x411010
push str.FlsSetValue
push 0x22
call fcn.00408e28
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409003
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40f134]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x405282
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
push str.WinMain_start__lpCmdLine_is:
call esi
mov eax, dword [esp + 0x14]
xor edi, edi
cmp dword [esp + 0x14], edi
jne 0x4052a2
mov eax, str.NULL
push eax
call esi
push str.WinMain_start__parameter_is:
call esi
push str.package.nameZoom.msipackage.versionlatestpackage.size8628kdownloadRoothttps:__launcher.zoom.us_clientactionjoinbrowserfirefoxconfiddGlkPTBiYjUzN2QxNWMyMWI2M2VlZmRhNjdlMjY2NTAyNzIwconfno376798626zc0mcv0.92.11227.0929stafalseinstaller.exeInstaller.exe
call esi
push 0x444
call fcn.00407475
pop ecx
cmp eax, edi
je 0x4052ce
mov edx, dword [esp + 0xc]
push eax
call fcn.0040538c
jmp 0x4052d0
xor eax, eax
push str.zoom.us_Downloader_Mutex_1.0.0.0
push edi
push 0x1f0001
mov dword [0x41ddb8], eax
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
cmp eax, edi
je 0x4052f3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4052fc
call fcn.00406405
test eax, eax
jne 0x40531c
push edi
push str.zoom.us_Boot_Downloader
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x405341
push edi
push edi
push 0x7e9
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x405341
mov ecx, dword [esp + 0x14]
call fcn.004057bb
mov eax, dword [0x41ddb8]
cmp eax, edi
je 0x405334
push eax
call fcn.00405348
push str.WinMain_end
mov dword [0x41ddb8], edi
call esi
pop edi
xor eax, eax
pop esi
ret 0x10
Function at 0x4251b9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42d8f8
cmp edx, dword [eax]
je 0x4251db
add eax, 8
inc ecx
cmp eax, 0x42d988
jl 0x4251cc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42d8f8]
jne 0x425309
mov eax, dword [0x42e338]
cmp eax, 1
je 0x4252e3
test eax, eax
jne 0x42520c
cmp dword [0x42d370], 1
je 0x4252e3
cmp edx, 0xfc
je 0x425309
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x425243
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00426060
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00425620
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x425286
lea eax, [ebp - 0x1a4]
push eax
call fcn.00425620
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42a784
push edi
call fcn.004279a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00426060
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00426070
lea eax, [ebp - 0xa0]
push 0x42a764
push eax
call fcn.00426070
push dword [esi + 0x42d8fc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00426070
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00427915
add esp, 0x2c
pop edi
jmp 0x425309
lea eax, [ebp + 8]
lea esi, [esi + 0x42d8fc]
push 0
push eax
push dword [esi]
call fcn.00425620
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40a561
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0040a5e0
jae 0x40a56d
xor ecx, ecx
call fcn.0040a5e0
jae 0x40a597
xor eax, eax
call fcn.0040a5e0
jae 0x40a5a8
mov al, 0x10
call fcn.0040a5e0
adc al, al
jae 0x40a589
jne 0x40a5d5
stosb byte es:[edi], al
jmp 0x40a56e
call fcn.0040a5ec
dec ecx
loop 0x40a5b4
mov eax, ebp
call fcn.0040a5ea
jmp 0x40a5d6
lodsb al, byte [esi]
shr eax, 1
je 0x40a5fc
adc ecx, 2
mov ebp, eax
jmp 0x40a5d6
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0040a5ea
cmp eax, 0x7d00
jae 0x40a5d4
cmp eax, 0x500
jae 0x40a5d5
cmp eax, 0x7f
ja 0x40a5d6
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x40a56e
pop ebp
ret 8

Function at 0x43b648
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x43b3c1
inc edi
sub esp, 4
mov dword [esp], 0x985e8621
mov edi, dword [esp]
add esp, 4
and edx, edx
call fcn.0043b69d
sub edx, 0x65106fd4
mov edx, edx
sub edi, edx
xor dword [ebx], ecx
and edi, edi
add ebx, 1
and edx, edx
add edx, 1
cmp ebx, esi
jne fcn.0043b648
add edx, edi
mov edi, 0x3267528e
add edx, 0x75be5719
ret
Function at 0x4017e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov edx, ecx
sub esp, 8
mov eax, dword [edx + 0x3c]
cmp dword [eax + edx + 0x7c], 0
jne 0x4017f8
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + edx + 0x78]
test eax, eax
je 0x4017f2
mov ecx, dword [eax + edx + 0x24]
add ecx, edx
push ebx
mov ebx, dword [eax + edx + 0x20]
mov dword [ebp - 4], ecx
add ebx, edx
mov ecx, dword [eax + edx + 0x1c]
push esi
mov esi, dword [eax + edx + 0x18]
add ecx, edx
push edi
mov dword [ebp - 8], ecx
xor edi, edi
xor ecx, ecx
dec esi
mov eax, dword [ebx + ecx*4]
add eax, edx
cmp byte [eax], 0x47
jne 0x40187c
cmp byte [eax + 1], 0x65
jne 0x40187c
cmp byte [eax + 2], 0x74
jne 0x40187c
cmp byte [eax + 3], 0x50
jne 0x40187c
cmp byte [eax + 4], 0x72
jne 0x40187c
cmp byte [eax + 5], 0x6f
jne 0x40187c
cmp byte [eax + 6], 0x63
jne 0x40187c
cmp byte [eax + 7], 0x41
jne 0x40187c
cmp byte [eax + 8], 0x64
jne 0x40187c
cmp byte [eax + 9], 0x64
jne 0x40187c
cmp byte [eax + 0xa], 0x72
jne 0x40187c
cmp byte [eax + 0xb], 0x65
jne 0x40187c
cmp byte [eax + 0xc], 0x73
jne 0x40187c
cmp byte [eax + 0xd], 0x73
je 0x40188a
inc ecx
cmp ecx, esi
jbe 0x401824
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 8]
movzx eax, word [eax + ecx*2]
mov edi, dword [edi + eax*4]
add edi, edx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405a3c
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x412694
push str.FlsAlloc
push 0
call fcn.004059bc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x405a6e
push dword [ebp + 8]
mov ecx, esi
call fcn.00403309
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x405ab0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x4126b8
push str.FlsGetValue
push 2
call fcn.004059bc
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x405ae1
mov ecx, esi
call fcn.00403309
call esi
jmp 0x405ae7
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x405aea
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x4126cc
push str.FlsSetValue
push 3
call fcn.004059bc
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x405b1e
mov ecx, esi
call fcn.00403309
call esi
jmp 0x405b24
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x40a0b8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00409d78
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408ed0
nop
nop
mov ecx, 0x4d883db0
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x53db6063
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4012c0
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x40
push 0x3000
mov ecx, dword [ebp + 8]
call fcn.00405770
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4012ed
call fcn.00401150
nop
mov ecx, dword [ebp + 8]
call fcn.00405770
push eax
mov ecx, dword [ebp + 8]
call fcn.00404ec0
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.004089b0
add esp, 0xc
push 0
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
push 0xffffffffffffffff
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
mov esp, ebp
pop ebp
ret

Function at 0x407268
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x407289
jl 0x407280
test edi, edi
jne 0x407289
xor eax, eax
xor edx, edx
jmp 0x40734a
cmp dword [ebx + 0x38], 0
je 0x40729e
push eax
push edi
push dword [ebp + 8]
call fcn.00407350
jmp 0x40734a
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4072e5
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4072e5
cmp eax, edi
jb 0x4072bf
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.004089b0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4072eb
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40733f
mov ecx, ebx
call fcn.00406ab7
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40732a
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040df9f
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x40733f
jmp 0x4072fd
test edx, edx
je 0x40733f
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040df9f
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x4087ef
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x422428
push 0x422420
push str.FlsAlloc
push 0x1f
call fcn.00412786
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41294f
push dword [ebp + 8]
mov ecx, esi
call dword [0x41f148]
call esi
jmp 0x412955
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x412999
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x422438
push 0x422430
push str.FlsGetValue
push 0x21
call fcn.00412786
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4129d0
push dword [ebp + 8]
mov ecx, esi
call dword [0x41f148]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4129d8
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x422440
push 0x422438
push str.FlsSetValue
push 0x22
call fcn.00412786
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412a12
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41f148]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4151ff
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408960
mov eax, dword [0x429100]
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.00413e46
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x415241
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41539d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041e3e0
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 + 0x42ab00]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004161fc
mov ecx, dword [esi*4 + 0x42ab00]
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 0x415396
cmp eax, dword [ecx + edi + 0x24]
jne 0x415396
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 0x415396
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004161fc
add esp, 0x14
test edx, edx
jl 0x415396
jg 0x41530c
test eax, eax
jb 0x415396
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x415396
jl 0x415326
cmp dword [ebp - 0x1008], eax
ja 0x415396
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x415344
test ebx, ebx
je 0x41537d
cmp ecx, edi
jae 0x41537d
mov al, byte [ecx]
cmp al, 0xd
jne 0x41535e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41536a
cmp byte [ecx + 1], 0xa
jne 0x41536a
inc ecx
jmp 0x41536a
movzx eax, al
movsx eax, byte [eax + 0x4293d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x415344
cmp edx, ebx
jne 0x415344
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41539b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407a9a
leave
ret
Function at 0x415694
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 + 0x42ab00]
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 0x4156d4
cmp byte [ebx], 0xa
jne 0x4156d4
or byte [edi + eax + 0x28], 4
jmp 0x4156d9
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 0x4157d8
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4157bb
inc eax
cmp dl, 0xd
je 0x415705
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41572b
cmp eax, ecx
jae 0x415739
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 0x4156ed
jmp 0x4157d8
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 0x4157b6
cmp dword [ebp - 0x10], 0
je 0x4157b6
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x42ab00]
test byte [eax + edi + 0x28], 0x48
je 0x415790
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41577b
mov byte [esi], dl
jmp 0x41578c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42ab00]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4157d8
cmp byte [ebp - 1], 0xa
jne 0x41579f
cmp esi, ebx
jne 0x41579f
mov byte [esi], 0xa
jmp 0x4157d7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041621a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4157d8
mov byte [esi], 0xd
jmp 0x4157d7
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x42ab00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4157d5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4157d8
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4157e1
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 + 0x42ab00]
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 0x415827
cmp word [ebx], dx
jne 0x415827
or byte [eax + edi + 0x28], 4
jmp 0x41582c
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 0x41598f
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 0x41596f
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41586d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4158a3
cmp eax, edx
jae 0x4158b1
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 0x415848
jmp 0x41598f
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 0x41596a
cmp dword [ebp - 0x18], 0
je 0x41596a
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x42ab00]
test byte [eax + edi + 0x28], 0x48
je 0x415940
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 0x415904
mov word [esi], cx
jmp 0x41593b
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x42ab00]
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 + 0x42ab00]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x42ab00]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41598f
pop eax
cmp word [ebp - 4], ax
jne 0x415950
cmp esi, ebx
jne 0x415950
mov word [esi], ax
jmp 0x41598c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041621a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41598f
push 0xd
pop eax
jmp 0x41594b
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x42ab00]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x415989
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41598f
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 0x41879d
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 0x41883a
push ebx
push esi
call fcn.00418766
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.00417458
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4187e7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x418839
push edi
push eax
call fcn.00412c71
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x418807
call fcn.0041245b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x418838
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00417458
add esp, 0x20
test eax, eax
jne 0x418826
push edi
call fcn.0041245b
jmp 0x41882e
push ebx
call fcn.0041245b
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 0x41ae1b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00412170
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 0x41ae8a
cmp esi, dword [ebp - 4]
je 0x41ae85
cmp dword [ebp + 0xc], 0
je 0x41ae85
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41ae62
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041a96d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41ae8c
xor eax, eax
inc eax
jmp 0x41ae8c
xor eax, eax
pop edi
pop esi
leave
ret