joyce8/EMBER2024-capa huggingface dataset:
Function at 0x12824c1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
push 0x1281430
sub esp, 0x10
mov ebx, 0x1281320
mov esi, ebx
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.01282370
push 0x12813c8
mov esi, 0x1281330
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.01282370
sub esp, 0x10
mov esi, ebx
mov edi, esp
mov ebx, 0x1281300
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
movsd dword es:[edi], dword [esi]
call fcn.01282406
sub esp, 0x10
mov esi, 0x1281330
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
movsd dword es:[edi], dword [esi]
call fcn.01282406
lea eax, [ebp - 0x10c]
xor edi, edi
push 0x1281348
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x10c]
push 0x12813c4
push eax
call esi
mov eax, dword [0x128e07c]
push dword [eax + 4]
lea eax, [ebp - 0x10c]
push eax
call esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 0x2001f
push edi
push 0x12813c0
lea eax, [ebp - 0x10c]
push edi
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, edi
jne 0x12825cb
lea eax, [ebp - 0x10c]
push 0x12813a0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
lea eax, [ebp - 0x10c]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x10c]
push eax
push 1
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, edi
je 0x12825d0
cmp dword [ebp - 4], edi
je 0x12825d9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1286ea5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push ebx
push esi
push edi
xor esi, esi
push dword [ebp + 0xc]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.012876e4
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0xc]
call fcn.01286e58
test eax, eax
je 0x1286fcb
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x138]
push 0x1281920
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0xc]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x2001f
push esi
push 0x12813c0
lea eax, [ebp - 0x138]
push esi
push eax
push SysReAllocStringLen
call ebx
cmp eax, esi
jne 0x1286fcb
push dword [ebp + 8]
lea eax, [ebp - 0x138]
push 0x1281914
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
lea eax, [ebp - 0x138]
push eax
push 1
push esi
push esi
push dword [ebp - 8]
call edi
cmp eax, esi
jne 0x1286fcb
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push 0x12813c0
push esi
push 0x1281904
push dword [ebp - 8]
call ebx
cmp eax, esi
jne 0x1286fcb
lea eax, [ebp - 0x138]
push 0x104
push eax
push dword [0x128e2c4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp eax, esi
je 0x1286fcb
inc eax
push eax
lea eax, [ebp - 0x138]
push eax
push 1
push esi
push esi
push dword [ebp - 4]
call edi
cmp eax, esi
jne 0x1286fcb
push 0xa
push 0x12818f8
push 1
push esi
push 0x12818e8
push dword [ebp - 4]
call edi
cmp eax, esi
je 0x1286fe9
cmp dword [ebp - 8], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x1286fdb
push dword [ebp - 8]
call edi
cmp dword [ebp - 4], esi
je 0x1286fe5
push dword [ebp - 4]
call edi
xor eax, eax
jmp 0x1286ffc
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1287821
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
lea eax, [ebp - 8]
push ebx
push eax
xor ebx, ebx
push 0xf003f
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x12878d3
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0xc], 0x104
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp eax, ebx
jne 0x12878be
dec dword [ebp - 4]
push edi
mov edi, 0x105
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea eax, [ebp - 0x114]
push edi
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call esi
test eax, eax
jne 0x12878bc
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 8]
call fcn.01287821
dec dword [ebp - 4]
lea eax, [ebp - 0x114]
push edi
push eax
push dword [ebp - 4]
push dword [ebp - 8]
jmp 0x1287894
pop esi
pop edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
xor ecx, ecx
cmp eax, ebx
sete cl
mov eax, ecx
pop ebx
leave
ret 8

Function at 0x1287a0b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push ebx
push esi
push edi
push 0x128e2e0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x128e2c0], 0
jne 0x1287b41
cmp word [0x1281340], 0
je 0x1287b2e
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [ebp - 8]
push 5
push eax
push 3
push dword [0x128e070]
call esi
test eax, eax
je 0x1287b2e
mov edi, 0x104
lea eax, [ebp - 0x210]
push edi
push eax
push 0x3e9
push dword [0x128e2c4]
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x1287b2e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x314]
push 0x12819bc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x210]
push edi
push eax
push dword [0x128e2c4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.012879c4
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [ebp - 0x10c]
push eax
call ebx
test eax, eax
mov dword [0x128e2c0], eax
jne 0x1287b2e
lea eax, [ebp - 8]
push 5
push eax
mov eax, dword [0x128e070]
and eax, 0x3ff
push 3
or ah, 4
push eax
call esi
test eax, eax
je 0x1287b2e
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x10c]
lea esi, [ebp - 8]
lea edi, [eax - 7]
lea eax, [ebp - 0x10c]
movsw word es:[edi], word [esi]
push eax
movsb byte es:[edi], byte [esi]
call ebx
mov dword [0x128e2c0], eax
cmp dword [0x128e2c0], 0
jne 0x1287b41
mov eax, dword [0x128e2c4]
mov dword [0x128e2c0], eax
push 0x128e2e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x128e2c0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401390
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x14], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0xe4], eax
push 0x20
push str.Times_New
lea ecx, [ebp - 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x6d
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 8], 8
mov dword [ebp - 4], 0x4000
lea eax, [ebp - 8]
push eax
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401630
add esp, 4
push str.Roman
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004016b0
add esp, 8
test eax, eax
jne 0x401429
xor eax, eax
jmp 0x401462
push 0
push 0
push 0
lea edx, [ebp - 0xe0]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x40145c
lea eax, [ebp - 0xe0]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0xe0]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x401429
mov eax, dword [ebp - 0xd8]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40246c
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x402495
mov al, byte [esi + 1]
inc esi
test al, al
je 0x40248d
cmp al, 0x22
jne 0x402481
cmp byte [esi], 0x22
jne 0x40249f
inc esi
jmp 0x40249f
cmp al, 0x20
jle 0x40249f
inc esi
cmp byte [esi], 0x20
jg 0x402499
mov al, byte [esi]
test al, al
je 0x4024a9
cmp al, 0x20
jle 0x402492
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004015aa
push 0x404004
push section..data
call fcn.00401115
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x4024d9
movzx eax, word [ebp - 0x14]
jmp 0x4024dc
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.00401390
mov esi, eax
call fcn.00401516
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x402620
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ecx, 0x404620
call fcn.0040246c
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x403674
Capabilities:
Query or enumerate registry value

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

Function at 0x4043d0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x498048], 0
je 0x404431
cmp word [0x49821c], 0xd7b2
jne 0x4043f9
cmp dword [0x498224], 0
jbe 0x4043f9
mov eax, 0x498218
call dword [0x498234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x496070
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 0x404458
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x496030], 0
jne 0x40444d
push 0
push 0x496068
push 0x496070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405830
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 0x405a60
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4058b3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405a60
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4058b3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405a7c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40593c
xor eax, eax
push ebp
push 0x405935
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405678
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 0x40591a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405a9c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40591a
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 0x40593c
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 0x405a56
cmp byte [ebp - 0xd], 0
jne 0x405983
cmp byte [ebp - 0x12], 0
je 0x405a56
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40599c
dec ebx
cmp byte [ebx], 0x2e
je 0x4059ab
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40599b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405a56
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4059e8
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 0x405a56
cmp byte [ebp - 0xd], 0
je 0x405a56
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 0x405a56
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 0x406128
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40618e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004047bc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403084
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406178
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406195
lea eax, [ebp - 0x10]
call fcn.0040454c
ret

Function at 0x40b65c
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 0x40b695
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040463c
jmp 0x40b69e
mov eax, ebx
mov edx, esi
call fcn.004045a0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b6a8
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 0x40b6c9
mov al, byte [esp]
jmp 0x40b6cb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bd50
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bbc8
mov eax, dword [0x497c60]
cmp byte [eax], 0
je 0x40bdcc
mov eax, dword [0x497a40]
call fcn.00402d14
call fcn.00402864
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.00408dbc
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 0x40be14
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40be02
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4979ec]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x498664]
call fcn.0040563c
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 0x40c668
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c73e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004045e4
lea eax, [ebp - 8]
call fcn.00404a5c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404a0c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c728
mov eax, ebx
call fcn.004026fc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c721
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 - 8]
call fcn.00404a0c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c70b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c750
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c70b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c728
mov eax, dword [ebp - 0x10]
call fcn.0040271c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c745
lea eax, [ebp - 8]
call fcn.0040454c
ret

Function at 0x40ccc8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40cd2c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004047bc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408904
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd33
lea eax, [ebp - 0xc]
call fcn.0040454c
ret

Function at 0x41b970
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x498884
cmp dword [edi], 0
jne 0x41b9ec
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x498880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4963f0
mov ecx, 2
call fcn.004028f8
mov edx, 0x41b948
lea eax, [esi + 5]
call fcn.0041b968
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b968
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 0x41b9c1
mov dword [0x498880], 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 0x41cfd8
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 0x41cfde
ret
Function at 0x41f774
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41f7c5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41f7ac
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41f79c
jmp 0x41f7c5
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41f7ad
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b450
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004049fc
xor eax, eax
push ebp
push 0x42b57e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x42b551
xor eax, eax
push ebp
push 0x42b54a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040480c
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42b51f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x42b50e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040480c
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404a0c
mov edx, ebx
pop ecx
call fcn.004028f8
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42b515
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x497984]
mov dl, 1
mov eax, dword [0x407608]
call fcn.0040bed4
call fcn.00403f88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42b585
lea eax, [ebp - 4]
call fcn.0040454c
ret