joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b30
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov al, byte [0x45d014]
sub esp, 0x17c
test al, al
push ebx
push ebp
push esi
push edi
mov ebp, ecx
jne 0x403b57
mov eax, 0xfffffff6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x17c
ret 8
mov eax, dword [0x45b4b0]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edx, dword [0x45b4b0]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetCommTimeouts]
mov ecx, dword [0x45b4b0]
mov ebx, dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
lea eax, [esp + 0x14]
mov edi, 1
push eax
push ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call ebx
mov eax, dword [0x45b4b0]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x10]
push 0
push edx
push edi
push 0x45b4b8
push eax
mov dword [esp + 0x24], edi
call esi
test eax, eax
je 0x403bdf
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x403bdf
mov edx, dword [0x45b4b0]
lea ecx, [esp + 0x10]
push 0
push ecx
push edi
push 0x45b4b8
push edx
call esi
test eax, eax
jne 0x403bbd
mov ecx, dword [0x45b4b0]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0x14
mov dword [esp + 0x24], 0x190
call ebx
mov ebx, dword [esp + 0x190]
mov eax, dword [0x45b4b0]
lea edx, [esp + 0x10]
push 0
push edx
push ebx
push 0x45b380
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403cfb
cmp ebx, dword [esp + 0x10]
jne 0x403cfb
mov edi, dword [esp + 0x194]
mov edx, dword [0x45b4b0]
lea ecx, [esp + 0x10]
push 0
push ecx
push edi
push 0x45b4b8
push edx
call esi
test eax, eax
je 0x403d29
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push edi
push ebx
push str.bytes_written_d_expected_bytes_d_and_read_bytes_d_n
push ecx
call fcn.00411b70
mov eax, dword [esp + 0x24]
add esp, 0x14
cmp eax, edi
jae 0x403c8f
mov eax, 0xfffffff7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x17c
ret 8
lea edx, [edi - 1]
mov ecx, ebp
push edx
push 0x45b4b8
call fcn.00404340
cmp al, byte [edi + 0x45b4b7]
je 0x403cb9
mov eax, 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x17c
ret 8
mov al, byte [0x45b380]
mov cl, byte [0x45b4b8]
cmp al, cl
je 0x403cda
mov eax, 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x17c
ret 8
mov al, byte [0x45b381]
mov bl, byte [0x45b4b9]
sub al, bl
neg al
sbb eax, eax
and al, 0xfd
inc eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x17c
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x90]
push str.OnReceive_error:__d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x8c]
push 0
push 0
push edx
call fcn.0043163c
pop edi
pop esi
pop ebp
mov eax, 0xfffffff8
pop ebx
add esp, 0x17c
ret 8
Function at 0x412790
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4127a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4127a9
xor eax, eax
test eax, eax
je 0x4127ba
push eax
call fcn.00414b60
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x412980
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ce78
push 0x419ad8
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 [0x45ef54], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x45ef50], ecx
shl ecx, 8
add ecx, edx
mov dword [0x45ef4c], ecx
shr eax, 0x10
mov dword [0x45ef48], eax
call fcn.00418850
test eax, eax
jne 0x4129ea
push 0x1c
call fcn.00412b30
add esp, 4
call fcn.00415be0
test eax, eax
jne 0x4129fd
push 0x10
call fcn.00412b30
add esp, 4
mov dword [ebp - 4], 0
call fcn.004182e0
call fcn.004147b0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x46054c], eax
call fcn.00419970
mov dword [0x45ef38], eax
test eax, eax
je 0x412a30
mov eax, dword [0x46054c]
test eax, eax
jne 0x412a3a
push 0xffffffffffffffff
call fcn.00413730
add esp, 4
call fcn.004196c0
call fcn.004195d0
call fcn.00413700
mov esi, dword [0x46054c]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x412b19
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x412a81
test al, al
je 0x412a81
and eax, 0xff
push eax
call fcn.00419570
add esp, 4
test eax, eax
je 0x412a5b
inc esi
mov dword [ebp - 0x64], esi
jmp 0x412a5b
cmp byte [esi], 0x22
jne 0x412a8a
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x412a9a
cmp al, 0x20
ja 0x412a9a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x412a8a
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x412abb
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x412ac0
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.00413730
jmp 0x412afe
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 0x412a8a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x412b19
Function at 0x413770
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.00413830
mov eax, dword [0x45ef84]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x413794
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 [0x45ef80], 1
mov byte [0x45ef7c], bl
jne 0x4137ee
mov ecx, dword [0x460548]
test ecx, ecx
je 0x4137dc
mov esi, dword [0x460544]
sub esi, 4
cmp esi, ecx
jb 0x4137dc
mov eax, dword [esi]
test eax, eax
je 0x4137d5
call eax
mov ecx, dword [0x460548]
sub esi, 4
cmp esi, ecx
jae 0x4137c7
push 0x4550a0
push 0x455098
call fcn.00413850
add esp, 8
push 0x4550ac
push 0x4550a4
call fcn.00413850
add esp, 8
test ebx, ebx
je 0x41380d
call fcn.00413840
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x45ef84], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x413870
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 0x74
push 1
xor edi, edi
call fcn.00413fe0
mov esi, eax
add esp, 8
test esi, esi
je 0x4138d0
push esi
call fcn.00415c40
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 0x4138f0
push ecx
push edx
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4138e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.004126c0
add esp, 4
test edi, edi
je 0x4138e6
push edi
call fcn.00414b60
add esp, 4
xor eax, eax
pop edi
pop esi
ret

