joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418320
Capabilities:
Check if file exists
Create directory
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x438040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.0041de40
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, 2
imul ecx, eax, 3
mov dword [ebp - 0x418], ecx
cmp dword [ebp - 0x418], 0x208
jae 0x418376
jmp 0x41837b
call fcn.0041cb5b
xor edx, edx
mov eax, dword [ebp - 0x418]
mov word [ebp + eax - 0x20c], dx
push str.IimeFile
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4183cc
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 2
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x208
push 0
lea edx, [ebp - 0x414]
push edx
call fcn.0041de40
add esp, 0xc
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.SHELL32.dll_PathYetAnotherMakeUniqueName]
mov dword [ebp - 0x41c], 0
push 3
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x418452
push 2
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 4
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x418452
mov dword [ebp - 0x41c], 1
push 4
push 0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c52e
mov esp, ebp
pop ebp
ret

Function at 0x418480
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41849f
mov ecx, dword [ebp + 8]
push ecx
call fcn.00418320
add esp, 4
jmp 0x4184a4
mov eax, 1
pop ebp
ret
Function at 0x4184b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x438040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 2
imul ecx, eax, 0
xor edx, edx
mov eax, dword [ebp + 8]
mov word [eax + ecx], dx
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4184e7
jmp 0x418541
push str.SHGetKnownFolderPath
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x41852f
mov dword [ebp - 8], 0
lea edx, [ebp - 8]
push edx
push 0
push 0
lea eax, [ebp + 0xc]
push eax
call dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x418541
push 0
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c52e
mov esp, ebp
pop ebp
ret

Function at 0x418ce0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x438040]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.004172e0
movzx eax, al
test eax, eax
je 0x418da5
push 6
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x418da3
push 0x3c
push 0
lea ecx, [ebp - 0x44]
push ecx
call fcn.0041de40
add esp, 0xc
mov dword [ebp - 0x44], 0x3c
mov dword [ebp - 0x40], 0x440
mov dword [ebp - 0x38], 0x4315e4
mov edx, dword [ebp + 8]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 1
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x418d65
jmp 0x418da5
cmp dword [ebp - 0xc], 0
je 0x418da3
mov dword [ebp - 8], 0x103
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 8], 0x103
je 0x418d99
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x418d80
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x418dc3
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c52e
mov esp, ebp
pop ebp
ret
Function at 0x419390
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x438040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0xffffffff
jne 0x4193b2
xor eax, eax
jmp 0x419459
mov dword [ebp - 8], 2
push 0
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x4193d8
xor eax, eax
jmp 0x419459
mov dword [ebp - 0xc], 0
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x419401
xor eax, eax
jmp 0x419459
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp + 0xc]
push eax
push 0x800
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x41943b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x41943b
jmp 0x419441
cmp dword [ebp - 0x14], 0
je 0x419408
cmp dword [ebp - 0x14], 0
je 0x41944f
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
jmp 0x419456
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c52e
mov esp, ebp
pop ebp
ret 8

Function at 0x41cfda
Capabilities:
Parse pe header

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

