joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4108e0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x4108f6
mov eax, 1
pop esi
add esp, 0xc
ret
push esi
call fcn.004128e0
add esp, 4
test eax, eax
jne 0x41090d
mov eax, 1
pop esi
add esp, 0xc
ret
mov eax, dword [esi]
push ebx
push ebp
cmp eax, 1
push edi
mov dword [esp + 0x10], 1
jne 0x4109bd
mov esi, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push esi
mov ebx, eax
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x410a25
cmp edi, ebx
jae 0x410a25
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], 0
test eax, eax
je 0x410a25
mov eax, dword [esp + 0x30]
test eax, eax
je 0x410a25
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x2c]
push 1
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push edi
push esi
mov ebx, eax
call ebp
test ebx, ebx
je 0x410a25
mov al, byte [esp + 0x24]
test al, al
je 0x410a1d
cmp al, 0x1a
jne 0x410a25
pop edi
mov dword [esp + 0xc], 1
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
pop esi
add esp, 0xc
ret
cmp eax, 2
jne 0x410a25
mov esi, dword [esi + 4]
mov ecx, esi
call fcn.004128d0
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov edi, eax
cmp edi, ebx
jae 0x410a25
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], 0
test eax, eax
je 0x410a25
mov eax, dword [esp + 0x30]
test eax, eax
je 0x410a25
mov edx, dword [esi]
lea eax, [esp + 0x24]
push 1
push eax
mov ecx, esi
call dword [edx + 0x20]
mov edx, dword [esi]
push 0
push edi
mov ecx, esi
mov ebp, eax
call dword [edx + 0x18]
test ebp, ebp
je 0x410a25
mov al, byte [esp + 0x24]
test al, al
je 0x410a1d
cmp al, 0x1a
jne 0x410a25
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
ret
Function at 0x410a40
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
push edi
jne 0x410a59
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push esi
call fcn.004128e0
add esp, 4
test eax, eax
jne 0x410a6e
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esi]
xor edi, edi
cmp eax, 1
jne 0x410bae
mov edi, dword [esi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
push 0
push 0
push edi
mov dword [esp + 0x24], edi
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x410aac
push 2
push 0
push 0
push edi
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push 0x1000
xor ebp, ebp
call sub.MSVCRT.dll_malloc
add esp, 4
mov ebx, eax
lea eax, [esp + 0x20]
mov esi, ebx
push ebp
push eax
push 0x1000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410b8e
mov edx, dword [esp + 0x20]
xor ecx, ecx
test edx, edx
jbe 0x410af4
mov al, byte [esi]
cmp al, 0xd
je 0x410b36
cmp al, 0xa
je 0x410b36
inc ecx
inc esi
cmp ecx, edx
jb 0x410ae4
add ebp, edx
cmp edx, 0x1000
jb 0x410b38
push 0x1000
push ebx
call sub.MSVCRT.dll_realloc
mov ebx, eax
mov eax, dword [esp + 0x28]
add esp, 8
cmp eax, 0x1000
jne 0x410b38
lea ecx, [esp + 0x20]
push 0
lea esi, [ebx + ebp]
push ecx
push 0x1000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410b8e
jmp 0x410ada
add ebp, ecx
lea edx, [ebp + 1]
push edx
call fcn.0040e2b0
mov ecx, dword [esp + 0x14]
mov edi, eax
mov al, byte [esi]
add esp, 4
add ecx, ebp
cmp al, 0xd
je 0x410b56
cmp al, 0xa
jne 0x410b5f
mov al, byte [esi + 1]
inc ecx
cmp al, 0xa
jne 0x410b5f
inc ecx
mov eax, dword [esp + 0x14]
push 0
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
push ebx
push edi
call sub.MSVCRT.dll_strncpy
push ebx
mov byte [edi + ebp], 0
call sub.MSVCRT.dll_free
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call sub.MSVCRT.dll_free
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp eax, 2
jne 0x410c3c
mov esi, dword [esi + 4]
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
mov dword [esp + 0x18], eax
mov eax, dword [esi]
push edx
push 0xffffffffffffffff
push 0
mov ecx, esi
call dword [eax + 0x30]
mov ebp, dword [esp + 0x20]
xor ebx, ebx
test eax, eax
jbe 0x410bf7
mov cl, byte [ebp]
cmp cl, 0xd
je 0x410bf7
cmp cl, 0xa
je 0x410bf7
inc ebx
inc ebp
cmp ebx, eax
jb 0x410be4
lea eax, [ebx + 1]
push eax
call fcn.0040e2b0
mov ecx, dword [esp + 0x18]
mov edi, eax
mov al, byte [ebp]
add esp, 4
add ecx, ebx
cmp al, 0xd
je 0x410c16
cmp al, 0xa
jne 0x410c1f
mov al, byte [ebp + 1]
inc ecx
cmp al, 0xa
jne 0x410c1f
inc ecx
mov edx, dword [esi]
push 0
push ecx
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [esp + 0x20]
push ebx
push eax
push edi
call sub.MSVCRT.dll_strncpy
add esp, 0xc
mov byte [ebx + edi], 0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x411020
Capabilities:
Query environment variable

Disassembly:
push ebp
push esi
push edi
push 0x104
call fcn.0040e2b0
mov ebp, dword [esp + 0x18]
add esp, 4
mov edi, eax
push 0x104
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, 0x104
jbe 0x411077
push ebx
push edi
call fcn.0040e340
push esi
mov ebx, esi
call fcn.0040e2b0
add esp, 8
mov edi, eax
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
ja 0x41104e
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x5e4feb
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0x1b
jne 0x5e500f
cmp dword [ebp + 0xc], 0
jne 0x5e500f
mov eax, 1
jmp 0x5e5011
xor eax, eax
test eax, eax
je 0x5e50aa
cmp dword [0xd8], 0
jne 0x5e5037
cmp dword [0xcc], 0
jne 0x5e5037
xor eax, eax
jmp 0x5e503c
mov eax, 1
test eax, eax
je 0x5e507e
cmp dword [0xcc], 0
je 0x5e505b
mov dword [0xdc], 1
mov dword [0xd8], 1
push 0
push 0
push 0
call fcn.005e179f
jmp 0x5e50a5
push 0
push 0
push 0
push 0x10001
push 0x6014ece
push 0x52014d66
push 2
mov ebx, 0x360
call fcn.005e9185
add esp, 0x1c
jmp 0x5e51cf
cmp dword [ebp + 8], 0x24
jle 0x5e50d2
cmp dword [ebp + 8], 0x29
jge 0x5e50d2
cmp dword [0xd8], 0
je 0x5e50d2
mov eax, 1
jmp 0x5e50d4
xor eax, eax
test eax, eax
je 0x5e51cf
cmp dword [ebp + 8], 0x25
jne 0x5e510a
mov ebx, dword [0xd4]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
dec dword [ebx]
mov ebx, dword [0xd4]
add ebx, 8
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
dec dword [ebx]
jmp 0x5e5195
cmp dword [ebp + 8], 0x26
jne 0x5e513b
mov ebx, dword [0xd4]
add ebx, 4
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
dec dword [ebx]
mov ebx, dword [0xd4]
add ebx, 0xc
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
dec dword [ebx]
jmp 0x5e5195
cmp dword [ebp + 8], 0x27
jne 0x5e5169
mov ebx, dword [0xd4]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
inc dword [ebx]
mov ebx, dword [0xd4]
add ebx, 8
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
inc dword [ebx]
jmp 0x5e5195
cmp dword [ebp + 8], 0x28
jne 0x5e5195
mov ebx, dword [0xd4]
add ebx, 4
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
inc dword [ebx]
mov ebx, dword [0xd4]
add ebx, 0xc
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
inc dword [ebx]
push 0xd4
call fcn.005dcac0
push 0
mov ebx, 0x2dc
call fcn.005e9185
add esp, 4
mov dword [ebp - 4], eax
push 0
mov ebx, 0x2e0
call fcn.005e9185
add esp, 4
push eax
push dword [ebp - 4]
call fcn.005de89c
cmp dword [ebp + 8], 0x2e
jne 0x5e51ed
cmp dword [0xd8], 0
je 0x5e51ed
mov eax, 1
jmp 0x5e51ef
xor eax, eax
test eax, eax
je 0x5e520b
push 0
push 0x1b
call fcn.005e4feb
jmp 0x5e525c
cmp dword [ebp + 8], 0xd
jne 0x5e5229
cmp dword [0xd8], 0
je 0x5e5229
mov eax, 1
jmp 0x5e522b
xor eax, eax
test eax, eax
je 0x5e525c
mov ebx, dword [0xd4]
mov dword [ebp - 4], ebx
mov ebx, dword [0xd4]
add ebx, 4
mov dword [ebp - 8], ebx
push 0
mov ebx, dword [ebp - 8]
push dword [ebx]
mov ebx, dword [ebp - 4]
push dword [ebx]
call fcn.005e5264
xor ebx, ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x407860
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435580
push 0x40b8f8
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 [0x4402bc], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x4402b8], ecx
shl ecx, 8
add ecx, edx
mov dword [0x4402b4], ecx
shr eax, 0x10
mov dword [0x4402b0], eax
call fcn.0040b8b0
test eax, eax
jne 0x4078ca
push 0x1c
call fcn.00407a10
add esp, 4
call fcn.0040a520
test eax, eax
jne 0x4078dd
push 0x10
call fcn.00407a10
add esp, 4
mov dword [ebp - 4], 0
call fcn.0040b6a0
call fcn.004093d0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4418ac], eax
call fcn.0040b540
mov dword [0x4402a0], eax
test eax, eax
je 0x407910
mov eax, dword [0x4418ac]
test eax, eax
jne 0x40791a
push 0xffffffffffffffff
call fcn.00408730
add esp, 4
call fcn.0040b290
call fcn.0040b1a0
call fcn.00408700
mov esi, dword [0x4418ac]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x4079f9
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x407961
test al, al
je 0x407961
and eax, 0xff
push eax
call fcn.0040b140
add esp, 4
test eax, eax
je 0x40793b
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40793b
cmp byte [esi], 0x22
jne 0x40796a
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x40797a
cmp al, 0x20
ja 0x40797a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40796a
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40799b
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4079a0
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.00408730
jmp 0x4079de
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 0x40796a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4079f9

