joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004d57
Capabilities:
Accept command line arguments
Initialize winsock library

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1d4
mov eax, dword [0x100e170]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor esi, esi
push esi
mov dword [ebp - 0x1a4], eax
call dword [sym.imp.ole32.dll_CoInitialize]
push 1
push esi
lea ecx, [ebp - 0x1b8]
mov dword [ebp - 0x1b8], esi
mov dword [ebp - 0x1b4], esi
mov dword [ebp - 0x1b0], esi
mov dword [ebp - 0x1ac], esi
mov dword [ebp - 0x1a8], esi
call fcn.0100488e
push esi
push esi
push esi
push 3
push 4
push esi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x1b8]
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
push 0x1001364
push edi
mov ebx, 0x100e1a0
push 0x100e038
mov ecx, ebx
call fcn.01003797
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, 0x1001754
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
mov dword [0x100e224], eax
lea eax, [ebp - 0xc]
movsw word es:[edi], word [esi]
xor edi, edi
push eax
push dword [ebp - 0x1a4]
mov dword [ebp - 0x1a0], edi
jmp 0x1004e2e
push 0x100173c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1004e63
push 0x1001728
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1004e7e
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.01002496
mov esi, eax
cmp esi, edi
jne 0x1004e09
lea eax, [ebp - 0x19c]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
mov ecx, ebx
call fcn.010037f9
push 1
push 4
push ebx
call fcn.0100304a
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x1004ea1
push edi
push edi
push 0x64
push ebx
call fcn.01004c18
push edi
push 1
push ebx
call fcn.01004800
mov dword [ebp - 0x1a0], eax
jmp 0x1004ec7
push edi
push 1
push 0x64
push ebx
call fcn.01004c18
push edi
push 1
push ebx
call fcn.01004759
jmp 0x1004e76
lea eax, [ebp - 0x1d4]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
push edi
lea eax, [ebp - 0x1d4]
push edi
push eax
call esi
test eax, eax
jne 0x1004e94
push ebx
call fcn.01003097
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call sub.WSOCK32.dll_WSACleanup
push ebx
call fcn.01003118
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x1b8]
call fcn.010032af
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1a0]
pop edi
pop esi
pop ebx
call fcn.0100a2d1
leave
ret 0x10
Function at 0x1005f5c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, ecx
stosd dword es:[edi], eax
mov eax, dword [esi + 0x64]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1005fd1
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x3e5
jne 0x1005fd3
push 0xffffffffffffffff
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1005fcd
push 1
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1005fd1
call edi
jmp 0x1005fd3
xor eax, eax
pop edi
pop esi
leave
ret 0xc
Function at 0x10069e9
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x100e170]
and dword [ebp - 0x41c], 0
push esi
push edi
mov dword [ebp - 4], eax
mov esi, ecx
call fcn.01006107
test eax, eax
jne 0x1006b3f
push dword [esi + 0x70]
mov ecx, esi
call fcn.0100648b
test eax, eax
mov dword [ebp - 0x41c], eax
jne 0x1006a33
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1006b3f
push dword [esi + 0x74]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x10018e8
lea eax, [ebp - 0x418]
push 0x10018dc
push eax
call edi
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push 0x10018c4
push eax
call edi
add esp, 0x1c
push dword [ebp - 0x41c]
mov eax, 0x800
push 0x7530
push eax
push eax
push 1
push 6
push 0x40000003
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push dword [esi + 0x6c]
mov dword [esi + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [esi + 0x3c], 0xffffffff
je 0x1006a28
xor eax, eax
lea edi, [ebp - 0x434]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi + 0x64]
push eax
mov dword [ebp - 0x424], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x434]
push eax
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x1006b88
call edi
cmp eax, 0x3e5
jne 0x1006b88
push 0xffffffffffffffff
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1006afe
and dword [esi + 0x40], 0
jmp 0x1006b20
push 1
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x434]
push eax
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
mov dword [esi + 0x40], eax
jne 0x1006b20
call edi
cmp dword [esi + 0x40], 0
je 0x1006b3f
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov ecx, esi
call fcn.010063e7
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
lea edi, [esi + 0x7c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x3c], 0xffffffff
je 0x1006b56
mov ecx, esi
call fcn.01005db0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x41c], 0
je 0x1006b73
push dword [ebp - 0x41c]
mov ecx, esi
call fcn.01005fde
push 0
mov ecx, esi
call fcn.01006167
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0100a2d1
leave
ret
call edi
cmp eax, 0x217
jne 0x1006b1e
mov dword [esi + 0x40], 1
jmp 0x1006b20
Function at 0x1008609
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
inc esi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
cmp ebx, edi
jne 0x1008635
mov edi, 0x8007000e
jmp 0x1008696
push edi
push edi
push esi
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1008668
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1008664
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x100868f
push ebx
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x100868a
push ebx
call sub.WSOCK32.dll_gethostbyname
cmp eax, edi
je 0x1008650
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x1008650
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x100a3e9
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001e70
call fcn.0100a84c
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x100a424
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100a424
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x100a43c
cmp eax, 0x20b
je 0x100a429
mov dword [ebp - 0x1c], edi
jmp 0x100a450
cmp dword [ecx + 0x84], 0xe
jbe 0x100a424
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x100a44a
cmp dword [ecx + 0x74], 0xe
jbe 0x100a424
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100e284], 0xffffffff
or dword [0x100e288], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100e278]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100e274]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100e28c], eax
call fcn.0100a842
cmp dword [0x100e180], edi
jne 0x100a4ad
push fcn.0100a842
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100a82b
push 0x100e010
push 0x100e00c
call sub.msvcrt.dll__initterm
mov eax, dword [0x100e270]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100e26c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x100e008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x100a513
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x100a5cd
mov dword [ebp - 0x20], esi
cmp word [esi], 0x22
jne 0x100a561
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x100a52f
cmp ax, 0x22
jne 0x100a51c
cmp word [esi], 0x22
jne 0x100a53a
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x100a548
cmp ax, 0x20
jbe 0x100a535
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x54], 1
je 0x100a56e
movzx eax, word [ebp - 0x50]
jmp 0x100a571
cmp word [esi], 0x20
jbe 0x100a53a
add esi, ebx
mov dword [ebp - 0x20], esi
jmp 0x100a561
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], edi
jne 0x100a592
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100a5c7
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100a887
ret
Function at 0x100bc83
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push edi
push edi
push 1
push ebx
mov dword [ebp - 4], edi
call esi
mov eax, dword [ebp - 4]
cmp eax, edi
jne 0x100bcb7
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100bd07
push eax
push 0x40
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x100bcd4
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100bcfc
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push edi
push 1
push ebx
call esi
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 1
jne 0x100bcfc
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov esi, eax
test edi, edi
je 0x100bd07
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x403180
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4197c8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4216ac]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x4216ac]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x4032d4
cmp byte [ebx + 0x45], 0
je 0x4032d4
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4031e0
xor al, al
jmp 0x4032d6
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
cmp ecx, 0x10
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x403220
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x1c]
cmovae edi, dword [esp + 0x1c]
lea esi, [esp + 0x1c]
cmovae esi, dword [esp + 0x1c]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x403261
dec eax
je 0x403265
sub eax, 2
je 0x4032bb
xor bl, bl
jmp 0x4032bd
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, 0x10
lea eax, [esp + 0x18]
cmovae eax, edx
sub esi, eax
je 0x40329c
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [esp + 0x20]
cmovae eax, edx
push 1
push eax
call fcn.00405730
add esp, 0x10
cmp esi, eax
jne 0x40325d
cmp byte [ebx + 0x45], 0
je 0x4032bb
test esi, esi
jne 0x403220
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00402d10
jmp 0x403220
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x4032d0
push dword [esp + 0x18]
call fcn.00404994
add esp, 4
mov al, bl
jmp 0x4032d6
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004047e9
mov esp, ebp
pop ebp
ret
Function at 0x4131b5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4216ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040d882
mov dword [ebp - 0x14], eax
cmp dword [0x423924], edi
jne 0x4132a6
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x413233
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x413386
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x413386
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x413386
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x423924], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x423928], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x42392c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x423934], eax
test eax, eax
je 0x4132a3
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x423930], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4132cb
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4132be
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4132e0
push 4
pop eax
jmp 0x413388
cmp dword [ebp - 0x14], edi
je 0x4132e0
push dword [0x423924]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4132c5
mov eax, dword [0x423930]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x41333e
cmp dword [0x423934], esi
je 0x41333e
push eax
call ebx
push dword [0x423934]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41333e
test eax, eax
je 0x41333e
call ecx
test eax, eax
je 0x413333
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x413333
test byte [ebp - 8], 1
jne 0x41333e
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x41336e
mov eax, dword [0x423928]
cmp eax, esi
je 0x41336b
push eax
call ebx
test eax, eax
je 0x41336b
call eax
mov edi, eax
test edi, edi
je 0x41336b
mov eax, dword [0x42392c]
cmp eax, esi
je 0x41336b
push eax
call ebx
test eax, eax
je 0x41336b
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x423924]
call ebx
test eax, eax
je 0x413386
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x413388
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004047e9
leave
ret
Function at 0x402f53
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f80
mov ecx, dword [0x7a2bf8]
push edi
add eax, ecx
push edi
push eax
mov dword [0x79594c], eax
push dword [0x409024]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.0040307e
cmp eax, edi
jl 0x403077
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x409024]
call ebx
test eax, eax
je 0x403074
cmp dword [ebp - 4], esi
jne 0x403074
push dword [ebp + 8]
add dword [0x79594c], esi
call fcn.0040307e
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403077
cmp dword [ebp + 0x10], edi
jne 0x403043
cmp dword [ebp + 8], edi
jle 0x40306f
mov esi, 0x791908
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x402ff3
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409024]
call ebx
test eax, eax
je 0x403074
cmp edi, dword [ebp - 4]
jne 0x403074
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40303f
cmp dword [ebp + 0x14], edi
jne 0x40303f
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x79594c], eax
cmp dword [ebp + 8], 0
jg 0x402fe6
jmp 0x40306f
push 0xfffffffffffffffe
jmp 0x403076
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40304e
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409024]
call ebx
test eax, eax
je 0x403074
mov eax, dword [ebp - 4]
add dword [0x79594c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403077
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40307e
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x79594c]
mov edi, eax
sub esi, dword [0x40b03c]
add edi, 0x1f4
add esi, dword [esp + 0x1c]
cmp esi, ebp
jle 0x403254
push dword [0x79d95c]
call fcn.00403291
push ebp
push ebp
push dword [0x40b03c]
push dword [0x409024]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x79d958], esi
mov dword [0x795948], ebp
mov eax, dword [0x795950]
mov ebx, 0x4000
sub eax, dword [0x79d95c]
cmp eax, ebx
jg 0x4030f1
mov ebx, eax
mov esi, 0x791908
push ebx
push esi
call fcn.0040325f
test eax, eax
je 0x40321f
add dword [0x79d95c], ebx
mov dword [0x40b040], esi
mov dword [0x40b044], ebx
cmp dword [0x7a2ba8], ebp
je 0x403182
cmp dword [0x7a2c40], ebp
jne 0x403182
cmp dword [esp + 0x10], ebp
je 0x40314f
mov eax, dword [0x79d958]
push ebp
sub eax, dword [0x79594c]
sub eax, dword [esp + 0x20]
add eax, dword [0x40b03c]
mov dword [0x795948], eax
call fcn.00405e97
jmp 0x403182
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jbe 0x403182
mov eax, dword [0x7a2ba4]
neg eax
sbb eax, eax
not eax
and eax, str.unpacking_data:__d__
push eax
push 0x402bab
push ebp
push 0x6f
push dword [0x7a2ba0]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
push 0x40b040
mov dword [0x40b048], 0x789908
mov dword [0x40b04c], 0x8000
call fcn.00405f38
test eax, eax
jl 0x403228
mov esi, dword [0x40b048]
mov eax, 0x789908
sub esi, eax
je 0x4031e9
lea ecx, [esp + 0x14]
push ebp
push ecx
push esi
push eax
push dword [0x409024]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403224
cmp esi, dword [esp + 0x14]
jne 0x403224
add dword [0x40b03c], esi
cmp dword [0x40b044], ebp
jne 0x403117
jmp 0x4031f5
cmp dword [0x40b044], ebp
jne 0x403228
cmp ebx, ebp
je 0x403228
mov eax, dword [0x79594c]
mov ecx, eax
sub ecx, dword [0x40b03c]
add ecx, dword [esp + 0x1c]
test ecx, ecx
jg 0x4030db
push ebp
push ebp
push eax
push dword [0x409024]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40322d
or eax, 0xffffffff
jmp 0x403256
push 0xfffffffffffffffe
jmp 0x40322a
push 0xfffffffffffffffd
pop eax
jmp 0x403256
mov esi, dword [esp + 0x10]
cmp esi, ebp
je 0x403254
mov eax, dword [0x79d958]
push ebp
push ebp
push 0x113
push esi
mov dword [0x795948], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4
Function at 0x4053ee
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x7a11a0], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x405412
test al, 0x10
jne 0x405415
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x7a11a0
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405440
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x4054a8
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405747
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x4054dc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x7a2c28], eax
jmp 0x405661
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x4054fa
test eax, eax
je 0x405612
test byte [ebp + 0xc], 2
je 0x405612
mov esi, 0x7a01a0
push edi
push esi
call fcn.00405b5a
test ebx, ebx
je 0x405517
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40551d
push edi
call fcn.004056ae
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x405608
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405692
cmp byte [eax], 0
je 0x40556e
cmp byte [ebp - 0x18], 0
je 0x40556e
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405584
mov al, byte [esi + 1]
test al, al
je 0x4055e7
cmp al, 0x2e
jne 0x405584
cmp byte [esi + 2], 0
je 0x4055e7
push esi
push ebx
call fcn.00405b5a
mov eax, dword [ebp - 0x148]
test al, 0x10
je 0x4055aa
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4055e7
push dword [ebp + 0xc]
push edi
call fcn.004054a8
jmp 0x4055e7
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4055df
test byte [ebp + 0xc], 4
je 0x4055d7
push edi
push 0xfffffffffffffff1
call fcn.00404f09
push 0
push edi
call fcn.004058a2
jmp 0x4055e7
inc dword [0x7a2c28]
jmp 0x4055e7
push edi
push 0xfffffffffffffff2
call fcn.00404f09
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40554c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x405612
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x405661
cmp dword [ebp - 8], esi
jne 0x405627
inc dword [0x7a2c28]
jmp 0x405661
push edi
call fcn.00405e2f
test eax, eax
je 0x405661
push edi
call fcn.00405667
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405659
test byte [ebp + 0xc], 4
je 0x40561f
push edi
push 0xfffffffffffffff1
call fcn.00404f09
push esi
push edi
call fcn.004058a2
jmp 0x405661
push edi
push 0xffffffffffffffe5
call fcn.00404f09
pop edi
pop esi
leave
ret 8