joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401031
Capabilities:
Hide graphical window

Disassembly:
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x4030e0], eax
call sub.kernel32.dll_GetCommandLineA
mov dword [0x4030e4], eax
push 0xa
push dword [0x4030e4]
push 0
push dword [0x4030e0]
call 0x401031
push eax
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xffffffb0
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 0x401138
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push dword [0x4030e0]
pop dword [ebp - 0x1c]
mov dword [ebp - 0x10], 6
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], str.WinClass
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x14], eax
push 0x3f
call sub.user32.dll_GetSystemMetrics
cmp eax, 3
jne 0x4010b8
add eax, 0x1d
and eax, eax
jne 0x4010a5
push 0x400000
push 0
call fcn.00401371
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassExA
push 0
push dword [ebp + 8]
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Application
push str.WinClass
push 0
call sub.user32.dll_CreateWindowExA
mov dword [ebp - 0x50], eax
push dword [ebp + 0x14]
push dword [ebp - 0x50]
call sub.user32.dll_ShowWindow
push dword [ebp - 0x50]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_GetMessageA
or eax, eax
je 0x401131
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_DispatchMessageA
jmp 0x40110a
mov eax, dword [ebp - 0x44]
leave
ret 0x10
Function at 0x401165
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pushal
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, str.GetLastError
sub eax, 0x2000
add eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x403058
sub eax, 0x2000
add eax, dword [ebp + 0x10]
push dword [eax]
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x403054
sub eax, 0x2000
add eax, dword [ebp + 0x10]
call dword [eax]
push eax
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x403085
sub eax, 0x2000
add eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x403058
sub eax, 0x2000
add eax, dword [ebp + 0x10]
push dword [eax]
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x403054
sub eax, 0x2000
add eax, dword [ebp + 0x10]
call dword [eax]
pop eax
call eax
or eax, eax
jne 0x401226
push eax
jmp 0x401234
cmp eax, 0x7f
jne 0x401232
push 0x100
jmp 0x401234
push 1
mov esi, dword [ebp + 8]
mov ebx, 0xa
mov ecx, dword [ebp + 0xc]
shr ecx, 2
xor edx, edx
mov eax, dword [ebp + 0xc]
shr eax, 2
sub eax, ecx
push eax
div ebx
add edx, 2
sub dword [esi], edx
xor edx, edx
pop eax
div ebx
add edx, dword [esp]
push edx
add dword [esp], 0x142d30e1
pop edx
xor dword [esi], edx
add esi, 4
loop 0x401242
pop eax
popal
leave
ret 0x10
Function at 0x401371
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Extract resource via kernel32 functions
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov esi, dword [esp + 0x8c]
and esi, 0xffff0000
mov eax, esi
cmp word [eax], 0x5a4d
jne 0x401390
add eax, dword [eax + 0x3c]
sub esi, 0x10000
cmp word [eax], 0x4550
jne 0x401384
add esi, 0x10000
push esi
mov eax, 0x403058
pop dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004012d9
mov dword [0x403054], eax
push 0x403085
push 0x3e8
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x4013d4
leave
ret 8
push eax
push eax
push 0
call sub.kernel32.dll_SizeofResource
or eax, eax
jne 0x4013e5
leave
ret 8
mov dword [ebp - 8], eax
pop eax
push eax
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
jne 0x4013f9
leave
ret 8
push eax
call sub.kernel32.dll_LockResource
or eax, eax
jne 0x401407
leave
ret 8
mov dword [ebp - 0xc], eax
push 4
push 0x3000
push dword [ebp - 8]
push 0
call sub.kernel32.dll_VirtualAlloc
or eax, eax
jne 0x401423
leave
ret 8
push eax
mov esi, dword [ebp - 0xc]
mov edi, eax
mov ecx, dword [ebp - 8]
rep movsb byte es:[edi], byte [esi]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
push dword [esp + 0xc]
call fcn.00401165
mov ebx, dword [esp]
add ebx, dword [ebx + 0x3c]
lea eax, [ebx + 0x18]
mov ebx, dword [eax + 0x38]
pop eax
push ebx
push 0x8000
push 0
push eax
call sub.kernel32.dll_VirtualFree
mov ebx, dword [ebp + 0xc]
add ebx, dword [ebx + 0x3c]
lea eax, [ebx + 0x18]
mov ebx, dword [eax + 0x38]
mov dword [ebp - 4], ebx
mov ebx, dword [esp]
add ebx, dword [ebp + 0xc]
and ebx, 0xffff0000
add ebx, 0x10000
push 0x40
push 0x3000
push dword [ebp - 4]
push ebx
call sub.kernel32.dll_VirtualAlloc
or eax, eax
je 0x401476
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
push eax
sub eax, dword [ebp + 0xc]
add dword [ebp + 8], eax
mov ebx, 0x4014ec
add ebx, dword [ebp + 8]
mov dword [ebp - 0x14], ebx
mov ebx, 0x401a09
add ebx, dword [ebp + 8]
sub ebx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
lea ebx, [ebp - 0x14]
push ebx
push 0x4012a4
push dword [ebp + 0xc]
call fcn.00401272
pop eax
pop ebx
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
mov eax, dword [ebp + 8]
add dword [ebp - 0xc], eax
push dword [ebp - 0xc]
mov eax, 0x4015e8
add eax, dword [ebp + 8]
call eax
leave
ret 8
Function at 0x401354
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 1
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov al, byte [esi]
cmp al, 0x22
jne 0x401385
mov al, byte [esi + 1]
inc esi
test al, al
je 0x40137d
cmp al, 0x22
jne 0x401371
cmp byte [esi], 0x22
jne 0x40138f
inc esi
jmp 0x40138f
cmp al, 0x20
jbe 0x40138f
inc esi
cmp byte [esi], 0x20
ja 0x401389
mov al, byte [esi]
test al, al
je 0x40139c
cmp al, 0x20
ja 0x40139c
inc esi
jmp 0x40138f
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x18], 1
je 0x4013b6
movzx eax, word [ebp - 0x14]
jmp 0x4013b9
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_ExitThread]

Function at 0x40155a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4012a0
push 0x401998
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
sub esp, 0x12c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0xac]
rep stosd dword es:[edi], eax
mov dword [ebp - 0xac], 0x94
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4016ad
cmp dword [ebp - 0x9c], 2
jne 0x4016ad
push 4
pop eax
cmp dword [ebp - 0xa8], eax
jne 0x4016ad
and dword [ebp - 0xb0], 0
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0xb0]
push eax
push 0
push 0x401290
push 0x401264
mov edi, 0x80000002
push edi
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueA]
call esi
test eax, eax
jne 0x4016ad
cmp word [ebp - 0xb0], 0x300
jne 0x4016ad
mov ebx, 0x88
mov dword [ebp - 0xb4], ebx
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x13c]
push eax
push 0
push 0x401258
push 0x4011f8
push edi
call esi
test eax, eax
jne 0x4016ad
cmp dword [ebp - 0xb4], ebx
jne 0x4016ad
mov ecx, ebx
lea edi, [ebp - 0x13c]
mov esi, section..data
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x401665
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4016ad
push 0x4011ec
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x140], eax
test eax, eax
je 0x4016ad
push 0x4011d8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4016a1
and dword [ebp - 4], 0
call eax
jmp 0x40169d
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x140]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4016bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push 1
xor ebx, ebx
pop edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], ebx
push 0x4012b4
push esi
call fcn.0040144f
test eax, eax
je 0x4016ea
mov dword [ebp - 8], edi
jmp 0x4016d6
push 0x4012ac
push esi
call fcn.0040144f
test eax, eax
je 0x4016fe
mov dword [ebp - 4], edi
jmp 0x4016d6
cmp dword [ebp - 8], ebx
jne 0x40188a
push ebx
push ebx
push 0x401190
push 0x401148
call dword [sym.imp.SHLWAPI.dll_SHRegGetBoolUSValueA]
test eax, eax
jne 0x40188a
call fcn.0040130e
cmp eax, 2
jne 0x401885
call dword [sym.imp.USER32.dll_GetShellWindow]
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x401885
mov eax, dword [ebp + 0x14]
push 0x109c
push 0x40
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
je 0x401896
push 0x824
push edi
push 0xffffffffffffffff
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
call fcn.004013d9
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x401878
cmp byte [esi], bl
mov dword [ebp + 0x14], ebx
jne 0x4017a3
call fcn.004014a4
test eax, eax
je 0x4017b4
cmp dword [ebp - 4], ebx
jne 0x4017b4
lea eax, [ebp - 0x18]
push eax
call fcn.004013d9
mov dword [ebp + 0x14], eax
cmp dword [ebp + 0x14], ebx
jne 0x4017c6
cmp byte [esi], bl
je 0x4017c6
cmp dword [ebp - 4], ebx
je 0x401863
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
push 0x4a
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, ebx
mov dword [ebp + 0x10], ebx
je 0x401860
push 0x2710
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x14], ebx
je 0x401860
push dword [ebp + 8]
call fcn.004014e1
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov dword [ebp + 8], eax
push 0xff
push 0xffffffffffffffff
lea eax, [ebp + 0x14]
push ebx
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov edi, eax
cmp edi, ebx
jne 0x40182f
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DestroyWindow]
push 1
push ebx
push ebx
lea eax, [ebp - 0x34]
push ebx
push eax
call esi
test eax, eax
je 0x40185c
cmp dword [ebp - 0x30], 0x12
je 0x40185a
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40182f
xor edi, edi
cmp edi, ebx
jne 0x40180c
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x14], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x401873
push dword [ebp + 0x14]
call esi
push dword [ebp - 8]
call esi
cmp edi, ebx
je 0x401896
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x401896
call fcn.0040155a
push dword [ebp + 0x14]
push esi
call fcn.004012bc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x401120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401137
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x401149
xor eax, eax
jmp 0x40117a
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x40116c
cmp edi, eax
jae 0x401145
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x40115e
cmp edi, eax
jae 0x401145
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x401254
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4012a0
cmp dword [ebp + 0xc], 1
je 0x401289
cmp dword [ebp + 0xc], 2
jne 0x401297
test edi, edi
mov eax, dword [ebp - 4]
je 0x40129c
cmp byte [eax + edi - 1], 0
je 0x40129c
push 0xd
pop eax
jmp 0x4012a0
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x401978
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, dword [esp + 8]
test ebp, ebp
je 0x401a19
cmp byte [ebp], 0
je 0x401a19
push ebx
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll__mbschr]
push 0x5c
pop ebx
push ebx
push ebp
call edi
pop ecx
pop ecx
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
jle 0x4019dc
mov al, byte [ebp + 1]
cmp al, 0x3a
jne 0x4019bb
cmp byte [ebp + 2], bl
je 0x4019d3
cmp byte [ebp], bl
jne 0x4019dc
cmp al, bl
jne 0x4019dc
push ebx
add esi, 2
push esi
call edi
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4019e3
inc esi
push ebx
push esi
call edi
pop ecx
pop ecx
mov esi, eax
test esi, esi
je 0x4019e3
mov byte [esi], 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x401a00
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
inc eax
test esi, esi
je 0x401a0a
test eax, eax
mov byte [esi], bl
jne 0x4019d3
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop edi
pop esi
pop ebx
and eax, 0x10
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403c6f
Capabilities:
Get system information on windows

Disassembly:
push 0x3c
push 0x4d2e50
call fcn.004bf6e4
mov ebx, ecx
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x48]
mov edi, eax
mov dword [ebp - 0x20], edi
and dword [ebx], 0
push 4
push 0x2000
shl eax, 0xa
push eax
push 0
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call esi
test eax, eax
je 0x403d11
mov dword [ebp - 0x24], edi
push 4
push 0x1000
push edi
push eax
call esi
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x403d11
and dword [ebp - 4], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.MSVCRT.dll_vsprintf]
add esp, 0xc
mov dword [ebp - 0x28], eax
or dword [ebp - 4], 0xffffffff
mov dword [ebx], esi
jmp 0x403d13
xor eax, eax
call fcn.004bf71f
ret

Function at 0x403d43
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test eax, eax
je 0x403d64
cmp byte [eax], 0
je 0x403d64
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x403d64
and al, 0x10
xor ecx, ecx
cmp al, 0x10
setne cl
mov eax, ecx
ret
xor eax, eax
ret

Function at 0x403e20
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 4], edi
jne 0x403e4f
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 0xc]
push eax
push edi
push esi
push fcn.00403dd7
push edi
push edi
mov dword [eax], edi
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
xor eax, eax
pop edi
inc eax
pop esi
ret
Function at 0x403e79
Capabilities:
Check for time delay via gettickcount
Terminate thread

