joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007753d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x1007757f
call fcn.1007a000
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x1007757f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x10077576
xor eax, eax
jmp 0x10077587
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.1007758d
pop edi
pop esi
pop ebx
ret 4
Function at 0x2e00b876
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x2e00b885
pop dword [ebp - 0x38]
mov eax, 0x8b6a1b13
add eax, 0xa2969d72
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x718375f
add dword [ebp - 0x48], 0x473a0dec
mov dword [ebp - 0x44], 0x43483c17
add dword [ebp - 0x44], 0xeeeb102e
mov dword [ebp - 0x40], 0x7499afa0
sub dword [ebp - 0x40], 0x284d6b72
mov dword [ebp - 0x3c], 0x624ae29c
add dword [ebp - 0x3c], 0x9db51d64
lea eax, [ebp - 0x48]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x68f75e80
sub dword [ebp - 0x48], 0xf484f52a
mov dword [ebp - 0x44], 0xe4835731
add dword [ebp - 0x44], 0x5ce90a44
mov dword [ebp - 0x40], 0x30832e0f
sub dword [ebp - 0x40], 0xcd13c1a3
mov dword [ebp - 0x3c], 0xd8c5c2ec
add dword [ebp - 0x3c], 0x273a3d14
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x40fbc
push 0
call eax
mov ecx, 0xea4a6f09
sub ecx, 0xea4a2785
xor edi, edi
add edi, eax
mov ebx, 0x15e6d17b
sub ebx, 0xe7e1537b
add ebx, dword [ebp - 0x38]
mov edx, 0x256876ff
sub edx, 0xe9460ca2
add dword [ebp - 0x30], eax
mov esi, dword [ebx]
mov dword [ebp - 0x1c], 0x984f0f81
xor esi, edx
xor dword [ebp - 0x28], 0xab93e26d
mov dword [edi], esi
mov dword [ebp - 0x14], 0x8b7a4705
add edi, 0x8bd7afd9
sub edi, 0x8bd7afd5
add ebx, 0xd17afe97
sub ebx, 0xd17afe93
loop 0x2e00b99f
add eax, 0x39d6dfd6
add eax, 0xc62a310d
xor ebx, ebx
add ebx, eax
add eax, 0x915ab1e8
add eax, 0x6ea54e1d
mov ecx, 0x55492b32
add ecx, 0xd8b6d4ce
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x2e01416e
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x2e0306d8
call fcn.2e001511
mov edi, ecx
mov dword [ebp - 0x18], edi
xor ebx, ebx
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], bl
mov dword [ebp - 4], ebx
call fcn.2e014eb5
test ax, ax
je 0x2e014216
lea eax, [ebp - 0x10]
push eax
push str.softwaremicrosoftwindows_shell_associationsurlassociationshttpuserchoice
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e014216
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push str.progid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e01420d
mov eax, dword [ebp - 0x14]
inc eax
push eax
call fcn.2e00b876
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push esi
push ebx
push ebx
push str.progid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e014200
push esi
mov ecx, edi
call fcn.2e010e6c
push 1
push esi
mov byte [ebp - 4], bl
call fcn.2e00b876
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.2e00155b
ret
Function at 0x2e014ca3
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28
mov eax, 0x2e030759
call fcn.2e02e6de
mov esi, dword [ebp + 8]
xor eax, eax
mov bl, al
mov edi, dword [ebp + 0xc]
cmp dword [ecx + 0x10], eax
jbe 0x2e014da7
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.2e014b8d
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push esi
call fcn.2e010d8f
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e014d65
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x2e033941
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x2e014d5c
mov eax, dword [ebp - 0x2c]
inc eax
push eax
call fcn.2e00b876
mov esi, eax
pop ecx
mov dword [ebp - 0x34], esi
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
push esi
push 0
push 0
push 0x2e033941
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e014d4e
push esi
mov ecx, edi
call fcn.2e010e6c
mov bl, 1
push 1
push esi
mov byte [ebp - 4], 0
call fcn.2e00b876
pop ecx
pop ecx
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x2e014da7
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 4], 2
cmp eax, 0x1000
jb 0x2e014d9e
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.2e00b876
mov eax, dword [ebp - 0x2c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x34]
push eax
push ecx
call fcn.2e00b876
pop ecx
pop ecx
mov al, bl
call fcn.2e02e6bc
ret 8