Function at 0x408770
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.00408830
mov eax, dword [0x4402ec]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x408794
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 [0x4402e8], 1
mov byte [0x4402e4], bl
jne 0x4087ee
mov ecx, dword [0x4418a8]
test ecx, ecx
je 0x4087dc
mov esi, dword [0x4418a4]
sub esi, 4
cmp esi, ecx
jb 0x4087dc
mov eax, dword [esi]
test eax, eax
je 0x4087d5
call eax
mov ecx, dword [0x4418a8]
sub esi, 4
cmp esi, ecx
jae 0x4087c7
push 0x43a0a0
push 0x43a098
call fcn.00408850
add esp, 8
push 0x43a0ac
push 0x43a0a4
call fcn.00408850
add esp, 8
test ebx, ebx
je 0x40880d
call fcn.00408840
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x4402ec], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40a520
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.0040bbf0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x43ada0], eax
je 0x40a578
push 0x74
push 1
call fcn.004082a0
mov esi, eax
add esp, 8
test esi, esi
je 0x40a578
mov eax, dword [0x43ada0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40a578
push esi
call fcn.0040a580
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 0x40a5a0
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 [0x43ada0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x40a60e
push 0x74
push 1
call fcn.004082a0
mov esi, eax
add esp, 8
test esi, esi
je 0x40a604
mov ecx, dword [0x43ada0]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40a604
push esi
call fcn.0040a580
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.00407a10
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x40b540
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x440560]
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 0x40b582
call edi
mov esi, eax
test esi, esi
je 0x40b56c
mov eax, 1
jmp 0x40b57d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40b68f
mov eax, 2
mov dword [0x440560], eax
cmp eax, 1
jne 0x40b622
test esi, esi
jne 0x40b59b
call edi
mov esi, eax
test esi, esi
je 0x40b68f
cmp word [esi], 0
mov eax, esi
je 0x40b5b5
add eax, 2
cmp word [eax], 0
jne 0x40b5a3
add eax, 2
cmp word [eax], 0
jne 0x40b5a3
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 0x40b614
push edi
call fcn.00407be0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40b614
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 0x40b606
push ebx
call fcn.00407cb0
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 0x40b68f
test ebx, ebx
jne 0x40b633
call ebp
mov ebx, eax
test ebx, ebx
je 0x40b68f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40b64b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40b63b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40b63b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00407be0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40b66d
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 0x40ba10
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x43ae70
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x40ba34
add eax, 8
inc ebp
cmp eax, 0x43af00
jb 0x40ba25
cmp ecx, dword [ebp*8 + 0x43ae70]
jne 0x40bbdb
mov eax, dword [0x4402a8]
cmp eax, 1
je 0x40bb9d
test eax, eax
jne 0x40ba60
cmp dword [0x43aa54], 1
je 0x40bb9d
cmp ecx, 0xfc
je 0x40bbdb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40ba9b
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 0x40bae4
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 0x435a94
add ebx, ecx
push ebx
call fcn.0040ef80
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, 0x435a74
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 + 0x43ae74]
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.0040eef0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x4417a0]
test eax, eax
je 0x40bbae
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x40bbb8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x43ae74]
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 0x410580
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 0x4105ac
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 + 0x4417a0]
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 0x4105e7
push 2
push ebp
push ecx
call fcn.00410480
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x410749
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x410691
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x410642
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x41062f
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 0x410612
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 0x41073a
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x41068d
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x41060e
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x410729
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4106e5
cmp eax, 5
jne 0x4106ce
call fcn.00408e40
mov dword [eax], 9
call fcn.00408e50
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00408dc0
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 0x410705
cmp byte [ebp], 0x1a
jne 0x410705
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.00408e40
mov dword [eax], 0x1c
call fcn.00408e50
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 0x41068d
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 0x41077a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x410691
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x410691
Function at 0x411f30
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x440748]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x411f78
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x411f58
mov eax, 2
jmp 0x411f73
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x412058
mov eax, 1
mov dword [0x440748], eax
cmp eax, 2
jne 0x411f98
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 0x41206a
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x411fb3
mov ecx, dword [0x4405f8]
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 0x411fd2
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.00407be0
mov esi, eax
add esp, 4
test esi, esi
jne 0x411fe9
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 0x41204f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x412030
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 0x41204f
push esi
call fcn.00407cb0
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 0x41205f
push esi
call fcn.00407cb0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00407cb0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret