joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10034730
Capabilities:
Get thread local storage value
Set file attributes

Disassembly:
mov eax, dword [0x10063c04]
sub esp, 0x10
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x100347e1
mov ecx, dword [esi + 0x167c0]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ecx
call ebp
mov ax, word [esi + 0x45ca]
mov cx, word [esi + 0x45cc]
lea edx, [esp + 0x18]
mov dword [esi + 0x167c0], 0xffffffff
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
push 0
push 0x80
push 3
push 0
lea ebx, [esi + 0x2ce8]
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100347d0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call ebp
mov ecx, dword [esi + 0x3ce8]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret

Function at 0x100347f0
Capabilities:
Get disk information
Get thread local storage value

Disassembly:
mov eax, dword [0x10063c04]
sub esp, 0x64
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x10034810
mov eax, 4
pop esi
add esp, 0x64
ret
mov eax, dword [esi + 0x38]
push ebx
test eax, eax
push edi
mov ebx, 1
jne 0x100348c5
mov eax, dword [esp + 0x74]
xor ebx, ebx
test eax, eax
je 0x100348c5
cmp byte [eax], 0
je 0x100348c5
push eax
call fcn.10028b50
mov edi, eax
mov eax, dword [esi + 0x4ed8]
add esp, 4
test eax, eax
je 0x100348c5
push edi
call fcn.10028ad0
add esp, 4
test eax, eax
je 0x100348c5
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
add edi, 0x40
push edi
lea ecx, [esp + 0x54]
push str._c:_
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x3c]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push 0x14
push edx
push eax
push ecx
push ebx
lea edx, [esp + 0x28]
push 0x14
lea eax, [esp + 0x68]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x28]
push ecx
push str.PKBACK__03d
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x100348c5
mov ebx, 1
mov eax, ebx
pop edi
pop ebx
pop esi
add esp, 0x64
ret

Function at 0x10034940
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ecx
or edi, 0xffffffff
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1003496a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10034984
mov edx, dword [esp + 0x10]
push 1
push 0
push 0
push edx
call fcn.1003a570
xor ecx, ecx
add eax, esi
pop edi
pop esi
adc edx, ecx
pop ebx
ret
mov eax, edi
pop edi
mov edx, ebx
pop esi
pop ebx
ret
Function at 0x10034ce0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x10063c04]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x10034cf1
ret
mov cx, word [eax + 0x4f30]
or cl, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
and eax, 0xffff
shr eax, 8
ret

Function at 0x10034d10
Capabilities:
Generate random numbers using the delphi lcg
Get thread local storage value
Hash data with crc32

Disassembly:
mov eax, dword [0x10063c04]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10034d88
mov edx, dword [eax + 0x4f28]
push esi
mov esi, dword [esp + 8]
mov ecx, edx
xor ecx, esi
and ecx, 0xff
shr edx, 8
mov ecx, dword [ecx*4 + 0x1005bbc4]
xor ecx, edx
mov edx, dword [eax + 0x4f2c]
mov dword [eax + 0x4f28], ecx
and ecx, 0xff
add ecx, edx
mov edx, dword [eax + 0x4f30]
imul ecx, ecx, 0x8088405
inc ecx
mov esi, edx
mov dword [eax + 0x4f2c], ecx
and esi, 0xff
shr ecx, 0x18
xor ecx, esi
pop esi
shr edx, 8
mov ecx, dword [ecx*4 + 0x1005bbc4]
xor ecx, edx
mov dword [eax + 0x4f30], ecx
ret

Function at 0x10034d90
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x10063c04]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10034ddd
mov esi, dword [esp + 8]
mov dword [eax + 0x4f28], 0x12345678
mov dword [eax + 0x4f2c], 0x23456789
mov dword [eax + 0x4f30], 0x34567890
mov al, byte [esi]
test al, al
je 0x10034ddd
movsx ecx, al
push ecx
call fcn.10034d10
mov al, byte [esi + 1]
add esp, 4
inc esi
test al, al
jne 0x10034dc9
pop esi
ret

Function at 0x10034de0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
mov edx, ecx
dec ecx
mov eax, dword [edi + 0x14f34]
test edx, edx
je 0x10034e27
push ebx
push esi
lea esi, [ecx + 1]
mov ecx, dword [esp + 0x10]
xor edx, edx
mov ebx, eax
mov dl, byte [ecx]
and ebx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x1005bbc4]
xor eax, edx
inc ecx
dec esi
jne 0x10034dff
pop esi
mov dword [edi + 0x14f34], eax
pop ebx
pop edi
ret
mov dword [edi + 0x14f34], eax
pop edi
ret
Function at 0x10040368
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10060608
cmp edx, dword [eax]
je 0x1004038a
add eax, 8
inc ecx
cmp eax, 0x10060698
jl 0x1004037b
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10060608]
jne 0x100404b8
mov eax, dword [0x1006362c]
cmp eax, 1
je 0x10040492
test eax, eax
jne 0x100403bb
cmp dword [0x10063630], 1
je 0x10040492
cmp edx, 0xfc
je 0x100404b8
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100403f2
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10040c80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.1003c090
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10040435
lea eax, [ebp - 0x1a4]
push eax
call fcn.1003c090
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x10059808
push edi
call fcn.10042ba0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10040c80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10040c90
lea eax, [ebp - 0xa0]
push 0x10053194
push eax
call fcn.10040c90
push dword [esi + 0x1006060c]
lea eax, [ebp - 0xa0]
push eax
call fcn.10040c90
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.10042c9e
add esp, 0x2c
pop edi
jmp 0x100404b8
lea eax, [ebp + 8]
lea esi, [esi + 0x1006060c]
push 0
push eax
push dword [esi]
call fcn.1003c090
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 0x10044c00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10044c20
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1003c6b3
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x10044c43
test byte [esp + 8], 2
je 0x10044c43
call fcn.1003c726
mov dword [eax], 0xd
call fcn.1003c72f
mov dword [eax], 5
jmp 0x10044c1c
xor eax, eax
ret

Function at 0x10049747
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1004977f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.1004652a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.10046502
jmp 0x1004978b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x1004978f
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x100616e8
mov ecx, edi
call fcn.10046280
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x100497e2
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x100497f5
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.1004652a
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.10046502
jmp 0x100497f5
mov ecx, esi
call fcn.1004b3db
test eax, eax
je 0x100497f5
push edi
mov ecx, eax
call fcn.10049747
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x1004ad08
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x1004ad4a
call fcn.1004de3e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x1004ad4a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x1004ad41
xor eax, eax
jmp 0x1004ad52
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.1004ad58
pop edi
pop esi
pop ebx
ret 4

Function at 0x1004e7e4
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x1004e812
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1004e830
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.1004e74a
jmp 0x1004e830
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1004e830
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.1004e74a
test edi, edi
mov eax, edi
jne 0x1004e81a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422008]
jne 0x40100a
repz ret
jmp fcn.004016a1

Function at 0x406a84
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00403de3
and dword [ebp - 4], 0
cmp dword [0x423de4], 0
mov ebx, eax
jne 0x406b35
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406be6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406be6
push eax
call fcn.00403d71
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423de4], eax
call esi
push eax
call fcn.00403d71
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423de8], eax
call esi
push eax
call fcn.00403d71
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423dec], eax
call esi
push eax
call fcn.00403d71
pop ecx
mov dword [0x423df4], eax
test eax, eax
je 0x406b35
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403d71
pop ecx
mov dword [0x423df0], eax
mov eax, dword [0x423df0]
cmp eax, ebx
je 0x406b8d
cmp dword [0x423df4], ebx
je 0x406b8d
push eax
call fcn.00403dec
push dword [0x423df4]
mov esi, eax
call fcn.00403dec
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406b8d
test edi, edi
je 0x406b8d
call esi
test eax, eax
je 0x406b84
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406b84
test byte [ebp - 0xc], 1
jne 0x406b8d
or dword [ebp + 0x10], 0x200000
jmp 0x406bc6
mov eax, dword [0x423de8]
cmp eax, ebx
je 0x406bc6
push eax
call fcn.00403dec
pop ecx
test eax, eax
je 0x406bc6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406bc6
mov eax, dword [0x423dec]
cmp eax, ebx
je 0x406bc6
push eax
call fcn.00403dec
pop ecx
test eax, eax
je 0x406bc6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423de4]
call fcn.00403dec
pop ecx
test eax, eax
je 0x406be6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406be8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41e310
Capabilities:
Query environment variable

Disassembly:
sub esp, 0xc04
mov eax, dword [0x422008]
xor eax, esp
mov dword [esp + 0xc00], eax
mov eax, dword [0x423000]
push ebx
mov ebx, dword [0x80971c]
push esi
mov esi, dword [0x8098d4]
push eax
call fcn.0041e1f0
add esp, 4
cmp dword [0x8098d4], 0x2f
jne 0x41e34f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
call fcn.0041e260
add esp, 4
cmp dword [0x8098d4], 0x568
pop esi
pop ebx
jne 0x41e387
push 0
push 0
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push 0
lea edx, [esp + 0x404]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov ecx, dword [esp + 0xc00]
xor ecx, esp
call fcn.00401000
add esp, 0xc04
ret
Function at 0x4032fc
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403e68
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x501024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403f00
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403ee0
xor eax, eax
push ebp
push 0x403ed9
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 0x403f38
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403ee0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x501024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x501024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404ff4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x504054], 0
je 0x405055
cmp word [0x504330], 0xd7b2
jne 0x40501d
cmp dword [0x504338], 0
jbe 0x40501d
mov eax, 0x50432c
call dword [0x504348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
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 0x405080
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x501030], 0
jne 0x405071
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405200
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 [0x501034], 0
je 0x405226
mov edx, esi
mov eax, ebx
call dword [0x501034]
jmp 0x405235
mov eax, 8
call fcn.00403018
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x504055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4051c8
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 0x406f40
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x406f82
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x406fa2
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00406630
add esp, 0x41c
pop esi
pop ebx
ret
Function at 0x40be9c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40bf45
test eax, edx
je 0x40bf48
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40bec5
push edx
mov edx, eax
mov eax, esp
call fcn.0040664c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40bedb
push eax
lea eax, [esp + 8]
call fcn.0040664c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40beea
movzx eax, word [eax]
sub eax, ecx
jmp 0x40bf11
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]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40bf2b
add ecx, 4
js 0x40bf02
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40bf28
push eax
mov eax, ecx
mov edx, 2
call fcn.004052a0
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40bf0f
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40bf11
xor eax, eax
ret
test eax, eax
je 0x40bf58
test edx, edx
jne 0x40beac
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x410d64
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x410d9d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406584
jmp 0x410da6
mov eax, ebx
mov edx, esi
call fcn.00406448
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x410db0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x410dd2
movzx eax, word [esp]
jmp 0x410dd4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x41155c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x411681
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00411370
mov esi, eax
mov eax, dword [0x503db8]
cmp byte [eax], 0
je 0x411629
mov eax, dword [0x503a60]
call fcn.00403450
call fcn.00403180
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x411538]
call fcn.00408014
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x41169c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x411665
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5039e0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x506b50]
call fcn.00408108
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411688
lea eax, [ebp - 4]
mov edx, dword [0x411538]
call fcn.00408020
ret
Function at 0x4122e0
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 0x4123b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040649c
lea eax, [ebp - 4]
call fcn.00406ea0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4123a0
mov eax, ebx
call fcn.00403018
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x412399
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.004064d4
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x412383
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4123c8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x412383
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 0x4123a0
mov eax, dword [ebp - 0x10]
call fcn.00403034
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4123bd
lea eax, [ebp - 4]
call fcn.00406438
ret

Function at 0x41318f
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040565c
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x4131b2
mov eax, edi
add eax, eax
call fcn.00403018
mov esi, eax
jmp 0x4131b4
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4131ed
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4131d7
mov eax, esp
cmp esi, eax
je 0x4131fa
mov eax, esi
call fcn.00403034
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x413234
cmp bl, 0
je 0x413230
cmp bl, 0x41
jl 0x41322b
cmp bl, 0x5a
jg 0x41322b
or bl, 0x20
xor al, bl
inc esi
jmp 0x41320f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x413174

Function at 0x42a504
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0042a208
dec esi
jne 0x42a526
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret