joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49b9c3
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x49b9f7
call fcn.0047c3d9
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x49ba5f
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x49ba8d
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jl 0x49bb28
cmp dword [esp + 0x14], ebx
je 0x49bb28
jmp 0x49baca
push 0x10
call fcn.0049b771
cmp eax, ebx
je 0x49baa3
mov ecx, eax
call fcn.0049b9ba
mov esi, eax
jmp 0x49baa5
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
lea ebx, [edi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
push ebx
mov dword [edi + 0x14], esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
xor ebx, ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x49bae1
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
jmp 0x49baf1
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_LocalReAlloc]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x49bafd
call fcn.0047c3d9
mov eax, dword [esi + 8]
mov ecx, dword [edi + 0xc]
sub ecx, eax
shl ecx, 2
push ecx
mov ecx, dword [esi + 0xc]
lea eax, [ecx + eax*4]
push ebx
push eax
call fcn.0046c9c0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax + edx*4], ecx
pop ebx
ret 8
Function at 0x49bfd6
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, 0x4a63f5
call fcn.0046c6ac
mov eax, 0x2014
call fcn.0046ae30
mov eax, dword [0x4ceed0]
xor eax, dword [ebp + 4]
push ebx
push edi
xor edi, edi
mov dword [ebp - 0x1c], edi
cmp dword [ecx + 0x50], edi
mov dword [ebp - 0x10], eax
je 0x49c0b0
push dword [ebp + 0xc]
call fcn.0049bf27
cmp eax, edi
mov dword [ebp - 0x14], eax
jne 0x49c01c
push dword [ebp + 0x14]
jmp 0x49c0e1
push esi
call fcn.0047ef80
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp + 0xc], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x20]
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp - 0x14]
call esi
cmp eax, edi
mov dword [ebp - 0x18], eax
jne 0x49c081
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
push ecx
shr eax, 1
push eax
lea ecx, [ebp + 0xc]
call fcn.0045c390
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call esi
push 0xffffffffffffffff
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x18], eax
call fcn.0045d294
mov ebx, dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], edi
mov ecx, dword [ebp + 8]
pop esi
jne 0x49c09e
lea eax, [ebp + 0xc]
push eax
call fcn.0045d4d8
jmp 0x49c0a6
push dword [ebp + 0x14]
call fcn.0045c54f
lea ecx, [ebx - 0x10]
call fcn.00402860
jmp 0x49c0e9
cmp dword [ebp + 0x14], edi
jne 0x49c0bc
mov dword [ebp + 0x14], 0x4a8084
push dword [ecx + 0x64]
lea eax, [ebp - 0x2020]
push 0x1000
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
lea eax, [ebp - 0x2020]
push eax
mov ecx, dword [ebp + 8]
call fcn.0045c54f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
pop ebx
call fcn.0046c69e
leave
ret 0x10
Function at 0x49c107
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4a63f5
call fcn.0046c6ac
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
mov dword [esi], edi
mov dword [ebx], edi
cmp dword [ecx + 0x50], edi
je 0x49c199
push dword [ebp + 8]
call fcn.0049bf27
cmp eax, edi
mov dword [ebp + 0x14], eax
jne 0x49c13c
xor eax, eax
jmp 0x49c20c
lea ecx, [ebp + 0x10]
push ecx
push edi
lea ecx, [ebp - 0x10]
push ecx
push edi
push dword [ebp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
call edi
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx], eax
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x49c17f
push eax
call fcn.00483bc7
pop ecx
lea ecx, [ebp + 0x10]
push ecx
push eax
mov dword [esi], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call edi
mov dword [ebp + 8], eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 8], ebx
je 0x49c209
push dword [esi]
call fcn.00483bf7
pop ecx
mov dword [esi], ebx
jmp 0x49c135
push edi
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.0049bfd6
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx - 0xc]
cmp eax, edi
mov dword [ebp - 4], edi
mov dword [ebp + 8], eax
jne 0x49c1c6
add ecx, 0xfffffff0
call fcn.00402860
jmp 0x49c135
shr eax, 1
push eax
mov dword [ebx], eax
call fcn.00483bc7
cmp dword [ebp + 8], edi
pop ecx
mov dword [esi], eax
jle 0x49c1fe
mov eax, dword [ebp + 0xc]
lea eax, [eax + edi*2]
mov cl, byte [eax + 2]
dec cl
shl cl, 4
add cl, byte [eax]
mov eax, edi
cdq
sub eax, edx
mov edx, dword [esi]
sub cl, 0x41
sar eax, 1
inc edi
inc edi
cmp edi, dword [ebp + 8]
mov byte [eax + edx], cl
jl 0x49c1d8
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00402860
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x49c4f5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x49c524
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
shl eax, 1
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
neg eax
sbb eax, eax
inc eax
jmp 0x49c575
push esi
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x49c572
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0xc]
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x49c572
test esi, esi
jne 0x49c572
inc eax
jmp 0x49c574
xor eax, eax
pop esi
pop ebp
ret 0xc
Function at 0x4041c0
Capabilities:
Get common file path
Get hostname

