joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100010e0
Capabilities:
Check mutex on windows
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
cmp dword [0x1000700c], 0
je 0x100010f8
xor eax, eax
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x114]
push str.National_Instruments_LabWindows_CVI_Startup_library__d
push eax
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateMutexA]
mov edi, eax
test edi, edi
jne 0x10001134
lea eax, [edi - 3]
pop edi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp dword [0x1000700c], 0
je 0x1000115b
push edi
call dword [sym.imp.kernel32.dll_ReleaseMutex]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.kernel32.dll_LoadLibraryA]
push 0x1000c038
call esi
mov dword [ebp - 8], eax
test eax, eax
jne 0x10001187
push edi
call dword [sym.imp.kernel32.dll_ReleaseMutex]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop esi
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push str.advapi32.dll
call esi
mov ebx, eax
test ebx, ebx
je 0x100011b1
push 0x1000c058
call esi
mov dword [ebp - 0xc], eax
test eax, eax
je 0x100011b1
push str.user32.dll
call esi
mov dword [ebp - 4], eax
test eax, eax
jne 0x100011c9
push edi
call dword [sym.imp.kernel32.dll_ReleaseMutex]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop ebx
pop esi
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.timeGetTime
push dword [ebp - 8]
call esi
mov dword [0x10007010], eax
test eax, eax
je 0x1000125e
push str.RegOpenKeyExA
push ebx
call esi
mov dword [0x10007014], eax
test eax, eax
je 0x1000125e
push str.RegQueryValueExA
push ebx
call esi
mov dword [0x10007018], eax
test eax, eax
je 0x1000125e
push str.GetFileTime
push dword [ebp - 0xc]
call esi
mov dword [0x1000701c], eax
test eax, eax
je 0x1000125e
push str.KillTimer
push dword [ebp - 4]
call esi
mov dword [0x10007020], eax
test eax, eax
je 0x1000125e
push str.SetTimer
push dword [ebp - 4]
call esi
mov dword [0x10007024], eax
test eax, eax
je 0x1000125e
push edi
mov dword [0x1000700c], 1
call dword [sym.imp.kernel32.dll_ReleaseMutex]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop ebx
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
mov esi, dword [sym.imp.kernel32.dll_FreeLibrary]
call esi
push ebx
call esi
push dword [ebp - 0xc]
call esi
push dword [ebp - 4]
call esi
push edi
call dword [sym.imp.kernel32.dll_ReleaseMutex]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop ebx
pop esi
mov eax, 0xfffffffe
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10001bd8
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [0x10007340], 0
je 0x10001bf3
mov eax, 1
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x108]
push str.National_Instruments_LabWindows_CVI_Startup_SDK_stubs__d
push eax
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x10001c2c
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp dword [0x10007340], 0
jne 0x10001c62
push str.kernel32.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x10007340], eax
test eax, eax
jne 0x10001c62
push str.kernel32.dll
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [0x10007340], eax
push esi
call dword [sym.imp.kernel32.dll_ReleaseMutex]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
cmp dword [0x10007340], eax
pop esi
setne al
mov esp, ebp
pop ebp
ret
Function at 0x10002080
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push edi
call fcn.10002000
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 8], 0
je 0x100020cc
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x100020ca
mov edx, dword [ebp + 8]
add edx, 4
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
jmp 0x100020eb
push 0x2010
push 0x1000c8e4
push str.labview.lib_was_not_called_from_a_LabVIEW_process.
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
cmp dword [ebp - 4], 0
jne 0x100021dd
mov ecx, 7
mov esi, str.labview.lib_could_not_locate__
lea edi, [ebp - 0x110]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x38
xor eax, eax
lea edi, [ebp - 0xf1]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x110]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
add ecx, 4
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp - 0xc]
movsx eax, byte [edx]
test eax, eax
je 0x10002144
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
jmp 0x1000212f
mov edx, dword [ebp - 0x114]
movsx eax, byte [edx]
test eax, eax
je 0x10002178
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x114]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x114]
add edx, 1
mov dword [ebp - 0x114], edx
jmp 0x10002144
mov dword [ebp - 0x114], 0x1000c944
mov eax, dword [ebp - 0x114]
movsx ecx, byte [eax]
test ecx, ecx
je 0x100021b6
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x114]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x114]
add eax, 1
mov dword [ebp - 0x114], eax
jmp 0x10002182
mov ecx, dword [ebp - 0xc]
mov byte [ecx], 0
push 0x2010
push str.Fatal_Error
lea edx, [ebp - 0x110]
push edx
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10002d20
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d8
push esi
push str.SOFTWARENational_InstrumentsLabVIEW_Run_Time
lea eax, [ebp - 0xd4]
push 0xc8
push eax
call fcn.10003c70
add esp, 0xc
mov dword [ebp - 0xc], 0x104
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push eax
push 1
push 0
lea eax, [ebp - 0xd4]
push eax
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10002dd8
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push str.NILVRunTimeManagerPath
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x10002dd8
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp dword [ebp - 8], 2
mov dword [ebp - 4], 0
jne 0x10002dd1
push esi
lea eax, [ebp - 0x1d8]
push 0x104
push eax
call fcn.10003c70
add esp, 0xc
lea eax, [ebp - 0x1d8]
push 4
push esi
push eax
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsA]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
test eax, eax
je 0x10002de6
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, 0x485
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10003140
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
test esi, esi
je 0x1000319b
push esi
call fcn.10003cb0
add esp, 4
test eax, eax
je 0x1000319b
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push eax
push 0x1000f130
push eax
push esi
call fcn.10003bd0
add esp, 0xc
push eax
call fcn.10003bd0
add esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
test eax, eax
je 0x1000319b
cmp eax, 0xffffffff
je 0x1000319b
test al, 0x10
mov ecx, 1
movzx eax, bl
pop esi
cmove eax, ecx
pop ebx
pop ebp
ret
pop esi
mov al, bl
pop ebx
pop ebp
ret
Function at 0x10003820
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x104]
push 0x104
push eax
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
je 0x100039f3
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.10003cb0
mov esi, eax
add esp, 4
test esi, esi
je 0x1000387d
lea eax, [ebp - 0x104]
cmp byte [eax + esi - 1], 0x5c
je 0x10003870
sub esi, 1
jne 0x10003862
jmp 0x1000387d
test esi, esi
je 0x1000387d
dec esi
mov byte [ebp + esi - 0x104], 0
push ebx
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.10003c70
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x208]
push ebx
push 0x104
push eax
call fcn.10003140
add esp, 0x18
test al, al
je 0x100038cf
lea ecx, [ebp - 0x208]
push ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10003c70
add esp, 0xc
xor eax, eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x100039ac
test esi, esi
je 0x100039ac
mov esi, dword [sym.imp.kernel32.dll_GetFileAttributesA]
nop dword [eax]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.10003c70
add esp, 0xc
lea eax, [ebp - 0x208]
push edi
push 0x104
push 0x1000f130
push 0x104
push eax
call fcn.10003bd0
add esp, 0xc
push eax
call fcn.10003bd0
lea eax, [ebp - 0x208]
push eax
call fcn.10003cb0
add esp, 0x10
test eax, eax
je 0x10003981
push ebx
push 0x104
push 0x1000f130
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.10003bd0
add esp, 0xc
push eax
call fcn.10003bd0
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
call esi
test eax, eax
je 0x10003981
cmp eax, 0xffffffff
je 0x10003981
test al, 0x10
je 0x100039d5
lea eax, [ebp - 0x104]
push eax
call fcn.10003cb0
add esp, 4
test eax, eax
je 0x100039ac
lea ecx, [ebp - 0x104]
nop word [eax + eax]
cmp byte [ecx + eax - 1], 0x5c
je 0x100039b8
sub eax, 1
jne 0x100039a0
pop edi
pop ebx
mov eax, 0x485
pop esi
mov esp, ebp
pop ebp
ret
sub eax, 1
mov byte [ebp + eax - 0x104], 0
jne 0x100038f0
pop edi
pop ebx
mov eax, 0x485
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10003c70
add esp, 0xc
xor eax, eax
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
mov esp, ebp
pop ebp
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x40893f
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop edx
add eax, 1
call fcn.0040895e
xor dword [edi], edx
mov esi, eax
inc edi
inc esi
cmp edi, ecx
jne fcn.0040893f
sub eax, esi
dec eax
ret
Function at 0x420b5b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x420b9a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420b9a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420b9a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x420b9a
cmp dword [ecx + 0x74], 0xe
jbe 0x420b9a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x433310
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43333d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43333d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0xd96058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00d961a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xd9607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd9606a
add dl, dl
jne 0xd96089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd960dc
xor eax, eax
add dl, dl
jne 0xd96096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd9617d
add dl, dl
jne 0xd960a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd960b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd960bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd960c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xd960d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xd96075
mov eax, 1
add dl, dl
jne 0xd960ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd960f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd960e1
sub eax, ebx
mov ebx, 1
jne 0xd96128
mov ecx, 1
add dl, dl
jne 0xd9610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd96119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd96105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd96075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xd9613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd9614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd96136
cmp eax, 0x7d00
jae 0xd9616d
cmp eax, 0x500
jb 0xd96168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd96075
cmp eax, 0x7f
ja 0xd96170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd96075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xd9619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xd96075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402fcc
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4036cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x482024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403764
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403744
xor eax, eax
push ebp
push 0x40373d
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 0x403780
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 0x403744
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x482024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x482024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404570
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x541048], 0
je 0x4045d1
cmp word [0x54121c], 0xd7b2
jne 0x404599
cmp dword [0x541224], 0
jbe 0x404599
mov eax, 0x541218
call dword [0x541234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x4045f8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x482030], 0
jne 0x4045ed
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4082fc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x40838c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x40838c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40833f
test edx, 3
jne 0x40832e
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408339
jmp 0x40833f
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40833f
cmp dword [ecx - 8], 1
je 0x408349
mov edx, ebx
or edx, 3
call fcn.00404e3c
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40835b
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004046f0

