joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406190
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4410
call fcn.00417d20
mov eax, dword [0x427494]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x42d09c], 0
push ebx
push esi
jne 0x406259
push 0x4296f0
lea eax, [ebp - 0x1008]
push 0x400
push eax
call fcn.00409a5f
add esp, 0xc
push str..tmplt
lea ecx, [ebp - 0x1008]
push 0x400
push ecx
call fcn.0040a82d
add esp, 0xc
push 0
push 0x80
push 4
push 0
push 0
push 4
lea edx, [ebp - 0x1008]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x406269
push str.ERROR______________hFile__INVALID_HANDLE_VALUE___FileName__
lea eax, [ebp - 0x808]
push 0x400
push eax
call fcn.00409a5f
add esp, 0xc
lea ecx, [ebp - 0x1008]
push ecx
lea edx, [ebp - 0x808]
push 0x400
push edx
call fcn.0040a82d
add esp, 0xc
lea edx, [ebp - 0x808]
mov esi, 0x42a090
call fcn.00401870
mov edx, str.LEAVING_________________________________________SaveFileToListerExeTxt
call fcn.00401870
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00409a50
mov esp, ebp
pop ebp
ret
inc dword [0x42d0c4]
push edi
lea eax, [ebp - 0x2008]
push 0x400
push eax
call fcn.00409a5f
add esp, 0xc
push edi
lea esi, [ebp - 0x1808]
call fcn.004052a0
cmp byte [edi + 0x808], 0
mov eax, str.TRUE
jne 0x4062a3
mov eax, str.FALSE
push eax
mov eax, dword [0x42d0c4]
lea ecx, [ebp - 0x1808]
push ecx
lea edx, [ebp - 0x2008]
push edx
push eax
push str._d___s__s__s_r_n
lea ecx, [ebp - 0x3808]
push 0xc00
push ecx
call fcn.0040acfa
lea eax, [ebp - 0x3808]
add esp, 0x1c
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4062e0
sub eax, edx
sar eax, 1
inc eax
push eax
lea edx, [ebp - 0x3808]
push edx
push 0xc00
lea eax, [ebp - 0x4408]
push eax
lea ecx, [ebp - 0x4410]
push ecx
call fcn.0040a80d
lea eax, [ebp - 0x4408]
add esp, 0x14
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406320
sub eax, edx
push 0
lea edx, [ebp - 0x440c]
push edx
push eax
lea eax, [ebp - 0x4408]
push eax
push ebx
mov dword [ebp - 0x440c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x42d0c4], 0x7d0
jne 0x406259
push 1
call fcn.0040bc4b
int3
Function at 0x406650
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a5c
call fcn.00417d20
mov eax, dword [0x427494]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp - 0x100c]
push 0x400
push eax
call fcn.00409a5f
add esp, 0xc
push 0x422f00
lea ecx, [ebp - 0x100c]
push 0x400
push ecx
call fcn.0040a82d
add esp, 0xc
lea edx, [ebp - 0x1a5c]
push edx
lea eax, [ebp - 0x100c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x406713
push str.ERROR__________________________INVALID_HANDLE_VALUE__hFind____
lea ecx, [ebp - 0x80c]
push 0x400
push ecx
call fcn.00409a5f
add esp, 0xc
lea edx, [ebp - 0x100c]
push edx
lea eax, [ebp - 0x80c]
push 0x400
push eax
call fcn.0040a82d
add esp, 0xc
lea edx, [ebp - 0x80c]
mov esi, 0x42a090
call fcn.00401870
mov edx, str.LEAVING_________________________________________EHRecursivelySearch
call fcn.00401870
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00409a50
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x80c]
push 0x400
push ecx
call fcn.00409a5f
add esp, 0xc
push 0x422144
lea edx, [ebp - 0x80c]
push 0x400
push edx
call fcn.0040a82d
add esp, 0xc
lea eax, [ebp - 0x1a30]
push eax
lea ecx, [ebp - 0x80c]
push 0x400
push ecx
call fcn.0040a82d
add esp, 0xc
test byte [ebp - 0x1a5c], 0x10
je 0x4067f2
mov ecx, 0x422bd0
lea eax, [ebp - 0x1a30]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40679a
test dx, dx
je 0x406796
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40679a
add eax, 4
add ecx, 4
test dx, dx
jne 0x406774
xor eax, eax
jmp 0x40679f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406837
mov ecx, 0x423018
lea eax, [ebp - 0x1a30]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4067d8
test dx, dx
je 0x4067d4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4067d8
add eax, 4
add ecx, 4
test dx, dx
jne 0x4067b2
xor eax, eax
jmp 0x4067dd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406837
lea edx, [ebp - 0x80c]
push edx
call fcn.00406650
add esp, 4
jmp 0x406837
lea eax, [ebp - 0x180c]
push eax
lea ecx, [ebp - 0x1a30]
call fcn.00405e70
lea ecx, [ebp - 0x180c]
add esp, 4
push ecx
call fcn.004060b0
add esp, 4
test al, al
je 0x406837
mov edx, dword [ebp - 0x1a44]
mov eax, dword [ebp - 0x1a48]
push edx
push eax
lea ecx, [ebp - 0x80c]
push ecx
call fcn.00406370
add esp, 0xc
lea edx, [ebp - 0x1a5c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406713
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x406867
mov edx, str.ERROR___________________________dwError___ERROR_NO_MORE_FILES_
mov esi, 0x42a090
call fcn.00401870
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.00409a50
mov esp, ebp
pop ebp
ret
Function at 0x408b80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x429fc0
push 0x67
push esi
call edi
push 0x64
push 0x429ef8
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00408c40
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x429fc0
push 0x429ef8
push 0
mov dword [0x429ef4], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
je 0x408c1d
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.00405530
test eax, eax
je 0x408c27
mov edx, str.ERROR_______________________App_already_running
mov esi, 0x42a090
call fcn.00401870
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [ebp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.00406fb0
push 0xea60
call edi
jmp 0x408c30

Function at 0x409a50
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427494]
jne 0x409a5a
repz ret
jmp fcn.0040ed1d
Function at 0x419261
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x427494]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004104d9
and dword [ebp - 0x14], 0
cmp dword [0x4296a8], 0
mov dword [ebp - 0x18], eax
jne 0x419314
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4193bc
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4193bc
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4296a8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4296ac], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4296b0], eax
call edi
push eax
call esi
mov dword [0x4296b8], eax
test eax, eax
je 0x419314
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4296b4], eax
mov eax, dword [0x4296b4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41936d
cmp dword [0x4296b8], ecx
je 0x41936d
push eax
call esi
push dword [0x4296b8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41936d
test ebx, ebx
je 0x41936d
call edi
test eax, eax
je 0x419364
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x419364
test byte [ebp - 8], 1
jne 0x41936d
or dword [ebp + 0x10], 0x200000
jmp 0x4193a0
mov eax, dword [0x4296ac]
cmp eax, dword [ebp - 0x18]
je 0x4193a0
push eax
call esi
test eax, eax
je 0x4193a0
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4193a0
mov eax, dword [0x4296b0]
cmp eax, dword [ebp - 0x18]
je 0x4193a0
push eax
call esi
test eax, eax
je 0x4193a0
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4296a8]
call esi
test eax, eax
je 0x4193bc
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4193be
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409a50
leave
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

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

Disassembly:
pushal
nop
nop
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
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x11566107
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x35e47568
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x401029
mov al, byte [esi + 1]
inc esi
test al, al
je 0x401021
cmp al, 0x22
jne 0x401015
cmp byte [esi], 0x22
jne 0x401033
inc esi
jmp 0x401033
cmp al, 0x20
jle 0x401033
inc esi
cmp byte [esi], 0x20
jg 0x40102d
mov al, byte [esi]
test al, al
je 0x40103d
cmp al, 0x20
jle 0x401026
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402aca
push 0x404004
push section..data
call fcn.00402ab0
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x40106d
movzx eax, word [ebp - 0x14]
jmp 0x401070
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
call fcn.00402ae2
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4012a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x404280], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.trast
push str.bask
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4012e8
xor eax, eax
jmp 0x401303
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x5e997e
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa61cdc
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x5e99fe
arpl word [edx + esi], si
sub ebp, eax
cld
mov ah, 0x98
out dx, al
test bh, ch
or al, 0x1e
mov bh, cl
arpl word [edx + 0x3034ec97], cx
cwde
mov esi, dword [0x11f5c276]
cmp al, 0xa8
inc ebx
xchg ebp, eax
xchg edx, eax
xchg edi, eax
pop edi
in al, 0x3f
shl dword [edi], cl
or al, 0x7d
insb byte es:[edi], dx
clc
cld
xchg ebx, eax
std
push ebp
push 0xffffffffffffffc5
cli
mov byte [edi - 0x4f472b10], ah
sub dh, byte [eax + esi + 0x753b0b93]
xor byte [esi - 0x50], 0xac
arpl word [ecx - 0x7fd0bffc], dx
jp 0x5e99c1
iretd
out dx, eax
and bl, byte [edx]
invalid
Function at 0x401198
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 4
push 0x40f244
call fcn.00403434
pop ecx
pop ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401282
push ebx
push esi
push edi
mov ebx, 0x40f967
push eax
push ebx
call fcn.00403464
pop ecx
mov dword [ebp - 0xc], eax
pop ecx
lea eax, [ebp - 0x110]
push 0x104
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x401276
lea eax, [ebp - 0x110]
push eax
call fcn.0040c3e8
xor edi, edi
pop ecx
cmp dword [ebp - 0xc], edi
jle 0x40126e
push edi
push ebx
call fcn.00403434
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00403b7d
add esp, 0x10
test eax, eax
je 0x401268
push 0x40fb6f
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x401268
push 2
push 0x40fc6f
call fcn.00403434
pop ecx
pop ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401261
lea ecx, [ebp - 0x110]
push ecx
push dword [ebp - 4]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
inc edi
cmp edi, dword [ebp - 0xc]
jl 0x40120f
inc dword [ebp - 8]
jmp 0x4011df
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401284
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
lea eax, [ebp + 0xc]
push esi
and dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
mov esi, 0x400
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4012b8
xor eax, eax
jmp 0x4013a4
push ebx
push edi
mov edi, 0x40f967
push 0
push edi
call fcn.00403464
pop ecx
mov dword [ebp + 8], eax
pop ecx
lea eax, [ebp - 8]
xor ebx, ebx
push eax
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0xc], esi
push eax
mov dword [ebp - 8], esi
push dword [ebp - 4]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x401397
cmp dword [ebp - 0x10], 1
je 0x40130f
and byte [ebp - 0x814], al
lea eax, [ebp - 0x414]
push eax
call fcn.0040c3e8
lea eax, [ebp - 0x814]
push eax
call fcn.0040c3e8
cmp dword [ebp + 8], 0
pop ecx
pop ecx
jle 0x40138f
push ebx
push edi
call fcn.00403434
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00403b7d
add esp, 0x10
test eax, eax
jne 0x401379
push dword [ebp - 0x14]
lea eax, [ebp - 0x814]
push eax
call fcn.00403b7d
pop ecx
test eax, eax
pop ecx
jne 0x401379
lea eax, [ebp - 0x414]
push str.____
push eax
call fcn.00407280
pop ecx
test eax, eax
pop ecx
jne 0x401389
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x40132f
inc dword [ebp - 4]
jmp 0x4012cc
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop ebx
pop esi
leave
ret 8
Function at 0x4048cb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x51c
and dword [ebp - 4], 0
cmp dword [0x491e88], 0
jne 0x404906
push 4
push 0x40f244
call fcn.00403434
lea ecx, [ebp - 4]
push ecx
push 0x4047fd
push eax
push 0x80000002
call fcn.00404562
add esp, 0x18
jmp 0x404942
lea eax, [ebp - 0x418]
push 2
push eax
call fcn.00403bd8
lea eax, [ebp - 0x418]
push eax
push 0x491a78
call fcn.00407370
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x418]
push 0x404769
push eax
push 0x80000002
call fcn.004045e0
add esp, 0x20
mov eax, dword [ebp - 4]
test eax, eax
mov dword [0x491e8c], eax
jne 0x404a23
push esi
lea eax, [ebp - 0x51c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor esi, esi
and byte [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push 0x40f769
push eax
call fcn.00407370
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push 4
push 4
push 2
push eax
call fcn.00407460
pop ecx
lea eax, [ebp + eax - 0x18]
push eax
call fcn.00403624
lea eax, [ebp - 0x17]
push eax
call fcn.0040c5cc
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00407370
lea eax, [ebp - 0x418]
push 0x40e044
push eax
call fcn.00407380
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00407380
lea eax, [ebp - 0x418]
push 0x40f1dc
push eax
call fcn.00407380
lea eax, [ebp - 0x418]
push eax
call fcn.00403d58
add esp, 0x38
test eax, eax
je 0x404a00
inc esi
cmp esi, 0xa
jl 0x404967
lea eax, [ebp - 0x18]
push eax
push 0x491974
call fcn.00407380
lea eax, [ebp - 0x418]
push eax
push 0x491b7c
call fcn.00407370
add esp, 0x10
pop esi
push 1
pop eax
leave
ret

Function at 0x404b78
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0x44
jb 0x404bb3
mov ecx, dword [esp + 8]
cmp byte [ecx], 0x4d
jne 0x404bb3
cmp byte [ecx + 1], 0x5a
jne 0x404bb3
movzx eax, word [ecx + 0x3c]
add eax, ecx
add esi, 0xfffffffc
mov edx, eax
sub edx, ecx
cmp edx, esi
ja 0x404bb3
mov eax, dword [eax]
pop esi
sub eax, 0x4550
neg eax
sbb eax, eax
not eax
and eax, edx
ret
xor eax, eax
pop esi
ret
Function at 0x4058b1
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
push esi
lea ecx, [ebp - 0x18]
call fcn.0040174b
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push 1
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0040174e
mov esi, eax
test esi, esi
je 0x405967
lea eax, [ebp - 0x324]
push 0
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
call fcn.004074db
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407380
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407380
lea eax, [ebp - 0x11c]
push 0x40f1d8
push eax
call fcn.00407380
lea eax, [ebp - 0x11c]
push 0x40f1dc
push eax
call fcn.00407380
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push esi
call fcn.00407196
mov esi, eax
add esp, 0x40
test esi, esi
lea ecx, [ebp - 0x18]
jne 0x40596b
call fcn.00401808
xor eax, eax
jmp 0x4059bf
call fcn.00401808
push dword [ebp - 4]
lea eax, [ebp - 0x11c]
push esi
push eax
call fcn.00403cbb
push esi
call fcn.0040780b
add esp, 0x10
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004046b3
pop ecx
test eax, eax
pop ecx
je 0x4059bd
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x11c]
push eax
call fcn.00403dfa
pop ecx
push 1
pop esi
mov eax, esi
pop esi
leave
ret

Function at 0x405e9a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
and byte [ebp - 0x10c], 0
push ebx
lea eax, [ebp - 0x10c]
push 0x104
push eax
push 1
push 0x40f949
call fcn.00403434
pop ecx
pop ecx
push eax
push 0x40f244
push 0x80000002
call fcn.004044c0
lea eax, [ebp - 0x10c]
push eax
call fcn.00405c5a
movsx eax, byte [ebp - 0x10c]
mov bl, byte [ebp - 0x10a]
push eax
call fcn.004076ee
add esp, 0x1c
and dword [ebp - 8], 0
mov byte [ebp - 1], al
mov al, byte [ebp - 8]
add al, 0x61
cmp al, byte [ebp - 1]
je 0x405f44
and byte [ebp - 0x10a], 0
mov byte [ebp - 0x10c], al
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
mov byte [ebp - 0x10a], bl
jne 0x405f44
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push 0x405e42
push eax
call fcn.00403e11
add esp, 0xc
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1a
jl 0x405efe
xor eax, eax
pop ebx
leave
ret 4
Function at 0x406820
Capabilities:
Copy file
Create service
Persist via windows service
Set file attributes
Start service

Disassembly:
mov eax, 0x1fc8
call fcn.00407b80
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push 0x104
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, 0x491b7c
push 0x20
push esi
call edi
push ebx
lea eax, [esp + 0x18]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x20
push esi
mov dword [esp + 0x18], eax
call edi
cmp dword [esp + 0x10], ebx
je 0x4068c3
push 0x1ec0
lea eax, [esp + 0x11c]
push 0x40e0c0
push eax
call fcn.00407820
lea eax, [esp + 0x124]
mov byte [esp + 0x1138], bl
push eax
push esi
call fcn.004054b3
push 0x13000
push esi
call fcn.00404e60
push ebx
call fcn.00404687
xor edx, edx
mov ecx, 0x2800
div ecx
add edx, 0x13200
push edx
push esi
call fcn.00403f63
add esp, 0x28
push 0x27
push esi
call edi
cmp dword [0x491e88], ebx
mov edi, 0x491974
je 0x40691a
push esi
push edi
push 0x491a78
push 0x80000002
call fcn.0040451c
push 1
push 0x40fb6f
call fcn.00403434
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push 0x40fc6f
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x406913
push 1
push ebx
call eax
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x10], ebx
jne 0x406924
xor eax, eax
jmp 0x406999
cmp dword [0x491e88], ebx
je 0x406937
push ebx
push esi
call fcn.004046b3
pop ecx
pop ecx
jmp 0x406996
cmp dword [0x491e90], ebx
jne 0x406996
mov ebp, dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 2
push ebx
push ebx
call ebp
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
push 2
push 0x110
push ebx
push edi
push edi
push eax
mov dword [esp + 0x44], eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
push dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push 1
push ebx
push ebx
call ebp
mov ebp, eax
push 0x10
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push edi
call esi
push ebp
call esi
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1fc8
ret