joyce8/EMBER2024-capa huggingface dataset:
Function at 0xbc60de0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0xbc60df7
add esp, 0xfffffff0
call fcn.0bc13c9c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0bc2a578
mov eax, dword [0xbc6bbb0]
cmp word [eax + 2], 0
jne 0xbc60e1f
mov eax, dword [0xbc6bbb0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0bc62920
mov eax, dword [0xbc6bc78]
cmp word [eax + 2], 0
jne 0xbc60e39
mov eax, dword [0xbc6bc78]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0bc62b2c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0xbc220cc]
call fcn.0bc13960
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0xbc220cc]
call fcn.0bc13960
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0xbc220cc]
call fcn.0bc13960
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0xbc2e898]
call fcn.0bc347fc
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0xbc60ff0
mov eax, dword [0xbc6bab0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0bc34bd0
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0xbc631ec
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0xbc6bab0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0bc1cc88
test eax, eax
je 0xbc60f40
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0bc18e98
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0bc1ccbc
test eax, eax
je 0xbc60f54
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0bc14a14
mov byte [ebx + 0xd4], 0
push ebx
push 0xbc62480
call fcn.0bc2b6f4
mov dword [ebx + 0xc8], eax
mov eax, dword [0xbc6b938]
cmp byte [eax], 0
jne 0xbc60fa5
mov eax, ebx
call fcn.0bc61134
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0bc633c8
mov eax, ebx
call fcn.0bc63f28
mov eax, ebx
cmp byte [ebp - 1], 0
je 0xbc60fe5
call fcn.0bc13cf4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xbc613b4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0xbc6f57c]
cmp dword [eax + 0x30], 0
je 0xbc6145e
cmp dword [ebx + 0x94], 0
jne 0xbc61458
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0xbc61344
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0xbc61458
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0xbc6141e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0xbc61458
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0bc24478
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0xbc6142d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0xbc62178
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0xbc621ad
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0bc14894
jmp 0xbc621ba
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0bc147f8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0xbc635ac
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0xbc6361a
mov eax, esi
call fcn.0bc4ddac
test al, al
je 0xbc6361a
mov eax, dword [ebx + 0x84]
call fcn.0bc4dab0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0xbc6361a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0xbc6360e
push 0
mov eax, dword [ebx + 0x84]
call fcn.0bc4dab0
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0bc45fa8
jmp 0xbc6361a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0bc633e8
pop esi
pop ebx
ret
Function at 0xbc69728
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, dword [0xbc6bcbc]
mov byte [eax], 1
mov eax, 0xbc68188
call fcn.0bc1662c
push 0
call sub.kernel32.dll_GetConsoleWindow
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0xbc6bc48]
mov eax, dword [eax]
call fcn.0bc6272c
mov eax, dword [0xbc6bc48]
mov eax, dword [eax]
mov edx, 0xbc697a8
call fcn.0bc621c4
mov eax, dword [0xbc6bc48]
mov eax, dword [eax]
mov byte [eax + 0x5b], 0
mov ecx, dword [0xbc6bd6c]
mov eax, dword [0xbc6bc48]
mov eax, dword [eax]
mov edx, dword [0xbc6683c]
call fcn.0bc62744
mov eax, dword [0xbc6bc48]
mov eax, dword [eax]
call fcn.0bc627c4
call fcn.0bc146b0
add byte [eax], al

Function at 0x409ebd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409ebd
lcall 0x5de5, 0x8b10c483
jmp fcn.0076d6b4
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x16137e8c
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x51033647
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4014e9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 0x201
je 0x401501
cmp dword [ebp + 0xc], 0x204
jne 0x401503
jmp 0x401508
jmp 0x401644
call fcn.0040104e
test eax, eax
jne 0x40154d
push 0x11
push 0
push 0
push 0xffffd8f0
push 0xffffd8f0
push 0
mov eax, dword [0x40a210]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push 4
mov ecx, dword [0x40a210]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov edx, dword [0x40a210]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x40a214], 0
je 0x40156e
push 0
mov eax, dword [0x40a214]
push eax
call dword [sym.imp.USER32.dll_EndDialog]
mov dword [0x40a214], 0
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov dword [ebp - 4], eax
call sub.DOKOWHEL.DLL_QueryEnd
test eax, eax
je 0x4015a9
push 0x407054
push pe_nt_image_headers32
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_AppendMenuA]
push 0
push 0
push 0x800
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_AppendMenuA]
push 0x407064
push 0xc9
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_AppendMenuA]
push 0
push 0
push 0x800
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_AppendMenuA]
push 0x407084
push 0xca
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_AppendMenuA]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [0x40a210]
push ecx
call dword [sym.imp.USER32.dll_GetLastActivePopup]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
mov edx, dword [0x40a210]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 8
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_TrackPopupMenu]
push 0
push 0
push 0xdc5
mov eax, dword [0x40a210]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_DestroyMenu]
mov esp, ebp
pop ebp
ret

Function at 0x401bed
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.00401147
test eax, eax
jne 0x401c03
call fcn.0040101d
test eax, eax
je 0x401c05
jmp 0x401c07
jmp 0x401c62
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401c37
push 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp dword [ebp - 4], 0
je 0x401c62
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esp, ebp
pop ebp
ret
Function at 0x403570
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4061f8
push 0x404868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x409dc8], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x409dc4], ecx
shl ecx, 8
add ecx, edx
mov dword [0x409dc0], ecx
shr eax, 0x10
mov dword [0x409dbc], eax
call fcn.00404730
test eax, eax
jne 0x4035da
push 0x1c
call fcn.00403740
add esp, 4
mov dword [ebp - 4], 0
call fcn.00404530
call fcn.00403c50
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40a334], eax
call fcn.004043d0
mov dword [0x409b84], eax
test eax, eax
je 0x40360d
mov eax, dword [0x40a334]
test eax, eax
jne 0x403617
push 0xffffffffffffffff
call fcn.00403d30
add esp, 4
call fcn.00404120
call fcn.00404030
call fcn.00403d00
mov esi, dword [0x40a334]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x4036f6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40365e
test al, al
je 0x40365e
and eax, 0xff
push eax
call fcn.00403fd0
add esp, 4
test eax, eax
je 0x403638
inc esi
mov dword [ebp - 0x64], esi
jmp 0x403638
cmp byte [esi], 0x22
jne 0x403667
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x403677
cmp al, 0x20
ja 0x403677
inc esi
mov dword [ebp - 0x64], esi
jmp 0x403667
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x403698
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x40369d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00403d30
jmp 0x4036db
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x403667
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4036f6

Function at 0x403740
Capabilities:
Terminate process

Disassembly:
cmp dword [0x409b8c], 1
jne 0x40374e
call fcn.00404940
mov eax, dword [esp + 4]
push eax
call fcn.00404980
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x403d70
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x409df8]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x403d8f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x409df4], 1
mov byte [0x409df0], bl
jne 0x403de9
mov ecx, dword [0x40a328]
test ecx, ecx
je 0x403dd7
mov esi, dword [0x40a324]
sub esi, 4
cmp esi, ecx
jb 0x403dd7
mov eax, dword [esi]
test eax, eax
je 0x403dd0
call eax
mov ecx, dword [0x40a328]
sub esi, 4
cmp esi, ecx
jae 0x403dc2
push 0x407014
push 0x407010
call fcn.00403e20
add esp, 8
push 0x40701c
push 0x407018
call fcn.00403e20
add esp, 8
test ebx, ebx
jne 0x403e10
push ebp
mov dword [0x409df8], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x4043d0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x409f08]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x404412
call edi
mov esi, eax
test esi, esi
je 0x4043fc
mov eax, 1
jmp 0x40440d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40451f
mov eax, 2
mov dword [0x409f08], eax
cmp eax, 1
jne 0x4044b2
test esi, esi
jne 0x40442b
call edi
mov esi, eax
test esi, esi
je 0x40451f
cmp word [esi], 0
mov eax, esi
je 0x404445
add eax, 2
cmp word [eax], 0
jne 0x404433
add eax, 2
cmp word [eax], 0
jne 0x404433
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4044a4
push edi
call fcn.00405050
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4044a4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x404496
push ebx
call fcn.00405000
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40451f
test ebx, ebx
jne 0x4044c3
call ebp
mov ebx, eax
test ebx, ebx
je 0x40451f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x4044db
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4044cb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4044cb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00405050
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4044fd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x404980
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x407458
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4049a4
add eax, 8
inc ebp
cmp eax, 0x4074e8
jb 0x404995
cmp ecx, dword [ebp*8 + 0x407458]
jne 0x404b4b
mov eax, dword [0x409b8c]
cmp eax, 1
je 0x404b0d
test eax, eax
jne 0x4049d0
cmp dword [0x4072b4], 1
je 0x404b0d
cmp ecx, 0xfc
je 0x404b4b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404a0b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x404a54
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x4064d8
add ebx, ecx
push ebx
call fcn.00404f00
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4064b8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x40745c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00405820
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40a220]
test eax, eax
je 0x404b1e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x404b28
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x40745c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x7abc0c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7abc16
add byte [eax], al
pushal
call 0x7abc1c
pop ebp
sub ebp, 0x10
sub ebp, 0x3abc0c
jmp 0x7abc32
mov eax, 0x3abc0c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5f6
mov edx, 0x68751e98
xor byte [eax], dl
inc eax
dec ecx
jne 0x7abc49
jmp 0x7abc5c
adc edx, dword [ebp + 0x13]
adc dword [eax + ebx*4 + 0x59199898], esp
pushal
cwde
cwde
cwde
wait
push ebp
and byte [edx + 0x22989898], bl
mov al, 0x98
cwde
cwde
outsd dx, dword [esi]
jp 0x7abc14
push eax
adc ebx, dword [ecx]
xchg esp, eax
cwde
cwde
cwde
wait
pop ebp
adc eax, 0x1164bcfc
pushfd
mov esp, 0x64bcfc15
adc dword [esp + edi*4 - 0x69aec310], ebx
cwde
invalid
Function at 0x943080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x9430c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x968458
push ecx
call fcn.009531e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.009531e1
add esp, 0x10
jmp 0x9430d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0095320b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00952dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00943050
mov eax, dword [0x96d728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], reloc.wtsapi32.dll_WTSSetSessionInformationW
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x94313b
push esi
call fcn.00942fb0
add esp, 4
mov dword [0x96d728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x94314c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00942ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x946440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x9464b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x94648e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x946471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x94647e
add edx, ecx
cmp ebx, edx
jb 0x94648a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x946467
xor ecx, ecx
jmp 0x9464a2
test eax, eax
jne 0x946492
xor ecx, ecx
jmp 0x9464a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.009463c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x9468f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x946921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x946946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x94696e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], reloc.wtsapi32.dll_WTSQueryUserToken
jne 0x946993
push ecx
push esi
call fcn.009464c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret