joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101b1958
Capabilities:
Packed with generic packer

Disassembly:
mov eax, 0xbb581
jmp fcn.10001058

Function at 0x101b1962
Capabilities:
Packed with generic packer

Disassembly:
mov eax, 0xbb4fa
jmp fcn.10001058

Function at 0x40e280
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
jmp 0x40e29a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40e2a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40e290
mov eax, 1
add ebx, ebx
jne 0x40e2b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40e2a8
jne 0x40e2c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40e2a8
xor ecx, ecx
sub eax, 3
jb 0x40e2d8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40e34a
mov ebp, eax
add ebx, ebx
jne 0x40e2e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40e2f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40e314
inc ecx
add ebx, ebx
jne 0x40e300
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40e2f5
jne 0x40e311
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40e2f5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40e334
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40e325
jmp 0x40e296
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40e334
add edi, ecx
jmp 0x40e296
pop esi
mov edi, esi
mov ecx, 0xa8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40e352
cmp byte [edi], 5
jne 0x40e352
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40e357
lea edi, [esi + 0xc000]
mov eax, dword [edi]
or eax, eax
je 0x40e3c6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10810]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10838]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40e384
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1083c]
or eax, eax
je 0x40e3c0
mov dword [ebx], eax
add ebx, 4
jmp 0x40e3a1
call dword [esi + 0x1084c]
mov ebp, dword [esi + 0x10840]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40e3fa
sub esp, 0xffffff80
jmp 0x401d5b
Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x57e344e2
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x33a804a9
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x47ea2c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x47ea86
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0047ea1c
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0046d73c
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0046d33c
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ea8d
lea eax, [ebp - 4]
call fcn.0040487c
ret

Function at 0x4822d0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x41ae0c]
call fcn.00405360
xor eax, eax
push ebp
push 0x482414
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4c9930], 0
jne 0x482323
mov ecx, dword [0x4ca078]
mov dl, 1
mov eax, dword [0x4081d0]
call fcn.0040d3fc
call fcn.004041f0
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00403308
mov eax, ebx
call fcn.00405114
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x482424
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.004067e8
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00405124
test eax, eax
jle 0x4823bb
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4823b4
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404b04
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404aec
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004090d8
test eax, eax
jne 0x4823b4
mov ebx, 0x15
jmp 0x4823c0
mov ebx, 0x10
jmp 0x4823c0
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4c9930]
call fcn.00482228
mov eax, dword [ebp - 8]
call fcn.00482228
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406800
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48241b
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004048a0
lea eax, [ebp - 0x10]
mov edx, dword [0x41ae0c]
call fcn.00405430
ret

Function at 0x4a607c
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x4a60a1
cmp dword [esp + 4], 5
jb 0x4a60a1
mov al, 1
jmp 0x4a60a3
xor eax, eax
add esp, 0x94
ret
Function at 0x4b8e58
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b8ee3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x105
push 0
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404a64
lea eax, [ebp - 0x10]
mov edx, 0x4b8ef8
call fcn.00404b44
mov eax, dword [ebp - 0x10]
call fcn.00404d3c
push eax
call sub.kernel32.dll_GetVolumeInformationA
push esi
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x18]
xor ecx, ecx
mov eax, 0x4b8f04
call fcn.0040a368
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8eea
lea eax, [ebp - 0x10]
call fcn.0040487c
ret
Function at 0x4bb2cc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d2c
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x4bb43a
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
mov eax, 2
call fcn.0048a770
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.0048a790
jmp 0x4bb406
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404aec
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00409b0c
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408ed0
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00408ed0
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00404c88
je 0x4bb3e6
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404aec
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408ed0
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00408ed0
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00404c88
jne 0x4bb3fd
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov esi, eax
mov edx, edi
mov eax, ebx
call fcn.0048a7b0
test eax, eax
jne 0x4bb347
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bb441
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.004048a0
lea eax, [ebp - 4]
call fcn.0040487c
ret
Function at 0x4c312c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x4c328e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.00403010
lea eax, [ebp - 0xc]
call fcn.004ba374
cmp bl, 1
jne 0x4c3171
lea eax, [ebp - 0x10]
mov edx, 0x4c32a4
call fcn.00404914
jmp 0x4c317e
lea eax, [ebp - 0x10]
mov edx, 0x4c32b4
call fcn.00404914
lea eax, [ebp - 0x10]
call fcn.004ba374
cmp byte [ebp - 1], 1
jne 0x4c319b
lea eax, [ebp - 0x14]
mov edx, 0x4c32a4
call fcn.00404914
jmp 0x4c31a8
lea eax, [ebp - 0x14]
mov edx, 0x4c32b4
call fcn.00404914
lea eax, [ebp - 0x14]
call fcn.004ba374
lea edx, [ebp - 8]
xor eax, eax
call fcn.00403010
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004c0fd0
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 8]
call fcn.00404914
lea eax, [ebp - 8]
call fcn.004ba374
push 0x4c32c4
push 0xa
mov ecx, dword [0x4cb668]
mov dl, 1
mov eax, dword [0x41c310]
call fcn.00421108
mov ebx, eax
lea eax, [ebp - 0xc]
mov ecx, 0x4c32d4
mov edx, dword [0x4cc2bc]
call fcn.00404b88
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00420dd4
mov eax, ebx
call fcn.0040398c
mov eax, dword [0x4ca638]
mov eax, dword [eax]
call fcn.00467d54
push dword [ebp - 0xc]
push 0x4c32ec
push dword [ebp - 8]
push 0x4c32ec
push dword [ebp - 0x10]
push 0x4c32ec
push dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov edx, 7
call fcn.00404bfc
mov eax, dword [0x4ca638]
mov eax, dword [eax]
call fcn.00467d54
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404d3c
push eax
call sub.kernel32.dll_WinExec
mov eax, dword [0x4ca638]
mov eax, dword [eax]
call fcn.00467ffc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3295
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.004048a0
ret
Function at 0x40323c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404ab8
test esi, esi
jne 0x403272
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404ba8
jmp 0x403290
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403140
mov edi, eax
test esi, esi
je 0x403290
cmp dword [ebx], 0
je 0x403290
dec esi
jmp 0x403279
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403a84
Capabilities:
Query or enumerate registry value

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

Function at 0x404938
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46c048], 0
je 0x404999
cmp word [0x46c21c], 0xd7b2
jne 0x404961
cmp dword [0x46c224], 0
jbe 0x404961
mov eax, 0x46c218
call dword [0x46c234]
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 0x4049c0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46a02c], 0
jne 0x4049b5
push 0
push 0x46a758
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405e78
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4060a8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405efb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4060a8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405efb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4060c4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405f84
xor eax, eax
push ebp
push 0x405f7d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405cb4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405f62
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4060e4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405f62
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405f84
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40609e
cmp byte [ebp - 0xd], 0
jne 0x405fcb
cmp byte [ebp - 0x12], 0
je 0x40609e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405fe4
dec ebx
cmp byte [ebx], 0x2e
je 0x405ff3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405fe3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40609e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406030
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40609e
cmp byte [ebp - 0xd], 0
je 0x40609e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40609e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408680
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4086d2
test eax, edx
je 0x4086d5
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408695
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4086bb
add ecx, 4
js 0x4086ab
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4086b8
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4086e1
test edx, edx
jne 0x408688
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00404f48
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408f86
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x408fa7
cmp ebx, 3
je 0x408fa7
cmp ebx, 0x7b
je 0x408fa7
mov eax, esi
call fcn.00408f28
test al, al
jne 0x408fab
xor eax, eax
jmp 0x408fad
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404f48
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408fc9
test al, 0x10
jne 0x408fcd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4090cc
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.00404f48
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4090ee
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40bc90
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 0x40bcc9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404ba8
jmp 0x40bcd2
mov eax, ebx
mov edx, esi
call fcn.00404b0c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c208
mov eax, dword [0x46bbd8]
cmp byte [eax], 0
je 0x40c40c
mov eax, dword [0x46b9cc]
call fcn.00403348
call fcn.00402fac
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.00409410
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 0x40c454
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c442
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46b96c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46e7f4]
call fcn.00405c5c
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 0x40cccc
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 0x40cda2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404b50
lea eax, [ebp - 4]
call fcn.00404fa0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404f48
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cd8c
mov eax, ebx
call fcn.00402e50
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cd85
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.00404f48
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cd6f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cdb4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cd6f
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 0x40cd8c
mov eax, dword [ebp - 0x10]
call fcn.00402e6c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cda9
lea eax, [ebp - 4]
call fcn.00404ab8
ret
Function at 0x41bc90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4709e8
cmp dword [edi], 0
jne 0x41bd0c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4709e4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x46aadc
mov ecx, 2
call fcn.00403040
mov edx, 0x41bc68
lea eax, [esi + 5]
call fcn.0041bc88
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041bc88
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 0x41bce1
mov dword [0x4709e4], 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 0x41e460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404f48
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41e4b8
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x46bd08]
mov dl, 1
mov eax, dword [0x41df6c]
call fcn.0040c550
call fcn.00404500
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041e074
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41f648
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 0x41f64e
ret