joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4507da
Capabilities:
Print debug messages

Disassembly:
push 0x838
mov eax, 0x45827f
call fcn.00423fa2
mov esi, ecx
mov edx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x844]
call fcn.0040635f
pop ecx
xor ebx, ebx
lea edx, [ebp - 0x844]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x830], 0x10
mov ecx, dword [esi]
cmovae edx, dword [ebp - 0x844]
push ebx
call fcn.0040bf89
pop ecx
test eax, eax
jne 0x450836
push ebx
push ebx
push dword [esi]
call fcn.004502dd
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x4508fe
mov edx, dword [esi]
lea ecx, [ebp - 0x82c]
push 0xffffffffffffffff
call fcn.00406b2a
mov eax, dword [esi]
lea edi, [ebp - 0x814]
mov esi, str.hwang
mov dword [esp], 0x7f2
push ebx
add dword [eax + 0xc], 0xfffffff0
lea eax, [ebp - 0x806]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00426130
add esp, 0xc
lea eax, [ebp - 0x82c]
cmp dword [ebp - 0x818], 8
cmovae eax, dword [ebp - 0x82c]
push eax
lea eax, [ebp - 0x808]
push str._s_r_n
push eax
call fcn.00406a87
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x814]
add esp, 0xc
push eax
call ebx
mov esi, str.hwang
lea edi, [ebp - 0x814]
push 0x7f2
lea eax, [ebp - 0x806]
push 0
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00426130
add esp, 0xc
lea eax, [ebp - 0x808]
push str.luaL_loadbuffer_failed__r_n
push eax
call fcn.00406a87
pop ecx
pop ecx
lea eax, [ebp - 0x814]
push eax
call ebx
xor ebx, ebx
lea ecx, [ebp - 0x82c]
push ebx
push 1
call fcn.0040171b
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x844]
call fcn.00407058
mov eax, esi
call fcn.00423f4c
ret 4
Function at 0x450f30
Capabilities:
Check if file exists
Print debug messages

Disassembly:
push 0x83c
mov eax, 0x45831e
call fcn.00423fa2
mov esi, ecx
lea eax, [ebp - 0x844]
xor ebx, ebx
push 7
mov dword [ebp - 0x848], eax
xor eax, eax
pop edi
mov dword [ebp - 0x830], edi
mov dword [ebp - 0x834], ebx
mov word [ebp - 0x844], ax
push str.Uninst.dar0
push esi
lea ecx, [ebp - 0x848]
mov dword [ebp - 4], ebx
call fcn.00403c88
lea eax, [ebp - 0x828]
mov dword [ebp - 0x814], edi
mov dword [ebp - 0x82c], eax
xor eax, eax
mov dword [ebp - 0x818], ebx
mov word [ebp - 0x828], ax
push str.Uninst.dar1
push esi
lea ecx, [ebp - 0x82c]
mov byte [ebp - 4], 1
call fcn.00403c88
mov eax, dword [ebp - 0x848]
push 8
pop ebx
cmp dword [eax + 0x14], ebx
jb 0x450fc1
mov eax, dword [eax]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
je 0x4510ad
mov eax, dword [ebp - 0x82c]
cmp dword [eax + 0x14], ebx
jb 0x450fdf
mov eax, dword [eax]
push eax
call esi
test eax, eax
je 0x4510ad
mov esi, dword [ebp - 0x848]
cmp dword [esi + 0x14], ebx
jb 0x450ff7
mov esi, dword [esi]
call fcn.00404350
push esi
mov ecx, eax
call fcn.004507da
test eax, eax
jne 0x451061
mov esi, str.hwang
lea edi, [ebp - 0x810]
push 0x7f2
push eax
lea eax, [ebp - 0x802]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00426130
mov eax, dword [ebp - 0x848]
add esp, 0xc
cmp dword [eax + 0x14], ebx
jb 0x45103a
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x804]
push str.DoLua__s_failed_
push eax
call fcn.00406a87
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x451127
mov esi, dword [ebp - 0x82c]
cmp dword [esi + 0x14], ebx
jb 0x45106e
mov esi, dword [esi]
call fcn.00404350
push esi
mov ecx, eax
call fcn.004507da
test eax, eax
jne 0x4510a9
mov esi, str.hwang
lea edi, [ebp - 0x810]
push 0x7f2
push eax
lea eax, [ebp - 0x802]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00426130
mov eax, dword [ebp - 0x82c]
jmp 0x451030
mov bl, 1
jmp 0x451129
mov esi, str.hwang
lea edi, [ebp - 0x810]
push 0x7f2
lea eax, [ebp - 0x802]
push 0
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00426130
mov ecx, dword [ebp - 0x82c]
add esp, 0xc
cmp dword [ecx + 0x14], ebx
jb 0x4510e0
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x848]
cmp dword [eax + 0x14], ebx
jb 0x4510ed
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0x804]
push str.pathGlobalVarLua___s__r_n_pathUnInstallLua___s
push eax
call fcn.00406a87
add esp, 0x10
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x10010
push 0x466e40
push 0x466e48
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x828]
call fcn.0040171b
push 0
push 1
lea ecx, [ebp - 0x844]
call fcn.0040171b
mov al, bl
call fcn.00423f4c
ret
Function at 0x405e50
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x80cc5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x404124
call fcn.00406ab1
push 4
mov dword [esp + 0x18], 0
call fcn.00407aa4
mov edi, eax
add esp, 4
test edi, edi
je 0x405ec4
push ebx
call fcn.00406989
mov dword [edi], eax
call fcn.00406748
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406a72
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405eb8
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00406a9a
pop ebx
jmp 0x405ec6
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x408511
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x810f08]
jne 0x40851b
repz ret
jmp fcn.0040d37c
Function at 0x4117e2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x810f08]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040a63d
and dword [ebp - 0x14], 0
cmp dword [0x81564c], 0
mov dword [ebp - 0x18], eax
jne 0x411895
push 0x40378c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41193d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403780
push ebx
call edi
test eax, eax
je 0x41193d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403770
push ebx
mov dword [0x81564c], eax
call edi
push eax
call esi
push 0x40375c
push ebx
mov dword [0x815650], eax
call edi
push eax
call esi
push 0x403740
push ebx
mov dword [0x815654], eax
call edi
push eax
call esi
mov dword [0x81565c], eax
test eax, eax
je 0x411895
push 0x403728
push ebx
call edi
push eax
call esi
mov dword [0x815658], eax
mov eax, dword [0x815658]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4118ee
cmp dword [0x81565c], ecx
je 0x4118ee
push eax
call esi
push dword [0x81565c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4118ee
test ebx, ebx
je 0x4118ee
call edi
test eax, eax
je 0x4118e5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4118e5
test byte [ebp - 8], 1
jne 0x4118ee
or dword [ebp + 0x10], 0x200000
jmp 0x411921
mov eax, dword [0x815650]
cmp eax, dword [ebp - 0x18]
je 0x411921
push eax
call esi
test eax, eax
je 0x411921
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x411921
mov eax, dword [0x815654]
cmp eax, dword [ebp - 0x18]
je 0x411921
push eax
call esi
test eax, eax
je 0x411921
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x81564c]
call esi
test eax, eax
je 0x41193d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41193f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408511
leave
ret
Function at 0x80ab40
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0xc0c
cmp dword [0xb993e4], 0x37
jne 0x80abd6
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
push 0
lea eax, [esp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov ecx, dword [0xb9a3d8]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x81a434]
mov byte [ecx + esi], al
add esp, 0xc0c
ret
Function at 0x80ae50
Capabilities:
Accept command line arguments
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0xb993e4]
sub esp, 0x43c
push ebx
push ebp
push esi
mov esi, dword [0x81a434]
push edi
shr eax, 3
xor edi, edi
cmp eax, edi
jbe 0x80b056
mov dword [esp + 0x34], 0x9e3779b9
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
jmp 0x80ae96
mov esi, dword [esp + 0x24]
xor edi, edi
cmp dword [0xb993e4], 0x1c
jne 0x80aead
lea eax, [esp + 0x40]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [0x8112c0]
mov ebx, dword [0x8112c8]
mov ebp, dword [0x8112cc]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x8112c4]
mov dword [esp + 0x1c], eax
mov esi, 0xc6ef3720
mov dword [esp + 0x3c], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], 0x20
jmp 0x80aef6
mov eax, dword [esp + 0x1c]
xor edi, edi
mov edx, eax
shr edx, 5
add edx, ebp
mov ecx, eax
shl ecx, 4
mov dword [esp + 0x20], edx
add ecx, ebx
lea edx, [esi + eax]
xor ecx, edx
mov dword [esp + 0x10], ecx
mov dword [0xb99354], edi
mov eax, dword [esp + 0x20]
add dword [0xb99354], eax
mov eax, dword [0xb99354]
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x38]
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x20]
sub dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
shl edx, 4
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x3c]
add dword [esp + 0x10], eax
cmp dword [0xb993e4], 0x1be
mov eax, dword [esp + 0x14]
lea edi, [esi + eax]
jne 0x80af8d
lea eax, [esp + 0x44]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov eax, dword [esp + 0x14]
shr eax, 5
add eax, dword [esp + 0x30]
cmp dword [0xb993e4], 0x979
mov dword [0xb99358], 0xff6b3619
mov dword [0xb9935c], 0xffffffff
mov dword [esp + 0x20], eax
jne 0x80afc7
push 0
lea ecx, [esp + 0x4c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
xor dword [esp + 0x10], edi
mov eax, dword [esp + 0x20]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x34]
add dword [esp + 0x18], eax
sub esi, dword [esp + 0x18]
dec dword [esp + 0x2c]
jne 0x80aef0
cmp dword [0xb993e4], 0x8d4
jne 0x80b00b
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [esi], edx
mov dword [esi + 4], eax
cmp dword [0xb993e4], 0x17
jne 0x80b045
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea ecx, [esp + 0x48]
push ecx
push 0x403f2c
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add esi, 8
dec dword [esp + 0x28]
mov dword [esp + 0x24], esi
jne 0x80ae90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x43c
ret
Function at 0x403824
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x462020]
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 [0x462020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x462020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4046d0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x464048], 0
je 0x404731
cmp word [0x46421c], 0xd7b2
jne 0x4046f9
cmp dword [0x464224], 0
jbe 0x4046f9
mov eax, 0x464218
call dword [0x464234]
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 0x404758
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46202c], 0
jne 0x40474d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405be4
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 0x405e14
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405c67
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405e14
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405c67
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405e30
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405cf0
xor eax, eax
push ebp
push 0x405ce9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405a20
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 0x405cce
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405e50
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405cce
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 0x405cf0
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 0x405e0a
cmp byte [ebp - 0xd], 0
jne 0x405d37
cmp byte [ebp - 0x12], 0
je 0x405e0a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405d50
dec ebx
cmp byte [ebx], 0x2e
je 0x405d5f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405d4f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405e0a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405d9c
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 0x405e0a
cmp byte [ebp - 0xd], 0
je 0x405e0a
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 0x405e0a
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 0x408314
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408366
test eax, edx
je 0x408369
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408329
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 0x40834f
add ecx, 4
js 0x40833f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40834c
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 0x408375
test edx, edx
jne 0x40831c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40b6cc
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 0x40b705
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404940
jmp 0x40b70e
mov eax, ebx
mov edx, esi
call fcn.004048a4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bdcc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bc44
mov eax, dword [0x463b60]
cmp byte [eax], 0
je 0x40be48
mov eax, dword [0x463968]
call fcn.004031ec
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.00408d3c
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 0x40be90
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40be7e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46390c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4667f4]
call fcn.004059c8
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 0x40c6f4
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 0x40c7ca
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004048e8
lea eax, [ebp - 4]
call fcn.00404d38
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404ce0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c7b4
mov eax, ebx
call fcn.00402e50
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c7ad
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.00404ce0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c797
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c7dc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c797
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 0x40c7b4
mov eax, dword [ebp - 0x10]
call fcn.00402e6c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c7d1
lea eax, [ebp - 4]
call fcn.00404850
ret

Function at 0x41b518
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4689e8
cmp dword [edi], 0
jne 0x41b594
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4689e4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x462b54
mov ecx, 2
call fcn.00403040
mov edx, 0x41b4f0
lea eax, [esi + 5]
call fcn.0041b510
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b510
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 0x41b569
mov dword [0x4689e4], 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 0x41ec70
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.00404ce0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41ecc8
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x463c80]
mov dl, 1
mov eax, dword [0x41e77c]
call fcn.0040bf8c
call fcn.00404298
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041e884
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 0x41fe58
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 0x41fe5e
ret