Function at 0x415be0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.004172a0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x457c10], eax
je 0x415c38
push 0x74
push 1
call fcn.00413fe0
mov esi, eax
add esp, 8
test esi, esi
je 0x415c38
mov eax, dword [0x457c10]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x415c38
push esi
call fcn.00415c40
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 0x415c60
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 [0x457c10]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x415cce
push 0x74
push 1
call fcn.00413fe0
mov esi, eax
add esp, 8
test esi, esi
je 0x415cc4
mov ecx, dword [0x457c10]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x415cc4
push esi
call fcn.00415c40
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.00412b30
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret

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

Disassembly:
mov eax, dword [0x457c10]
cmp eax, 0xffffffff
je 0x415d7c
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x415d04
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x415d6d
mov eax, dword [esi + 0x24]
test eax, eax
je 0x415d14
push eax
call fcn.004126c0
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x415d24
push eax
call fcn.004126c0
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x415d34
push eax
call fcn.004126c0
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x415d44
push eax
call fcn.004126c0
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x415d54
push eax
call fcn.004126c0
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x415d64
push eax
call fcn.004126c0
add esp, 4
push esi
call fcn.004126c0
add esp, 4
mov eax, dword [0x457c10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret
Function at 0x419970
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x45f2a0]
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 0x4199b2
call edi
mov esi, eax
test esi, esi
je 0x41999c
mov eax, 1
jmp 0x4199ad
call ebp
mov ebx, eax
test ebx, ebx
je 0x419abf
mov eax, 2
mov dword [0x45f2a0], eax
cmp eax, 1
jne 0x419a52
test esi, esi
jne 0x4199cb
call edi
mov esi, eax
test esi, esi
je 0x419abf
cmp word [esi], 0
mov eax, esi
je 0x4199e5
add eax, 2
cmp word [eax], 0
jne 0x4199d3
add eax, 2
cmp word [eax], 0
jne 0x4199d3
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 0x419a44
push edi
call fcn.00412860
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x419a44
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 0x419a36
push ebx
call fcn.004126c0
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 0x419abf
test ebx, ebx
jne 0x419a63
call ebp
mov ebx, eax
test ebx, ebx
je 0x419abf
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x419a7b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x419a6b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x419a6b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00412860
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x419a9d
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 0x419bf0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x45a3d8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x419c14
add eax, 8
inc ebp
cmp eax, 0x45a468
jb 0x419c05
cmp ecx, dword [ebp*8 + 0x45a3d8]
jne 0x419dbb
mov eax, dword [0x45ef40]
cmp eax, 1
je 0x419d7d
test eax, eax
jne 0x419c40
cmp dword [0x4578cc], 1
je 0x419d7d
cmp ecx, 0xfc
je 0x419dbb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x419c7b
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 0x419cc4
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 0x44d47c
add ebx, ecx
push ebx
call fcn.00411c80
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, 0x44d45c
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 + 0x45a3dc]
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.0041e460
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x460440]
test eax, eax
je 0x419d8e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x419d98
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x45a3dc]
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 0x41c290
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 0x41c2bc
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 + 0x460440]
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 0x41c2f7
push 2
push ebp
push ecx
call fcn.00417d00
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x41c459
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x41c3a1
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x41c352
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x41c33f
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 0x41c322
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 0x41c44a
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x41c39d
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x41c31e
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x41c439
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41c3f5
cmp eax, 5
jne 0x41c3de
call fcn.00414be0
mov dword [eax], 9
call fcn.00414bf0
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00414b60
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 0x41c415
cmp byte [ebp], 0x1a
jne 0x41c415
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.00414be0
mov dword [eax], 0x1c
call fcn.00414bf0
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 0x41c39d
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 0x41c48a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x41c3a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x41c3a1
Function at 0x41f370
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.004139e0
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
push esi
push edi
xor ebp, ebp
push 1
push ebp
push ebx
call fcn.00417d00
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x41f4b0
push 2
push ebp
push ebx
call fcn.00417d00
add esp, 0xc
cmp eax, 0xffffffff
je 0x41f4b0
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x41f451
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.0041f9a0
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x41f3f6
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.0041c290
add esp, 0xc
cmp eax, 0xffffffff
je 0x41f412
sub esi, eax
test esi, esi
jle 0x41f42a
jmp 0x41f3e7
call fcn.00414bf0
cmp dword [eax], 5
jne 0x41f427
call fcn.00414be0
mov dword [eax], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.0041f9a0
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.00417d00
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x41f497
push 0
push ecx
push ebx
call fcn.00417d00
add esp, 0xc
push ebx
call fcn.004181f0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x41f497
call fcn.00414be0
mov dword [eax], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00414bf0
mov dword [eax], esi
push 0
push edi
push ebx
call fcn.00417d00
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x41f7a0
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x45f3f8]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x41f7e8
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x41f7c8
mov eax, 2
jmp 0x41f7e3
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41f8c8
mov eax, 1
mov dword [0x45f3f8], eax
cmp eax, 2
jne 0x41f808
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 0x41f8da
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x41f823
mov ecx, dword [0x45f158]
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 0x41f842
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.00412860
mov esi, eax
add esp, 4
test esi, esi
jne 0x41f859
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 0x41f8bf
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x41f8a0
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 0x41f8bf
push esi
call fcn.004126c0
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 0x41f8cf
push esi
call fcn.004126c0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.004126c0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x41fd10
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x41fece
push 0x3d
push edi
call fcn.00413140
mov esi, eax
add esp, 8
test esi, esi
je 0x41fece
cmp edi, esi
je 0x41fece
mov dl, byte [esi + 1]
mov ecx, dword [0x45ef68]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x45ef64]
cmp eax, ecx
jne 0x41fd67
push eax
call fcn.0041ffa0
add esp, 4
mov dword [0x45ef64], eax
test eax, eax
jne 0x41fde2
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41fd8e
mov eax, dword [0x45ef6c]
test eax, eax
je 0x41fd8e
call fcn.0041f920
test eax, eax
je 0x41fddd
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x41fd9a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.00412860
add esp, 4
mov dword [0x45ef64], eax
test eax, eax
je 0x41fece
mov dword [eax], 0
mov eax, dword [0x45ef6c]
test eax, eax
jne 0x41fddd
push 4
call fcn.00412860
add esp, 4
mov dword [0x45ef6c], eax
test eax, eax
je 0x41fece
mov dword [eax], 0
mov eax, dword [0x45ef64]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.0041ff20
mov esi, eax
add esp, 8
test esi, esi
jl 0x41fedf
cmp dword [ebx], 0
je 0x41fedf
test ebp, ebp
je 0x41fed7
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.004126c0
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x41fe39
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x41fe28
lea eax, [esi*4]
push eax
push ebx
call fcn.004149b0
add esp, 8
test eax, eax
je 0x41fe53
mov dword [0x45ef64], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41fec6
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.00412860
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41fec6
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.004126c0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x41fe57
test ebp, ebp
jne 0x41fec6
test esi, esi
jge 0x41fee9
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.004149b0
add esp, 8
test eax, eax
je 0x41fece
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x45ef64], eax
jmp 0x41fe57