joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b5e0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x420838
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x427550]
xor eax, esp
mov dword [esp + 0x1c], eax
xor eax, eax
push esi
mov esi, ecx
mov dword [esp + 0x1c], 0xf
mov dword [esp + 0x18], eax
mov byte [esp + 8], al
mov dword [esp + 0x2c], eax
lea eax, [esp + 4]
push eax
call fcn.00409770
test eax, eax
je 0x40b65f
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.004074e0
test eax, eax
je 0x40b65f
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.00408600
test eax, eax
je 0x40b65f
cmp dword [esp + 0x1c], 0x10
jb 0x40b6f3
mov eax, dword [esp + 8]
push eax
jmp 0x40b6eb
mov ecx, esi
call fcn.00408990
test eax, eax
je 0x40b698
mov ecx, esi
mov dword [esi + 0x234], 1
call fcn.0040a120
test eax, eax
je 0x40b6df
mov ecx, esi
call fcn.0040aaa0
test eax, eax
jne 0x40b6df
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, esi
call fcn.0040b310
jmp 0x40b6df
cmp dword [esi + 0xdc], 0x10
jb 0x40b6a9
mov eax, dword [esi + 0xc8]
jmp 0x40b6af
lea eax, [esi + 0xc8]
push eax
push 1
push str.NoRepair
push str.RELIVE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
mov ecx, esi
jne 0x40b6d5
mov edx, dword [esp + 0x34]
push edx
call fcn.0040b310
jmp 0x40b6df
mov eax, dword [esp + 0x34]
push eax
call fcn.0040b5a0
cmp dword [esp + 0x1c], 0x10
jb 0x40b6f3
mov ecx, dword [esp + 8]
push ecx
call fcn.00412c1d
add esp, 4
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x20]
pop esi
xor ecx, esp
mov eax, 1
call fcn.00413041
add esp, 0x2c
ret 4
Function at 0x40b770
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x427550]
xor eax, ebp
mov dword [esp + 0x110], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
xor eax, eax
test esi, esi
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, 1
stosb byte es:[edi], al
je 0x40b7d3
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
test eax, eax
jle 0x40b7d3
push esi
call edi
cmp eax, 0x104
jbe 0x40b7ea
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, ebp
call fcn.00413041
mov esp, ebp
pop ebp
ret
push 0x103
push esi
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp + 8]
test eax, eax
je 0x40b80d
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathSkipRootA]
mov esi, eax
push esi
call edi
test eax, eax
jne 0x40b83b
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, ebp
call fcn.00413041
mov esp, ebp
pop ebp
ret
push 0x5c
push esi
call fcn.0041366a
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
add esp, 8
test esi, esi
je 0x40b88c
mov ecx, dword [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
mov byte [esi], 0
call edi
and ebx, eax
jne 0x40b877
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40b877
mov ebx, 1
mov byte [esi], 0x5c
push 0x5c
inc esi
push esi
call fcn.0041366a
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b852
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
call edi
and ebx, eax
jne 0x40b8ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40b8ae
mov ebx, 1
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00413041
mov esp, ebp
pop ebp
ret
Function at 0x40dfd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x120
mov eax, dword [0x427550]
xor eax, ebp
mov dword [esp + 0x11c], eax
xor eax, eax
push esi
mov esi, ecx
mov byte [esi], al
mov ecx, dword [0x421568]
mov edx, dword [0x42156c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov eax, dword [str.SOFTWARERising_]
mov dword [esp + 0x14], eax
mov eax, dword [0x421570]
mov dword [esp + 0x18], ecx
mov cl, byte [0x421574]
push edi
mov dword [esp + 0x24], eax
mov byte [esp + 0x28], cl
mov dword [esp + 0x20], edx
xor eax, eax
mov ecx, 0x3d
lea edi, [esp + 0x29]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edx
call edi
mov ecx, 0x105
sub ecx, eax
push ecx
push ebx
lea edx, [esp + 0x20]
push edx
call edi
lea eax, [esp + eax + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + 0xc]
push ecx
push 1
push 0
lea edx, [esp + 0x24]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e10c
mov edx, dword [esp + 0xc]
lea eax, [ebp + 8]
push eax
push esi
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.installpath
push edx
mov dword [esp + 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e0e7
push 0x5c
push esi
call fcn.004136d1
add esp, 8
test eax, eax
je 0x40e0c1
mov cl, byte [eax + 1]
test cl, cl
jne 0x40e0c1
mov byte [eax], 0
mov eax, dword [esp + 0xc]
push eax
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, ebp
call fcn.00413041
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, ebp
call fcn.00413041
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x10]
pop edi
xor ecx, ebp
pop esi
call fcn.00413041
mov esp, ebp
pop ebp
ret
Function at 0x40e900
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x42096b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x29c
mov eax, dword [0x427550]
xor eax, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1388
mov dword [esp + 0x2a0], eax
call esi
push str.GlobalC1914CD4_382F_4b2c_8365_98F10D9A4A22
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x4282d8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, dword [0x4282d8]
je 0x40e9af
test eax, eax
je 0x40e9af
push 0xea60
call esi
push 1
call fcn.0040e510
add esp, 4
lea ecx, [esp + 4]
call fcn.00407e10
lea ecx, [esp + 4]
mov dword [esp + 0x2a8], 0
call fcn.00409760
push eax
lea ecx, [esp + 8]
call fcn.0040b5e0
lea ecx, [esp + 4]
mov dword [esp + 0x2a8], 0xffffffff
call fcn.00406890
jmp 0x40e9b6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x2a0]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x29c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00413041
add esp, 0x2a8
ret
Function at 0x413727
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x413747
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041a14e
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x413768
test byte [esp + 8], 2
je 0x413768
mov dword [0x428434], 0xd
mov dword [0x428438], 5
jmp 0x413743
xor eax, eax
ret

Function at 0x414a3d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004149d0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x414ad8
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x428440]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x414ad8
cmp eax, 1
je 0x414af9
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x414ad8
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x414aa5
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x414ad4
xor eax, eax
inc eax
jmp 0x414b18
cmp edi, eax
jae 0x414adc
xor eax, eax
jmp 0x414b18
cmp eax, esi
jae 0x414ae3
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x428440]
jmp 0x414afc
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414e39
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x422440
call fcn.00416db0
mov edi, 0x94
mov eax, edi
call fcn.004149d0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x428440], ecx
mov eax, dword [esi + 4]
mov dword [0x42844c], eax
mov edx, dword [esi + 8]
mov dword [0x428450], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x428444], esi
cmp ecx, 2
je 0x414e99
or esi, 0x8000
mov dword [0x428444], esi
shl eax, 8
add eax, edx
mov dword [0x428448], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x414ed2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x414ed2
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x414eea
cmp eax, 0x20b
je 0x414ed7
mov dword [ebp - 0x1c], edi
jmp 0x414efe
cmp dword [ecx + 0x84], 0xe
jbe 0x414ed2
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x414ef8
cmp dword [ecx + 0x74], 0xe
jbe 0x414ed2
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.00416f94
pop ecx
test eax, eax
jne 0x414f2a
cmp dword [0x42842c], 2
je 0x414f17
call fcn.0041b184
push 0x1c
call fcn.0041b00c
push 0xff
call fcn.0041598d
pop ecx
pop ecx
call fcn.0041b8d0
mov dword [ebp - 4], edi
call fcn.0041b725
test eax, eax
jge 0x414f43
push 0x1b
call fcn.00414e14
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x429b98], eax
call fcn.0041b603
mov dword [0x428424], eax
call fcn.0041b561
test eax, eax
jge 0x414f69
push 8
call fcn.00414e14
pop ecx
call fcn.0041b32e
test eax, eax
jge 0x414f7a
push 9
call fcn.00414e14
pop ecx
push 1
call fcn.004159bd
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x414f90
push eax
call fcn.00414e14
pop ecx
mov eax, dword [0x428460]
mov dword [0x428464], eax
push eax
push dword [0x428458]
push dword [0x428454]
call fcn.0040e900
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x414fbf
push esi
call fcn.00415ae8
call fcn.00415b0a
jmp 0x414ff1
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.00416deb
ret
Function at 0x415a27
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x428480], esi
push edi
jne 0x415a47
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x42847c], esi
mov byte [0x428478], al
jne 0x415aad
mov ecx, dword [0x429b8c]
test ecx, ecx
je 0x415a8e
mov eax, dword [0x429b88]
sub eax, 4
cmp eax, ecx
jmp 0x415a87
mov eax, dword [eax]
test eax, eax
je 0x415a79
call eax
mov eax, dword [0x429b88]
sub eax, 4
cmp eax, dword [0x429b8c]
mov dword [0x429b88], eax
jae 0x415a71
mov eax, 0x427040
mov esi, 0x427048
cmp eax, esi
mov edi, eax
jae 0x415aad
mov eax, dword [edi]
test eax, eax
je 0x415aa6
call eax
add edi, 4
cmp edi, esi
jb 0x415a9e
mov eax, 0x42704c
mov esi, 0x427054
cmp eax, esi
mov edi, eax
jae 0x415acc
mov eax, dword [edi]
test eax, eax
je 0x415ac5
call eax
add edi, 4
cmp edi, esi
jb 0x415abd
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x415ae6
push dword [ebp + 8]
mov dword [0x428480], 1
call fcn.0041598d
pop ebp
ret
Function at 0x41adab
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x41add9
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x41ade0
cmp ebx, dword [eax + 4]
jae 0x41ade0
xor eax, eax
jmp 0x41afd0
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41adf1
xor eax, eax
inc eax
jmp 0x41afcf
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41ae07
cmp ecx, edx
jae 0x41af4c
cmp dword [eax + 4], 0
je 0x41ae10
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41adf8
cmp dword [ebp + 8], 0
je 0x41ae32
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41af4c
cmp eax, esi
jae 0x41af4c
mov eax, dword [0x4285b0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41ae57
cmp dword [esi*4 + 0x4285b8], edi
je 0x41af50
inc esi
cmp esi, eax
jl 0x41ae45
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41afcc
cmp dword [ebp - 8], 0x1000000
jne 0x41afcc
test byte [ebp - 0xc], 0xcc
je 0x41aed5
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41afcc
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41afcc
cmp word [eax + 0x18], 0x10b
jne 0x41afcc
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41afcc
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41aed5
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41aed5
test byte [ecx + 0x27], 0x80
jne 0x41af4c
push 1
push 0x4285f8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41ade9
mov ecx, dword [0x4285b0]
test ecx, ecx
mov edx, ecx
jle 0x41af09
lea eax, [ecx*4 + 0x4285b4]
cmp dword [eax], edi
je 0x41af09
dec edx
sub eax, 4
test edx, edx
jg 0x41aefd
test edx, edx
jne 0x41af3a
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41af16
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41af2e
lea eax, [edx*4 + 0x4285b8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41af1c
cmp ecx, 0x10
jge 0x41af3a
inc ecx
mov dword [0x4285b0], ecx
push 0
push 0x4285f8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41ade9
xor eax, eax
jmp 0x41afcf
test esi, esi
jle 0x41ade9
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4285f8
call ebx
test eax, eax
jne 0x41ade9
cmp dword [esi*4 + 0x4285b8], edi
je 0x41afa6
mov eax, dword [0x4285b0]
lea esi, [eax - 1]
test esi, esi
jl 0x41af94
cmp dword [esi*4 + 0x4285b8], edi
je 0x41af90
dec esi
jns 0x41af84
test esi, esi
jge 0x41afa4
cmp eax, 0x10
jge 0x41af9f
inc eax
mov dword [0x4285b0], eax
lea esi, [eax - 1]
jmp 0x41afa6
je 0x41afbe
xor ecx, ecx
test esi, esi
jl 0x41afbe
lea eax, [ecx*4 + 0x4285b8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41afac
push 0
push 0x4285f8
call ebx
jmp 0x41ade9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41b00c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x427550]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x427c10]
je 0x41b043
inc eax
cmp eax, 0x13
jb 0x41b034
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x427c10]
jne 0x41b166
mov eax, dword [0x42842c]
cmp eax, 1
je 0x41b141
cmp eax, edx
jne 0x41b073
cmp dword [0x4276a4], 1
je 0x41b141
cmp ecx, 0xfc
je 0x41b166
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41b0a9
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00419630
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00415bf0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41b0dd
mov eax, edi
push eax
call fcn.00415bf0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x422c14
push edi
call fcn.00414cf0
add esp, 0x10
push edi
call fcn.00415bf0
push dword [esi + 0x427c14]
mov ebx, eax
call fcn.00415bf0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004149d0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00419630
push edi
push ebx
call fcn.00419640
push 0x422c10
push ebx
call fcn.00419640
push dword [esi + 0x427c14]
push ebx
call fcn.00419640
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041d1a2
add esp, 0x2c
jmp 0x41b166
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x427c14]
push dword [esi]
call fcn.00415bf0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.00413041
add ebp, 0x90
leave
ret
Function at 0x41d1a2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4287a0], ebx
push esi
push edi
jne 0x41d222
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41d25d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4287a0], eax
je 0x41d25d
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4287a4], eax
call esi
cmp dword [0x428440], 2
mov dword [0x4287a8], eax
jne 0x41d222
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4287b0], eax
je 0x41d222
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4287ac], eax
mov eax, dword [0x4287ac]
test eax, eax
je 0x41d267
call eax
test eax, eax
je 0x41d24e
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4287b0]
test eax, eax
je 0x41d24e
test byte [ebp - 8], 1
jne 0x41d267
cmp dword [0x42844c], 4
jb 0x41d261
or byte [ebp + 0x12], 0x20
jmp 0x41d286
xor eax, eax
jmp 0x41d296
or byte [ebp + 0x12], 4
jmp 0x41d286
mov eax, dword [0x4287a4]
test eax, eax
je 0x41d286
call eax
mov ebx, eax
test ebx, ebx
je 0x41d286
mov eax, dword [0x4287a8]
test eax, eax
je 0x41d286
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4287a0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41d327
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x427550]
mov ecx, dword [ebp + 0x3ac]
push ebx
push esi
xor eax, ebp
cmp ecx, dword [0x429804]
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x78], edi
jae 0x41d4c9
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x429820]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x41d4c9
and dword [ebp - 0x70], 0
and dword [ebp - 0x7c], 0
cmp dword [ebp + 0x3b4], 0
jne 0x41d39d
xor eax, eax
jmp 0x41d4dd
test al, 0x20
je 0x41d3b0
push 2
push 0
push 0
push ecx
call fcn.0041e5e2
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41d445
and dword [ebp - 0x68], 0
cmp dword [ebp + 0x3b4], 0
mov dword [ebp - 0x6c], edi
jbe 0x41d4a6
mov ecx, dword [ebp - 0x6c]
xor edi, edi
sub ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x41d40a
mov edx, dword [ebp - 0x6c]
inc dword [ebp - 0x6c]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41d3fb
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x41d3dd
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x74]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41d46a
mov eax, dword [ebp - 0x74]
add dword [ebp - 0x70], eax
cmp eax, edi
jl 0x41d473
mov eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x78]
cmp eax, dword [ebp + 0x3b4]
jb 0x41d3d2
jmp 0x41d473
push 0
lea ecx, [ebp - 0x74]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41d46a
mov eax, dword [ebp - 0x74]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x70], eax
jmp 0x41d473
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x70]
test eax, eax
jne 0x41d4c4
cmp dword [ebp - 0x68], eax
je 0x41d4a3
push 5
pop eax
cmp dword [ebp - 0x68], eax
jne 0x41d498
mov dword [0x428434], 9
mov dword [0x428438], eax
jmp 0x41d4da
push dword [ebp - 0x68]
call fcn.0041a14e
pop ecx
jmp 0x41d4da
mov edi, dword [ebp - 0x78]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41d4b8
cmp byte [edi], 0x1a
je 0x41d396
mov dword [0x428434], 0x1c
jmp 0x41d4d3
sub eax, dword [ebp - 0x7c]
jmp 0x41d4dd
mov dword [0x428434], 9
and dword [0x428438], 0
or eax, 0xffffffff
mov ecx, dword [ebp + 0x3a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413041
add ebp, 0x3a4
leave
ret
Function at 0x41e1ff
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x424178
call fcn.00416db0
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x4287e4], edi
jne 0x41e243
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41e22e
mov dword [0x4287e4], ebx
jmp 0x41e243
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41e243
mov dword [0x4287e4], 2
mov eax, dword [0x4287e4]
cmp eax, ebx
jne 0x41e263
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x41e326
cmp eax, 2
je 0x41e26c
cmp eax, edi
jne 0x41e294
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x41e27f
mov eax, dword [0x42872c]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x41e29b
xor eax, eax
jmp 0x41e326
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004149d0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x41e2ce
cmp esi, edi
jne 0x41e2e4
push dword [ebp - 0x20]
call fcn.004133e5
pop ecx
mov esi, eax
cmp esi, edi
je 0x41e294
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x41e317
cmp dword [ebp + 0x14], edi
jne 0x41e301
push edi
push edi
jmp 0x41e307
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x41e323
push esi
call fcn.00412c27
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00416deb
ret