Disassembly:
sub esp, 0x28
push ebx
push esi
mov ebx, ecx
push edi
lea esi, [ebx + 4]
xor edi, edi
cmp dword [esi], edi
mov dword [esp + 0x10], ebx
je 0x403f9a
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
push dword [ebx + 8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [esp + 0x3c]
push 0x14
push edi
push esi
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, edi
je 0x403f99
cmp eax, 1
jne 0x403f6a
push edi
push edi
push edi
push edi
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x403f6a
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_IsWindowUnicode]
push edi
push edi
mov ebx, eax
cmp ebx, edi
lea eax, [esp + 0x24]
push edi
push eax
je 0x403f04
call dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x403f0a
call dword [sym.imp.USER32.dll_GetMessageA]
cmp eax, edi
jle 0x403f30
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
cmp ebx, edi
lea eax, [esp + 0x1c]
push eax
je 0x403f2a
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x403f30
call dword [sym.imp.USER32.dll_DispatchMessageA]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x403f5e
call ebp
sub eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x40]
jae 0x403f5e
push edi
push edi
push edi
push edi
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x403ee4
jmp 0x403f66
mov dword [esp + 0x10], 1
mov ebx, dword [esp + 0x14]
call ebp
sub eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x40]
jb 0x403f7e
mov dword [esp + 0x10], 1
cmp dword [esp + 0x10], edi
je 0x403eac
mov eax, dword [esi]
cmp eax, edi
je 0x403f99
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi], edi
pop ebp
mov dword [ebx + 0xc], edi
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
add esp, 0x28
ret 8

Function at 0x404170
Capabilities:
Suspend thread

Disassembly:
cmp dword [esi + 0x2c], 0
jne 0x40418a
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi + 0x2c], ecx
mov eax, dword [esi + 0x2c]
ret

Function at 0x40418e
Capabilities:
Resume thread

Disassembly:
cmp dword [esi + 0x2c], 0
je 0x4041a6
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
inc eax
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x2c], eax
xor eax, eax
cmp dword [esi + 0x2c], eax
sete al
ret
Function at 0x4089bd
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push 0x24
pop ecx
xor eax, eax
lea edi, [ebp - 0x18]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
je 0x4089ff
cmp dword [ebp - 0x18], 5
jae 0x4089fb
cmp dword [ebp - 0x18], 4
jne 0x4089ff
cmp dword [ebp - 0x14], 0x5a
jb 0x4089ff
xor eax, eax
jmp 0x408a02
xor eax, eax
inc eax
add ebp, 0x78
leave
ret
Function at 0x40b297
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, word [ebp + 0xc]
push ebx
push esi
mov esi, dword [0x4e5348]
push edi
push 0xf1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x40b2d9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x40b2d9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
jne 0x40b2e0
xor eax, eax
jmp 0x40b476
movzx esi, word [edi + 6]
lea eax, [esi + esi*4]
shl eax, 2
add eax, 3
and eax, 0xfffffffc
call fcn.004bf900
mov eax, esp
xor ecx, ecx
cmp esi, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
jle 0x40b34a
add eax, 8
cmp word [edi + ecx*2 + 8], bx
je 0x40b327
mov edx, dword [ebp - 4]
inc dword [ebp - 4]
mov dword [eax - 8], edx
movzx edx, word [edi + ecx*2 + 8]
mov dword [eax - 4], edx
mov byte [eax], 4
mov byte [eax + 1], 0
jmp 0x40b338
mov dword [eax - 8], 8
mov dword [eax - 4], ebx
mov byte [eax], 0
mov byte [eax + 1], 1
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
movzx edx, word [edi + 6]
inc ecx
add eax, 0x14
cmp ecx, edx
jl 0x40b306
mov ebx, dword [ebp + 8]
push 0
push 0x14
push 0x41e
add ebx, 4
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp - 8]
mov eax, ebx
push esi
call fcn.00413e6c
movzx eax, word [edi + 4]
push eax
movzx eax, word [edi + 2]
push eax
push ebx
call fcn.00413d88
movzx eax, word [edi + 4]
add eax, 7
push eax
movzx eax, word [edi + 2]
add eax, 7
push eax
push ebx
call fcn.00413d62
cmp dword [ebp + 0x10], 0
movzx eax, word [ebp + 0x10]
jne 0x40b3a0
movzx eax, word [ebp + 0xc]
push dword [ebp + 0x1c]
push eax
movzx eax, word [edi + 4]
push eax
movzx eax, word [edi + 2]
push eax
call fcn.0040b4b1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x68], eax
push eax
lea esi, [ebp + 0x10]
mov eax, ebx
call fcn.00413dae
push dword [0x4e5348]
mov ebx, dword [ebp + 8]
call fcn.0040b4fd
xor esi, esi
push esi
push esi
push 0x439
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
test ah, 0x10
je 0x40b3ed
push 1
jmp 0x40b3ee
push esi
call fcn.0040b7ab
cmp dword [ebp + 0x14], 0
je 0x40b429
push dword [ebp + 0x1c]
movzx eax, word [ebp + 0x14]
push eax
movzx eax, word [edi + 4]
push eax
movzx eax, word [edi + 2]
push eax
call fcn.0040b4b1
test eax, eax
mov dword [ebx + 0x6c], eax
je 0x40b429
push eax
mov eax, dword [ebp + 8]
lea esi, [ebp + 0x10]
add eax, 4
call fcn.00413de2
mov ebx, dword [ebp + 8]
cmp dword [ebp + 0x18], 0
je 0x40b45f
push dword [ebp + 0x1c]
movzx eax, word [ebp + 0x18]
push eax
movzx eax, word [edi + 4]
push eax
movzx eax, word [edi + 2]
push eax
call fcn.0040b4b1
test eax, eax
mov dword [ebx + 0x70], eax
je 0x40b45f
push eax
mov eax, dword [ebp + 8]
lea esi, [ebp + 0x1c]
add eax, 4
call fcn.00413dc8
mov ebx, dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
lea esi, [ebx + 0x24]
inc eax
call fcn.00414130
xor eax, eax
inc eax
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x40bfb5
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
push esi
push edi
mov edi, eax
push 0x400
lea eax, [ebp - 0x420]
push eax
lea esi, [edi + 4]
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetDC]
push dword [edi + 0x24]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
mov dword [ebp - 0xc], eax
call edi
push 0x420
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x420]
xor ebx, ebx
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.USER32.dll_DrawTextA]
push dword [ebp - 4]
add dword [ebp - 0x10], 2
push dword [ebp - 0xc]
call edi
push dword [esi]
call dword [sym.imp.USER32.dll_GetParent]
push 2
lea ecx, [ebp - 0x1c]
push ecx
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xfffffffffffffff0
push dword [esi]
call edi
push 0xffffffffffffffec
push dword [esi]
mov dword [ebp - 4], eax
call edi
push eax
push ebx
push dword [ebp - 4]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
push 0x16
push ebx
push esi
lea eax, [ebp - 0x1c]
call fcn.00403b98
lea esi, [ebp - 0xc]
call fcn.0040aa7f
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40c085
Capabilities:
Create process on windows

Disassembly:
test eax, eax
jne 0x40c090
mov eax, dword [esi + 0x44]
test eax, eax
je 0x40c0b5
push 1
push 0
push 0
push eax
push str.open
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jbe 0x40c0b5
xor eax, eax
mov dword [esi + 0x38], 1
inc eax
ret
xor eax, eax
ret