joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007967
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x101af30]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x78]
push eax
xor ebx, ebx
lea eax, [ebp - 0x70]
push eax
push ebx
push 0x2001d
push ebx
push ebx
push ebx
push 0x1001b18
push 0x80000002
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x64], ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x1007ae5
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
call edi
mov esi, eax
cmp esi, ebx
jne 0x1007ae5
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0xe
push 0x1001b04
push 2
push ebx
push 0x1001ae4
push dword [ebp - 0x64]
call edi
mov esi, eax
cmp esi, ebx
jne 0x1007ae5
push 4
lea eax, [ebp - 0x74]
push eax
push 4
push ebx
push 0x1001ad4
push dword [ebp - 0x64]
mov dword [ebp - 0x74], 1
call edi
mov esi, eax
cmp esi, ebx
jne 0x1007ae5
push 4
lea eax, [ebp - 0x74]
push eax
push 4
push ebx
push 0x1001ab8
push dword [ebp - 0x64]
mov dword [ebp - 0x74], 1
call edi
mov esi, eax
cmp esi, ebx
jne 0x1007ae5
mov edi, dword [ebp - 0x68]
cmp edi, ebx
je 0x1007ae5
jmp 0x1007a5a
mov edi, dword [ebp - 0x68]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push dword [edi + 8]
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x1007ad8
mov esi, dword [edi + 4]
lea edi, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x50]
push eax
movsd dword es:[edi], dword [esi]
call fcn.0100788b
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x4a
lea eax, [ebp - 0x50]
push eax
push 1
push ebx
push 0x1001aac
push dword [ebp - 0x6c]
call esi
mov edi, dword [ebp - 0x68]
push dword [edi + 0xc]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
shl eax, 1
push eax
push dword [edi + 0xc]
push 1
push ebx
push 0x1001a98
push dword [ebp - 0x6c]
call esi
push dword [ebp - 0x6c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [edi]
cmp edi, ebx
mov dword [ebp - 0x68], edi
jne 0x1007a57
cmp dword [ebp - 0x64], ebx
je 0x1007af3
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x70], ebx
je 0x1007b01
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.01015af2
leave
ret 8

Function at 0x1007f99
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push esi
push 0x1001c24
push 1
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
inc eax
pop esi
ret
Function at 0x10082eb
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4a8
mov eax, dword [0x101af30]
push esi
push edi
push 0xe
pop ecx
mov dword [ebp - 4], eax
xor eax, eax
mov esi, 0x1001c54
lea edi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
mov word [ebp - 0x244], si
mov ecx, 0x81
lea edi, [ebp - 0x242]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov dword [ebp - 0x464], esi
lea edi, [ebp - 0x460]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
pop ecx
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x4a4]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x244]
push eax
push esi
push esi
push 0x25
push esi
mov dword [ebp - 0x4a8], 0x44
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x1008449
xor eax, eax
mov word [ebp - 0x44c], si
mov ecx, 0x81
lea edi, [ebp - 0x44a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x244]
mov dword [ebp - 0x454], eax
lea eax, [ebp - 0x454]
push eax
push 0x104
lea eax, [ebp - 0x44c]
push eax
push esi
push esi
lea eax, [ebp - 0x3c]
push eax
push 0x2400
mov dword [ebp - 0x450], 0x10019fc
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x1008449
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x4a8]
push eax
lea eax, [ebp - 0x244]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x44c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1008412
test byte [0x101a5d4], 1
je 0x1008449
push 0x1001ba8
push 0x22
push dword [0x101a5cc]
push dword [0x101a5c8]
call fcn.0100503e
jmp 0x1008449
test byte [0x101a5d4], 4
je 0x1008433
push 0x1001ba8
push 0x23
push dword [0x101a5cc]
push dword [0x101a5c8]
call fcn.0100503e
push dword [ebp - 0x460]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x464]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01015af2
leave
ret

Function at 0x100845a
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x10084f8
cmp dword [ebp - 4], ebx
jle 0x10084ef
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
mov eax, dword [ebp - 0xc]
lea esi, [eax + ebx*4]
push dword [esi]
push 0x1001ca4
call edi
test eax, eax
je 0x10084dd
push dword [esi]
push 0x1001c9c
call edi
test eax, eax
je 0x10084dd
push dword [esi]
push 0x1001c94
call edi
test eax, eax
je 0x10084ca
push dword [esi]
push 0x1001c8c
call edi
test eax, eax
jne 0x10084e7
mov eax, dword [ebp - 8]
mov byte [eax + 0x3e2], 1
mov byte [eax + 0x3e3], 0
jmp 0x10084e7
mov eax, dword [ebp - 8]
mov byte [eax + 0x3e0], 0
inc ebx
cmp ebx, dword [ebp - 4]
jl 0x1008490
pop edi
pop esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
leave
ret
Function at 0x100884d
Capabilities:
Inspect load icon resource

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 3
push ebx
mov ebx, ecx
jne 0x1008861
push 0x67
jmp 0x1008877
cmp dword [ebp + 8], 0
jne 0x100886b
push 0x68
jmp 0x1008877
cmp dword [ebp + 8], 1
jne 0x1008929
push 0x69
pop eax
push esi
push edi
movzx edi, ax
push edi
call fcn.0100c63c
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push eax
call esi
push edi
mov dword [ebp - 8], eax
call fcn.0100c63c
push eax
call esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push 0x32
mov dword [ebp + 8], eax
call esi
push eax
push 0x31
call esi
push eax
push 1
push edi
call fcn.0100c63c
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 0
mov edi, 0x80
push edi
push dword [ebx + 0x3c8]
mov dword [ebp - 4], eax
call esi
push dword [ebp - 4]
push 0
push edi
push dword [0x101aff4]
call esi
push dword [ebp + 8]
push 1
push edi
push dword [0x101aff4]
call esi
mov eax, dword [ebp + 8]
lea esi, [ebx + 0x3f0]
mov dword [ebx + 0x3ec], eax
mov eax, dword [esi]
test eax, eax
je 0x100890e
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, 0x101aff0
mov dword [ebx + 0x3f4], eax
call fcn.01013b04
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100a476
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x101af30]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x208], esi
call fcn.0100a38c
cmp eax, esi
jne 0x100a517
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x100a4ce
lea eax, [ebp - 0x204]
push eax
call fcn.0100a476
cmp eax, esi
jne 0x100a516
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x208]
je 0x100a4be
call fcn.0100a36e
push dword [ebp - 0x210]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x208]
mov esi, eax
call fcn.0100a36e
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
call fcn.01015af2
leave
ret 4
Function at 0x100a8d1
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x100a8e0
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x100c1e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp + 0xc]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 8], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100c2a8
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0x10]
xor edi, edi
push dword [ebp + 0xc]
inc edi
mov dword [ebp + 8], esi
mov dword [ebp - 4], edi
call ebx
test eax, eax
jne 0x100c29d
cmp dword [ebp - 4], edi
jne 0x100c29d
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x100c2b0
mov eax, dword [ebp + 8]
shr eax, 1
cmp eax, 0x104
ja 0x100c29d
add eax, eax
push eax
mov dword [ebp + 0x14], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
test edi, edi
pop ecx
mov dword [esi], edi
je 0x100c29d
mov ecx, dword [ebp + 0x14]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp + 8]
push eax
push dword [esi]
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call ebx
test eax, eax
jne 0x100c292
mov dword [ebp - 8], 1
jmp 0x100c2b3
push dword [esi]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
and dword [esi], 0
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov eax, dword [ebp - 8]
pop esi
leave
ret 0x14
mov dword [ebp - 8], edi
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x100c29d
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
jmp 0x100c2a6
Function at 0x100c2c6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp + 0xc]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100c340
and dword [ebp - 4], eax
push esi
push 4
pop esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
push dword [ebp + 0xc]
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100c336
cmp dword [ebp + 8], esi
jne 0x100c336
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x100c325
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
xor ebx, ebx
inc ebx
test eax, eax
je 0x100c336
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
jmp 0x100c33f
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14

Function at 0x100c65e
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
xor ecx, ecx
cmp eax, ecx
je 0x100c671
cmp word [eax], cx
jne 0x100c673
xor eax, eax
push esi
push 1
push ecx
push eax
push dword [ebp + 0xc]
push ecx
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0xffffffffffffffff
push 0xffffffffffffffff
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
push 0x20
pop eax
cmp eax, esi
sbb eax, eax
neg eax
pop esi
pop ebp
ret 0xc
Function at 0x100c6ab
Capabilities:
Capture screenshot

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
mov dword [ebp - 4], esi
je 0x100c7c9
push ebx
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x100c7bc
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push edi
push eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebp - 8], eax
je 0x100c7b8
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
call esi
cmp byte [ebp + 0xc], 0
je 0x100c77b
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x100c77b
push eax
push ebx
call esi
push dword [ebp + 0xc]
and dword [ebp - 0x28], 0
and dword [ebp - 0x24], 0
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push dword [ebp + 0x10]
push ebx
call esi
push dword [ebp + 0xc]
call edi
push 0x16
push ebx
push 0x317
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push 0xcc0020
push 0
push 0
push ebx
push eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 8]
call edi
push ebx
call edi
pop edi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop ebx
pop esi
leave
ret 0xc

Function at 0x100c8bf
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x101af30]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x100c929
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
jne 0x100c920
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
pop ebx
call fcn.01015af2
leave
ret
Function at 0x100c93c
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor esi, esi
push 4
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, esi
je 0x100c997
push edi
push 4
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x100c993
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x100c990
cmp dword [ebp - 0x1c], 4
jne 0x100c990
mov dword [ebp - 4], 1
push edi
call esi
push ebx
call esi
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 4
Function at 0x100df4e
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x1016d8e
call fcn.01015ff8
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
push dword [esi + 4]
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [esi + 0x24], 0x214
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
cmp edi, ebx
je 0x100dfb4
push 2
push edi
call fcn.0100c18f
push 3
push edi
mov dword [esi + 0x48], eax
call fcn.0100c18f
push 1
push edi
mov dword [esi + 0x4c], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
lea eax, [ebp - 0x14]
push eax
push 3
call fcn.0100be29
push dword [ebp - 0x14]
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esi + 0x44]
mov dword [esi + 0x28], eax
mov dword [ebp - 0x10], 0x20
call fcn.0100c50e
test al, al
je 0x100dfd1
mov dword [ebp - 0x10], 0x400020
push ebx
push ecx
mov eax, esp
mov dword [ebp - 0x18], esp
push dword [ebp - 0x10]
mov ebx, 0x56000000
push ebx
mov edi, 0x10019fc
push edi
push ecx
mov dword [eax], 0x46
mov eax, esp
mov dword [ebp - 0x18], esp
lea ecx, [ebp - 0x28]
mov dword [eax], ecx
push dword [esi + 4]
lea ecx, [esi + 0x5c]
push 1
push esi
call fcn.0100dec9
push 0
push ecx
mov eax, esp
mov dword [ebp - 0x18], esp
push dword [ebp - 0x10]
mov dword [eax], 0x47
push ebx
push edi
push ecx
mov eax, esp
mov dword [ebp - 0x18], esp
lea ecx, [ebp - 0x28]
mov dword [eax], ecx
push dword [esi + 4]
lea edi, [esi + 0x84]
push 1
push esi
mov ecx, edi
call fcn.0100dec9
mov eax, dword [esi + 0x48]
test eax, eax
je 0x100e049
push 1
push eax
lea ecx, [esi + 0x5c]
call fcn.0100d2ec
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x100e05a
push 1
push eax
mov ecx, edi
call fcn.0100d2ec
push 0x101b338
lea ecx, [ebp - 0x10]
call fcn.01005706
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.0100df0c
push dword [ebp - 0x10]
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [esi + 0x5c]
call ebx
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.0100df26
push dword [ebp - 0x10]
push dword [edi]
call ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [esi + 0x5c]
call ebx
push 5
push dword [edi]
call ebx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [esi + 0xac], 1
call fcn.01005497
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10
Function at 0x1013de7
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push edi
mov edi, ecx
push 0
push dword [edi + 4]
call esi
push 1
push dword [edi + 4]
call esi
pop edi
xor eax, eax
pop esi
ret 0x10

Function at 0x1015c0a
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10023e8
call fcn.01015dfc
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1015c45
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1015c45
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1015c5d
cmp eax, 0x20b
je 0x1015c4a
mov dword [ebp - 0x1c], edi
jmp 0x1015c71
cmp dword [ecx + 0x84], 0xe
jbe 0x1015c45
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1015c6b
cmp dword [ecx + 0x74], 0xe
jbe 0x1015c45
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x101b390], 0xffffffff
or dword [0x101b394], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x101b2ec]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x101b2e8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x101b38c], eax
call fcn.0101611c
cmp dword [0x101af40], edi
jne 0x1015cce
push fcn.0101611c
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01016105
push 0x101a030
push 0x101a02c
call sub.msvcrt.dll__initterm
mov eax, dword [0x101b2e4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x101b2e0]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x101a028
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x1015d34
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x1015dee
mov dword [ebp - 0x20], esi
cmp word [esi], 0x22
jne 0x1015d82
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x1015d50
cmp ax, 0x22
jne 0x1015d3d
cmp word [esi], 0x22
jne 0x1015d5b
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x1015d69
cmp ax, 0x20
jbe 0x1015d56
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x54], 1
je 0x1015d8f
movzx eax, word [ebp - 0x50]
jmp 0x1015d92
cmp word [esi], 0x20
jbe 0x1015d5b
add esi, ebx
mov dword [ebp - 0x20], esi
jmp 0x1015d82
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], edi
jne 0x1015db3
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1015de8
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01015e37
ret
Function at 0x10166dd
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x101b37c], 0
push esi
jne 0x101664b
call fcn.01016542
test eax, eax
je 0x101668e
mov eax, dword [0x101b37c]
cmp eax, 1
jne 0x101666c
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x101668e
pop esi
ret
push eax
call dword [0x101b384]
test eax, eax
jne 0x10166d6
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1016692
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x101b37c]
call dword [0x101b384]
mov edi, eax
test edi, edi
je 0x10166b7
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x10166d3
mov edi, esi
add esi, 0xff0
push edi
push dword [0x101b37c]
call dword [0x101b380]
add edi, 0x10
cmp edi, esi
jb 0x10166bf
mov eax, edi
pop edi
pop esi
ret
jmp 0x1016638
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219