Function at 0x408398
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408428
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408428
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4083db
test edx, 3
jne 0x4083ca
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4083d5
jmp 0x4083db
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4083db
cmp dword [ecx - 8], 1
je 0x4083e5
mov edx, ebx
or edx, 3
call fcn.00404e3c
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4083f7
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004046f0

Function at 0x40b818
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 0x40b851
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004047e0
jmp 0x40b85a
mov eax, ebx
mov edx, esi
call fcn.00404744
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b864
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 0x40b886
movzx eax, byte [esp]
jmp 0x40b888
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40bf18
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bd90
mov eax, dword [0x540b78]
cmp byte [eax], 0
je 0x40bf94
mov eax, dword [0x540950]
call fcn.00403094
call fcn.00402e10
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.00408f9c
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 0x40bfdc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bfca
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x5408f4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5437f4]
call fcn.0040597c
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 0x40c828
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c8fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404788
lea eax, [ebp - 4]
call fcn.00404c04
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404bb4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c8e8
mov eax, ebx
call fcn.00402cb4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c8e1
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 - 4]
call fcn.00404bb4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c8cb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c910
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c8cb
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c8e8
mov eax, dword [ebp - 0x10]
call fcn.00402cd0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c905
lea eax, [ebp - 4]
call fcn.004046f0
ret