joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418080
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa10
mov eax, dword [0x428474]
push esi
push edi
mov dword [esp + 0xa14], eax
xor eax, eax
mov word [esp + 8], 0
mov ecx, 0x81
lea edi, [esp + 0xa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 8]
push 0x5c
push ecx
call dword [sym.imp.MSVCR71.dll_wcsrchr]
push 0xd
lea edx, [esp + 0x14]
push str.TDPRepair.exe
push edx
mov word [eax + 2], 0
call dword [sym.imp.MSVCR71.dll_wcsncat]
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 0x18
test eax, eax
je 0x418115
mov eax, dword [ebp + 8]
push esi
push eax
lea ecx, [esp + 0x218]
push str.__dir_s___s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x41812f
mov edx, dword [ebp + 8]
push edx
lea eax, [esp + 0x214]
push str.__dir_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push str.xlbughandler.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x41815f
push str._XL_AddCrashProcess_12
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41815f
push 2
lea ecx, [esp + 0x214]
push ecx
lea edx, [esp + 0x10]
push edx
call eax
call fcn.00417aa0
test eax, eax
je 0x418181
call fcn.00417b60
test eax, eax
jne 0x418181
push eax
push eax
push 0x417f10
call dword [sym.imp.MSVCR71.dll__beginthread]
add esp, 0xc
mov ecx, dword [esp + 0xa14]
call fcn.00418849
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4181a0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x414
mov eax, dword [0x428474]
mov dword [esp + 0x410], eax
call fcn.00417b60
test eax, eax
jne 0x418213
call fcn.00417df0
test eax, eax
je 0x41822b
push 0x104
lea eax, [esp + 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str..TDPRepair.exe
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0
push 0
push 0
lea ecx, [esp + 0x214]
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, 1
mov ecx, dword [esp + 0x410]
call fcn.00418849
add esp, 0x414
ret
mov ecx, dword [esp + 0x410]
xor eax, eax
call fcn.00418849
add esp, 0x414
ret
Function at 0x418aa4
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x420370
call fcn.0041886c
xor edi, edi
mov dword [ebp - 0x20], edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
cmp word [eax], 0x5a4d
jne 0x418ae4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x418ae4
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x418afc
cmp eax, 0x20b
je 0x418ae9
mov dword [ebp - 0x1c], edi
jmp 0x418b10
cmp dword [ecx + 0x84], 0xe
jbe 0x418ae4
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x418b0a
cmp dword [ecx + 0x74], 0xe
jbe 0x418ae4
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x4289b0], 0xffffffff
or dword [0x4289b4], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x42892c]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x428928]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4289ac], eax
call fcn.00418e2a
call fcn.00418eca
cmp dword [0x4284a0], edi
jne 0x418b70
push fcn.00418eca
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00418eb8
push 0x42805c
push 0x428058
call sub.MSVCR71.dll__initterm
push 0x418e6e
call fcn.00418915
mov eax, dword [0x428924]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x428920]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, edi
jge 0x418bc4
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x428054
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x418bee
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x418ca8
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x418c5d
cmp ax, di
je 0x418c04
cmp dword [ebp - 0x20], edi
jne 0x418c5d
mov ax, word [esi]
cmp ax, di
je 0x418c19
cmp ax, 0x20
ja 0x418c19
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x418c04
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x418c35
movzx eax, word [ebp - 0x54]
jmp 0x418c38
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.004096d9
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x418c55
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x418ca2
cmp ax, 0x22
jne 0x418c6e
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x418bee
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004188a7
ret
Function at 0x4199c4
Capabilities:
Parse pe header

Disassembly:
push 0x2c
push 0x4208f0
call fcn.0041886c
push 0x1c
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x1c], ecx
cmp word [ecx], 0x5a4d
jne 0x419a30
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [eax], 0x4550
je 0x419a08
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x419a36
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x419a00
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x419a00
mov al, 1
jmp 0x419a02
or dword [ebp - 4], 0xffffffff
xor al, al
call fcn.004188a7
ret
Function at 0x419b38
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, eax
cmp esi, 0x7ff80000
push edi
mov ebx, 0x10000
jbe 0x419b5b
lea eax, [esi - 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x419b5e
mov dword [ebp - 4], ebx
cmp esi, 0x80000000
jae 0x419b71
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 8], eax
jmp 0x419b78
mov dword [ebp - 8], 0xfff80000
mov eax, dword [0x428990]
test eax, eax
mov ecx, dword [0x42898c]
jne 0x419b92
test ecx, ecx
je 0x419ba7
mov eax, ecx
mov dword [0x428990], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x419ba7
cmp edx, dword [ebp - 4]
jb 0x419ba7
cmp edx, dword [ebp - 8]
jbe 0x419c7b
mov eax, ecx
test ecx, ecx
jmp 0x419bcb
test eax, eax
je 0x419bc6
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x419bc6
cmp ecx, dword [ebp - 4]
jb 0x419bc6
cmp ecx, dword [ebp - 8]
jbe 0x419c7b
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x428990], eax
jne 0x419bad
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp - 4]
mov edi, esi
jbe 0x419d16
cmp edi, 0x70000000
jb 0x419bfb
cmp edi, 0x80000000
ja 0x419bfb
mov edi, 0x6fff0000
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x419d16
cmp dword [ebp - 0x30], ebx
jne 0x419c1a
cmp dword [ebp - 0x34], ebx
jae 0x419c2d
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 4]
ja 0x419be6
jmp 0x419d16
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x428990], eax
je 0x419d16
mov ecx, dword [0x42898c]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x42898c], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x419c6d
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, dword [ebp - 4]
jb 0x419d1b
cmp esi, dword [ebp - 8]
ja 0x419d1b
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
mov eax, esi
jmp 0x419d1d
cmp esi, 0x70000000
jb 0x419cbf
cmp esi, 0x80000000
ja 0x419cbf
mov esi, 0x80010000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x419d1b
cmp dword [ebp - 0x14], ebx
jne 0x419d0d
cmp dword [ebp - 0x18], ebx
jb 0x419d0d
mov ecx, esi
and ecx, 0xffff
je 0x419cf1
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x18], eax
add dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x24]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x428990], eax
jne 0x419c49
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
lea esi, [eax + ecx]
cmp esi, dword [ebp - 8]
jb 0x419caa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419d43
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x420900
call fcn.0041886c
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x419d9e
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x419d9a
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x419d9a
cmp word [eax + 0x14], 0
jne 0x419d8f
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x419da0
mov eax, ecx
jmp 0x419d89
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.004188a7
ret

Function at 0x419db8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x428998], edi
jne 0x419ddb
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x428998
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x419de2
mov eax, 0x10dd
jmp 0x419e26
push esi
mov esi, dword [0x42898c]
mov dword [0x428994], edi
mov dword [0x4289a8], edi
mov dword [0x4289a4], edi
mov dword [0x42899c], edi
mov dword [0x4289a0], edi
jmp 0x419e1f
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x419e09
xor eax, eax
pop esi
pop edi
pop ecx
ret

Function at 0x419e29
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x428998], eax
je 0x419e3f
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x4289a8]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x419e8a
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x419e7b
mov edi, dword [esi + 0x10]
cmp edi, ebx
je 0x419e7b
call fcn.00419d22
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x419e4e
mov dword [0x4289a8], ebx
call fcn.00419b11
mov esi, dword [0x4289a4]
cmp esi, ebx
je 0x419eb7
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x419e9f
pop edi
pop esi
mov dword [0x4289a4], ebx
mov dword [0x428998], ebx
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x41a10a
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x42899c]
test eax, eax
jne 0x41a17a
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x41a126
xor eax, eax
jmp 0x41a179
push esi
push 8
call fcn.004187ee
mov esi, eax
test esi, esi
pop ecx
jne 0x41a13a
push 8
pop edi
jmp 0x41a155
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x41a166
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
and dword [0x4289a0], 0
mov dword [0x42899c], edi
mov eax, edi
jmp 0x41a178
mov eax, dword [0x4289a4]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x4289a4], esi
xor eax, eax
pop esi
pop edi
ret 4
Function at 0x41a3ba
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x428998], eax
je 0x41a3d6
mov eax, 0x10dd
jmp 0x41a4b2
mov eax, dword [0x42899c]
test eax, eax
jne 0x41a4b2
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x41a3f3
push 6
pop eax
jmp 0x41a4b1
cmp dword [edi], 0
push ebx
push esi
jne 0x41a407
push 6
pop eax
mov dword [0x42899c], eax
jmp 0x41a4a9
push 0x18
call fcn.004187ee
mov esi, eax
test esi, esi
pop ecx
jne 0x41a41a
push 8
pop edi
jmp 0x41a493
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.00419da6
movzx ecx, byte [edi + 0x17]
mov ebx, dword [edi + 0x18]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x41a488
cmp ecx, 0x17
ja 0x41a488
cmp dword [edi + 0x1c], eax
jne 0x41a488
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push ebx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x41a45e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x41a493
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x4289a8]
mov dword [esi], eax
mov dword [0x4289a8], esi
xor eax, eax
jmp 0x41a4af
cmp dword [0x428994], edx
push 9
pop edi
jne 0x41a499
mov dword [0x42899c], edi
test esi, esi
je 0x41a4a4
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, edi
mov edi, dword [ebp + 8]
mov dword [0x4289a0], edi
pop esi
pop ebx
pop edi
leave
ret 8
Function at 0x4134c4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00414d74
test esi, esi
jne 0x4134fb
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00414e64
jmp 0x41351c
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00413360
mov dword [esp], eax
test esi, esi
je 0x41351c
cmp dword [ebx], 0
je 0x41351c
dec esi
jmp 0x413503
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x413818
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x5cb008], 0x8088405
inc edx
mov dword [ebx + 0x5cb008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x413ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x5cb024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x413d38
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x413d18
xor eax, eax
push ebp
push 0x413d11
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x413d54
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413d18
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x5cb024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x5cb024], ax
mov esp, ebp
pop ebp
ret

Function at 0x414b6c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5d304c], 0
je 0x414bcd
cmp word [0x5d3220], 0xd7b2
jne 0x414b95
cmp dword [0x5d3228], 0
jbe 0x414b95
mov eax, 0x5d321c
call dword [0x5d3238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x5cb070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x414bf4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5cb034], 0
jne 0x414be9
push 0
push 0x5cb068
push 0x5cb070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x414d28
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00413098
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x5d304d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x414cf0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4173dc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x417442
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00414fe4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00413834
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x41742c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417449
lea eax, [ebp - 0x10]
call fcn.00414d74
ret

Function at 0x41b9ec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00415234
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x41ba05
test al, 0x10
jne 0x41ba09
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x41baf8
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00415234
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x41bb1a
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x41e8cc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x41e905
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00414e64
jmp 0x41e90e
mov eax, ebx
mov edx, esi
call fcn.00414dc8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41e918
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x41e939
mov al, byte [esp]
jmp 0x41e93b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x41efd0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x41ee38
mov eax, dword [0x5d2240]
cmp byte [eax], 0
je 0x41f04c
mov eax, dword [0x5d1d58]
call fcn.00413648
call fcn.0041328c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0041be60
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x41f094
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x41f082
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x5d1c94]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5d3668]
call fcn.004167b8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x41f968
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41fa3e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00414e0c
lea eax, [ebp - 8]
call fcn.00415284
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00415234
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x41fa28
mov eax, ebx
call fcn.00413098
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x41fa21
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00415234
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x41fa0b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41fa50
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x41fa0b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41fa28
mov eax, dword [ebp - 0x10]
call fcn.004130c8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41fa45
lea eax, [ebp - 8]
call fcn.00414d74
ret

Function at 0x42009c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x420100
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00414fe4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0041b608
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420107
lea eax, [ebp - 0xc]
call fcn.00414d74
ret
Function at 0x439af0
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0043991c
dec esi
jne 0x439b12
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x43ac68
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5d5aac
cmp dword [edi], 0
jne 0x43ace4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x5d5aa8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5cbdb0
mov ecx, 2
call fcn.00413320
mov edx, 0x43ac40
lea eax, [esi + 5]
call fcn.0043ac60
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0043ac60
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x43acb9
mov dword [0x5d5aa8], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x43c388
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x43c38e
ret

Function at 0x43ed88
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x43edd9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x43edc0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x43edb0
jmp 0x43edd9
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x43edc1
pop ebx
mov esp, ebp
pop ebp
ret