joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477260
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
mov eax, dword [0x4def88]
xorps xmm0, xmm0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], eax
lea eax, [esp]
push eax
movlpd qword [esp + 0x28], xmm0
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x38], xmm0
mov dword [esp + 4], 0x3c
mov dword [esp + 8], 0x4c
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], 5
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
add esp, 0x3c
ret

Function at 0x4772d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x8a8
mov eax, dword [0x4c4004]
xor eax, esp
mov dword [esp + 0x8a0], eax
push esi
push 0x800
lea eax, [esp + 0xa4]
mov esi, ecx
push 0
push eax
call fcn.0048e880
push 0x58
lea eax, [esp + 0x18]
push 0
push eax
call fcn.0048e880
mov eax, dword [0x4deb64]
add esp, 0x18
mov dword [esp + 0x10], eax
mov eax, dword [0x4def88]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xa0]
mov dword [esp + 0x24], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x58
mov dword [esp + 0x40], 0x81824
mov dword [esp + 0x18], 0x4af8d0
mov dword [esp + 0x3c], str.Select_a_file_to_execute
mov dword [esp + 0x38], 0
mov dword [esp + 0x2c], 0x400
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x50], 0
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test esi, esi
je 0x47740a
cmp word [esp + 0xa0], 0
je 0x477426
mov eax, dword [0x4def88]
xorps xmm0, xmm0
mov dword [esp + 0x6c], eax
lea eax, [esp + 0xa0]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x64]
movlpd qword [esp + 0x88], xmm0
movlpd qword [esp + 0x90], xmm0
movlpd qword [esp + 0x98], xmm0
movaps xmm0, xmmword [0x4c1440]
push eax
mov dword [esp + 0x68], 0x3c
mov dword [esp + 0x6c], 0x4c
mov dword [esp + 0x74], 0
movups xmmword [esp + 0x7c], xmm0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
mov ecx, dword [esp + 0x8a0]
xor ecx, esp
call fcn.0048d925
add esp, 0x8a8
ret
push dword [esp + 0x24]
push 0x272f
push dword [0x4def88]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [esp + 0x8a4]
pop esi
xor ecx, esp
call fcn.0048d925
add esp, 0x8a8
ret
Function at 0x477690
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x20
mov eax, dword [0x4c4004]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
lea eax, [esp + 8]
mov esi, ecx
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x47771a
lea eax, [esp + 0x10]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 1
push eax
push 0
push dword [esp + 0x1c]
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x47771a
push eax
push esi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0048d925
add esp, 0x20
ret
mov ecx, dword [esp + 0x1c]
xor eax, eax
pop esi
xor ecx, esp
call fcn.0048d925
add esp, 0x20
ret
Function at 0x478650
Capabilities:
Check if file exists
Query environment variable

