joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ef0
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x63c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x638], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x15]
push ebx
push eax
mov byte [esp + 0x1c], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x103
lea ecx, [esp + 0x32d]
push ebx
push ecx
mov byte [esp + 0x334], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x103
lea edx, [esp + 0x225]
push ebx
push edx
mov byte [esp + 0x22c], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x103
lea eax, [esp + 0x11d]
push ebx
push eax
mov byte [esp + 0x124], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
push ebx
push 0x405698
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
push 0x405698
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.MSVCR90.dll_sprintf]
push 0x4034f4
push 0x405698
lea ecx, [esp + 0x330]
push 0x4034c0
push ecx
call esi
push 0x65
lea ecx, [esp + 0x33c]
call fcn.00401dd0
add esp, 0x14
lea edi, [esp + 0x328]
call fcn.00401b30
push str.smsactive32.dll
push 0x405698
lea edx, [esp + 0x228]
push 0x4034c0
push edx
call esi
push 0x77
lea ecx, [esp + 0x234]
call fcn.00401dd0
add esp, 0x14
lea edi, [esp + 0x220]
call fcn.00401b30
push 0x403518
push 0x405698
lea eax, [esp + 0x18]
push 0x4034c0
push eax
call esi
push 0x69
lea ecx, [esp + 0x24]
call fcn.00401dd0
add esp, 0x14
lea edi, [esp + 0x10]
call fcn.00401b30
call fcn.00401670
push 0x104
push 0x405590
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
jmp 0x402060
mov cl, byte [eax + 0x405590]
mov byte [eax + 0x405488], cl
inc eax
cmp cl, bl
jne 0x402060
push 0x5c
push 0x405488
call dword [sym.imp.MSVCR90.dll_strrchr]
add esp, 8
cmp eax, ebx
je 0x402087
mov byte [eax], bl
push str.winsupdate32.exe
push 0x405488
lea ecx, [esp + 0x120]
push 0x4034c0
push ecx
call esi
push 0x79
lea ecx, [esp + 0x12c]
call fcn.00401dd0
add esp, 0x14
push ebx
push ebx
push ebx
lea edx, [esp + 0x124]
push edx
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
call fcn.00401bf0
call fcn.00401970
push 0x103
lea eax, [esp + 0x53d]
push ebx
push eax
mov byte [esp + 0x544], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x103
lea ecx, [esp + 0x435]
push ebx
push ecx
mov byte [esp + 0x43c], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [esp + 0x430]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.ssdx64.exe
lea eax, [esp + 0x434]
push eax
lea ecx, [esp + 0x540]
push 0x403534
push ecx
call esi
mov esi, dword [sym.imp.MSVCR90.dll_remove]
lea edx, [esp + 0x548]
push edx
call esi
add esp, 0x14
push str.c:windows_temp_rerx.exe
call esi
mov ecx, dword [esp + 0x648]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040217e
mov esp, ebp
pop ebp
ret

Function at 0x40217e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x402188
repz ret
jmp fcn.00402439
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..3ean
nop
nop
mov ebx, 0x40915c
nop
mov ecx, 0x33c463c
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..7LWLf
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x3b4404d1
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43106c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4022f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x411f2c
call fcn.0040303d
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x4023a4
test esi, esi
jne 0x4023a4
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x402388
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402382
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402382
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x402371
cmp esi, eax
jae 0x402375
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402363
cmp esi, eax
jb 0x402379
xor eax, eax
jmp 0x402382
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x4023ad
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x411f2c
call fcn.0040303d
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x402315
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402490
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4024a8
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4024da
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4024d6
cmp esi, eax
jae 0x4024da
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4024c8
cmp esi, eax
jb 0x4024e0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x402740
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x520
mov eax, dword [0x411080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x516]
push ecx
mov dword [ebp - 0x51c], 1
mov dword [ebp - 0x520], 0x104
mov word [ebp - 0x518], ax
call fcn.00403ff0
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
add esp, 0xc
lea edx, [ebp - 0x520]
push edx
lea eax, [ebp - 0x518]
push eax
lea ecx, [ebp - 0x51c]
push ecx
push 0
push str.SoftwareBaofengStormPlayerConfigUACAssociateModule
push 0x80000001
call esi
test eax, eax
jne 0x4028ac
cmp dword [ebp - 0x51c], 1
jne 0x4028ac
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x30e]
push eax
mov word [ebp - 0x310], dx
call fcn.00403ff0
add esp, 0xc
lea ecx, [ebp - 0x520]
push ecx
lea edx, [ebp - 0x310]
push edx
lea eax, [ebp - 0x51c]
push eax
push 0
push str.SoftwareBaofengStormPlayerConfigUACAssociateFunction
push 0x80000001
call esi
test eax, eax
jne 0x4028ac
cmp dword [ebp - 0x51c], 1
jne 0x4028ac
push 0x103
push eax
lea ecx, [ebp - 0x107]
push ecx
mov byte [ebp - 0x108], al
call fcn.00403ff0
lea eax, [ebp - 0x310]
add esp, 0xc
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402840
push 0
push 0
push 0x104
sub eax, edx
lea edx, [ebp - 0x108]
push edx
sar eax, 1
push eax
lea eax, [ebp - 0x310]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [ebp - 0x518]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4028ac
lea edx, [ebp - 0x108]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4028a5
push 0
call eax
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00403180
mov esp, ebp
pop ebp
ret
Function at 0x4028c0
Capabilities:
Check if file exists
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c71b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x411080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
mov dword [ebp - 4], 0
push ecx
mov word [ebp - 0x218], ax
call fcn.00403ff0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...BaofengPlatform.exe
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40298f
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402985
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x80004005
jmp 0x402a4b
push str.AutoRun
lea ecx, [ebp - 0x218]
push ecx
push str.__s____s
lea edi, [ebp - 0x21c]
call fcn.00402a70
mov esi, dword [ebp - 0x21c]
mov eax, dword [esi - 0xc]
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
add esp, 0xc
lea edx, [eax + eax + 2]
push edx
push esi
push 1
push str.BaofengPlatform
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000001
call edi
mov ebx, eax
mov eax, dword [esi - 0xc]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push str.BaofengPlatform
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call edi
test ebx, ebx
je 0x402a23
test eax, eax
je 0x402a23
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402a1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x402a4b
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402a46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403180
mov esp, ebp
pop ebp
ret
Function at 0x402b50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x411080]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [esi + 8], 0
je 0x402b79
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403180
mov esp, ebp
pop ebp
ret
cmp dword [esi + 4], 0
jne 0x402bf7
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00403ff0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...Update.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402be7
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403180
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x402c0d
push str.RunUpdate
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
xor ecx, ebp
add eax, 0x80004005
call fcn.00403180
mov esp, ebp
pop ebp
ret
Function at 0x402c30
Capabilities:
Accept command line arguments
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
push str.RealStormPlayerProcess_5ac1601b_e785_4064_8686_fe44dc76907b
xor edi, edi
push edi
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [esp + 0xc], eax
cmp eax, edi
jne 0x402c6e
push str.RealStormPlayerProcess_5ac1601b_e785_4064_8686_fe44dc76907b
push 0x30
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0xc], eax
push str._SHELL__update_stormplayer_process_start_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ebx, vtable.CCommandParse.0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp eax, edi
je 0x402d26
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
call fcn.004010d0
mov edx, dword [esp + 0x18]
sub edx, dword [esp + 0x14]
sar edx, 2
test edx, edx
je 0x402d26
push 0x40f234
lea esi, [esp + 0x14]
call fcn.004016d0
test eax, eax
je 0x402cdd
mov dword [esp + 0x34], 1
push str.OptionAddRun
lea esi, [esp + 0x14]
call fcn.004016d0
test eax, eax
je 0x402cfa
mov eax, 2
mov dword [esp + 0x34], eax
jmp 0x402cfe
mov eax, dword [esp + 0x34]
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x402d26
cmp eax, 1
jne 0x402d1a
call fcn.00402740
call fcn.00402510
jmp 0x402d6a
cmp eax, 2
jne 0x402d6a
call fcn.004028c0
jmp 0x402d6a
push 0xc
call fcn.00403751
mov esi, eax
add esp, 4
cmp esi, edi
je 0x402d6a
mov dword [esi], vtable.CUpdateManagerHelper.0
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call fcn.00402b50
cmp dword [esi + 4], edi
jne 0x402d56
call fcn.00402b50
cmp dword [esi + 4], edi
je 0x402d60
mov eax, dword [esi + 8]
cmp eax, edi
je 0x402d60
push edi
call eax
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
lea esi, [esp + 0x10]
mov dword [esp + 0x10], ebx
call fcn.00401650
lea ebx, [esp + 0x24]
call fcn.00401b80
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x402d91
push eax
call fcn.00403175
add esp, 4
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x402da0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403180
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411080]
jne 0x40318a
repz ret
jmp fcn.004040b6
Function at 0x40a56c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x411080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040542d
and dword [ebp - 0x14], 0
cmp dword [0x412d14], 0
mov dword [ebp - 0x18], eax
jne 0x40a61f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40a6c7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40a6c7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x412d14], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x412d18], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x412d1c], eax
call edi
push eax
call esi
mov dword [0x412d24], eax
test eax, eax
je 0x40a61f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x412d20], eax
mov eax, dword [0x412d20]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40a678
cmp dword [0x412d24], ecx
je 0x40a678
push eax
call esi
push dword [0x412d24]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40a678
test ebx, ebx
je 0x40a678
call edi
test eax, eax
je 0x40a66f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40a66f
test byte [ebp - 8], 1
jne 0x40a678
or dword [ebp + 0x10], 0x200000
jmp 0x40a6ab
mov eax, dword [0x412d18]
cmp eax, dword [ebp - 0x18]
je 0x40a6ab
push eax
call esi
test eax, eax
je 0x40a6ab
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40a6ab
mov eax, dword [0x412d1c]
cmp eax, dword [ebp - 0x18]
je 0x40a6ab
push eax
call esi
test eax, eax
je 0x40a6ab
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x412d14]
call esi
test eax, eax
je 0x40a6c7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40a6c9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403180
leave
ret
Function at 0x10029fb0
Capabilities:
Encode data using xor

Disassembly:
xlatb
cmp ebx, dword [si - 0x1c]
cmp eax, 0xa090f590
invalid
jcxz 0x10029faa
fsub dword [eax + 0x7e]
and ah, byte [eax - 0x41]
jp 0x10029f96
sal dword [ebx - 0x607cc230], cl
sub al, 0xb0
jns 0x10029f70

Function at 0x1002aa40
Capabilities:
Encode data using xor

Disassembly:
fdivr dword [esi + eax*4 + 0x66f2875]
loopne 0x1002a9eb
xchg cl, ah
or ebp, dword [esi]
dec edx
and al, 0x89
add al, 0x70
mov dword [0x3f9f65de], eax
imul esp, edx, 0xa80b7b3e
cmp ch, dl
test ebp, 0x2cb444eb
or dword [esi + 0x4f0a2327], ebx
cwde
or esp, esi
sbb dword [edx - 0x6058e3b9], 0x32
and al, 0x5a

Function at 0x109b901f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x109b5110]
jne 0x109b9029
repz ret
jmp fcn.109b92ab

Function at 0x109bce11
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x109b5110]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.109b93b1
and dword [ebp - 0x14], 0
cmp dword [0x109b8224], 0
mov dword [ebp - 0x18], eax
jne 0x109bcec4
push str.USER32.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x109bcf6c
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x109bcf6c
mov esi, dword [sym.imp.kernel32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x109b8224], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x109b8228], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x109b822c], eax
call edi
push eax
call esi
mov dword [0x109b8234], eax
test eax, eax
je 0x109bcec4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x109b8230], eax
mov eax, dword [0x109b8230]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.kernel32.dll_DecodePointer]
cmp eax, ecx
je 0x109bcf1d
cmp dword [0x109b8234], ecx
je 0x109bcf1d
push eax
call esi
push dword [0x109b8234]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x109bcf1d
test ebx, ebx
je 0x109bcf1d
call edi
test eax, eax
je 0x109bcf14
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x109bcf14
test byte [ebp - 8], 1
jne 0x109bcf1d
or dword [ebp + 0x10], 0x200000
jmp 0x109bcf50
mov eax, dword [0x109b8228]
cmp eax, dword [ebp - 0x18]
je 0x109bcf50
push eax
call esi
test eax, eax
je 0x109bcf50
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x109bcf50
mov eax, dword [0x109b822c]
cmp eax, dword [ebp - 0x18]
je 0x109bcf50
push eax
call esi
test eax, eax
je 0x109bcf50
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x109b8224]
call esi
test eax, eax
je 0x109bcf6c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x109bcf6e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.109b901f
leave
ret
Function at 0x4027cd
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x845d78]
mov ecx, dword [0x844cc8]
sub esp, 0x800
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x402870
push ebx
push edi
mov edi, ecx
mov ebx, eax
cmp dword [0x845d78], 0x959
jne 0x402862
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SleepEx]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExA]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push esi
lea eax, [ebp - 0x800]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
call dword [sym.imp.KERNEL32.dll_HeapLock]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
call fcn.0040262e
add edi, 8
dec ebx
jne 0x4027f5
pop edi
pop ebx
pop esi
leave
ret