Disassembly:
mov eax, 0x42efe4
call fcn.0042eef0
mov eax, 0x1c30
call fcn.00410360
push ebx
push esi
xor esi, esi
cmp dword [0x4e2900], 0x5b1
push edi
jne 0x404243
push esi
call dword [sym.imp.KERNEL32.dll_SetLocalTime]
lea eax, [ebp - 0x3c]
call fcn.004044e9
push esi
mov dword [ebp - 4], esi
call fcn.00405bba
pop ecx
call fcn.0040501c
push 0x403880
lea ecx, [ebp - 0x20]
call fcn.00403cd0
lea ecx, [ebp - 0x20]
call fcn.00403cec
push esi
push esi
call fcn.00405730
push esi
call fcn.00405701
add esp, 0xc
call fcn.00405021
push esi
call fcn.00405c36
mov dword [esp], esi
call fcn.00403e1f
fstp st(0)
push esi
call fcn.00405ee6
add dword [0x4e2900], 0x1134b
push dword [0x4e2900]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x4e1850], eax
call fcn.0040410b
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, 0x206d47
jg 0x40428c
inc edi
cmp edi, 0x4f6a4
jl 0x40426c
xor edi, edi
cmp dword [0x4e2900], esi
jbe 0x4042c7
cmp dword [0x4e2900], 0xa8
mov eax, dword [0x4e2904]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x4e1850]
mov byte [ecx + edi], al
jne 0x4042be
push esi
call dword [sym.imp.KERNEL32.dll_SetComputerNameW]
inc edi
cmp edi, dword [0x4e2900]
jb 0x404296
xor edi, edi
mov eax, dword [0x4e2900]
add eax, edi
cmp eax, 0xe
jne 0x40430d
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
push esi
lea eax, [ebp - 0x103c]
push eax
push esi
push 0x403890
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push esi
push esi
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
inc edi
cmp edi, 0x39621
jl 0x4042c9
call fcn.00404004
xor edi, edi
call ebx
cmp edi, 0x26
jne 0x404329
call fcn.004040f1
inc edi
cmp edi, 0x6753f
jl 0x40431d
push 0x7b
pop edi
cmp dword [0x4e2900], 0x86
jne 0x404376
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x143c]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push esi
lea eax, [ebp - 0x83c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push esi
lea eax, [ebp - 0x1c3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp dword [0x4e2900], 0xf
jne 0x404387
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
dec edi
jne 0x404335
push 0x4038b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40bead
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.0040a317
and dword [ebp - 4], 0
cmp dword [0x4333f0], 0
mov ebx, eax
jne 0x40bf5e
push 0x4024f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c00f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4024e4
push edi
call esi
test eax, eax
je 0x40c00f
push eax
call fcn.0040a2a5
mov dword [esp], 0x4024d4
push edi
mov dword [0x4333f0], eax
call esi
push eax
call fcn.0040a2a5
mov dword [esp], 0x4024c0
push edi
mov dword [0x4333f4], eax
call esi
push eax
call fcn.0040a2a5
mov dword [esp], 0x4024a4
push edi
mov dword [0x4333f8], eax
call esi
push eax
call fcn.0040a2a5
pop ecx
mov dword [0x433400], eax
test eax, eax
je 0x40bf5e
push 0x40248c
push edi
call esi
push eax
call fcn.0040a2a5
pop ecx
mov dword [0x4333fc], eax
mov eax, dword [0x4333fc]
cmp eax, ebx
je 0x40bfb6
cmp dword [0x433400], ebx
je 0x40bfb6
push eax
call fcn.0040a320
push dword [0x433400]
mov esi, eax
call fcn.0040a320
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40bfb6
test edi, edi
je 0x40bfb6
call esi
test eax, eax
je 0x40bfad
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40bfad
test byte [ebp - 0xc], 1
jne 0x40bfb6
or dword [ebp + 0x10], 0x200000
jmp 0x40bfef
mov eax, dword [0x4333f4]
cmp eax, ebx
je 0x40bfef
push eax
call fcn.0040a320
pop ecx
test eax, eax
je 0x40bfef
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40bfef
mov eax, dword [0x4333f8]
cmp eax, ebx
je 0x40bfef
push eax
call fcn.0040a320
pop ecx
test eax, eax
je 0x40bfef
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4333f0]
call fcn.0040a320
pop ecx
test eax, eax
je 0x40c00f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c011
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10001d00
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp dword [esp + 8], 1
jne 0x10001d51
push esi
push 0x64
push 0x258
call dword [sym.imp.KERNEL32.dll_Beep]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push section..text
push 0
push 0
call esi
push 0
push 0
push 0
push 0x10001bd0
push 0
push 0
call esi
mov eax, 1
pop esi
ret 0xc
xor eax, eax
ret 0xc
Function at 0x402e34
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004045a4
test esi, esi
jne 0x402e6b
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404694
jmp 0x402e8c
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402cd0
mov dword [esp], eax
test esi, esi
je 0x402e8c
cmp dword [ebx], 0
je 0x402e8c
dec esi
jmp 0x402e73
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x403608
Capabilities:
Query or enumerate registry value

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

Function at 0x40439c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b7048], 0
je 0x4043fd
cmp word [0x4b721c], 0xd7b2
jne 0x4043c5
cmp dword [0x4b7224], 0
jbe 0x4043c5
mov eax, 0x4b7218
call dword [0x4b7234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4b0070
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 0x404424
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b0034], 0
jne 0x404419
push 0
push 0x4b0068
push 0x4b0070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404558
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402a70
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4b7049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404520
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4062b4
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 0x40631a
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.00404814
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040319c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406304
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406321
lea eax, [ebp - 0x10]
call fcn.004045a4
ret

Function at 0x40bb4c
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40bb85
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404694
jmp 0x40bb8e
mov eax, ebx
mov edx, esi
call fcn.004045f8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40cba0
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 0x40cc76
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040463c
lea eax, [ebp - 8]
call fcn.00404ab4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404a64
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cc60
mov eax, ebx
call fcn.00402a70
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cc59
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.00404a64
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cc43
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cc88
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cc43
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 0x40cc60
mov eax, dword [ebp - 0x10]
call fcn.00402aa0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc7d
lea eax, [ebp - 8]
call fcn.004045a4
ret
Function at 0x40d254
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 0x40d2b8
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.00404814
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408bcc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d2bf
lea eax, [ebp - 0xc]
call fcn.004045a4
ret

Function at 0x41bd14
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x41bd61
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0041bb6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41bd79
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x41bd80
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.0041bb6c
dec esi
jne 0x41bda2
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x41cee4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4b7888
cmp dword [edi], 0
jne 0x41cf60
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4b7884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4b03f0
mov ecx, 2
call fcn.00402c90
mov edx, 0x41cebc
lea eax, [esi + 5]
call fcn.0041cedc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041cedc
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 0x41cf35
mov dword [0x4b7884], 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 0x41e56c
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 0x41e572
ret
Function at 0x420b9c
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 0x420bed
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x420bd4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x420bc4
jmp 0x420bed
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 0x420bd5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42dedc
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
push 1
call sub.user32.dll_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42df4e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x42df22
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.0040479c
jmp 0x42df29
mov eax, ebx
call fcn.004045a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42df55
cmp dword [ebp - 8], 0
je 0x42df45
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x42df5c
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x42dffe
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x42dfd1
mov edx, ebx
mov eax, dword [0x41e030]
call fcn.004227e4
test al, al
je 0x42dfc1
movzx eax, bx
push eax
call sub.user32.dll_GetClipboardData
mov esi, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.004226f4
call fcn.00403fe0
jmp 0x42e005
movzx eax, bx
push eax
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x42df8c
mov ecx, dword [0x4b5d04]
mov dl, 1
mov eax, dword [0x4077a0]
call fcn.0040c404
call fcn.00403f34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e005
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x42e00c
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x42e064
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e06b
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret