joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003760
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov dword [0x1000a6d8], 1
push edi
mov eax, dword [esi + 0xe0]
push 0x3eb
mov dword [0x1000a6dc], eax
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, dword [eax + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xf0
push ecx
call edi
test eax, eax
je 0x100037a6
mov dword [0x1000a6e0], 1
push 0x3ec
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [eax + 0x20]
push 0
push 0
push 0xf0
push edx
call edi
test eax, eax
je 0x100037cf
mov dword [0x1000a6e0], 2
push 0x3ed
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov eax, dword [eax + 0x20]
push 0
push 0
push 0xf0
push eax
call edi
test eax, eax
je 0x100037f8
mov dword [0x1000a6e0], 3
push 0x3ee
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, dword [eax + 0x20]
push 0
push 0
push 0xf0
push ecx
call edi
test eax, eax
je 0x10003821
mov dword [0x1000a6e0], 4
push 0
push 0
push 0
push 0x10003860
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x10002ac0
push fcn.10002a90
call fcn.10004d40
push 0
push 0x3f5
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
pop edi
pop esi
ret

Function at 0x10004860
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x100048d1
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x100048d1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x100048ba
jmp 0x100048d1
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x404cae
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
push ebx
push esi
xor esi, esi
cmp dword [0x59e0e8], 0x5b1
push edi
jne 0x404d47
push esi
lea eax, [ebp - 0x810]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push esi
push esi
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
push 0x4047d8
push esi
call fcn.004056e8
call fcn.00404f91
push esi
call fcn.004054d0
add esp, 0xc
push esi
push esi
call fcn.004054db
push esi
call fcn.0040560d
add esp, 0xc
push esi
call fcn.00405864
mov dword [esp], esi
call fcn.00404903
fstp st(0)
push esi
call fcn.0040560d
pop ecx
call fcn.0040581a
add dword [0x59e0e8], 0x1134b
push dword [0x59e0e8]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x59d038], eax
call fcn.00404bf9
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, 0x206d47
jg 0x404d89
inc edi
cmp edi, 0x4f6a4
jl 0x404d70
xor edi, edi
cmp dword [0x59e0e8], esi
jbe 0x404dd5
cmp dword [0x59e0e8], 0xa8
mov eax, dword [0x59e0ec]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x59d038]
mov byte [ecx + edi], al
jne 0x404dcc
push esi
call dword [sym.imp.KERNEL32.dll_GetLargestConsoleWindowSize]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
inc edi
cmp edi, dword [0x59e0e8]
jb 0x404d93
xor edi, edi
mov eax, dword [0x59e0e8]
add eax, edi
cmp eax, 0xe
jne 0x404df4
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
inc edi
cmp edi, 0x39621
jl 0x404dd7
mov edi, 0x1e6cc
push esi
push esi
call dword [sym.imp.USER32.dll_LoadMenuW]
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_CharToOemBuffW]
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharABCWidthsFloatA]
dec edi
jne 0x404e02
call fcn.00404b3b
call ebx
cmp edi, 0x26
jne 0x404e34
call fcn.00404bdf
inc edi
cmp edi, 0x6753f
jl 0x404e28
push 0x7b
pop edi
cmp dword [0x59e0e8], 0x86
jne 0x404e81
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_IsProcessInJob]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push esi
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push esi
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
call dword [sym.imp.KERNEL32.dll_SetFileApisToANSI]
dec edi
jne 0x404e40
push 0x4047e0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404e94
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x80c
push ebx
push esi
xor esi, esi
cmp dword [0x59e0e8], 0x400
push edi
jne 0x404ef5
push esi
push esi
call dword [sym.imp.KERNEL32.dll__lopen]
push esi
push esi
call fcn.00405348
push esi
call fcn.004053d7
add esp, 0xc
push esi
push esi
call fcn.00405348
push esi
push esi
call fcn.004056e8
push esi
call fcn.00405874
add esp, 0x14
push esi
push esi
call fcn.0040511d
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.004048e0
fstp st(0)
mov eax, dword [0x42ab14]
mov dword [0x59e0e8], eax
mov eax, dword [0x42aaec]
mov dword [0x59e0ec], eax
call fcn.00404cae
xor ebx, ebx
mov edi, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNamedPipeInfo]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp ebx, edi
jle 0x404f3c
cmp dword [esp + 0x14], 0x785074d5
jne 0x404f45
inc ebx
cmp ebx, 0x1c1b
jl 0x404f15
xor ebx, ebx
push esi
lea eax, [esp + 0x1c]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp ebx, edi
jle 0x404f71
cmp dword [esp + 0x14], 0x785074d5
jne 0x404f7a
inc ebx
cmp ebx, 0x11915
jl 0x404f47
mov eax, dword [0x59d038]
mov dword [0x59d67c], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40657c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4291e0]
jne 0x406586
repz ret
jmp fcn.0040bf39
Function at 0x40d16d
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.00408949
and dword [ebp - 4], 0
cmp dword [0x42b708], 0
mov ebx, eax
jne 0x40d21e
push 0x401ddc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d2cf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401dd0
push edi
call esi
test eax, eax
je 0x40d2cf
push eax
call fcn.004088d7
mov dword [esp], 0x401dc0
push edi
mov dword [0x42b708], eax
call esi
push eax
call fcn.004088d7
mov dword [esp], 0x401dac
push edi
mov dword [0x42b70c], eax
call esi
push eax
call fcn.004088d7
mov dword [esp], 0x401d90
push edi
mov dword [0x42b710], eax
call esi
push eax
call fcn.004088d7
pop ecx
mov dword [0x42b718], eax
test eax, eax
je 0x40d21e
push 0x401d78
push edi
call esi
push eax
call fcn.004088d7
pop ecx
mov dword [0x42b714], eax
mov eax, dword [0x42b714]
cmp eax, ebx
je 0x40d276
cmp dword [0x42b718], ebx
je 0x40d276
push eax
call fcn.00408952
push dword [0x42b718]
mov esi, eax
call fcn.00408952
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d276
test edi, edi
je 0x40d276
call esi
test eax, eax
je 0x40d26d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d26d
test byte [ebp - 0xc], 1
jne 0x40d276
or dword [ebp + 0x10], 0x200000
jmp 0x40d2af
mov eax, dword [0x42b70c]
cmp eax, ebx
je 0x40d2af
push eax
call fcn.00408952
pop ecx
test eax, eax
je 0x40d2af
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d2af
mov eax, dword [0x42b710]
cmp eax, ebx
je 0x40d2af
push eax
call fcn.00408952
pop ecx
test eax, eax
je 0x40d2af
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42b708]
call fcn.00408952
pop ecx
test eax, eax
je 0x40d2cf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d2d1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b8cc
Capabilities:
Get geographical location

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

Function at 0x40b918
Capabilities:
Get geographical location

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

Function at 0x40c0c4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x40c1e9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0040bed8
mov esi, eax
mov eax, dword [0x417f28]
cmp byte [eax], 0
je 0x40c191
mov eax, dword [0x417e4c]
call fcn.0040319c
call fcn.00402f8c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x40c0a0]
call fcn.00405d78
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x40c204
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c1cd
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x417e2c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41ab48]
call fcn.00405e30
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c1f0
lea eax, [ebp - 4]
mov edx, dword [0x40c0a0]
call fcn.00405d84
ret
Function at 0x40da83
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00404ae0
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x40daa6
mov eax, edi
add eax, eax
call fcn.00402e24
mov esi, eax
jmp 0x40daa8
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x40dae1
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x40dacb
mov eax, esp
cmp esi, eax
je 0x40daee
mov eax, esi
call fcn.00402e40
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x40db28
cmp bl, 0
je 0x40db24
cmp bl, 0x41
jl 0x40db1f
cmp bl, 0x5a
jg 0x40db1f
or bl, 0x20
xor al, bl
inc esi
jmp 0x40db03
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x40da68

Function at 0x40e718
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e75e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040e6ac
mov eax, dword [ebp - 4]
call fcn.00404f78
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e765
lea eax, [ebp - 4]
call fcn.00404edc
ret

Function at 0x40e97c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40ea13
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x40e9c7
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW_1
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.00405028
jmp 0x40e9fd
call sub.kernel32.dll_GetCommandLineW_1
mov ebx, eax
cmp word [ebx], 0
jne 0x40e9e0
lea eax, [ebp - 4]
xor edx, edx
call fcn.00404f40
jmp 0x40e9f3
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040e83c
mov ebx, eax
test esi, esi
je 0x40e9f3
dec esi
jmp 0x40e9ce
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00404eec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ea1a
lea eax, [ebp - 4]
call fcn.00404edc
ret

Function at 0x40ea24
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00408bf8
add esp, 0x208
pop ebx
ret
Function at 0x40eb88
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x40ecc0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x40ecaa
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x40ebe5
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x40ecaa
cmp dword [ebp - 0x14], 0
jne 0x40ebfc
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00404eec
mov bl, 1
jmp 0x40ecaa
cmp dword [ebp - 0x14], 0x70000000
jb 0x40ec0a
call fcn.0040c230
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.00405028
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.00405700
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
cmp eax, 0xea
je 0x40ebae
test eax, eax
jne 0x40ecaa
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x40ec58
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x40ecaa
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x40ec60
dec esi
test esi, esi
je 0x40ec6f
mov eax, dword [ebp - 4]
cmp word [eax + esi*2 - 2], 0
je 0x40ec5f
cmp dword [ebp - 0x10], 7
jne 0x40ec7a
test esi, esi
je 0x40ec7a
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.00405154
cmp dword [ebp - 0x10], 7
jne 0x40ec9d
test esi, esi
je 0x40ec9d
lea eax, [ebp - 4]
call fcn.00405700
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404eec
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ecc7
lea eax, [ebp - 4]
call fcn.00404edc
ret

Function at 0x40f704
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x41cd98
mov eax, esi
mov edx, 8
test al, 1
je 0x40f720
shr eax, 1
xor eax, 0xedb88320
jmp 0x40f722
shr eax, 1
dec edx
jne 0x40f713
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x40f70c
pop esi
ret

Function at 0x40f738
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x41cd94], 0
jne 0x40f75b
call fcn.0040f704
push 1
push 0x41cd94
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x40f786
mov edx, ebx
and edx, 0xff
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x41cd98]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x40f761
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4111ac
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00411160
test al, al
jne 0x4111cd
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x411219
xor eax, eax
push ebp
push 0x411209
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404f78
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411210
lea eax, [ebp - 0xc]
call fcn.0041119c
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411458
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x411460
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x41154d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0040ea50
mov edx, dword [ebp - 8]
mov ecx, 0x411568
xor eax, eax
call fcn.0041133c
push 0
mov eax, dword [ebp - 4]
call fcn.00404f78
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x41151b
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x41147a
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.00410f64
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.004084fc
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.0040efd8
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x60
call fcn.00410f34
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x406f90]
call fcn.0040c23c
call fcn.004040b0
jmp 0x41147a
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00404eec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411554
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404ee4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404ee4
ret

Function at 0x41157c
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x417f90]
cmp dword [eax], 2
jne 0x4115e4
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x41159f
xor eax, eax
jmp 0x4115f3
lea eax, [esp + 8]
push eax
push 0x4115f8
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x4115e4
xor eax, eax
jmp 0x4115f3
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret
Function at 0x411620
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x41167a
inc esi
xor edi, edi
cmp edi, 1
jne 0x411646
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep_1
jmp 0x411654
cmp edi, 1
jle 0x411654
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep_1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004111ac
test eax, eax
jne 0x41167a
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x41167a
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x41167a
inc edi
dec esi
jne 0x411636
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x411684
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4116a8
mov eax, dword [ebp - 4]
jmp 0x4116ab
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret

Function at 0x4116b0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x4116fd
xor ebx, ebx
jmp 0x4116f2
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.00407fbc
test eax, eax
jne 0x4116f1
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x4117a7
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4116d3
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x411709
je 0x411712
jmp 0x41171b
call fcn.0040ed08
mov esi, eax
jmp 0x41171d
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x41171d
xor esi, esi
test si, si
je 0x4117a7
xor ebx, ebx
jmp 0x411743
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x411742
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x4117a7
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x41172a
xor ebx, ebx
jmp 0x41179c
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov edx, esi
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x41179b
mov eax, esi
and ax, 0x3ff
cmp ax, 4
jne 0x411790
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.00411684
push eax
mov eax, esi
call fcn.00411684
pop edx
cmp edx, eax
jne 0x41179b
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x4117a7
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x411752
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4