joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42fc40
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x330
push ebx
push ebp
push esi
mov esi, dword [esp + 0x340]
xor ebx, ebx
push edi
push ebx
push 9
push esi
call fcn.00405900
push ebx
push 0xb
push esi
mov edi, eax
call fcn.00405900
cmp dword [edi + 0x10], 1
je 0x42fc7f
push 4
push eax
call fcn.00403a50
push 1
push eax
call fcn.00438370
mov ebx, eax
mov eax, dword [esp + 0x34c]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x28]
push eax
push ecx
call ebp
lea edx, [esp + 0x28]
push esi
push edx
call fcn.004307e0
mov al, byte [esp + 0x30]
add esp, 8
test al, al
je 0x42fd77
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.004306f0
mov edi, eax
cmp edi, 0xffffffff
jne 0x42fcdd
lea eax, [esp + 0x28]
lea ecx, [esp + 0x130]
push eax
push ecx
call ebp
jmp 0x42fd77
lea edx, [esp + 0x28]
lea eax, [esp + 0x130]
push edx
push eax
mov byte [esp + edi + 0x30], 0
call ebp
push 0
push 0
mov ecx, dword [esp + 0x18]
add ecx, edi
lea edx, [esp + ecx + 0x30]
push edx
call fcn.004306f0
mov esi, eax
cmp esi, 0xffffffff
je 0x42fd18
mov eax, dword [esp + 0x10]
lea ecx, [esi + eax]
mov byte [esp + ecx + 0x28], 0
lea edx, [esp + 0x14]
lea eax, [esp + 0x238]
push edx
push eax
call fcn.004308a0
lea eax, [esp + 0x238]
mov ecx, dword [esp + 0x10]
add ecx, edi
lea edx, [esp + ecx + 0x28]
push edx
push eax
call fcn.00430650
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x238]
lea edx, [esp + 0x130]
push ecx
push edx
call edi
mov eax, dword [esp + 0x10]
add esi, eax
mov cl, byte [esp + esi + 0x28]
lea eax, [esp + esi + 0x28]
test cl, cl
je 0x42fd77
lea ecx, [esp + 0x130]
push eax
push ecx
call edi
push 1
push 0
lea edx, [esp + 0x138]
push 0
push edx
push 0
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x330
ret 0xc
Function at 0x42fe50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x74
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x38]
mov edx, dword [esp + 0x84]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x38]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
mov esi, 1
push edx
push 0
mov word [esp + 0x90], si
mov dword [esp + 0x60], 0x44
mov dword [esp + 0x8c], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x42ff67
mov eax, dword [esp + 0x88]
test eax, eax
jne 0x42ff48
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
push ebp
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
mov dword [esp + 0x10], eax
push 0x60
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
push 0
push ecx
push 1
call edi
cmp eax, 1
jne 0x42ff3d
push eax
push 0
push 0
lea edx, [esp + 0x30]
push 0
push edx
call esi
test eax, eax
je 0x42fedd
mov eax, dword [esp + 0x28]
cmp eax, 0x400
jb 0x42ff15
cmp eax, 0xffff
jbe 0x42ff1a
cmp eax, 0xf
jne 0x42ff28
lea eax, [esp + 0x24]
push eax
call ebx
lea ecx, [esp + 0x24]
push ecx
call ebp
push 1
push 0
push 0
lea edx, [esp + 0x30]
push 0
push edx
call esi
test eax, eax
jne 0x42ff03
jmp 0x42fedd
cmp eax, 0xffffffff
je 0x42ff46
test eax, eax
jne 0x42fedd
pop ebp
pop ebx
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x74
ret
mov eax, esi
pop edi
pop esi
add esp, 0x74
ret

Function at 0x4308a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str._path_
push esi
call edi
test eax, eax
mov ebp, dword [esp + 0x20]
jne 0x4308da
mov eax, dword [0x447518]
push 0x105
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebp
push ebp
call fcn.0042ce70
push str._temp_
push esi
call edi
test eax, eax
jne 0x4308f1
push 0x105
push ebp
call fcn.0042c740
push str._cd_
push esi
call edi
test eax, eax
jne 0x430950
mov byte [esp + 0x11], 0x3a
mov byte [esp + 0x12], 0x5c
mov byte [esp + 0x13], al
mov ebx, 0x41
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], bl
push ecx
call fcn.00430990
add esp, 4
test eax, eax
jne 0x430935
inc ebx
cmp ebx, 0x5b
jl 0x430910
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
lea edx, [esp + 0x10]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 8
push str._wind_
push esi
call edi
test eax, eax
je 0x430968
push str._windir_
push esi
call edi
test eax, eax
jne 0x430974
push 0x105
push ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 8
Function at 0x430990
Capabilities:
Get disk information

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
lea edx, [esp + 1]
push 0x44549c
push edx
mov cl, byte [eax]
mov byte [esp + 8], cl
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
xor ecx, ecx
cmp eax, 5
sete cl
mov eax, ecx
add esp, 0xc
ret
Function at 0x433e50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x214
push ebx
push ebp
mov ebp, dword [esp + 0x220]
push esi
test ebp, ebp
jne 0x433e70
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x214
ret
push edi
push 0
push 0xd
push ebp
call fcn.00405900
push 2
push eax
call fcn.00407800
mov bx, word [esp + 0x234]
mov edi, dword [esp + 0x230]
cmp bx, 1
mov esi, eax
jne 0x433ea8
lea eax, [esp + 0x10]
push eax
push 0x15
push edi
push esi
call fcn.0042a590
push 0
push 0x2c
push 0x15
push 0x28
push edi
push esi
call fcn.0042a840
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
pop edi
je 0x433f4c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x10]
push eax
push ecx
call esi
lea edx, [esp + 0x10]
push 0x4448f8
push edx
call fcn.0042c0b0
test eax, eax
je 0x433f4c
cmp bx, 1
jne 0x433efa
lea eax, [esp + 0x10]
push eax
push ebp
call fcn.00432b00
add esp, 8
lea ecx, [esp + 0x118]
push str.WRITE.EXE__p
push ecx
call esi
lea edx, [esp + 0x10]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.0042d1d0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x118]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x118]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jae 0x433f4c
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x214
ret
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x214
ret
Function at 0x4382d0
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
jne 0x4382df
xor eax, eax
pop edi
ret 4
mov ecx, dword [edi + 4]
lea eax, [esp + 8]
push eax
push 0
push 0x22
push ecx
call fcn.00403c00
cmp dword [esp + 8], 1
jne 0x4382fe
xor eax, eax
pop edi
ret 4
mov edx, dword [edi + 0x40]
push esi
push edx
call fcn.0042c8a0
mov esi, eax
test esi, esi
je 0x438352
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push ebp
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
cmp dword [esi], 0
je 0x438341
mov eax, dword [esi + 0x14]
push eax
call ebp
test eax, eax
je 0x438341
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x438341
mov edx, dword [esi + 0x14]
push 0
push edx
call ebx
mov eax, dword [edi + 0x40]
push eax
call fcn.0042c8e0
mov esi, eax
test esi, esi
jne 0x43831c
pop ebp
pop ebx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
pop esi
mov eax, 1
pop edi
ret 4
Function at 0x43b67d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x445aa8
cmp edx, dword [eax]
je 0x43b69f
add eax, 8
inc ecx
cmp eax, 0x445b38
jl 0x43b690
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x445aa8]
jne 0x43b7cd
mov eax, dword [0x446d78]
cmp eax, 1
je 0x43b7a7
test eax, eax
jne 0x43b6d0
cmp dword [0x4456fc], 1
je 0x43b7a7
cmp edx, 0xfc
je 0x43b7cd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43b707
lea eax, [ebp - 0x1a4]
push 0x443444
push eax
call fcn.0043b7d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0043b940
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x43b74a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0043b940
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x443440
push edi
call fcn.0043e3d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x443424
push eax
call fcn.0043b7d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0043b7e0
lea eax, [ebp - 0xa0]
push 0x443420
push eax
call fcn.0043b7e0
push dword [esi + 0x445aac]
lea eax, [ebp - 0xa0]
push eax
call fcn.0043b7e0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4433f8
push eax
call fcn.0043e33e
add esp, 0x2c
pop edi
jmp 0x43b7cd
lea eax, [ebp + 8]
lea esi, [esi + 0x445aac]
push 0
push eax
push dword [esi]
call fcn.0043b940
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x41687d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xffffffff
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
jecxz 0x41689e
movzx edx, al
xor dl, byte [esi]
inc esi
shr eax, 8
xor eax, dword [edi + edx*4]
loop 0x416890
not eax
jmp 0x4168a7
jmp 0x4168ac
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4029e0
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [0x40d058]
lea eax, [edx - 1]
test edx, edx
mov dword [0x40d058], eax
jle 0x402a10
mov eax, dword [0x40d048]
movzx edx, byte [eax]
inc eax
mov dword [0x40d048], eax
leave
mov eax, edx
ret
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, 0x200
mov dword [esp + 8], eax
mov eax, 0x40d068
mov dword [esp + 4], eax
mov eax, dword [section..data]
mov dword [esp], eax
call sub.WSOCK32.DLL_recv
sub esp, 0x10
cmp eax, 0
mov dword [0x40d058], eax
jle 0x402a5e
movzx edx, byte [0x40d068]
dec eax
mov dword [0x40d058], eax
mov eax, 0x40d069
mov dword [0x40d048], eax
and edx, 0x7f
jmp 0x402a06
jne 0x402a94
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp], str.readchar:_Got_EOF_n
add eax, 0x40
mov dword [esp + 0xc], eax
mov eax, 0x12
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
call sub.msvcrt.dll_fwrite
mov edx, 0xffffffff
jmp 0x402a06
mov dword [esp], str.readchar
call sub.msvcrt.dll_perror
mov edx, 0xffffffff
jmp 0x402a06
Function at 0x402ab0
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
jmp 0x402ac4
test esi, esi
js 0x402b10
call fcn.004029e0
cmp eax, 0x24
mov esi, eax
nop
je 0x402b1d
mov eax, dword [0x40d040]
test eax, eax
je 0x402ac0
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov edi, str._getpkt:_discarding_char__c__n
mov dword [esp + 8], esi
mov dword [esp + 4], edi
add ebx, 0x40
mov dword [esp], ebx
call sub.msvcrt.dll_fprintf
mov dword [esp], ebx
call sub.msvcrt.dll_fflush
test esi, esi
jns 0x402ac4
lea esi, [esi]
lea edi, [edi]
mov eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp + 8]
xor ebx, ebx
jmp 0x402b31
cmp eax, 0x23
lea edx, [esi + 1]
je 0x402b3e
mov byte [edx - 1], al
add bl, al
mov esi, edx
call fcn.004029e0
test eax, eax
jns 0x402b24
jmp 0x402b10
mov byte [esi], 0
call fcn.004029e0
call fcn.004021a0
mov edi, eax
call fcn.004029e0
call fcn.004021a0
movzx ecx, bl
mov ebx, edi
movzx edx, bl
shl edx, 4
movzx eax, al
lea eax, [edx + eax]
cmp ecx, eax
je 0x402bc1
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov esi, str.Bad_checksum__sentsum0x_x__csum0x_x__buf_s_n
mov edx, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], esi
add eax, 0x40
mov dword [esp + 0x10], edx
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [section..data]
mov ecx, 1
mov edx, 0x40a28b
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WSOCK32.DLL_send
sub esp, 0x10
jmp 0x402ac4
mov eax, dword [0x40d040]
test eax, eax
jne 0x402c07
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 8], eax
mov eax, 0x40a2b0
mov dword [esp + 4], eax
mov eax, dword [section..data]
mov dword [esp], eax
call sub.WSOCK32.DLL_send
mov eax, dword [0x40d040]
sub esp, 0x10
test eax, eax
jne 0x402c32
mov edx, dword [ebp + 8]
mov eax, esi
sub eax, edx
jmp 0x402b15
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], eax
mov eax, str.getpkt____s______sending_ack___n
add ebx, 0x40
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_fprintf
mov dword [esp], ebx
call sub.msvcrt.dll_fflush
jmp 0x402bca
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov ecx, 1
mov edi, 0xb
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
mov dword [esp], str._sent_ack__n
add ebx, 0x40
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov dword [esp], ebx
call sub.msvcrt.dll_fflush
jmp 0x402bfb
Function at 0x402c70
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov edx, dword [section..data]
cmp edx, 0xffffffff
je 0x402d30
mov ecx, 1
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x110], ecx
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
lea eax, [ebp - 0x110]
mov dword [esp + 4], eax
lea eax, [edx + 1]
mov dword [esp], eax
call sub.WSOCK32.DLL_select
sub esp, 0x14
test eax, eax
jle 0x402d30
xor eax, eax
mov byte [ebp - 1], 0
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 8], eax
lea eax, [ebp - 1]
mov dword [esp + 4], eax
mov eax, dword [section..data]
mov dword [esp], eax
call sub.WSOCK32.DLL_recv
sub esp, 0x10
cmp eax, 1
mov edx, eax
je 0x402d32
movsx eax, byte [ebp - 1]
mov dword [esp + 8], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov eax, str.input_interrupt__count___d_c___d___c__n
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
leave
ret
cmp byte [ebp - 1], 3
jne 0x402d07
mov eax, dword [0x40de50]
lea esi, [esi]
call dword [eax + 0x34]
leave
ret
Function at 0x405930
Capabilities:
Write file on windows

Disassembly:
push ebp
mov edx, 0xb
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, 1
mov dword [esp + 8], edx
mov dword [esp + 4], eax
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.gdbserver:
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp - 8]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
mov dword [esp + 4], ebx
mov dword [esp], 0xa
call sub.msvcrt.dll_fputc
add esp, 0x24
pop ebx
pop ebp
ret

Function at 0x4059a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 1
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, 0xb
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.gdbserver:
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp - 8]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
mov dword [esp + 4], ebx
mov dword [esp], 0xa
call sub.msvcrt.dll_fputc
mov dword [esp], 1
call sub.msvcrt.dll_exit
lea esi, [esi]

Function at 0x406470
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 4], eax
mov dword [ebp - 0xc], ebx
xor ebx, ebx
mov dword [ebp - 8], esi
mov esi, eax
mov dword [ebp - 4], edi
mov edi, edx
mov dword [esp], 0x40dad0
call fcn.00401490
test eax, eax
je 0x4064aa
mov dword [esp], eax
call fcn.004014c0
mov ebx, eax
mov eax, dword [eax + 8]
test eax, eax
je 0x4064c0
mov eax, ebx
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4064aa
cmp esi, dword [0x40d978]
je 0x4064de
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sub.KERNEL32.dll_SuspendThread
inc eax
sub esp, 4
mov dword [ebx + 8], eax
mov esi, 0x40d970
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [0x4092a8]
jmp 0x4064aa

Function at 0x406ec0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov dword [ebp - 0x60], eax
mov eax, 0x44
mov dword [ebp - 0xc], ebx
lea ebx, [ebp - 0x50]
mov dword [esp + 8], eax
xor eax, eax
mov dword [ebp - 8], esi
mov esi, ecx
mov dword [ebp - 4], edi
mov edi, edx
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [esp + 0x20], ebx
xor edx, edx
mov ebx, 1
mov dword [ebp - 0x50], 0x44
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 0x10], ebx
mov dword [esp + 4], edi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.KERNEL32.dll_CreateProcessA
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
sub esp, 0x28
mov esp, ebp
pop ebp
ret
Function at 0x402ee7
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402f04
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402f13
mov ebx, 0x40f0c0
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402f28
mov ecx, dword [0x423f58]
add ecx, eax
push ecx
call fcn.00403116
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004030e4
test eax, eax
je 0x40308f
test byte [ebp + 0x17], 0x80
je 0x403078
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, 0x40aff0
mov dword [ebp - 0xc], eax
call fcn.00405cfa
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x4030da
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402f78
mov esi, dword [ebp + 0x14]
mov edi, 0x40b0c0
push esi
push edi
call fcn.004030e4
test eax, eax
je 0x40308f
sub dword [ebp + 0x14], esi
mov dword [0x40b008], edi
mov dword [0x40b00c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40aff0
mov dword [0x40b010], ebx
mov dword [0x40b014], eax
call fcn.00405d1a
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403070
mov esi, dword [0x40b010]
sub esi, ebx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
test byte [0x409234], 1
mov edi, eax
je 0x40301a
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402fe7
cmp dword [ebp + 0x14], 0
jne 0x40301a
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.DLL_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404cee
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x403065
cmp dword [ebp + 0x10], eax
jne 0x403043
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x403074
cmp dword [ebp - 0x10], esi
jne 0x403074
add dword [ebp - 4], esi
jmp 0x403059
sub dword [ebp - 8], esi
add dword [ebp - 4], esi
cmp dword [ebp - 8], 1
mov ebx, dword [0x40b010]
jl 0x4030da
cmp dword [ebp - 0x14], 1
jne 0x402f9b
jmp 0x4030da
cmp dword [ebp + 0x14], eax
jg 0x402f6b
jmp 0x4030da
push 0xfffffffffffffffc
jmp 0x403091
push 0xfffffffffffffffe
jmp 0x403091
test edi, edi
je 0x4030cf
cmp dword [ebp + 0x14], esi
jge 0x403084
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004030e4
test eax, eax
jne 0x4030d7
push 0xfffffffffffffffd
pop eax
jmp 0x4030dd
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40309f
mov esi, dword [ebp + 0x14]
mov edi, 0x40b0c0
push esi
push edi
call fcn.004030e4
test eax, eax
je 0x40308f
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x403074
cmp esi, dword [ebp + 0x10]
jne 0x403074
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403094
jmp 0x4030da
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10