joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e3be0
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 4], 5
ja 0x4e3c0c
cmp dword [esp + 4], 5
jne 0x4e3c08
cmp dword [esp + 8], 1
jae 0x4e3c0c
xor eax, eax
jmp 0x4e3c0e
mov al, 1
mov byte [0x502f8c], al
add esp, 0x94
ret

Function at 0x4ecb6c
Capabilities:
Terminate process

Disassembly:
push 0
call sub.kernel32.dll_GetCurrentProcessId
push eax
push 0xffffffffffffffff
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
ret

Function at 0x4ecc9c
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, eax
push edx
push 0
push 0xc
push ebx
call sub.user32.dll_SendMessageA
push 0
push 0xd
push pe_nt_image_headers32
push ebx
call sub.user32.dll_PostMessageA
cmp eax, 1
sbb eax, eax
inc eax
pop ebx
ret
Function at 0x4ecce4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
xor eax, eax
push ebp
push 0x4eceb1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x502fc4], 0
je 0x4ece86
call sub.user32.dll_GetForegroundWindow
mov esi, eax
mov eax, dword [0x502f98]
call fcn.0044f450
push eax
call sub.user32.dll_SetForegroundWindow
lea eax, [ebp - 4]
call fcn.0040703c
push eax
lea ecx, [ebp - 8]
mov eax, dword [0x502f98]
mov eax, dword [eax + 0x368]
mov edx, 0xcb
call fcn.004857c8
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x1b0]
call fcn.0040714c
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xec]
call fcn.0040714c
push 0x4ecec8
lea edx, [ebp - 0x10]
mov eax, dword [0x502f98]
mov eax, dword [eax + 0x390]
mov eax, dword [eax + 0x44]
call fcn.00409e98
push dword [ebp - 0x10]
push 0x4eced8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405838
mov eax, dword [ebp - 0xc]
call fcn.00405934
xor edx, edx
call fcn.0049935c
mov dl, 1
mov eax, dword [0x438744]
call fcn.00404574
mov ebx, eax
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.004389c8
mov edx, dword [ebp - 0x14]
mov eax, 0x502fdc
call fcn.004054f8
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x18]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x10]
mov edx, dword [0x502fc4]
mov eax, ebx
call fcn.00438a48
mov eax, 0x4ecedc
xor edx, edx
call fcn.0049935c
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, ebx
call fcn.004045a4
push 0x4ecec8
lea edx, [ebp - 0x1c]
mov eax, dword [0x502f98]
mov eax, dword [eax + 0x390]
mov eax, dword [eax + 0x48]
call fcn.00409e98
push dword [ebp - 0x1c]
push 0x4eced8
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00405838
mov eax, dword [ebp - 0x18]
call fcn.00405934
xor edx, edx
call fcn.0049935c
mov al, 0x20
call fcn.004eccc4
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x4ece70
cmp eax, 0x3e8
jbe 0x4ece72
jmp 0x4ece80
jg 0x4ece80
mov eax, dword [0x4fa06c]
mov eax, dword [eax]
call fcn.00466264
jmp 0x4ece4d
push esi
call sub.user32.dll_SetForegroundWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4eceb8
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.004054c8
lea eax, [ebp - 8]
call fcn.0040703c
lea eax, [ebp - 4]
call fcn.0040703c
ret
Function at 0x4eead0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe2c
push ebx
xor edx, edx
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x4eec82
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4f9ef8]
mov eax, dword [eax]
call fcn.0040a3d8
test al, al
je 0x4eeb22
mov ebx, dword [0x4f9ef8]
mov ebx, dword [ebx]
mov dword [ebp - 0x1d4], ebx
mov eax, dword [ebp - 0x1d4]
call fcn.00405934
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov edx, dword [0x4f9ef8]
mov edx, dword [edx]
lea eax, [ebp - 0x1d0]
call fcn.004037f0
lea eax, [ebp - 0x1d0]
call fcn.00403580
call fcn.004030d0
push 0x4eec98
mov eax, dword [0x4f9e8c]
push dword [eax]
push 0x4eece0
push 0x4eecf0
push 0x4eecfc
push 0x4eed08
push 0x4eecf0
push 0x4eecfc
push 0x4eed24
push 0x4eecf0
push 0x4eecfc
push 0x4eed3c
push 0x4eecf0
push 0x4eecfc
push 0x4eed5c
push 0x4eecf0
push 0x4eecfc
push 0x4eed78
push 0x4eecf0
push 0x4eecfc
push 0x4eed98
push 0x4eecf0
push 0x4eecfc
push 0x4eedb4
push 0x4eecf0
push 0x4eecfc
push 0x4eedd4
push 0x4eecf0
push 0x4eecfc
push 0x4eedf4
push 0x4eecf0
push 0x4eecfc
push 0x4eee14
push 0x4eecf0
push 0x4eecfc
push 0x4eee38
push 0x4eecf0
push 0x4eecfc
push 0x4eee54
push 0x4eecf0
push 0x4eecfc
push 0x4eee74
push 0x4eecf0
push 0x4eecfc
push 0x4eee88
push 0x4eecf0
push 0x4eecfc
push 0x4eeedc
lea eax, [ebp - 4]
mov edx, 0x30
call fcn.00405838
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.00405c54
call fcn.00403ee8
call fcn.004030d0
lea eax, [ebp - 0x1d0]
call fcn.004038b8
call fcn.004030d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4eec89
lea eax, [ebp - 4]
call fcn.004054a4
ret
Function at 0x4eef70
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4eef78
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00405924
mov esi, 0x502fb4
xor eax, eax
push ebp
push 0x4ef1ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov eax, dword [0x4f9c60]
cmp byte [eax], 6
je 0x4eefb6
mov eax, dword [0x4f9c60]
cmp byte [eax], 7
jne 0x4eefd7
lea edx, [ebp - 0x10]
mov eax, dword [0x4f9c74]
mov eax, dword [eax]
call fcn.0040a650
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x4ef1c8
call fcn.004057bc
jmp 0x4eeff9
lea eax, [ebp - 0x14]
call fcn.00468ab0
push dword [ebp - 0x14]
push 0x4ef1dc
push 0x4ef1c8
lea eax, [ebp - 8]
mov edx, 3
call fcn.00405838
push 0xffff
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4187b4]
call fcn.0041d534
mov dword [ebp - 0xc], eax
cmp dword [esi], 0
je 0x4ef01c
mov eax, dword [esi]
call fcn.004045a4
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4a82d0]
call fcn.0046c7f8
mov dword [esi], eax
xor eax, eax
push ebp
push 0x4ef051
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [esi]
call fcn.004a8854
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ef07d
mov eax, dword [esi]
call fcn.0048144c
mov eax, dword [esi]
call fcn.004045a4
xor eax, eax
mov dword [esi], eax
mov esi, dword [0x4f9c44]
mov esi, dword [esi]
mov edx, dword [0x4f9c44]
mov edx, dword [edx]
lea eax, [ebp - 0x18]
mov ecx, 0x4ef210
call fcn.004057bc
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x1c]
call fcn.00405934
push eax
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x20]
call fcn.00405934
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
mov edx, dword [0x4f9c44]
mov edx, dword [edx]
mov eax, dword [ebp - 0xc]
call fcn.004eeeec
test al, al
je 0x4ef117
mov edx, dword [0x4f9c44]
mov edx, dword [edx]
lea eax, [ebp - 0x24]
mov ecx, 0x4ef210
call fcn.004057bc
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
call fcn.00405934
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x4ef15a
mov edx, dword [0x4f9c44]
mov edx, dword [edx]
lea eax, [ebp - 0x28]
mov ecx, 0x4ef210
call fcn.004057bc
mov esi, dword [ebp - 0x28]
mov edi, dword [0x4f9c44]
mov edi, dword [edi]
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x1c]
call fcn.00405934
push eax
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x20]
call fcn.00405934
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
mov eax, dword [ebp - 0xc]
call fcn.004045a4
mov eax, dword [ebp - 8]
call fcn.00405934
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ef1b4
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004054c8
lea eax, [ebp - 0x18]
call fcn.004054a4
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004054c8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004054c8
ret
Function at 0x4f0830
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405924
mov eax, dword [ebp - 8]
call fcn.00405924
xor eax, eax
push ebp
push 0x4f09a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edx
test eax, eax
je 0x4f086f
sub eax, 4
mov eax, dword [eax]
cmp eax, 0xa
jge 0x4f0878
mov al, 1
jmp 0x4f088a
mov eax, dword [ebp - 8]
test eax, eax
je 0x4f0884
sub eax, 4
mov eax, dword [eax]
cmp eax, 0xa
setl al
test al, al
jne 0x4f0988
mov eax, edx
test eax, eax
je 0x4f089d
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 8]
test edx, edx
je 0x4f08a9
sub edx, 4
mov edx, dword [edx]
cmp edx, eax
jne 0x4f0988
lea eax, [ebp - 0xc]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040599c
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov ecx, 8
mov edx, 4
mov eax, dword [ebp - 8]
call fcn.0040599c
mov edx, dword [ebp - 0x10]
pop eax
call fcn.004058cc
jne 0x4f0988
push 0
mov eax, dword [0x4fd7f8]
push eax
push 0x4f058c
push 0xd
call sub.user32.dll_SetWindowsHookExW
push 0x80
push 0xffffffffffffffec
mov eax, dword [0x4fa06c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_SetWindowLongA
call fcn.004f0754
mov ebx, eax
test ebx, ebx
jl 0x4f0988
inc ebx
lea eax, [ebp - 0x14]
call fcn.004f061c
mov eax, dword [ebp - 0x14]
call fcn.00405934
push eax
call sub.kernel32.dll_GlobalFindAtomA
test ax, ax
jne 0x4f096c
push 0x4f09b4
call sub.kernel32.dll_GlobalAddAtomA
movzx esi, ax
call fcn.004f0754
mov edi, eax
call fcn.004f0538
add edi, eax
mov eax, edi
push 0x5a
push 3
push eax
push esi
call sub.user32.dll_RegisterHotKey
jmp 0x4f0985
call fcn.004052dc
push 1
mov eax, dword [0x4fd7f8]
push eax
push 0x4f058c
push 0xd
call sub.user32.dll_SetWindowsHookExW
dec ebx
jne 0x4f0927
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f09aa
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.004054c8
ret
Function at 0x40331c
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.00404ff8
test esi, esi
jne 0x403352
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.004050e8
jmp 0x403370
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004031c0
mov edi, eax
test esi, esi
je 0x403370
cmp dword [ebx], 0
je 0x403370
dec esi
jmp 0x403359
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403ecc
Capabilities:
Query or enumerate registry value

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

Function at 0x404dc4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49304c], 0
je 0x404e25
cmp word [0x493220], 0xd7b2
jne 0x404ded
cmp dword [0x493228], 0
jbe 0x404ded
mov eax, 0x49321c
call dword [0x493238]
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 0x404e4c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x490030], 0
jne 0x404e41
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404f7c
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 [0x490038], 0
je 0x404fa2
mov edx, esi
mov eax, ebx
call dword [0x490038]
jmp 0x404fb1
mov eax, 8
call fcn.00402ed0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x49304d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404f44
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 0x406740
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 0x406970
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4067c3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406970
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4067c3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40698c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40684c
xor eax, eax
push ebp
push 0x406845
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040657c
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 0x40682a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4069ac
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40682a
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 0x40684c
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 0x406966
cmp byte [ebp - 0xd], 0
jne 0x406893
cmp byte [ebp - 0x12], 0
je 0x406966
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4068ac
dec ebx
cmp byte [ebx], 0x2e
je 0x4068bb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4068ab
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406966
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4068f8
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 0x406966
cmp byte [ebp - 0xd], 0
je 0x406966
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 0x406966
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 0x408f68
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408fba
test eax, edx
je 0x408fbd
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408f7d
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 0x408fa3
add ecx, 4
js 0x408f93
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408fa0
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 0x408fc9
test edx, edx
jne 0x408f70
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405488
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409a4e
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x409a6f
cmp ebx, 3
je 0x409a6f
cmp ebx, 0x7b
je 0x409a6f
mov eax, esi
call fcn.004099f0
test al, al
jne 0x409a73
xor eax, eax
jmp 0x409a75
mov al, 1
pop esi
pop ebx
ret

Function at 0x40c5a8
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 0x40c5e1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004050e8
jmp 0x40c5ea
mov eax, ebx
mov edx, esi
call fcn.0040504c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40cca8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cb20
mov eax, dword [0x492788]
cmp byte [eax], 0
je 0x40cd24
mov eax, dword [0x492400]
call fcn.0040370c
call fcn.0040302c
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.00409c1c
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 0x40cd6c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cd5a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x49236c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4957f8]
call fcn.00406524
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 0x40d62c
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 0x40d702
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405090
lea eax, [ebp - 4]
call fcn.004054e0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405488
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d6ec
mov eax, ebx
call fcn.00402ed0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d6e5
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.00405488
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d6cf
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d714
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d6cf
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 0x40d6ec
mov eax, dword [ebp - 0x10]
call fcn.00402eec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d709
lea eax, [ebp - 4]
call fcn.00404ff8
ret

Function at 0x4232c0
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.00422ffc
dec esi
jne 0x4232e2
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x424454
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4979f0
cmp dword [edi], 0
jne 0x4244d0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4979ec]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x490b9c
mov ecx, 2
call fcn.004030c0
mov edx, 0x42442c
lea eax, [esi + 5]
call fcn.0042444c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042444c
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 0x4244a5
mov dword [0x4979ec], 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 0x426c70
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.00405488
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x426cc8
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x492960]
mov dl, 1
mov eax, dword [0x42677c]
call fcn.0040ce68
call fcn.00404970
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00426884
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 0x427b24
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 0x427b2a
ret