joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4058b5
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4058d2
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4058d5
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405923
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405967
test edi, edi
jne 0x40592e
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405961

Function at 0x40596b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4059dc
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x400
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4059cb
cmp dword [ebp + 0x14], 1
je 0x4059cd
cmp dword [ebp + 0x14], 2
je 0x4059cd
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x405b67
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
mov esi, dword [ebp + 8]
push edi
shl esi, 3
mov edi, dword [esi + 0x409078]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x405bc9
push 0x208
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x405bd6
push dword [esi + 0x40907c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop edi
pop esi
leave
ret 4
Function at 0x405c63
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x595248
push esi
call fcn.00405a84
push esi
call fcn.00405844
mov edi, eax
test edi, edi
jne 0x405c84
xor eax, eax
jmp 0x405cdc
push edi
call fcn.00405aa6
test byte [0x597c68], 0x80
je 0x405c9d
mov al, byte [edi]
test al, al
je 0x405c80
cmp al, 0x5c
je 0x405c80
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x405cbd
push esi
call fcn.00405b40
test eax, eax
je 0x405cb7
test byte [eax], 0x10
je 0x405ce1
push esi
call fcn.00405c3c
push esi
call ebx
cmp eax, edi
jg 0x405ca8
push esi
call fcn.00405c0f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x405cdb
Function at 0x405f91
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405b67
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405fb5
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x4060ee
test esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x595648], 0x4c554e
mov edi, 0x400
mov ebp, 0x595648
je 0x405ff9
push 1
push 0
push esi
call fcn.004058d5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4060f4
cmp eax, edi
jg 0x4060f4
push edi
mov esi, 0x595f88
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4060f4
cmp eax, edi
jg 0x4060f4
push esi
push ebp
push str._s_s_r_n
push 0x595a48
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x597c0c]
push dword [eax + 0x128]
push esi
call fcn.00405d3b
push 4
push 0xc0000000
push esi
call fcn.004058d5
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x4060ee
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4060e7
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4060e7
cmp edi, dword [esp + 0x18]
jne 0x4060e7
push str._Rename__r_n
push esi
call fcn.00405ce5
test eax, eax
jne 0x4060fb
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.00405a84
add edi, 0xa
mov eax, edi
push ebx
push 0x595a48
add eax, esi
push eax
call fcn.00405891
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x597cd0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x4076ac
add eax, 0xa
push eax
call fcn.00405ce5
test eax, eax
je 0x4060b2
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x406122
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x406117
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x4060b4
Function at 0x40612a
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00405c63
mov ecx, dword [ebp + 0xc]
test cl, 8
mov dword [ebp - 8], eax
je 0x40615f
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x597cc8], eax
jmp 0x4062f1
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x40617a
test eax, eax
je 0x40629c
test cl, 2
je 0x40629c
push edi
push ebx
mov esi, 0x596388
push esi
call fcn.00405a84
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x40619d
push str..
push esi
call edi
jmp 0x4061a3
push ebx
call fcn.00405c3c
cmp byte [ebx], 0
jne 0x4061b1
cmp byte [0x596388], 0x5c
jne 0x4061b9
push 0x407298
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x406291
lea esi, [ebp - 0x11c]
push 0x3f
mov eax, esi
push eax
call fcn.00405803
cmp byte [eax], 0
je 0x4061fc
cmp byte [ebp - 0x18], 0
je 0x4061fc
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x406212
mov al, byte [esi + 1]
test al, al
je 0x406270
cmp al, 0x2e
jne 0x406212
cmp byte [esi + 2], 0
je 0x406270
push esi
push edi
call fcn.00405a84
test byte [ebp - 0x148], 0x10
je 0x406237
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406270
push dword [ebp + 0xc]
push ebx
call fcn.0040612a
jmp 0x406270
push ebx
call fcn.004058b5
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x406268
test byte [ebp + 0xc], 4
je 0x406260
push ebx
push 0xfffffffffffffff1
call fcn.00404a28
push 0
push ebx
call fcn.00405f91
jmp 0x406270
inc dword [0x597cc8]
jmp 0x406270
push ebx
push 0xfffffffffffffff2
call fcn.00404a28
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4061de
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x40629b
mov byte [edi - 1], 0
pop edi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4062f0
cmp dword [ebp - 8], esi
je 0x4062e0
push ebx
call fcn.00405b40
test eax, eax
je 0x4062f0
push ebx
call fcn.00405c0f
push ebx
call fcn.004058b5
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4062e8
test byte [ebp + 0xc], 4
je 0x4062e0
push ebx
push 0xfffffffffffffff1
call fcn.00404a28
push esi
push ebx
call fcn.00405f91
jmp 0x4062f0
inc dword [0x597cc8]
jmp 0x4062f0
push ebx
push 0xffffffffffffffe5
call fcn.00404a28
pop esi
pop ebx
leave
ret 8
Function at 0x4062f6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x59678c], 0
jne 0x406331
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40630a
mov dword [ecx*4 + 0x596788], eax
inc ecx
cmp ecx, 0x100
jl 0x406305
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40635e
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 + 0x596788]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40633f
not eax
pop ebp
ret 0xc
Function at 0x403344
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.00404c70
test esi, esi
jne 0x40337a
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.00404d60
jmp 0x403398
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004031e8
mov edi, eax
test esi, esi
je 0x403398
cmp dword [ebx], 0
je 0x403398
dec esi
jmp 0x403381
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4f3008], 0x8088405
inc edx
mov dword [ebx + 0x4f3008], edx
fld qword [ebx + 0x4f3758]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x403b28
Capabilities:
Query or enumerate registry value

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

Function at 0x404a38
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4f8048], 0
je 0x404a99
cmp word [0x4f821c], 0xd7b2
jne 0x404a61
cmp dword [0x4f8224], 0
jbe 0x404a61
mov eax, 0x4f8218
call dword [0x4f8234]
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 0x404ac0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4f3030], 0
jne 0x404ab5
push 0
push 0x4f3760
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404c10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4f3034], 0
je 0x404c36
mov edx, esi
mov eax, ebx
call dword [0x4f3034]
jmp 0x404c45
mov eax, 8
call fcn.00402ef8
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4f8049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404bd8
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x40667c
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 0x4068ac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4066ff
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4068ac
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4066ff
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4068c8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406788
xor eax, eax
push ebp
push 0x406781
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004064b8
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 0x406766
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4068e8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406766
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 0x406788
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 0x4068a2
cmp byte [ebp - 0xd], 0
jne 0x4067cf
cmp byte [ebp - 0x12], 0
je 0x4068a2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4067e8
dec ebx
cmp byte [ebx], 0x2e
je 0x4067f7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4067e7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4068a2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406834
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 0x4068a2
cmp byte [ebp - 0xd], 0
je 0x4068a2
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 0x4068a2
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 0x409280
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4092d2
test eax, edx
je 0x4092d5
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409295
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 0x4092bb
add ecx, 4
js 0x4092ab
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4092b8
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 0x4092e1
test edx, edx
jne 0x409288
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405110
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409ce6
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x409d07
cmp ebx, 3
je 0x409d07
cmp ebx, 0x7b
je 0x409d07
mov eax, esi
call fcn.00409c88
test al, al
jne 0x409d0b
xor eax, eax
jmp 0x409d0d
mov al, 1
pop esi
pop ebx
ret

Function at 0x40ca88
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 0x40cac1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404d60
jmp 0x40caca
mov eax, ebx
mov edx, esi
call fcn.00404cc4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40cad4
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 0x40caf6
movzx eax, byte [esp]
jmp 0x40caf8
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d188
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call fcn.0040d000
mov eax, dword [0x4f6f54]
cmp byte [eax], 0
je 0x40d204
mov eax, dword [0x4f6c8c]
call fcn.004034f0
call fcn.00403054
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.0040a0a4
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 0x40d24c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d23a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4f6c10]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4fa7f4]
call fcn.00406460
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 0x40dac4
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 0x40db9a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404d08
lea eax, [ebp - 4]
call fcn.00405168
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405110
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40db84
mov eax, ebx
call fcn.00402ef8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40db7d
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.00405110
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40db67
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40dbac
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40db67
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 0x40db84
mov eax, dword [ebp - 0x10]
call fcn.00402f14
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dba1
lea eax, [ebp - 4]
call fcn.00404c70
ret

Function at 0x424144
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4fc9e8
cmp dword [edi], 0
jne 0x4241c0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4fc9e4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4f3c0c
mov ecx, 2
call fcn.004030e8
mov edx, 0x42411c
lea eax, [esi + 5]
call fcn.0042413c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042413c
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 0x424195
mov dword [0x4fc9e4], 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 0x427fb8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.00427a34
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00405110
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x428017
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4f6e1c]
mov dl, 1
mov eax, dword [0x42792c]
call fcn.0040d348
call fcn.004045e4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x428020
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.00405110
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x428078
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4f70ec]
mov dl, 1
mov eax, dword [0x42792c]
call fcn.0040d348
call fcn.004045e4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00427a64
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 0x429218
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 0x42921e
ret