Function at 0x421d11
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42cb40
push 0x42cb38
push str.FlsAlloc
push 0x1f
call fcn.00421c2d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x421d45
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b1ec]
call esi
jmp 0x421d4b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x421d8f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42cb50
push 0x42cb48
push str.FlsGetValue
push 0x21
call fcn.00421c2d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x421dc6
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b1ec]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x421dce
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42cb58
push 0x42cb50
push str.FlsSetValue
push 0x22
call fcn.00421c2d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x421e08
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42b1ec]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x423605
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4236a2
push ebx
push esi
call fcn.004235ce
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00423562
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42364f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4236a1
push edi
push eax
call fcn.0042206f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42366f
call fcn.004210d2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4236a0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00423562
add esp, 0x20
test eax, eax
jne 0x42368e
push edi
call fcn.004210d2
jmp 0x423696
push ebx
call fcn.004210d2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x428b50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x428b7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x428b7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x64dbed
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x656398
cmp edx, dword [eax]
je 0x64dc0f
add eax, 8
inc ecx
cmp eax, 0x656428
jl 0x64dc00
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x656398]
jne 0x64dd3d
mov eax, dword [0xa59cf0]
cmp eax, 1
je 0x64dd17
test eax, eax
jne 0x64dc40
cmp dword [0x6562c4], 1
je 0x64dd17
cmp edx, 0xfc
je 0x64dd3d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x64dc77
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0064e5d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0064ea60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x64dcba
lea eax, [ebp - 0x1a4]
push eax
call fcn.0064ea60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x652c14
push edi
call fcn.00650930
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0064e5d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0064e5e0
lea eax, [ebp - 0xa0]
push 0x652bf4
push eax
call fcn.0064e5e0
push dword [esi + 0x65639c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0064e5e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.006508a4
add esp, 0x2c
pop edi
jmp 0x64dd3d
lea eax, [ebp + 8]
lea esi, [esi + 0x65639c]
push 0
push eax
push dword [esi]
call fcn.0064ea60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x100059c0
Capabilities:
Encode data using xor

Disassembly:
sbb dword [eax], edx
fld dword [eax - 0x11]
out dx, eax
test al, 0x5f
mov al, 0x6e
xor ebx, ecx
push eax
lodsd eax, dword [esi]
pop eax
mov al, 0x95
pop ecx
neg byte [ebx + 0x4b]
sbb dword [edx], esi
loope 0x100059c4
push ebp
or dword [edi + 0x23], 0x624ce01b
inc eax
inc eax
sub byte [ebx + 0x6f], cl
xchg esi, eax
pop edi
pop es
lahf
fiadd word [edx + 0x9920837]
sbb bl, byte [ecx + 0x532f82e0]
mov esp, 0xc8795e02
into
inc ecx
mov esi, 0x4c9d4633
out dx, al
invalid

Function at 0x10747058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.107471a8
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 0x1074707e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1074706a
add dl, dl
jne 0x10747089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x107470dc
xor eax, eax
add dl, dl
jne 0x10747096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1074717d
add dl, dl
jne 0x107470a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107470b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107470bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107470c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x107470d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10747075
mov eax, 1
add dl, dl
jne 0x107470ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107470f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x107470e1
sub eax, ebx
mov ebx, 1
jne 0x10747128
mov ecx, 1
add dl, dl
jne 0x1074710e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10747119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10747105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10747075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1074713f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1074714a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10747136
cmp eax, 0x7d00
jae 0x1074716d
cmp eax, 0x500
jb 0x10747168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10747075
cmp eax, 0x7f
ja 0x10747170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10747075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1074719e
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 0x10747075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401070
Capabilities:
Accept command line arguments
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit

Function at 0x4010e0
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40117b
cmp ax, 9
je 0x401168
cmp ax, 0x20
je 0x401168
mov dword [ebp - 0x6c], 0
xor edi, edi
lea esi, [esi]
cmp ax, 0x5c
je 0x4011d0
cmp ax, 0x22
je 0x4011e0
mov dword [ebp - 0x6c], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40117b
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x401120
test edi, 1
jne 0x401120
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x401168
cmp ax, 0x20
je 0x401168
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x4011f8
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.wWinMain@16
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
add dword [ebp - 0x6c], 1
jmp 0x40113b
and dword [ebp - 0x6c], 1
jne 0x401134
xor edi, 1
jmp 0x40113b
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x401194
Function at 0x4030dc
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.00404808
test esi, esi
jne 0x403112
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.004048f8
jmp 0x403130
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402f80
mov edi, eax
test esi, esi
je 0x403130
cmp dword [ebx], 0
je 0x403130
dec esi
jmp 0x403119
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4037fc
Capabilities:
Query or enumerate registry value

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

Function at 0x404688
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x456048], 0
je 0x4046e9
cmp word [0x45621c], 0xd7b2
jne 0x4046b1
cmp dword [0x456224], 0
jbe 0x4046b1
mov eax, 0x456218
call dword [0x456234]
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 0x404710
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45402c], 0
jne 0x404705
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405ba4
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 0x405dd4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405c27
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405dd4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405c27
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405df0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405cb0
xor eax, eax
push ebp
push 0x405ca9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004059e0
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 0x405c8e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405e10
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405c8e
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 0x405cb0
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 0x405dca
cmp byte [ebp - 0xd], 0
jne 0x405cf7
cmp byte [ebp - 0x12], 0
je 0x405dca
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405d10
dec ebx
cmp byte [ebx], 0x2e
je 0x405d1f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405d0f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405dca
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405d5c
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 0x405dca
cmp byte [ebp - 0xd], 0
je 0x405dca
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 0x405dca
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 0x408178
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408208
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408208
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4081bb
test edx, 3
jne 0x4081aa
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4081b5
jmp 0x4081bb
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4081bb
cmp dword [ecx - 8], 1
je 0x4081c5
mov edx, ebx
or edx, 3
call fcn.00404f54
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 0x4081d7
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404808

Function at 0x408214
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4082a4
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4082a4
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408257
test edx, 3
jne 0x408246
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408251
jmp 0x408257
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408257
cmp dword [ecx - 8], 1
je 0x408261
mov edx, ebx
or edx, 3
call fcn.00404f54
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 0x408273
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404808

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404ccc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408ac9
test al, 0x10
je 0x408acd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b4ac
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 0x40b4e5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004048f8
jmp 0x40b4ee
mov eax, ebx
mov edx, esi
call fcn.0040485c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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