joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f1b5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x42e068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x218], eax
xor esi, esi
mov eax, dword [ebp + 0x10]
and dword [ebp - 0x210], esi
push edi
mov dword [ebp - 0x21c], eax
or edi, 0xffffffff
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40f226
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f2fd
xor eax, eax
mov dword [ebp - 0x214], eax
cmp edi, 0xffffffff
jne 0x40f2ca
push dword [ebp - 0x218]
push eax
push dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push str._s_s_05d._s
push eax
call fcn.0040e331
mov esi, eax
add esp, 0x18
test esi, esi
js 0x40f2fd
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40f2b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070050
jne 0x40f2ae
xor esi, esi
jmp 0x40f2b2
test esi, esi
js 0x40f2fd
mov eax, dword [ebp - 0x214]
inc eax
mov dword [ebp - 0x214], eax
cmp eax, 0x3e8
jl 0x40f22e
test ebx, ebx
je 0x40f2d0
mov dword [ebx], edi
mov ecx, dword [ebp - 0x21c]
test ecx, ecx
je 0x40f2e9
mov eax, dword [ebp - 0x210]
and dword [ebp - 0x210], 0
mov dword [ecx], eax
test esi, esi
js 0x40f2f1
test ebx, ebx
jne 0x40f2fd
cmp edi, 0xffffffff
je 0x40f2fd
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x210], 0
je 0x40f311
push dword [ebp - 0x210]
call fcn.0040e6a6
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411738
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40f326
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f3b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40f3a5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40f359
mov esi, 0x80070005
jmp 0x40f3b3
test al, 0x10
je 0x40f364
mov esi, 0x8000ffff
jmp 0x40f3b3
test al, 7
je 0x40f3b3
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40f392
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f3b3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f3b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x40f4cc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push dword [ebp + 8]
mov esi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jne 0x40f510
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f597
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x40f525
mov esi, 0x8007000e
jmp 0x40f597
push edi
push ebx
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x40f54e
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f590
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x42578c
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x40f57d
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f590
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [edx + 0xc]
mov dword [ecx], edx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40f8dd
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 8]
mov esi, eax
xor ebx, ebx
add esi, esi
or edx, 0xffffffff
cmp dword [0x42ecf8], ebx
jne 0x40f93d
mov dword [0x42ecf8], 1
mov ecx, ebx
push 8
mov eax, ecx
pop edi
test al, 1
je 0x40f923
shr eax, 1
xor eax, 0xedb88320
jmp 0x40f925
shr eax, 1
dec edi
test edi, edi
jg 0x40f916
mov dword [ecx*4 + 0x42e8f8], eax
inc ecx
cmp ecx, 0xff
jle 0x40f911
mov ecx, dword [ebp + 8]
test esi, esi
je 0x40f95b
movzx eax, byte [ecx]
xor eax, edx
shr edx, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x42e8f8]
inc ecx
sub esi, 1
jne 0x40f941
mov ecx, dword [ebp - 4]
not edx
mov eax, edx
mov dword [ebp - 8], ebx
xor edx, edx
div dword [ecx + 0xc]
mov esi, edx
cmp dword [ecx + 0xc], ebx
jbe 0x40f99d
imul edi, esi, 0xc
add edi, dword [ecx + 8]
cmp dword [ebp + 0xc], ebx
je 0x40f9ab
cmp dword [edi + 4], ebx
je 0x40f999
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40f9da
mov ecx, dword [ebp - 4]
cmp dword [edi + 4], ebx
jne 0x40f9c3
cmp dword [edi], ebx
jne 0x40f9c3
xor ebx, ebx
inc ebx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [edi + 4], ebx
je 0x40f9da
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40f9da
mov ecx, dword [ebp - 4]
inc esi
cmp esi, dword [ecx + 0xc]
jb 0x40f9cc
sub esi, dword [ecx + 0xc]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ecx + 0xc]
jb 0x40f971
jmp 0x40f99d
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
jmp 0x40f9a0
Function at 0x410a9c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ecx, ecx
lea eax, [ebp + 0x10]
push eax
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 8], ecx
push dword [ebp + 8]
mov edi, ecx
push 0x900
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ebx, eax
test ebx, ebx
jne 0x410aed
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x410b65
test ebx, ebx
je 0x410b2d
push 0
lea eax, [ebp - 8]
push eax
mov eax, ebx
sub eax, edi
push eax
mov eax, dword [ebp - 4]
add eax, edi
push eax
push dword [0x42e058]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410b26
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x410b65
add edi, dword [ebp - 8]
cmp edi, ebx
jb 0x410aed
cmp dword [ebp + 0x14], 0
je 0x410b65
push 0
lea eax, [ebp - 8]
push eax
push 2
push dword [0x42e060]
push dword [0x42e058]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410b65
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp dword [ebp - 4], 0
je 0x410b74
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x410b7f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push edi
push dword [ebp + 0xc]
xor edi, edi
push dword [ebp + 8]
and dword [ebp - 8], edi
push eax
call fcn.0040e57e
mov esi, eax
test esi, esi
js 0x410c31
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
test ebx, ebx
je 0x410bf8
push 0
lea eax, [ebp - 8]
push eax
mov eax, ebx
sub eax, edi
push eax
mov eax, dword [ebp - 4]
add eax, edi
push eax
push dword [0x42e058]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410bf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x410c30
add edi, dword [ebp - 8]
cmp edi, ebx
jb 0x410bb8
cmp dword [ebp + 0x10], 0
je 0x410c30
push 0
lea eax, [ebp - 8]
push eax
push 2
push dword [0x42e060]
push dword [0x42e058]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410c30
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
pop ebx
cmp dword [ebp - 4], 0
je 0x410c3f
push dword [ebp - 4]
call fcn.0040e6a6
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410cce
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x42e068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov eax, 0x104
cmp dword [0x42e058], 0xffffffff
push edi
mov dword [ebp - 0x420], eax
mov edi, str.unknown
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x41c], esi
je 0x410e28
cmp dword [0x42ecfc], esi
je 0x410e28
push ebx
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, 0x208
test eax, eax
jne 0x410d44
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004122e7
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0040f4cc
test eax, eax
jns 0x410d6e
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x41c], esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x410d97
push ebx
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004122e7
add esp, 0xc
push esi
call fcn.004113e4
push eax
push str._Logging_started:__S_
push 1
call fcn.00410f86
mov ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x414]
push eax
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
mov ecx, dword [ebp - 0x418]
movzx eax, cx
push eax
shr ecx, 0x10
lea eax, [ebp - 0x20c]
push ecx
push eax
push str.Executable:__S_v_d._d._d._d_r_nComputer__:__S
push 1
call fcn.00410f86
mov eax, dword [0x42e05c]
add esp, 0x2c
pop ebx
sub eax, esi
je 0x410e11
sub eax, 1
je 0x410e0a
sub eax, 1
je 0x410e03
sub eax, 1
jne 0x410e16
mov edi, str.debug
jmp 0x410e16
mov edi, str.verbose
jmp 0x410e16
mov edi, str.standard
jmp 0x410e16
mov edi, str.none
push edi
push str.____logging_level:__s____
push 1
call fcn.00410f86
add esp, 0xc
jmp 0x410e2b
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00411738
mov esp, ebp
pop ebp
ret

Function at 0x411020
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42e068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0041657c
add esp, 0x10
cmp eax, 0x50
jne 0x41105d
mov eax, 0x8007007a
jmp 0x4110a0
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, eax
test ecx, ecx
jne 0x4110b1
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.00414a14
pop ecx
pop ecx
test eax, eax
je 0x411090
xor ecx, ecx
mov word [eax], cx
cmp cx, word [eax + 2]
je 0x411071
cmp word [ebp - 0x20c], 0
je 0x41109e
test eax, eax
jne 0x41105d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00411738
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
je 0x4110ca
cmp ecx, 3
je 0x4110ca
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x4110cc
xor eax, eax
cmp eax, 1
je 0x41105d
jmp 0x4110a0
Function at 0x4110d3
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x42e068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push esi
mov dword [ebp - 0x208], ecx
lea eax, [ebp - 0x214]
mov dword [ebp - 0x20c], 0x100
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x4111ae
lea eax, [ebp - 0x208]
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x204]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x4111c3
push dword [ebp - 0x208]
call fcn.004110d3
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x4111c3
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x208], 0
lea eax, [ebp - 0x204]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x4111c3
jmp 0x4111b6
cmp esi, 0x80070103
je 0x4111c1
test esi, esi
jne 0x4111c3
xor ecx, ecx
jmp 0x4110f3
xor esi, esi
cmp dword [ebp - 0x208], 0
je 0x4111d8
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411738
mov esp, ebp
pop ebp
ret 4

Function at 0x4111ec
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push 0x2001f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x411216
xor esi, esi
inc esi
jmp 0x41125d
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x41125d
push dword [ebp - 4]
call fcn.004110d3
mov esi, eax
test esi, esi
js 0x41125d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp dword [ebp - 4], 0
je 0x41126c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4060cb
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x40000000
push dword [ebp - 0x3a0]
call dword [ebp - 0x3c8]
mov dword [ebp - 0x380], eax
cmp dword [ebp - 0x380], 0xffffffff
je 0x40611a
push 0
lea eax, [ebp - 0x6c4]
push eax
push dword [ebp - 0x38c]
push dword [ebp - 0x748]
push dword [ebp - 0x380]
call dword [ebp - 0x730]
push dword [ebp - 0x380]
call dword [ebp - 0x680]
jmp 0x40611f
jmp fcn.00405a72
and dword [ebp - 0x37c], 0
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x406166
lea eax, [ebp - 0x714]
push eax
call fcn.004040e0
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.00404095
add esp, 0xc
mov dword [ebp - 0x37c], eax
invalid
invalid
test ah, bh
Function at 0x4073e2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461134], 0
jne 0x407420
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4073f6
mov dword [ecx*4 + 0x461130], eax
inc ecx
cmp ecx, 0x100
jl 0x4073f1
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40744d
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461130]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40742e
not eax
pop ebp
ret 0xc

Function at 0xdf5e28
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
jmp 0xdf5e32
pushal
call 0xdf5e38
pop ebp
sub ebp, 0x10
sub ebp, 0x9f5e28
jmp 0xdf5e4e
mov eax, 0x9f5e28
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b9
mov edx, 0x544f23b5
xor byte [eax], dl
inc eax
dec ecx
jne 0xdf5e65
jmp 0xdf5e78
js 0xdf5eb9
cmp al, 0x89
mov ch, 0xb5
mov ch, 0x34
je 0xdf5ed0
mov ch, 0xb5
mov ch, 0xb6
js 0xdf5e96
mov bl, 0xb5
mov ch, 0xb5
setge byte [ebp + 0x5742b5b5]
mov dh, 0x7d
xor al, 0xb9
mov ch, 0xb5
mov ch, 0xb6
jo 0xdf5ed7
rcl dword [ecx - 0x6e4ec3b7]
cmp cl, dl
xchg ecx, eax
dec ecx
cmp al, 0xb1
xchg ecx, eax
fstp qword [ebp - 0x224a6a31]
dec edx
push esi
retf
fst st(0)
lds edi, [edi]
and eax, 0xb5b5b05d
mov ch, 0x5c
popfd
mov ch, 0xb5
mov ch, 0xe0
loope 0xdf5eb3
xor byte ds:[ebp + 0x3eb5b5b5], bh
mov ch, 0x3e
and byte [ecx + 0x3eb5b5b5], bh
cmp byte [ebp + 0x74b5b5b5], ah
cmp byte ds:[ebp + 0x74b5b5b5], ah
pop esp
mov bh, 0x84
mov bh, 0x36
ja 0xdf5e96
cld
mov edx, 0x4a4a4130
dec edx
call 0x3f951868
cmp dword [ecx - 0x4a4a4a4f], edx
fstp qword [ebp - 0x224a6a31]
dec edx
push esi
retf
Function at 0x403824
Capabilities:
Query or enumerate registry value

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

Function at 0x404740
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45a044], 0
je 0x4047a1
cmp word [0x45a218], 0xd7b2
jne 0x404769
cmp dword [0x45a220], 0
jbe 0x404769
mov eax, 0x45a214
call dword [0x45a230]
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 0x4047c8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45802c], 0
jne 0x4047bd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405c34
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 0x405e64
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405cb7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405e64
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405cb7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405e80
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405d40
xor eax, eax
push ebp
push 0x405d39
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405a70
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 0x405d1e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405ea0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405d1e
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 0x405d40
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 0x405e5a
cmp byte [ebp - 0xd], 0
jne 0x405d87
cmp byte [ebp - 0x12], 0
je 0x405e5a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405da0
dec ebx
cmp byte [ebx], 0x2e
je 0x405daf
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405d9f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405e5a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405dec
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 0x405e5a
cmp byte [ebp - 0xd], 0
je 0x405e5a
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 0x405e5a
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