joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d9e0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x45d9fe
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x45d9f3
pop esi
ret

Function at 0x45da00
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x45da6a
push esi
lea edi, [eax + 0x400]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x45da3a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x45da86
push ecx
push esi
call fcn.0045e910
add esp, 8
mov ebx, eax
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x45daf0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x45db82
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x45db74
mov ebp, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x45db6c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x45db35
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0xae826d
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00ae826d
ret
Function at 0x40403e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp + 0xc]
push esi
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x404097
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x404192
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0xc]
push ebx
push ebx
push dword [ebp + 8]
push 0x42b450
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
mov dword [ebp - 4], eax
ja 0x40427c
lea eax, [ebp - 0x20c]
mov edi, 0x80000000
push eax
push str..htm
push edi
call fcn.0040403e
add esp, 0xc
test eax, eax
jne 0x40427c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x20c]
push str._shellopencommand
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.0040403e
add esp, 0xc
test eax, eax
jne 0x40427c
lea eax, [ebp - 0x20c]
push str.__1_
push eax
call fcn.0040a2a0
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
jne 0x404259
lea eax, [ebp - 0x20c]
push 0x42b47c
push eax
call fcn.0040a2a0
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
jne 0x404259
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [ebp + eax - 0x20d]
jmp 0x40425b
mov byte [edi], bl
push 0x42b480
push edi
call esi
push dword [ebp + 8]
push edi
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40879a
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
cmp byte [ebp + 0xc], 0
push ebx
push esi
push edi
jne 0x40886c
push 0x24
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x94]
mov dword [ebp - 0x98], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push dword [0x42faac]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0x88]
dec eax
je 0x408808
dec eax
jne 0x4088bb
mov esi, 0x4082bd
mov eax, 0x408642
jmp 0x408812
mov esi, 0x408197
mov eax, 0x40863e
call eax
push 0x100
push 0x430468
call esi
pop ecx
cmp eax, ebx
pop ecx
mov dword [0x445870], eax
jbe 0x40886c
mov esi, 0x430478
mov eax, dword [ebp - 4]
cmp eax, dword [esi - 0x10]
je 0x40885d
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
call fcn.0040a410
pop ecx
push eax
push dword [ebp + 8]
call fcn.0040a660
add esp, 0xc
test eax, eax
je 0x4088c2
inc ebx
add esi, 0x154
cmp ebx, dword [0x445870]
jb 0x408830
cmp byte [ebp + 0xc], 1
jne 0x4088bb
xor eax, eax
push 0x44586c
push str.program_manager
push eax
mov dword [0x445874], eax
mov dword [0x44586c], eax
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp + 8]
mov ecx, 0x445868
call fcn.0041ae43
push dword [0x42faac]
push 0x4088d0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [0x445874]
jmp 0x4088bd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
imul ebx, ebx, 0x154
mov eax, dword [ebx + 0x430468]
jmp 0x4088bd

Function at 0x40a590
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40a5a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40a5a9
xor eax, eax
test eax, eax
je 0x40a5ba
push eax
call fcn.0040be80
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x40a860
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427558
push 0x40fa18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x447728], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x447724], ecx
shl ecx, 8
add ecx, edx
mov dword [0x447720], ecx
shr eax, 0x10
mov dword [0x44771c], eax
call fcn.0040c920
test eax, eax
jne 0x40a8ca
push 0x1c
call fcn.0040aa10
add esp, 4
call fcn.0040f870
test eax, eax
jne 0x40a8dd
push 0x10
call fcn.0040aa10
add esp, 4
mov dword [ebp - 4], 0
call fcn.0040f660
call fcn.0040c340
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x448d18], eax
call fcn.0040f500
mov dword [0x44770c], eax
test eax, eax
je 0x40a910
mov eax, dword [0x448d18]
test eax, eax
jne 0x40a91a
push 0xffffffffffffffff
call fcn.0040bd40
add esp, 4
call fcn.0040f250
call fcn.0040f160
call fcn.0040bd10
mov esi, dword [0x448d18]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x40a9f9
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40a961
test al, al
je 0x40a961
and eax, 0xff
push eax
call fcn.0040f100
add esp, 4
test eax, eax
je 0x40a93b
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40a93b
cmp byte [esi], 0x22
jne 0x40a96a
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x40a97a
cmp al, 0x20
ja 0x40a97a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40a96a
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40a99b
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x40a9a0
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.0040bd40
jmp 0x40a9de
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40a96a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40a9f9