Disassembly:
sub esp, 0x7dc
mov eax, dword [0x4c4004]
xor eax, esp
mov dword [esp + 0x7d8], eax
push ebx
push esi
push edi
xor eax, eax
mov ebx, ecx
push 0x7ce
push eax
mov word [esp + 0x1c], ax
lea eax, [esp + 0x1e]
push eax
mov dword [esp + 0x1c], ebx
call fcn.0048e880
add esp, 0xc
lea eax, [esp + 0x14]
push 0x3e8
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [esp + 0x14]
push eax
call edi
test eax, eax
jne 0x47880f
push str.__x86_
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4786ee
mov ecx, eax
lea edx, [esp + 0x14]
sub ecx, edx
and ecx, 0xfffffffe
cmp ecx, 0x7d0
jae 0x478829
add eax, 0xc
xor edx, edx
push eax
lea eax, [esp + 0x18]
mov word [esp + ecx + 0x18], dx
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [esp + 0x14]
push eax
call edi
test eax, eax
jne 0x47880f
push str.Kernel32.dll
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, eax
test esi, esi
jne 0x478729
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x478743
push str.Wow64DisableWow64FsRedirection
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x478740
lea ecx, [esp + 0xc]
push ecx
call eax
push esi
call ebx
push 0x3e8
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [esp + 0x14]
push eax
call edi
test eax, eax
jne 0x47880f
push str.__x86_
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4787a7
mov ecx, eax
lea edx, [esp + 0x14]
sub ecx, edx
and ecx, 0xfffffffe
cmp ecx, 0x7d0
jae 0x478829
add eax, 0xc
xor edx, edx
push eax
lea eax, [esp + 0x18]
mov word [esp + ecx + 0x18], dx
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [esp + 0x14]
push eax
call edi
test eax, eax
jne 0x47880f
mov edi, dword [esp + 0xc]
test edi, edi
je 0x4787f2
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x4787dc
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4787f2
push str.Wow64RevertWow64FsRedirection
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4787ef
push edi
call eax
push esi
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x7d8]
xor ecx, esp
call fcn.0048d925
add esp, 0x7dc
ret
mov ecx, dword [esp + 0x7e4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048d925
add esp, 0x7dc
ret
call fcn.0048da55
int3
Function at 0x47b4f0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x21c
mov eax, dword [0x4c4004]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push esi
push 0
push 0
push 0x31
push dword [0x4deb68]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [0x4deb68]
mov dword [0x4deb60], eax
call dword [sym.imp.USER32.dll_GetDC]
push dword [0x4deb60]
mov ebx, eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x34
push str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
lea eax, [esp + 0x10]
push eax
push 0x104
push ebx
call dword [sym.imp.GDI32.dll_GetTextFaceW]
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
push dword [0x4deb68]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, dword [sym.imp.GDI32.dll_CreateFontW]
lea eax, [esp + 0x10]
push eax
push 0x22
push 5
push 0
push 0
push 1
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push dword [esp + 0x40]
call esi
mov dword [0x4deb60], eax
lea eax, [esp + 0x10]
push eax
push 0x22
push 5
push 0
push 0
push 1
push 0
push 0
push 0
push 0x2bc
push 0
push 0
push 0
push dword [esp + 0x40]
call esi
mov dword [0x4df1a4], eax
lea eax, [esp + 0x10]
push eax
push 0x22
push 5
push 0
push 0
push 1
push 0
push 0
push 1
push 0x190
push 0
push 0
push 0
push dword [esp + 0x40]
call esi
push 0x4ded80
push 1
push str.ClearFont
push str.OPTIONS
mov dword [0x4df1a0], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jne 0x47b686
push str.MS_Sans_Serif
push eax
push eax
push eax
push eax
push 1
push eax
push eax
push eax
push 0x190
push eax
push eax
push eax
push 6
call esi
push str.MS_Sans_Serif
push 0
push 0
push 0
push 0
push 1
push 0
push 0
push 0
push 0x2bc
push 0
push 0
push 0
push 6
mov dword [0x4deb60], eax
call esi
push str.MS_Sans_Serif
push 0
push 0
push 0
push 0
push 1
push 0
push 0
push 1
push 0x190
push 0
push 0
push 0
push 6
mov dword [0x4df1a4], eax
call esi
mov dword [0x4df1a0], eax
push 1
push dword [0x4deb60]
push 0x30
push dword [0x4deb68]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x21c]
pop esi
pop ebx
xor ecx, esp
call fcn.0048d925
add esp, 0x21c
ret

Function at 0x47b6c0
Capabilities:
Read .ini file

Disassembly:
push 0x4ded80
push 1
push str.SystemTray
push str.OPTIONS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x47b77a
mov eax, dword [0x4def88]
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrCpyW]
push 0x4c0bdc
push 0x4df3e8
mov dword [0x4df3d0], 0x3bc
mov dword [0x4df3dc], 0x17
mov dword [0x4df3e0], 0x411
mov dword [0x4df3d4], eax
mov dword [0x4df3d8], 0x6e5769
call esi
push 0x4c0bdc
push 0x4df4f0
call esi
push 0x6c
push dword [0x4deb64]
call dword [sym.imp.USER32.dll_LoadIconW]
mov esi, dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
push 0x4df3d0
push 0
mov dword [0x4df3e4], eax
call esi
push 0x6c
push dword [0x4deb64]
mov dword [0x4df3dc], 2
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x4df3d0
push 1
mov dword [0x4df3e4], eax
call esi
pop esi
ret
push 0x4df3d0
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
ret
Function at 0x48e230
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x48e26f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x48e26f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x48e26f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x48e26f
cmp dword [ecx + 0x74], 0xe
jbe 0x48e26f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x492383
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049221e

Function at 0x49d8f5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049d774

Function at 0x49fc42
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049f902

Function at 0x4a5920
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4a594d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4a594d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1000e300
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0xf
mov dword [ebp - 4], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor esi, esi
cmp dword [0x1008cd54], esi
jbe 0x1000e356
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x1008cd74]
push dword [eax + esi*4]
call ebx
mov eax, dword [0x1008cd74]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [0x1008cd54]
jb 0x1000e334
pop ebx
push dword [0x1008cd74]
call fcn.10035c30
add esp, 4
mov dword [0x1008cd74], 0
mov dword [0x1008cd54], 0
push dword [ebp - 4]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000eeb0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
push 0x70
mov dword [ebp - 0xc], ebx
call fcn.10035c4b
mov esi, eax
add esp, 4
test esi, esi
jne 0x1000eed7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x1008cd50], edi
jne 0x1000eef4
push 0x1008cd5c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x1008cd50], 1
push 0x1008cd5c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx]
mov edx, dword [eax]
mov dword [esi], edx
mov ecx, dword [0x1008cd48]
test ecx, ecx
je 0x1000ef22
nop
lea eax, [ecx + 0x2c]
cmp eax, edx
je 0x1000f02d
mov ecx, dword [ecx + 0x70]
test ecx, ecx
jne 0x1000ef10
mov dword [esi + 0xc], edi
lea edx, [ebp - 4]
mov dword [ebp - 8], edi
lea ecx, [ebp - 8]
mov dword [ebp - 4], edi
call fcn.1000e390
test eax, eax
je 0x1000f010
push dword [ebp - 4]
mov ecx, esi
call fcn.1000e460
mov eax, dword [esi + 0xc]
add esp, 4
test eax, eax
je 0x1000f000
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp - 4]
push ecx
push 0x40
mov dword [ebp - 4], edi
push dword [eax + 4]
push dword [eax]
call ebx
test eax, eax
je 0x1000f000
mov eax, dword [esi + 0xc]
xor ecx, ecx
mov edx, dword [eax]
cmp dword [eax + 4], ecx
jbe 0x1000ef92
mov al, byte [eax + ecx + 0x4c]
mov byte [ecx + edx], al
inc ecx
mov eax, dword [esi + 0xc]
cmp ecx, dword [eax + 4]
jb 0x1000ef80
mov edx, dword [eax]
push dword [eax + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
push dword [eax + 4]
push dword [eax]
call ebx
mov ecx, dword [ebp - 0xc]
mov edi, 1
mov eax, dword [esi + 0xc]
mov ecx, dword [ecx]
mov eax, dword [eax]
mov dword [ecx], eax
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 0x6c]
test edx, edx
je 0x1000efd5
mov eax, dword [ecx + 0x70]
mov dword [edx + 0x70], eax
mov edx, dword [ecx + 0x70]
test edx, edx
je 0x1000efe2
mov eax, dword [ecx + 0x6c]
mov dword [edx + 0x6c], eax
cmp dword [0x1008cd48], ecx
jne 0x1000eff2
mov eax, dword [ecx + 0x70]
mov dword [0x1008cd48], eax
mov dword [ecx + 0x6c], 0
mov dword [ecx + 0x70], 0
call fcn.1000e300
push dword [ebp - 8]
call fcn.10035c30
add esp, 4
push esi
call fcn.10035c30
add esp, 4
push 0x1008cd5c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0xc], ecx
test ecx, ecx
je 0x1000ef25
mov eax, dword [ecx + 4]
mov dword [esi + 8], eax
jmp 0x1000ef25
Function at 0x100135f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10049cde
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1006600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], edx
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [0x1008cb28]
mov dword [ebp - 0x18], 1
cmp word [ecx], ax
jne 0x10013727
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10013727
movzx ecx, word [eax + 6]
xor esi, esi
cmp si, cx
jae 0x10013727
lea ebx, [eax + 0x108]
mov dword [ebp - 0x10], ecx
mov eax, edx
lea edx, [eax + 1]
nop dword [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10013690
sub eax, edx
lea esi, [ebx - 0x10]
mov edx, dword [ebp - 0x14]
sub eax, 4
jb 0x100136b5
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x100136ba
add edx, 4
add esi, 4
sub eax, 4
jae 0x100136a4
cmp eax, 0xfffffffc
je 0x100136e7
mov cl, byte [edx]
cmp cl, byte [esi]
jne 0x10013717
cmp eax, 0xfffffffd
je 0x100136e7
mov cl, byte [edx + 1]
cmp cl, byte [esi + 1]
jne 0x10013717
cmp eax, 0xfffffffe
je 0x100136e7
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
jne 0x10013717
cmp eax, 0xffffffff
je 0x100136e7
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
jne 0x10013717
mov ecx, dword [ebx - 4]
add ecx, dword [0x1008cb28]
mov eax, dword [edi + 4]
mov edx, dword [ebx]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
cmp eax, dword [edi + 8]
je 0x1001370b
mov dword [eax], ecx
mov dword [eax + 4], edx
add dword [edi + 4], 8
jmp 0x10013717
lea ecx, [ebp - 0x24]
push ecx
push eax
mov ecx, edi
call fcn.10018440
mov edx, dword [ebp - 0x14]
add ebx, 0x28
sub dword [ebp - 0x10], 1
jne 0x10013686
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100148d0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10049e95
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1006600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x1008cd40]
mov eax, 0x38e38e39
sub ecx, dword [0x1008cd3c]
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x10014927
push 0x1008cd3c
push 0x100146d0
call dword [sym.imp.USER32.dll_EnumWindows]
mov ebx, dword [ebp + 8]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov eax, dword [0x1008cd40]
mov edi, dword [0x1008cd3c]
mov dword [ebp - 0x10], eax
cmp edi, eax
je 0x10014a24
mov ecx, eax
mov eax, 0x38e38e39
sub ecx, edi
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x71c71c7
ja 0x10014a3a
lea esi, [eax + eax*8]
shl esi, 2
cmp esi, 0x1000
jb 0x100149ab
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x10014a3a
push eax
call fcn.10029ef9
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x10014a3f
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x100149bc
test esi, esi
je 0x100149ba
push esi
call fcn.10029ef9
add esp, 4
jmp 0x100149bc
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
add eax, esi
mov dword [ebx + 8], eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
mov esi, dword [ebx]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x10]
add edi, 8
mov byte [ebp - 4], 1
mov eax, dword [edi - 8]
lea ecx, [esi + 0xc]
mov dword [esi], eax
mov eax, dword [edi - 4]
mov dword [esi + 4], eax
mov eax, dword [edi]
mov dword [esi + 8], eax
lea eax, [edi + 4]
push eax
call fcn.10015be0
lea edi, [edi + 0x24]
add esi, 0x24
lea eax, [edi - 8]
mov dword [ebp - 0x1c], esi
cmp eax, ebx
jne 0x100149e5
push ecx
mov edx, esi
mov ecx, esi
call fcn.100189e0
mov ebx, dword [ebp + 8]
add esp, 4
mov dword [ebx + 4], esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.10012490
call fcn.1003657a
int3

Function at 0x100190b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x100190e1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x100190d0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x1001fbf0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004a7ae
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x1006600c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x70], 0
cmp byte [0x1008d074], 0
jne 0x1001ffad
push 0x1005f9a0
mov dword [ebp - 0x38], 0x89fc4d33
mov dword [ebp - 0x34], 0x558bf44d
mov dword [ebp - 0x30], 0x8458bf0
mov dword [ebp - 0x2c], 0x89900c8b
mov dword [ebp - 0x28], 0x558bfc4d
mov dword [ebp - 0x24], 0xf45533fc
mov dword [ebp - 0x20], 0x8bf0458b
mov dword [ebp - 0x1c], 0x1489084d
mov byte [ebp - 0x18], 0x81
mov dword [ebp - 4], 0
jmp fcn.10128076
mov eax, 0x1008d078
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10029cb8
mov esp, ebp
pop ebp
ret
Function at 0x10021db0
Capabilities:
Check for time delay via gettickcount
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004ab0d
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x1006600c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x1005fa80
mov dword [ebp - 0x120], 0
jmp fcn.100e7d41
Function at 0x10027ef3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
not dl
not cl
mov dword [esp + eax - 0x40480001], ecx
adc dl, al
pop ecx
sub cx, cx
ror dl, 1
dec cl
add dl, al
shr eax, cl
xor dl, 0x1c
sal eax, 0xab
sal eax, 0x64
ror dl, 1
inc ax
jnp 0x10098ba0
xor bl, dl
jmp 0x100f6df6
dec ax
jle 0x100e44c2
call fcn.100f1fe3

Function at 0x10036c34
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10036c73
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10036c73
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10036c73
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10036c73
cmp dword [ecx + 0x74], 0xe
jbe 0x10036c73
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x10039870
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100397f2

Function at 0x1003a2ac
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10050250
push 0x10050248
push str.FlsAlloc
push 0x1f
call fcn.1003a0f4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003a2e0
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004c218]
call esi
jmp 0x1003a2e6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1003a32a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10050260
push 0x10050258
push str.FlsGetValue
push 0x21
call fcn.1003a0f4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003a361
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004c218]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1003a369
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10050268
push 0x10050260
push str.FlsSetValue
push 0x22
call fcn.1003a0f4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003a3a3
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1004c218]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1004053a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100405d7
push ebx
push esi
call fcn.10040503
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10040497
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10040584
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100405d6
push edi
push eax
call fcn.1003d36f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100405a4
call fcn.10039ddf
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100405d5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10040497
add esp, 0x20
test eax, eax
jne 0x100405c3
push edi
call fcn.10039ddf
jmp 0x100405cb
push ebx
call fcn.10039ddf
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10045025
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1003b9bf
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10045094
cmp esi, dword [ebp - 4]
je 0x1004508f
cmp dword [ebp + 0xc], 0
je 0x1004508f
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1004506c
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10044b77
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10045096
xor eax, eax
inc eax
jmp 0x10045096
xor eax, eax
pop edi
pop esi
leave
ret