joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b91
Capabilities:
Check for time delay via queryperformancecounter
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
movzx ecx, word [ecx + 0x14]
lea eax, [eax + ecx + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
mov eax, dword [0x405018]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x405018], eax
and dword [ebp - 0x14], 0
jmp 0x402bf8
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
add eax, 0x28
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x14], eax
jge 0x402d5c
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x402ce1
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
mov dword [ebp - 4], eax
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
cmp dword [ebp - 4], 0
jle 0x402cc8
mov eax, dword [0x405014]
mov ecx, dword [0x405018]
lea eax, [ecx + eax - 9]
mov dword [0x405014], eax
push 4
push 0x1000
push dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
push 0x40bac0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [0x405018]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x405018], eax
push dword [ebp - 4]
push 0
push dword [ebp - 0xc]
call fcn.004019c8
add esp, 0xc
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
jmp 0x402be8
mov eax, dword [0x405018]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x405018], eax
push 4
push 0x1000
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
mov eax, dword [0x405014]
imul eax, eax, 0x63
mov dword [0x405014], eax
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x14]
push ecx
push dword [ebp - 0xc]
call fcn.0040198a
add esp, 0xc
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
jmp 0x402be8
push 0x40bac0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
leave
ret
Function at 0x4038be
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 0x4038e7
cmp al, 0x22
je 0x4038df
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4038d3
cmp byte [esi], 0x22
jne 0x4038f1
inc esi
jmp 0x4038f1
cmp al, 0x20
jle 0x4038f1
inc esi
cmp byte [esi], 0x20
jg 0x4038eb
mov al, byte [esi]
test al, al
je 0x4038fb
cmp al, 0x20
jle 0x4038e4
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00403969
push 0x405004
push section..data
call fcn.0040394f
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x40392b
movzx eax, word [ebp - 0x14]
jmp 0x40392e
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
jmp section..htext
Function at 0x401fe0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a5db
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4215e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004075ac
push 4
mov dword [ebp - 4], 0
call fcn.00408f1e
mov edi, eax
add esp, 4
test edi, edi
je 0x402060
call fcn.00407138
mov dword [edi], eax
call fcn.00406ef7
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00406e2c
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x402056
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00406e54
jmp 0x402062
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404e10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ecx]
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], edi
cmp edi, dword [ecx + 4]
je 0x404ee5
push ebx
push esi
nop
mov esi, dword [edi]
push esi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x404ece
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x404e59
inc dword [ebp - 8]
jmp 0x404ec7
push esi
push str.Could_not_terminate_process._PID_
push 0x422a00
call fcn.004038b0
add esp, 8
mov ecx, eax
call fcn.00404140
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00404330
mov eax, dword [esi]
mov eax, dword [eax + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x404ea3
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x404ea3
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x404ec4
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x404ebc
or eax, 4
push 0
push eax
call fcn.00401510
mov edi, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
add edi, 4
mov dword [ebp - 4], edi
cmp edi, dword [edx + 4]
jne 0x404e30
mov eax, dword [ebp - 8]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x404ef0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4215e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov dword [ebp - 0x118], edi
mov byte [ebp - 0x108], 0
call fcn.00409000
mov ecx, dword [edi]
xor eax, eax
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x110], ecx
cmp ecx, dword [edi + 4]
je 0x4050ec
push ebx
jmp 0x404f5c
mov ecx, dword [ebp - 0x110]
mov esi, dword [ebp - 0x114]
mov ebx, dword [ecx]
push esi
push 0x41b40c
push 0x422ab8
call fcn.004038b0
add esp, 8
mov ecx, eax
call fcn.00404140
push str._:_n__PID:
push eax
call fcn.004038b0
inc esi
add esp, 8
mov dword [ebp - 0x114], esi
test eax, eax
jne 0x404f95
xor ecx, ecx
jmp 0x404f9c
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
mov edx, dword [ecx + 0x14]
and edx, 0xfffff3ff
or edx, 0x200
mov dword [ecx + 0x14], edx
push ebx
mov ecx, eax
call fcn.00404140
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00404330
mov eax, dword [esi]
mov eax, dword [eax + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x404fe6
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x404fe6
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x405007
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x404fff
or eax, 4
push 0
push eax
call fcn.00401510
push ebx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4050c7
push 0x104
lea edx, [ebp - 0x108]
push 0
push edx
call fcn.00409000
add esp, 0xc
push 0x104
lea eax, [ebp - 0x108]
push eax
push ebx
call sub.PSAPI.DLL_GetProcessImageFileNameA
lea ecx, [ebp - 0x108]
push ecx
push str.__Path:
push 0x422ab8
call fcn.004038b0
add esp, 8
push eax
call fcn.004038b0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00404330
mov edx, dword [esi]
mov eax, dword [edx + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x405099
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x405099
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x4050ba
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x4050b2
or eax, 4
push 0
push eax
call fcn.00401510
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x10c]
mov eax, dword [ebp - 0x110]
mov edx, dword [ebp - 0x118]
add eax, 4
mov dword [ebp - 0x110], eax
cmp eax, dword [edx + 4]
jne 0x404f50
mov eax, dword [ebp - 0x10c]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00408f0f
mov esp, ebp
pop ebp
ret
Function at 0x405100
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41aa38
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4215e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], ebx
call esi
mov edi, eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00406aa0
add esp, 8
call esi
mov esi, eax
push str.________
push 0x422ab8
sub esi, edi
call fcn.004038b0
push eax
call fcn.00404db0
push str.Finished_scan_in:
push 0x422ab8
call fcn.004038b0
add esp, 0x14
cmp eax, ebx
jne 0x405185
xor edx, edx
jmp 0x40518c
mov edx, dword [eax]
mov edx, dword [edx + 4]
add edx, eax
mov ecx, dword [edx + 0x14]
and ecx, 0xfffff3ff
or ecx, 0x200
push str._milliseconds
mov dword [edx + 0x14], ecx
push esi
mov ecx, eax
call fcn.00404140
push eax
call fcn.004038b0
push eax
call fcn.00404db0
push str.SUMMARY:
push 0x422ab8
call fcn.004038b0
push eax
call fcn.00404db0
mov esi, dword [ebp - 0x18]
sub esi, dword [ebp - 0x1c]
push str.___Total_Suspicious:
push 0x422ab8
sar esi, 2
call fcn.004038b0
add esp, 0x20
cmp eax, ebx
jne 0x4051ef
xor ecx, ecx
jmp 0x4051f6
mov edx, dword [eax]
mov ecx, dword [edx + 4]
add ecx, eax
mov edx, dword [ecx + 0x14]
and edx, 0xfffff3ff
or edx, 0x200
mov dword [ecx + 0x14], edx
push esi
mov ecx, eax
call fcn.00404140
push eax
call fcn.00404db0
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
add esp, 4
sar eax, 2
test eax, eax
je 0x40523e
push str.___List_of_suspicious:
push 0x422ab8
call fcn.004038b0
push eax
call fcn.00404db0
add esp, 0xc
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00404ef0
mov edx, dword [ebp + 8]
add esp, 4
cmp byte [edx + 0x1d], bl
je 0x40525e
lea eax, [ebp - 0x1c]
push eax
call fcn.00404e10
add esp, 4
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
sub esi, eax
sar esi, 2
cmp eax, ebx
je 0x405276
push eax
call fcn.00408415
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406770
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4215e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push edi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x406826
lea eax, [ebp - 0x110]
push eax
push 4
lea ecx, [ebp - 0x10c]
push ecx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x40681f
mov eax, dword [ebp - 0x10c]
push 0x104
lea edx, [ebp - 0x108]
push edx
push eax
push esi
call sub.PSAPI.DLL_GetModuleBaseNameA
lea ecx, [ebp - 0x108]
push ebx
push ecx
call fcn.004094de
add esp, 8
test eax, eax
jne 0x40681f
cmp byte [ebp + 0x10], al
jne 0x406805
push edi
lea edx, [ebp - 0x108]
push edx
push str._s___PID:__u__n
call fcn.004092a1
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408f0f
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.00408f0f
mov esp, ebp
pop ebp
ret
Function at 0x406aa0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00409530
mov eax, dword [0x4215e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1010]
push eax
push 0x1000
lea ecx, [ebp - 0x1004]
push ecx
mov dword [ebp - 0x1008], edi
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x406af3
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408f0f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1010]
shr eax, 2
xor ebx, ebx
mov dword [ebp - 0x100c], eax
test eax, eax
je 0x406bea
lea esp, [esp]
mov edi, dword [ebp + ebx*4 - 0x1004]
test edi, edi
je 0x406bdb
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x1014], edi
jbe 0x406b49
movzx edx, byte [esi + 0x1e]
push edx
mov ecx, esi
call fcn.00401730
push eax
push edi
call fcn.00406770
add esp, 0xc
test al, al
je 0x406bd5
cmp byte [esi + 0x1e], 0
jne 0x406b93
push str.___Scanning_PID:
push 0x422ab8
call fcn.004038b0
add esp, 8
test eax, eax
jne 0x406b69
xor edx, edx
jmp 0x406b70
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
add edx, eax
mov ecx, dword [edx + 0x14]
and ecx, 0xfffff3ff
or ecx, 0x200
mov dword [edx + 0x14], ecx
push edi
mov ecx, eax
call fcn.00404140
push eax
call fcn.00404db0
add esp, 4
mov dword [esi + 0x20], edi
mov ecx, dword [esi + 0x24]
sub esp, 0x14
mov eax, esp
mov edx, edi
mov dword [eax], edx
mov edx, dword [esi + 0x28]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x2c]
mov dword [eax + 8], edx
mov edx, dword [esi + 0x30]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
call fcn.004069f0
add esp, 0x14
test al, al
je 0x406bd5
mov ecx, dword [ebp - 0x1008]
lea eax, [ebp - 0x1014]
push eax
call fcn.00406980
mov eax, dword [ebp - 0x100c]
inc ebx
cmp ebx, eax
jb 0x406b10
mov edi, dword [ebp - 0x1008]
mov eax, dword [edi + 4]
sub eax, dword [edi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
sar eax, 2
pop ebx
call fcn.00408f0f
mov esp, ebp
pop ebp
ret

Function at 0x408f0f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4215e0]
jne 0x408f19
repz ret
jmp fcn.0040d3dc
Function at 0x41741b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4215e0]
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.0040ce79
and dword [ebp - 0x14], 0
cmp dword [0x423914], 0
mov dword [ebp - 0x18], eax
jne 0x4174ce
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x417576
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x417576
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x423914], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x423918], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42391c], eax
call edi
push eax
call esi
mov dword [0x423924], eax
test eax, eax
je 0x4174ce
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x423920], eax
mov eax, dword [0x423920]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x417527
cmp dword [0x423924], ecx
je 0x417527
push eax
call esi
push dword [0x423924]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x417527
test ebx, ebx
je 0x417527
call edi
test eax, eax
je 0x41751e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41751e
test byte [ebp - 8], 1
jne 0x417527
or dword [ebp + 0x10], 0x200000
jmp 0x41755a
mov eax, dword [0x423918]
cmp eax, dword [ebp - 0x18]
je 0x41755a
push eax
call esi
test eax, eax
je 0x41755a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41755a
mov eax, dword [0x42391c]
cmp eax, dword [ebp - 0x18]
je 0x41755a
push eax
call esi
test eax, eax
je 0x41755a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x423914]
call esi
test eax, eax
je 0x417576
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x417578
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408f0f
leave
ret
Function at 0x401340
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x402337
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
mov ebx, dword [esp + 0x16c]
push ebp
push esi
push edi
mov ebp, ecx
push ebx
mov dword [esp + 0x24], ebp
call fcn.00401180
test eax, eax
je 0x401776
push ebx
mov ecx, ebp
call fcn.004012b0
test eax, eax
jne 0x401776
lea eax, [esp + 0x64]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
lea ecx, [esp + 0x18]
call fcn.004020d6
push ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x174], 0
call fcn.004020d6
lea ecx, [esp + 0x10]
push str..tmp
lea edx, [esp + 0x1c]
push ecx
push edx
mov byte [esp + 0x17c], 1
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x174], 2
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x170], 1
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x18]
push ebx
push eax
mov ecx, ebp
jmp loc.00406000
mov ecx, dword [esp + 0x168]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret 8
Function at 0x401200
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov ecx, dword [ebp + 8]
push ebx
xor al, al
push esi
push edi
mov byte [esp + 0x13], al
test ecx, ecx
je 0x40131b
cmp dword [ecx], 0x756470
jne 0x40131b
cmp dword [ebp + 0xc], 0
je 0x40131b
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40131b
lea edi, [esi + 4]
push edi
call fcn.0040a580
mov ebx, eax
mov eax, dword [ebp + 0xc]
push esi
push eax
lea ecx, [ebx + 4]
push ecx
mov dword [esp + 0x24], ebx
mov dword [ebx], esi
call sub.ntdll.dll_memcpy
xor eax, eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov word [esp + 0x36], ax
mov eax, dword [ebp + 0x18]
add esp, 0x10
mov edx, 2
push eax
mov word [esp + 0x1c], dx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp + 0x14]
mov word [esp + 0x1a], ax
mov dword [esp + 0x1c], ecx
test edi, edi
je 0x4012f1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push 0x10
lea edx, [esp + 0x1c]
push edx
push 0
push edi
push ebx
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
mov esi, eax
cmp esi, 0xffffffff
je 0x4012e9
mov edx, dword [ebp + 8]
push esi
add edx, 0x1c
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub edi, esi
add ebx, esi
test edi, edi
jne 0x401297
mov ebx, dword [esp + 0x14]
push ebx
mov byte [esp + 0x17], 1
call fcn.0040a790
mov al, byte [esp + 0x17]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x40130a
mov ebx, dword [esp + 0x14]
push ebx
mov byte [esp + 0x17], 1
call fcn.0040a790
mov al, byte [esp + 0x17]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x14]
push ebx
call fcn.0040a790
mov al, byte [esp + 0x17]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4013b0
Capabilities:
Create tcp socket
Create thread
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0x24
call fcn.0040a370
add esp, 4
push 0
push 0
mov esi, eax
push 1
push 0
mov dword [esi], 0x756470
mov dword [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x11
push 2
push 2
mov dword [esi + 0x10], eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x4013fd
push esi
call fcn.00401330
add esp, 4
xor esi, esi
test esi, esi
je 0x401462
xor eax, eax
mov dword [esp + 6], eax
mov dword [esp + 0xa], eax
mov dword [esp + 0xe], eax
mov word [esp + 0x12], ax
mov eax, 2
push 0x10
lea ecx, [esp + 8]
mov word [esp + 8], ax
mov edx, dword [esi + 8]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x401444
push esi
call fcn.00401330
add esp, 4
xor eax, eax
pop esi
add esp, 0x10
ret
mov eax, dword [esp + 0x18]
push 0
push 0
push esi
push 0x401100
push 0
push 0
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x14], eax
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x401470
Capabilities:
Create tcp socket
Create thread
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x10
push edi
mov edi, dword [esp + 0x1c]
xor eax, eax
test di, di
je 0x401576
push ebx
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x401575
push esi
push 0x24
call fcn.0040a370
add esp, 4
push 0
push 0
mov esi, eax
push 1
push 0
mov dword [esi], 0x756470
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x11
push 2
push 2
mov dword [esi + 0x10], eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x4014da
push esi
call fcn.00401330
add esp, 4
xor esi, esi
test esi, esi
je 0x401572
xor eax, eax
mov dword [esp + 0xe], eax
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], eax
mov word [esp + 0x1a], ax
mov eax, dword [esp + 0x20]
mov ecx, 2
push edi
mov dword [esp + 0x14], eax
mov word [esp + 0x10], cx
call dword [sym.imp.WS2_32.dll_htons]
push 1
lea edx, [esp + 0x28]
push edx
push 4
mov word [esp + 0x1a], ax
mov byte [esp + 0x30], 1
mov eax, dword [esi + 8]
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [esi + 8]
push 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x401558
push esi
call fcn.00401330
add esp, 4
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 0x10
ret
push 0
push 0
push esi
push 0x401100
push 0
push 0
mov dword [esi + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x14], eax
mov eax, esi
pop esi
pop ebx
pop edi
add esp, 0x10
ret

Function at 0x401ae0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSASend]
push ebp
mov ebp, dword [esp + 0xc]
mov ecx, dword [ebp + 0x260]
push edi
push 0
push esi
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea edi, [esi + 0x1c]
push edi
push ecx
mov dword [esp + 0x2c], 0
call ebx
test eax, eax
je 0x401b50
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x401b50
cmp eax, 0x2733
jne 0x401b56
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0x260]
push 0
push esi
push 0
lea edx, [esp + 0x1c]
push edx
push 1
push edi
push eax
mov dword [esp + 0x2c], 0
call ebx
test eax, eax
jne 0x401b12
pop edi
pop ebp
mov al, 1
pop ebx
ret
pop edi
pop ebp
xor al, al
pop ebx
ret