Function at 0x2e014de1
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x2e03078d
call fcn.2e001511
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x2e014e1b
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e014e81
lea eax, [ebp - 0x14]
mov edi, 0x2e033941
push eax
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x2e014e78
mov eax, dword [ebp - 0x14]
test eax, eax
js 0x2e014e78
inc eax
push eax
call fcn.2e00b876
mov esi, eax
pop ecx
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
push esi
push ebx
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e014e6a
mov ecx, dword [ebp + 0xc]
push esi
call fcn.2e010e6c
mov bl, 1
or dword [ebp - 4], 0xffffffff
push 1
push esi
call fcn.2e00b876
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
call fcn.2e00155b
ret 8
Function at 0x2e01e565
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x2e030a97
call fcn.2e02e6de
lea eax, [ebp - 0x2c]
xor ebx, ebx
push eax
push str.softwaremicrosoftwindows_shell_associationsurlassociationshttpuserchoice
push 0x80000001
mov edi, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e01e683
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
push str.progid
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e01e67a
mov eax, dword [ebp - 0x30]
inc eax
push eax
call fcn.2e00b876
mov esi, eax
pop ecx
mov dword [ebp - 0x3c], esi
lea eax, [ebp - 0x30]
mov dword [ebp - 4], ebx
push eax
push esi
push ebx
push ebx
push str.progid
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x2e01e66d
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.2e010e6c
push str.IE.HTTP
lea ecx, [ebp - 0x28]
call fcn.2e00b876
test al, al
jne 0x2e01e620
push ebx
push str.AppX
lea ecx, [ebp - 0x28]
call fcn.2e00b876
push 1
test eax, eax
pop edx
cmove edi, edx
jmp 0x2e01e623
xor edx, edx
inc edx
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x2e01e65d
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], dl
cmp eax, 0x1000
jb 0x2e01e654
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.2e00b876
mov eax, dword [ebp - 0x34]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x38]
push eax
push ecx
call fcn.2e00b876
pop ecx
pop ecx
xor ecx, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
inc ecx
mov byte [ebp - 0x28], bl
or dword [ebp - 4], 0xffffffff
push ecx
push esi
call fcn.2e00b876
pop ecx
pop ecx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, di
call fcn.2e02e6bc
ret
Function at 0x10004670
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x100046c8
cmp byte [esi + ebx - 1], 0xa
je 0x1000469c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10013084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10004cf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x10004ec8
mov edi, dword [0x10013084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x10004dd7
test byte [0x10006040], 8
jne 0x10004e70
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x10006050], 8
jne 0x10004e30
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10004d79
cmp esi, 3
jbe 0x10004de8
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x10004d8a
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x1000f0c0]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10004d79
mov dword [esp], 0x10006050
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10004d50
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x10004d50
mov dword [esp], 0x10006040
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10004d3b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x10004d43
mov eax, 0xffffffff
jmp 0x10004dd7
Function at 0x10004f90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x214
mov eax, dword [0x100130a0]
test eax, eax
je 0x10005048
mov dword [esp], ebx
call eax
mov dword [ebx + 8], eax
sub esp, 4
test eax, eax
jns 0x10004fd0
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x214]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x10004fbc
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x1000507d
mov dword [esp + 4], str.AtlCreateRegistrar
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x100130a0], eax
sub esp, 8
test eax, eax
jne 0x10004fad
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x10004fbe
Function at 0x10005090
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edx, dword [ebp - 0x10]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
sub esp, 8
test ebx, ebx
je 0x10005220
mov eax, dword [esi]
test eax, eax
je 0x10005208
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 0x14], 0
mov dword [ebp - 0x1c], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
lea ecx, [eax + 1]
sub esp, 0x18
lea eax, [ecx + ecx]
mov dword [ebp - 0x18], ecx
mov ecx, eax
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov dword [ebp - 0x14], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x1000522c
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 4]
xor edx, edx
sub esp, 0x18
mov word [edi + eax - 2], dx
mov eax, dword [esi]
test ecx, ecx
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
jne 0x100051f8
call dword [edx + 0x28]
mov dword [esi + 8], eax
sub esp, 8
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 8]
sub esp, 0xc
lea esp, [ebp - 0xc]
not eax
pop ebx
pop esi
shr eax, 0x1f
pop edi
pop ebp
ret 0x10
call dword [edx + 0x24]
mov dword [esi + 8], eax
sub esp, 8
jmp 0x100051bc
mov edx, esi
mov eax, edi
call sym._create_registrar
test eax, eax
jne 0x100050f6
lea esi, [esi]
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esi + 8], 0x8007000e
xor eax, eax
jmp 0x10005222
Function at 0x401bf8
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
xor edx, edx
push ebp
push 0x401cc0
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4775cc
call sub.KERNEL32.DLL_WaitForSingleObject
cmp byte [0x47704d], 0
je 0x401c27
push 0x4775cc
call sub.KERNEL32.DLL_WinExec
mov eax, 0x4775ec
call fcn.00401474
mov eax, 0x4775fc
call fcn.00401474
mov eax, 0x477628
call fcn.00401474
push 0xff8
push 0
call sub.KERNEL32.DLL_SizeofResource
mov dword [0x477624], eax
cmp dword [0x477624], 0
je 0x401c9f
mov eax, 3
mov edx, dword [0x477624]
xor ecx, ecx
mov dword [edx + eax*4 - 0xc], ecx
inc eax
cmp eax, 0x401
jne 0x401c64
mov dword [ebp - 4], 0x47760c
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov dword [eax], edx
mov eax, dword [ebp - 4]
mov dword [0x477618], eax
mov byte [0x4775c4], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401cc7
cmp byte [0x47704d], 0
je 0x401cbf
push 0x4775cc
call sub.KERNEL32.DLL_WriteFile
ret

Function at 0x401cd0
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
cmp byte [0x4775c4], 0
je 0x401dcb
xor eax, eax
push ebp
push 0x401dc4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x47704d], 0
je 0x401d04
push 0x4775cc
call sub.KERNEL32.DLL_WinExec
mov byte [0x4775c4], 0
mov eax, dword [0x477624]
push eax
call sub.KERNEL32.DLL_Sleep
xor eax, eax
mov dword [0x477624], eax
mov eax, dword [0x4775ec]
mov dword [ebp - 8], eax
jmp 0x401d42
push 0x8000
push 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
push eax
call sub.KERNEL32.DLL_VirtualQuery
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, 0x4775ec
cmp eax, dword [ebp - 8]
jne 0x401d27
mov eax, 0x4775ec
call fcn.00401474
mov eax, 0x4775fc
call fcn.00401474
mov eax, 0x477628
call fcn.00401474
mov eax, dword [0x4775e4]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401d99
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [0x4775e4], eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_Sleep
mov eax, dword [0x4775e4]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401d78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401dcb
cmp byte [0x47704d], 0
je 0x401db9
push 0x4775cc
call sub.KERNEL32.DLL_WriteFile
push 0x4775cc
call sub.KERNEL32.DLL_lstrcpyA
ret
pop ecx
pop ecx
pop ebp
ret
Function at 0x402454
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
mov ebx, eax
cmp byte [0x4775c4], 0
jne 0x40246f
call fcn.00401bf8
test al, al
je 0x402477
cmp ebx, 0x7ffffff8
jle 0x402481
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4025f7
xor edx, edx
push ebp
push 0x4025f0
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x47704d], 0
je 0x4024a2
push 0x4775cc
call sub.KERNEL32.DLL_WinExec
add ebx, 7
and ebx, 0xfffffffc
cmp ebx, 0xc
jge 0x4024b2
mov ebx, 0xc
cmp ebx, 0x1000
jg 0x40256a
mov eax, ebx
test eax, eax
jns 0x4024c7
add eax, 3
sar eax, 2
mov edx, dword [0x477624]
mov edx, dword [edx + eax*4 - 0xc]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x40256a
mov edx, dword [ebp - 8]
add edx, ebx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x14]
and dword [edx], 0xfffffffe
mov edx, dword [ebp - 8]
mov edx, dword [edx + 4]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 8]
jne 0x40250e
mov edx, dword [0x477624]
xor ecx, ecx
mov dword [edx + eax*4 - 0xc], ecx
jmp 0x402534
mov edx, dword [0x477624]
mov ecx, dword [ebp - 0x10]
mov dword [edx + eax*4 - 0xc], ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
or eax, 2
mov edx, dword [ebp - 0x14]
mov dword [edx], eax
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x4775b4]
sub ebx, 4
add dword [0x4775b8], ebx
call fcn.00403d7c
jmp 0x4025f7
cmp ebx, dword [0x47761c]
jg 0x4025c5
sub dword [0x47761c], ebx
cmp dword [0x47761c], 0xc
jge 0x40258e
add ebx, dword [0x47761c]
xor eax, eax
mov dword [0x47761c], eax
mov eax, dword [0x477620]
mov dword [ebp - 0x14], eax
add dword [0x477620], ebx
mov eax, ebx
or eax, 2
mov edx, dword [ebp - 0x14]
mov dword [edx], eax
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x4775b4]
sub ebx, 4
add dword [0x4775b8], ebx
call fcn.00403d7c
jmp 0x4025f7
mov eax, ebx
call fcn.0040230c
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4025f7
cmp byte [0x47704d], 0
je 0x4025ef
push 0x4775cc
call sub.KERNEL32.DLL_WriteFile
ret
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402600
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, eax
xor eax, eax
mov dword [0x4775c8], eax
cmp byte [0x4775c4], 0
jne 0x402638
call fcn.00401bf8
test al, al
jne 0x402638
mov dword [0x4775c8], 8
mov dword [ebp - 4], 8
jmp 0x4027ce
xor edx, edx
push ebp
push 0x4027c7
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x47704d], 0
je 0x402659
push 0x4775cc
call sub.KERNEL32.DLL_WinExec
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
sub eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
test bl, 2
jne 0x40267e
mov dword [0x4775c8], 9
jmp 0x40279e
dec dword [0x4775b4]
mov eax, ebx
and eax, 0x7ffffffc
sub eax, 4
sub dword [0x4775b8], eax
test bl, 1
je 0x4026ec
mov eax, dword [ebp - 8]
sub eax, 0xc
mov eax, dword [eax + 8]
cmp eax, 0xc
jl 0x4026ae
test eax, 0x80000003
je 0x4026bd
mov dword [0x4775c8], 0xa
jmp 0x40279e
mov edx, dword [ebp - 8]
sub edx, eax
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x10]
cmp eax, dword [edx + 8]
je 0x4026dc
mov dword [0x4775c8], 0xa
jmp 0x40279e
add ebx, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
call fcn.00401dd0
and ebx, 0x7ffffffc
mov eax, dword [ebp - 8]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x477620]
jne 0x402731
sub dword [0x477620], ebx
add dword [0x47761c], ebx
cmp dword [0x47761c], 0x3c00
jle 0x402722
call fcn.0040219c
xor eax, eax
mov dword [ebp - 4], eax
call fcn.00403d7c
jmp 0x4027ce
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
test al, 2
je 0x402758
and eax, 0x7ffffffc
cmp eax, 4
jge 0x402750
mov dword [0x4775c8], 0xb
jmp 0x40279e
mov eax, dword [ebp - 0xc]
or dword [eax], 1
jmp 0x402794
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
je 0x402778
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x402778
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0xc
jge 0x402784
mov dword [0x4775c8], 0xb
jmp 0x40279e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
add ebx, eax
mov eax, dword [ebp - 0x10]
call fcn.00401dd0
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004020a4
mov eax, dword [0x4775c8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4027ce
cmp byte [0x47704d], 0
je 0x4027c6
push 0x4775cc
call sub.KERNEL32.DLL_WriteFile
ret
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404480
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push edx
push eax
mov eax, dword [ebp + 8]
push eax
push ecx
push 0
mov eax, dword [0x4775c0]
push eax
call sub.KERNEL32.DLL_ResumeThread
pop ebp
ret 4

Function at 0x404a18
Capabilities:
Hide graphical window

Disassembly:
test eax, eax
je 0x404a2c
push eax
push 0
call sub.user32.dll_ShowWindow
test eax, eax
je 0x404a10
ret