joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..data
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x5f44553d
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data_1
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x48ff494e
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x1c00ec50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x1c00ec5f
pop dword [ebp - 0x50]
mov eax, 0x8652f1c8
add eax, 0x95adfa97
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x3b0fd
push 0
mov eax, 0x3111c7f9
sub eax, 0x150f1291
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x2daafcc7
sub ecx, 0x2daaafd9
xor ebx, ebx
add ebx, eax
mov esi, 0x75a947a3
sub esi, 0x59a661a3
add esi, dword [ebp - 0x50]
mov edi, 0x37c50127
sub dword [ebp - 0x2c], esi
mov edx, dword [esi]
sub edx, edi
xor dword [ebp - 0x1c], ecx
mov dword [ebx], edx
mov dword [ebp - 0x48], 0xe8aa8957
add ebx, 0x8c412e9a
add ebx, 0x73bed16a
add esi, 4
loop 0x1c00ecba
add eax, 0x1268b
mov ebx, eax
add eax, 5
mov ecx, 0x3b5cd3aa
sub ecx, 0x1f5cd3aa
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x1c013880
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
mov dword [ebp - 4], 0
push str..LZW
call fcn.1c00ec50
add esp, 4
movsx eax, ax
test eax, eax
je 0x1c0138b0
jmp 0x1c013a31
call sub.isgdi32.dll_Ordinal_2831
mov ebx, eax
call fcn.1c00ec50
cmp ebx, eax
jge 0x1c0138c9
jmp 0x1c013a31
call fcn.1c00ec50
add eax, 0x2ee0
push eax
push 0x42
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1c0138ee
jmp 0x1c013a31
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.kernel32.dll_GlobalLock]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0xffeeddcc
cmp dword [ebp + 0xc], 0
je 0x1c013937
mov eax, dword [ebp + 0xc]
push eax
call fcn.1c016180
add esp, 4
test eax, eax
je 0x1c013937
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
add eax, 0x2cac
push eax
call fcn.1c016200
add esp, 8
mov eax, dword [ebp - 8]
add eax, 0x2cac
push eax
call fcn.1c00ec50
test eax, eax
je 0x1c013972
mov eax, dword [ebp - 8]
mov byte [eax + 0x2cac], 0
mov eax, dword [ebp - 8]
push eax
call fcn.1c00ec50
add esp, 4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.kernel32.dll_GlobalUnlock]
jmp 0x1c013a31
cmp dword [ebp + 0x10], 0
je 0x1c0139aa
mov eax, dword [ebp + 0x10]
push eax
call fcn.1c016180
add esp, 4
test eax, eax
je 0x1c0139aa
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 8]
add eax, 0x2ba8
push eax
call fcn.1c016200
add esp, 8
jmp 0x1c0139f3
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 1
mov eax, dword [0x1c02994c]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [ebp - 8]
add eax, 0x2cac
push eax
push 0x104
mov eax, dword [ebp - 8]
add eax, 0x2ba8
push eax
push 0x1c026f50
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [0x1c023040]
push eax
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
push 1
push 1
mov eax, dword [ebp - 8]
push eax
call fcn.1c00ec50
add esp, 0xc
test eax, eax
jne 0x1c013a27
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.kernel32.dll_GlobalUnlock]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.kernel32.dll_GlobalFree]
mov dword [ebp - 4], eax
jmp 0x1c013a31
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.kernel32.dll_GlobalUnlock]
mov eax, dword [ebp - 4]
jmp 0x1c013a39
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1c016880
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x1c016987
call dword [sym.imp.kernel32.dll_GetVersion]
cmp dword [0x1c027034], 0
mov dword [0x1c027310], eax
jne 0x1c0168df
cmp al, 3
jne 0x1c0168b6
test eax, 0x80000000
je 0x1c0168b6
push 2
call fcn.1c019c00
add esp, 4
push str.kernel32.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
je 0x1c0168df
push 0x1c021680
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x1c0168df
push 1
call fcn.1c019c00
add esp, 4
call fcn.1c019130
test eax, eax
jne 0x1c0168ed
xor eax, eax
ret 0xc
xor edx, edx
mov ecx, dword [0x1c027310]
mov dl, ch
mov eax, ecx
shr ecx, 0x10
and eax, 0xff
mov dword [0x1c02731c], edx
mov dword [0x1c027318], eax
shl eax, 8
mov dword [0x1c027310], ecx
add eax, edx
mov dword [0x1c027314], eax
call fcn.1c018f60
test eax, eax
jne 0x1c01692f
call fcn.1c019170
xor eax, eax
ret 0xc
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x1c02aa80], eax
call fcn.1c019a70
cmp dword [0x1c02aa80], 0
mov dword [0x1c027024], eax
je 0x1c016978
test eax, eax
je 0x1c016978
call fcn.1c0191b0
call fcn.1c019a60
call fcn.1c0194e0
call fcn.1c0193f0
call fcn.1c018e00
mov eax, 1
inc dword [0x1c027020]
ret 0xc
call fcn.1c018fc0
call fcn.1c019170
xor eax, eax
ret 0xc
test eax, eax
jne 0x1c0169c4
mov eax, dword [0x1c027020]
test eax, eax
jle 0x1c0169bf
dec eax
cmp dword [0x1c027348], 0
mov dword [0x1c027020], eax
jne 0x1c0169a8
call fcn.1c018e50
call fcn.1c019390
call fcn.1c018fc0
call fcn.1c019170
mov eax, 1
ret 0xc
xor eax, eax
ret 0xc
cmp eax, 3
jne 0x1c0169d3
push 0
call fcn.1c019080
add esp, 4
mov eax, 1
ret 0xc

Function at 0x1c018e60
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
call fcn.1c018f20
cmp dword [0x1c02734c], 1
mov esi, dword [esp + 0x10]
jne 0x1c018e83
push esi
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov dword [0x1c027348], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x1c027344], bl
jne 0x1c018edd
cmp dword [0x1c02aa7c], 0
je 0x1c018ecb
mov edi, dword [0x1c02aa78]
sub edi, 4
cmp edi, dword [0x1c02aa7c]
jb 0x1c018ecb
mov eax, dword [edi]
test eax, eax
je 0x1c018ec0
call eax
sub edi, 4
cmp edi, dword [0x1c02aa7c]
jae 0x1c018eb8
push 0x1c02301c
push 0x1c023014
call fcn.1c018f40
add esp, 8
push 0x1c023024
push 0x1c023020
call fcn.1c018f40
add esp, 8
test ebx, ebx
je 0x1c018efc
call fcn.1c018f30
pop edi
pop esi
pop ebx
ret
mov dword [0x1c02734c], 1
push esi
call dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x1c018f60
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.1c01c630
call dword [sym.imp.kernel32.dll_TlsAlloc]
mov dword [0x1c027350], eax
cmp eax, 0xffffffff
jne 0x1c018f7a
xor eax, eax
pop esi
ret
push 0x74
push 1
call fcn.1c01c840
add esp, 8
mov esi, eax
test esi, esi
je 0x1c018fbc
push esi
mov eax, dword [0x1c027350]
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
test eax, eax
je 0x1c018fbc
push esi
call fcn.1c018ff0
add esp, 4
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov eax, 1
mov dword [esi + 4], 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x1c019010
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x1c027350]
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x1c019073
push 0x74
push 1
call fcn.1c01c840
add esp, 8
mov edi, eax
test edi, edi
je 0x1c019069
push edi
mov eax, dword [0x1c027350]
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
test eax, eax
je 0x1c019069
push edi
call fcn.1c018ff0
add esp, 4
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov dword [edi], eax
mov dword [edi + 4], 0xffffffff
jmp 0x1c019073
push 0x10
call fcn.1c0169e0
add esp, 4
push esi
call dword [sym.imp.kernel32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret

Function at 0x1c019080
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x1c027350], 0xffffffff
push esi
je 0x1c01911f
mov esi, dword [esp + 8]
test esi, esi
jne 0x1c0190a8
mov eax, dword [0x1c027350]
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x1c019111
mov eax, dword [esi + 0x24]
test eax, eax
je 0x1c0190b8
push eax
call fcn.1c01c8f0
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x1c0190c8
push eax
call fcn.1c01c8f0
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x1c0190d8
push eax
call fcn.1c01c8f0
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1c0190e8
push eax
call fcn.1c01c8f0
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x1c0190f8
push eax
call fcn.1c01c8f0
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x1c019108
push eax
call fcn.1c01c8f0
add esp, 4
push esi
call fcn.1c01c8f0
add esp, 4
push 0
mov eax, dword [0x1c027350]
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
pop esi
ret
Function at 0x1c019a70
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
cmp dword [0x1c02759c], ebx
jne 0x1c019abf
call esi
cmp eax, ebx
mov edi, eax
je 0x1c019a9d
mov dword [0x1c02759c], 1
jmp 0x1c019abf
call dword [sym.imp.kernel32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x1c019ab5
mov dword [0x1c02759c], 2
jmp 0x1c019abf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x1c02759c], 1
jne 0x1c019b6e
test edi, edi
jne 0x1c019ae2
call esi
mov edi, eax
test edi, edi
jne 0x1c019ae2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x1c019afc
add esi, 2
cmp word [esi], 0
jne 0x1c019aea
add esi, 2
cmp word [esi], 0
jne 0x1c019aea
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x1c019b5d
push ebp
call fcn.1c01d0c0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x1c019b5d
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1c019b4c
push ebx
call fcn.1c01c8f0
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x1c02759c], 2
jne 0x1c019bf2
test ebx, ebx
jne 0x1c019b91
call dword [sym.imp.kernel32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x1c019b91
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x1c019ba6
inc ebp
cmp byte [ebp], 0
jne 0x1c019b98
inc ebp
cmp byte [ebp], 0
jne 0x1c019b98
sub ebp, ebx
inc ebp
push ebp
call fcn.1c01d0c0
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x1c019bcb
push ebx
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x1c019c50
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x1c0275a0
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x1c019c77
add eax, 8
inc ecx
cmp eax, 0x1c027630
jb 0x1c019c68
cmp dword [ecx*8 + 0x1c0275a0], edx
lea ebx, [ecx*8]
jne 0x1c019e3b
cmp dword [0x1c027030], 1
je 0x1c019df7
cmp dword [0x1c027030], 0
jne 0x1c019cae
cmp dword [0x1c027034], 1
je 0x1c019df7
cmp edx, 0xfc
je 0x1c019e3b
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.kernel32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x1c019ceb
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x1c019d2f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x1c021b2c
push ebp
call fcn.1c01d230
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x1c021b0c
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x1c0275a4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.1c01d190
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x1c02a970], 0
je 0x1c019e0d
mov eax, dword [0x1c02a970]
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x1c019e17
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x1c0275a4]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x1c01a060
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
push ebx
push esi
push edi
push ebp
xor edi, edi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], edi
cmp ebp, edi
jne 0x1c01a088
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov edx, dword [esp + 0x42c]
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x1c02a970
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ebx, dword [esp + 0x18]
shl eax, 2
lea ecx, [eax + eax*8]
mov eax, dword [ebx]
mov dword [esp + 0x1c], ecx
test byte [eax + ecx + 4], 0x20
je 0x1c01a0c9
push 2
push 0
push edx
call fcn.1c01a2e0
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x1c01a165
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x1c01a19e
lea esi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x1c01a12c
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x1c01a11a
mov byte [esi], 0xd
inc edi
inc esi
mov byte [esi], al
inc esi
mov eax, esi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x1c01a101
lea eax, [esp + 0x24]
push 0
sub esi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push esi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x1c01a194
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, esi
jge 0x1c01a0ec
jmp 0x1c01a19e
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x1c01a194
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x1c01a19e
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x1c01a24a
cmp dword [esp + 0x10], 0
je 0x1c01a1fa
cmp dword [esp + 0x10], 5
jne 0x1c01a1dd
call fcn.1c01b5a0
mov dword [eax], 9
call fcn.1c01b5b0
mov ecx, dword [esp + 0x10]
pop ebp
pop edi
mov dword [eax], ecx
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov ecx, dword [esp + 0x10]
push ecx
call fcn.1c01b520
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x1c01a224
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x1c01a224
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
call fcn.1c01b5a0
mov dword [eax], 0x1c
call fcn.1c01b5b0
pop ebp
mov dword [eax], 0
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, edi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x1c020240
Capabilities:
Get geographical location

Disassembly:
push ebx
mov eax, dword [0x1c029314]
push esi
test eax, eax
push edi
push ebp
jne 0x1c020288
push 0
mov esi, dword [sym.imp.kernel32.dll_GetLocaleInfoW]
push 0
push 1
push 0
call esi
test eax, eax
je 0x1c020268
mov eax, 1
jmp 0x1c02028e
push 0
push 0
push 1
push 0
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
test eax, eax
je 0x1c020281
mov eax, 2
jmp 0x1c02028e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov esi, dword [sym.imp.kernel32.dll_GetLocaleInfoW]
mov dword [0x1c029314], eax
cmp eax, 1
jne 0x1c0202b3
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov ebx, dword [esp + 0x18]
push ecx
push edx
push ebx
call esi
pop ebp
pop edi
pop esi
pop ebx
ret
mov dword [0x1c029314], eax
cmp eax, 2
jne 0x1c020341
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x1c0202cf
mov edi, dword [0x1c028840]
mov eax, dword [esp + 0x18]
push 0
mov ebx, dword [esp + 0x18]
push 0
push eax
push ebx
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
mov ebp, eax
test ebp, ebp
jne 0x1c0202f0
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push ebp
call fcn.1c01d0c0
add esp, 4
mov esi, eax
test esi, esi
jne 0x1c020306
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x18]
push ebp
push esi
push eax
push ebx
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
test eax, eax
je 0x1c020336
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x1c020346
push 0
push 0
push 0xffffffffffffffff
push esi
push 1
push edi
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jne 0x1c02035e
push esi
call fcn.1c01c8f0
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push eax
mov eax, dword [esp + 0x20]
push eax
push 0xffffffffffffffff
push esi
push 1
push edi
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
je 0x1c020336
push esi
call fcn.1c01c8f0
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x1c020370
Capabilities:
Get geographical location

Disassembly:
push ebx
mov eax, dword [0x1c029318]
push esi
test eax, eax
push edi
push ebp
jne 0x1c0203b8
push 0
mov esi, dword [sym.imp.kernel32.dll_GetLocaleInfoA]
push 0
push 1
push 0
call esi
test eax, eax
je 0x1c020398
mov eax, 2
jmp 0x1c0203be
push 0
push 0
push 1
push 0
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x1c0203b1
mov eax, 1
jmp 0x1c0203be
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov esi, dword [sym.imp.kernel32.dll_GetLocaleInfoA]
mov dword [0x1c029318], eax
cmp eax, 2
jne 0x1c0203e3
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov ebx, dword [esp + 0x18]
push ecx
push edx
push ebx
call esi
pop ebp
pop edi
pop esi
pop ebx
ret
mov dword [0x1c029318], eax
cmp eax, 1
jne 0x1c02047f
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x1c0203ff
mov edi, dword [0x1c028840]
mov eax, dword [esp + 0x18]
push 0
mov ebx, dword [esp + 0x18]
push 0
push eax
push ebx
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
mov ebp, eax
test ebp, ebp
jne 0x1c020420
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
lea eax, [ebp*2]
push eax
call fcn.1c01d0c0
add esp, 4
mov esi, eax
test esi, esi
jne 0x1c02043d
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x18]
push ebp
push esi
push eax
push ebx
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x1c020474
mov eax, dword [esp + 0x20]
push 0
push 0
test eax, eax
jne 0x1c020484
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push edi
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x1c02049f
push esi
call fcn.1c01c8f0
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push eax
mov eax, dword [esp + 0x28]
push eax
push 0xffffffffffffffff
push esi
push 0x220
push edi
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x1c020474
push esi
call fcn.1c01c8f0
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x10002580
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x100025d8
cmp byte [esi + ebx - 1], 0xa
je 0x100025ac
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10004118], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x583a6a
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push 0x41e804
push ecx
call fcn.00585bf6
mov esi, eax
mov dword [esp + 0x20], esi
pop ecx
pop ecx
test esi, esi
je 0x583c0d
push 2
push 0
push esi
call fcn.005863d1
add esp, 0xc
test eax, eax
jne 0x583c0d
push esi
call fcn.005862d6
mov ebx, eax
pop ecx
test ebx, ebx
jle 0x583c0d
lea ecx, [ebx + 1]
push edi
push ecx
call fcn.0058512a
mov edi, eax
pop ecx
test edi, edi
jne 0x583ac6
push 0xa
jmp 0x583aea
push 0
push 0
push esi
call fcn.005863d1
add esp, 0xc
test eax, eax
jne 0x583ae8
push esi
push ebx
push 1
push edi
call fcn.00585e9a
add esp, 0x10
cmp eax, ebx
je 0x583af0
push 6
pop ebp
jmp 0x583c03
lea edx, [esp + 0x18]
mov byte [edi + ebx], 0
mov ecx, 0x41e81c
mov dword [esp + 0x18], edi
mov byte [esp + 0x13], 0
xor ebp, ebp
call fcn.005839b6
test eax, eax
je 0x583bfb
mov esi, dword [esp + 0x28]
mov cl, byte [eax]
cmp cl, 0x23
je 0x583be1
cmp cl, 0x3b
je 0x583be1
mov edx, eax
mov ecx, 0x41e820
call fcn.0058398e
mov ebx, eax
mov dword [esp + 0x14], ebx
mov al, byte [ebx]
test al, al
je 0x583be1
cmp al, 0x5b
jne 0x583b96
inc ebx
lea edx, [esp + 0x14]
mov ecx, 0x41e818
mov dword [esp + 0x14], ebx
call fcn.005839b6
test eax, eax
je 0x583b8f
lea edx, [esp + 0x14]
mov ecx, 0x41e820
call fcn.005839b6
test eax, eax
jne 0x583b8f
push 8
push 0x41e80c
push ebx
call fcn.0058fcef
add esp, 0xc
test eax, eax
sete byte [esp + 0x13]
jmp 0x583be1
mov byte [esp + 0x13], 0
jmp 0x583be1
cmp byte [esp + 0x13], 0
je 0x583be1
lea edx, [esp + 0x14]
mov ecx, 0x41e814
call fcn.005839b6
test eax, eax
je 0x583be1
mov edx, ebx
call fcn.00583a10
test eax, eax
js 0x583be1
cmp eax, 1
jae 0x583be1
imul ebx, eax, 0x258
push 0x257
push dword [esp + 0x18]
add ebx, esi
push ebx
call fcn.005851a1
add esp, 0xc
mov byte [ebx + 0x257], 0
inc ebp
lea edx, [esp + 0x18]
mov ecx, 0x41e81c
call fcn.005839b6
test eax, eax
jne 0x583b19
mov esi, dword [esp + 0x1c]
dec ebp
neg ebp
sbb ebp, ebp
and ebp, 5
push edi
call fcn.005850ff
pop ecx
pop edi
jmp 0x583c10
push 6
pop ebp
test esi, esi
je 0x583c1b
push esi
call fcn.005864c0
pop ecx
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x10
ret