Function at 0x40bb50
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 0x74
push 1
xor edi, edi
call fcn.00410d20
mov esi, eax
add esp, 8
test esi, esi
je 0x40bbb0
push esi
call fcn.0040f8d0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x10]
mov dword [esi + 0x4c], ecx
mov ecx, dword [esp + 0x14]
push eax
push esi
push 0x40bbd0
push ecx
push edx
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x40bbc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.004099b0
add esp, 4
test edi, edi
je 0x40bbc6
push edi
call fcn.0040be80
add esp, 4
xor eax, eax
pop edi
pop esi
ret
Function at 0x40bd80
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.0040be40
mov eax, dword [0x447758]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x40bda4
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x447754], 1
mov byte [0x447750], bl
jne 0x40bdfe
mov ecx, dword [0x448d14]
test ecx, ecx
je 0x40bdec
mov esi, dword [0x448d10]
sub esi, 4
cmp esi, ecx
jb 0x40bdec
mov eax, dword [esi]
test eax, eax
je 0x40bde5
call eax
mov ecx, dword [0x448d14]
sub esi, 4
cmp esi, ecx
jae 0x40bdd7
push 0x42b098
push 0x42b090
call fcn.0040be60
add esp, 8
push 0x42b0a4
push 0x42b09c
call fcn.0040be60
add esp, 8
test ebx, ebx
je 0x40be1d
call fcn.0040be50
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x447758], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40f500
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x447a80]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x40f542
call edi
mov esi, eax
test esi, esi
je 0x40f52c
mov eax, 1
jmp 0x40f53d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40f64f
mov eax, 2
mov dword [0x447a80], eax
cmp eax, 1
jne 0x40f5e2
test esi, esi
jne 0x40f55b
call edi
mov esi, eax
test esi, esi
je 0x40f64f
cmp word [esi], 0
mov eax, esi
je 0x40f575
add eax, 2
cmp word [eax], 0
jne 0x40f563
add eax, 2
cmp word [eax], 0
jne 0x40f563
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x40f5d4
push edi
call fcn.004098e0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40f5d4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x40f5c6
push ebx
call fcn.004099b0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40f64f
test ebx, ebx
jne 0x40f5f3
call ebp
mov ebx, eax
test ebx, ebx
je 0x40f64f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40f60b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40f5fb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40f5fb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004098e0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40f62d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x40f870
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.0040c960
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x42eb14], eax
je 0x40f8c8
push 0x74
push 1
call fcn.00410d20
mov esi, eax
add esp, 8
test esi, esi
je 0x40f8c8
mov eax, dword [0x42eb14]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40f8c8
push esi
call fcn.0040f8d0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

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

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x42eb14]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x40f95e
push 0x74
push 1
call fcn.00410d20
mov esi, eax
add esp, 8
test esi, esi
je 0x40f954
mov ecx, dword [0x42eb14]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40f954
push esi
call fcn.0040f8d0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.0040aa10
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret

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

Disassembly:
mov eax, dword [0x42eb14]
cmp eax, 0xffffffff
je 0x40fa0c
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x40f994
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x40f9fd
mov eax, dword [esi + 0x24]
test eax, eax
je 0x40f9a4
push eax
call fcn.004099b0
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x40f9b4
push eax
call fcn.004099b0
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x40f9c4
push eax
call fcn.004099b0
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x40f9d4
push eax
call fcn.004099b0
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x40f9e4
push eax
call fcn.004099b0
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x40f9f4
push eax
call fcn.004099b0
add esp, 4
push esi
call fcn.004099b0
add esp, 4
mov eax, dword [0x42eb14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret
Function at 0x40fb30
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x42eb18
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x40fb54
add eax, 8
inc ebp
cmp eax, 0x42eba8
jb 0x40fb45
cmp ecx, dword [ebp*8 + 0x42eb18]
jne 0x40fcfb
mov eax, dword [0x447714]
cmp eax, 1
je 0x40fcbd
test eax, eax
jne 0x40fb80
cmp dword [0x42c004], 1
je 0x40fcbd
cmp ecx, 0xfc
je 0x40fcfb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40fbbb
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x40fc04
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x427a98
add ebx, ecx
push ebx
call fcn.00412a10
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x427a78
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x42eb1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00414170
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x447be0]
test eax, eax
je 0x40fcce
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x40fcd8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x42eb1c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor 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 edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x413bc0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x413bec
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x447be0]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x413c27
push 2
push ebp
push ecx
call fcn.00413ac0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x413d89
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x413cd1
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x413c82
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x413c6f
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x413c52
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x413d7a
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x413ccd
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x413c4e
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x413d69
mov eax, dword [esp + 0x18]
test eax, eax
je 0x413d25
cmp eax, 5
jne 0x413d0e
call fcn.0040bf00
mov dword [eax], 9
call fcn.0040bf10
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.0040be80
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x413d45
cmp byte [ebp], 0x1a
jne 0x413d45
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.0040bf00
mov dword [eax], 0x1c
call fcn.0040bf10
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x413ccd
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x413dba
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x413cd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x413cd1
Function at 0x415040
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x447bc8]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x415088
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x415068
mov eax, 2
jmp 0x415083
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x415168
mov eax, 1
mov dword [0x447bc8], eax
cmp eax, 2
jne 0x4150a8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x41517a
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4150c3
mov ecx, dword [0x447960]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x4150e2
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.004098e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4150f9
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41515f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x415140
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x41515f
push esi
call fcn.004099b0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x41516f
push esi
call fcn.004099b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.004099b0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret