joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000433b
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x10020550]
xor eax, ebp
mov dword [ebp + 0x88], eax
push ebx
movzx ebx, byte [ebp + 0x94]
mov eax, ebx
imul eax, eax, 0x14
push esi
push edi
mov edi, ecx
or dword [edi + 0x11d98], 0xffffffff
lea esi, [eax + edi]
cmp dword [esi + 0x30], 0
je 0x1000440a
cmp dword [esi + 0x38], 0
je 0x1000440a
lea eax, [ebx + 3]
imul eax, eax, 0x14
add eax, edi
mov dword [ebp - 0x80], eax
mov eax, dword [eax]
test eax, eax
je 0x100043a1
push eax
call dword [esi + 0x34]
mov eax, dword [ebp - 0x80]
and dword [eax], 0
pop ecx
mov eax, dword [esi + 0x40]
test eax, eax
je 0x100043af
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor eax, eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x34], eax
mov eax, ebx
imul eax, eax, 0x104
lea esi, [eax + edi]
lea eax, [esi + 0x1480]
push eax
call fcn.1000ada0
mov dword [ebp - 0x80], eax
mov dword [esp], 0x103
lea eax, [ebp - 0x7b]
push 0
push eax
mov byte [ebp - 0x7c], 0
call fcn.1000b680
push dword [ebp - 0x80]
add esi, 0x1481
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.1000a7e0
add esp, 0x18
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
imul ebx, ebx, 0x104
push 0x104
lea eax, [ebx + edi + 0x1480]
push 0
push eax
call fcn.1000b680
add esp, 0xc
mov ecx, edi
call fcn.10003f54
mov ecx, dword [ebp + 0x88]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.1000b561
add ebp, 0x8c
leave
ret 4

Function at 0x1000484a
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x848
mov eax, dword [0x10020550]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x7ff
lea eax, [ebp - 0x83f]
push 0
push eax
mov byte [ebp - 0x840], 0
call fcn.1000b680
add esp, 0xc
push 0xb
pop ecx
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, str.MicrUpdate
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push str.SHGetValueA
push str.shlwapi.dll
mov dword [ebp - 0x844], 0x800
mov dword [ebp - 0x848], 1
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea ecx, [ebp - 0x844]
push ecx
lea ecx, [ebp - 0x840]
push ecx
lea ecx, [ebp - 0x848]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x40]
push ecx
push closesocket
mov dword [0x10021944], eax
call eax
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.1000b561
leave
ret
Function at 0x100048ff
Capabilities:
Get common file path
Get program files directory
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1040
call fcn.1000d010
mov eax, dword [0x10020550]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x7ff
xor ebx, ebx
push esi
lea eax, [ebp - 0x83f]
push ebx
push eax
mov byte [ebp - 0x840], bl
call fcn.1000b680
push esi
lea eax, [ebp - 0x103f]
push ebx
push eax
mov byte [ebp - 0x1040], bl
call fcn.1000b680
add esp, 0x18
push ebx
push 0x26
lea eax, [ebp - 0x840]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x840]
push str.MicrosoftWindows
push eax
call fcn.1000d1d0
lea eax, [ebp - 0x840]
push str._nvsvc32.exe
push eax
call fcn.1000d1d0
add esp, 0x10
push 0x800
lea eax, [ebp - 0x1040]
push eax
lea eax, [ebp - 0x840]
push eax
call dword [sym.imp.KERNEL32.DLL_GetShortPathNameA]
lea eax, [ebp - 0x1040]
push eax
call fcn.1000ada0
push 0xb
pop ecx
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, str.MicrUpdate
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [esp], str.SHSetValueA
push str.shlwapi.dll
mov ebx, eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push ebx
lea ecx, [ebp - 0x1040]
push ecx
push 1
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x40]
push ecx
push closesocket
mov dword [0x1002194c], eax
call eax
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.1000b561
leave
ret

Function at 0x10004a0d
Capabilities:
Check mutex on windows

Disassembly:
push esi
push 0x1001a67c
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov esi, eax
test esi, esi
jne 0x10004a28
or eax, 0xffffffff
pop esi
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x10004a46
push esi
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0xfffffffffffffffe
pop eax
pop esi
ret

Function at 0x10004a48
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x10020550]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x20c], 0
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
call fcn.1000b680
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
lea eax, [ebp - 0x20c]
push str.uxtheme.dll
push eax
call fcn.1000d0ca
pop ecx
pop ecx
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000b561
leave
ret

Function at 0x10004b88
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x10004ae3
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x10004b9a
Function at 0x10004ba4
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
dec eax
jne 0x10004bbd
xor eax, eax
push eax
push eax
push eax
push 0x10004ae3
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
xor eax, eax
inc eax
ret 0xc

Function at 0x10004c1d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor eax, eax
cmp edi, eax
je 0x10004c62
cmp esi, eax
je 0x10004c62
cmp dword [ebp + 0x10], eax
jbe 0x10004c62
mov cl, byte [eax + edi]
mov edx, esi
sar edx, 8
xor dl, cl
movzx ecx, cl
add ecx, esi
imul ecx, ecx, 0xce6d
add ecx, 0x58bf
mov byte [eax + edi], dl
inc eax
cmp eax, dword [ebp + 0x10]
mov esi, ecx
jb 0x10004c37
xor eax, eax
inc eax
jmp 0x10004c64
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10004c6a
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [ecx]
push esi
call fcn.10004bc4
mov ecx, dword [esp + 0xc]
xor esi, esi
cmp dword [esp + 0x10], esi
mov dword [ecx], eax
jbe 0x10004ca7
mov ecx, dword [esp + 8]
add ecx, esi
mov edx, eax
sar edx, 8
xor byte [ecx], dl
movzx ecx, byte [ecx]
add ecx, eax
imul ecx, ecx, 0xce6d
add ecx, 0x58bf
inc esi
cmp esi, dword [esp + 0x10]
mov eax, ecx
jb 0x10004c80
xor eax, eax
inc eax
pop esi
ret 0xc
Function at 0x1000b561
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10020550]
jne 0x1000b56b
repz ret
jmp fcn.1000fd4c

Function at 0x10018efc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1000f72f
xor ebx, ebx
cmp dword [0x10022418], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x10018fd1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x10018f3c
xor eax, eax
jmp 0x10019095
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x10018f35
push eax
call fcn.1000f6cc
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10022418], eax
call esi
push eax
call fcn.1000f6cc
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1002241c], eax
call esi
push eax
call fcn.1000f6cc
mov dword [0x10022420], eax
lea eax, [ebp - 8]
push eax
call fcn.10011e41
test eax, eax
pop ecx
pop ecx
je 0x10018f9f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1001193a
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x10018fd1
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1000f6cc
cmp eax, ebx
pop ecx
mov dword [0x10022428], eax
je 0x10018fd1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000f6cc
pop ecx
mov dword [0x10022424], eax
mov eax, dword [0x10022424]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1001904a
cmp dword [0x10022428], esi
je 0x1001904a
push eax
call fcn.1000f738
pop ecx
call eax
cmp eax, ebx
je 0x10019017
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x10022428]
call fcn.1000f738
pop ecx
call eax
test eax, eax
je 0x10019017
test byte [ebp - 0x18], 1
jne 0x1001904a
lea eax, [ebp - 0xc]
push eax
call fcn.10011e78
test eax, eax
pop ecx
je 0x10019032
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1001193a
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x10019041
or dword [ebp + 0x10], 0x200000
jmp 0x1001907b
or dword [ebp + 0x10], 0x40000
jmp 0x1001907b
mov eax, dword [0x1002241c]
cmp eax, esi
je 0x1001907b
push eax
call fcn.1000f738
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1001907b
mov eax, dword [0x10022420]
cmp eax, esi
je 0x1001907b
push dword [ebp - 4]
push eax
call fcn.1000f738
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x10022418]
call fcn.1000f738
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d129
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x428430
cmp edx, dword [eax]
je 0x40d14b
add eax, 8
inc ecx
cmp eax, 0x4284c0
jl 0x40d13c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x428430]
jne 0x40d279
mov eax, dword [0x42b0e4]
cmp eax, 1
je 0x40d253
test eax, eax
jne 0x40d17c
cmp dword [0x427f28], 1
je 0x40d253
cmp edx, 0xfc
je 0x40d279
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40d1b3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040d310
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040d400
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40d1f6
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040d400
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x420cac
push edi
call fcn.0040f970
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040d310
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040d320
lea eax, [ebp - 0xa0]
push 0x420c8c
push eax
call fcn.0040d320
push dword [esi + 0x428434]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040d320
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040f8e5
add esp, 0x2c
pop edi
jmp 0x40d279
lea eax, [ebp + 8]
lea esi, [esi + 0x428434]
push 0
push eax
push dword [esi]
call fcn.0040d400
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 0x415946
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 0x415988
call fcn.0041a185
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x415988
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41597f
xor eax, eax
jmp 0x415990
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00415996
pop edi
pop esi
pop ebx
ret 4

Function at 0x41a873
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 0x41a8a1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41a8bf
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041a7d9
jmp 0x41a8bf
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41a8bf
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041a7d9
test edi, edi
mov eax, edi
jne 0x41a8a9
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402cd4
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402d11
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402d31
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404964
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402f10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402f69
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402dac
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402dac
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402f53
inc ebx
jmp 0x402f3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f70
lea eax, [ebp - 8]
call fcn.004046f4
ret

Function at 0x402f78
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004046f4
test esi, esi
jne 0x402faf
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.004047e4
jmp 0x402fd0
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402dac
mov dword [esp], eax
test esi, esi
je 0x402fd0
cmp dword [ebx], 0
je 0x402fd0
dec esi
jmp 0x402fb7
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403670
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x486020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403708
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4036e8
xor eax, eax
push ebp
push 0x4036e1
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 0x403724
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 0x4036e8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x486020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x486020], ax
mov esp, ebp
pop ebp
ret
Function at 0x4044ec
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48804c], 0
je 0x40454d
cmp word [0x488220], 0xd7b2
jne 0x404515
cmp dword [0x488228], 0
jbe 0x404515
mov eax, 0x48821c
call dword [0x488238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48606c
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 0x404574
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x486030], 0
jne 0x404569
push 0
push 0x486064
push 0x48606c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4046a8
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.00402ad4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x48804d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404670
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406934
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 0x40699a
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.00404964
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403228
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406984
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4069a1
lea eax, [ebp - 0x10]
call fcn.004046f4
ret

Function at 0x40947c
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404bb4
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40949e
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40bfe0
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 0x40c019
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004047e4
jmp 0x40c022
mov eax, ebx
mov edx, esi
call fcn.00404748
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c6e4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c54c
mov eax, dword [0x487dfc]
cmp byte [eax], 0
je 0x40c760
mov eax, dword [0x487a5c]
call fcn.00403094
call fcn.00402c60
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.004096b4
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 0x40c7a8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c796
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4879cc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x488668]
call fcn.00405d84
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 0x40d04c
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 0x40d122
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040478c
lea eax, [ebp - 8]
call fcn.00404c04
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404bb4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d10c
mov eax, ebx
call fcn.00402ad4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d105
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.00404bb4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d0ef
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d134
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d0ef
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 0x40d10c
mov eax, dword [ebp - 0x10]
call fcn.00402b04
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d129
lea eax, [ebp - 8]
call fcn.004046f4
ret

Function at 0x40d704
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 0x40d768
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.00404964
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004090a8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d76f
lea eax, [ebp - 0xc]
call fcn.004046f4
ret

Function at 0x4205ec
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.00420444
dec esi
jne 0x42060e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x421750
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x48888c
cmp dword [edi], 0
jne 0x4217cc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x488888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4864a4
mov ecx, 2
call fcn.00402d6c
mov edx, 0x421728
lea eax, [esi + 5]
call fcn.00421748
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00421748
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 0x4217a1
mov dword [0x488888], 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 0x422d40
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 0x422d46
ret

Function at 0x42520c
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 0x42525d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x425244
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x425234
jmp 0x42525d
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 0x425245
pop ebx
mov esp, ebp
pop ebp
ret