joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006b2b0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x100d95f0]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1006b2e5
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.10059590
add esp, 0xc
jmp 0x1006b31e
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp]
cmp al, 2
jne 0x1006b310
shr eax, 8
test al, al
jne 0x1006b310
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.10088aee
add esp, 0x194
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.10059590
add esp, 8
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.10088aee
add esp, 0x194
ret

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

Disassembly:
push ecx
mov edx, dword [edi + 0x154]
mov al, byte [esp + 8]
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1006b4f4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.10059590
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.1006b3b0
add esp, 4
pop esi
pop ecx
ret
Function at 0x1006c180
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
mov eax, dword [eax]
push ebx
mov ebx, dword [eax + 0x128]
mov dword [esp + 4], eax
jne 0x1006c2e8
push ebp
push esi
push edi
lea edi, [ebx + 0x1cb0]
lea ebp, [ebx + 0x1eb0]
mov dword [ebp], edi
cmp edi, ebp
jae 0x1006c1b9
mov byte [edi], 0xff
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x1006c1c6
mov byte [eax], 0xfa
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x1006c1d3
mov byte [eax], 0x1f
inc dword [ebp]
movzx ecx, word [ebx + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push ecx
call esi
movzx edx, ax
movzx eax, word [ebx + 0x1caa]
push eax
mov dword [esp + 0x20], edx
call esi
movzx ecx, ax
mov eax, dword [ebp]
cmp eax, ebp
jae 0x1006c207
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x1006c217
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x1006c223
mov byte [eax], cl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x1006c22f
mov byte [eax], ch
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x1006c23c
mov byte [eax], 0xff
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x1006c249
mov byte [eax], 0xf0
inc dword [ebp]
mov eax, dword [ebp]
mov esi, dword [esp + 0x10]
mov dword [ebx + 0x1eb4], eax
sub eax, edi
sub eax, 2
push eax
lea edx, [ebx + 0x1cb2]
push edx
push 0x3e
mov dword [ebp], edi
call fcn.1006b700
mov ebp, dword [sym.imp.WS2_32.dll_send]
add esp, 0xc
push 0
push 3
push edi
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x154]
push eax
call ebp
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x1006c2a7
call esi
mov ecx, dword [esp + 0x10]
push eax
push str.Sending_data_failed___d_
push ecx
call fcn.10059590
add esp, 0xc
lea edx, [ebx + 0x1cb3]
push 4
push edx
call fcn.1006bf60
mov eax, dword [edi + 0x154]
add esp, 8
push 0
push 2
add ebx, 0x1cb7
push ebx
push eax
call ebp
test eax, eax
jns 0x1006c2e5
call esi
mov ecx, dword [esp + 0x10]
push eax
push str.Sending_data_failed___d_
push ecx
call fcn.10059590
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x1006cea0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x100d95f0]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
mov ebx, dword [esi + 0x158]
push ebp
mov ebp, dword [esi]
push edi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
or edi, 0xffffffff
mov dword [esp + 0x18], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1006cefa
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x18], 0x80
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebx
push esi
call fcn.1005c470
add esp, 8
cmp edi, 0xffffffff
jne 0x1006cf34
push str.Error_accept__ing_server_connect
push ebp
call fcn.10059590
add esp, 8
pop edi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.10088aee
add esp, 0x88
ret
push str.Connection_accepted_from_server_n
push ebp
call fcn.10059500
push 1
push edi
mov dword [esi + 0x158], edi
call fcn.1007b6e0
mov dword [esi + 0x168], 1
mov eax, dword [ebp + 0x1b0]
add esp, 0x10
test eax, eax
je 0x1006cfa8
mov ecx, dword [ebp + 0x1b4]
push 1
push edi
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x1006cfa8
push edi
push esi
call fcn.1005c470
add esp, 8
pop edi
pop ebp
mov dword [esi + 0x158], 0xffffffff
mov eax, 0x2a
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.10088aee
add esp, 0x88
ret
mov ecx, dword [esp + 0x90]
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.10088aee
add esp, 0x88
ret
Function at 0x100709b0
Capabilities:
Check http status code

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, eax
mov ebx, dword [edi]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
xor esi, esi
cmp eax, 2
je 0x100709ea
push str.Couldnt_set_desired_mode
push ebx
call fcn.10059590
add esp, 8
pop edi
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x10070a01
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.10059500
add esp, 0xc
cmp ebp, 0x13
jne 0x10070a16
push edi
call fcn.10070930
add esp, 4
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x10070a2b
push edi
call fcn.1006d980
add esp, 4
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x10070a43
push 0xd
push 1
call fcn.1006fd00
add esp, 8
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x10070a56
push 0xe
push 1
call fcn.1006fd00
add esp, 8
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x10077620
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x100d95f0]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.1008ad19
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x10077685
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x10077685
lea edx, [esp]
push edx
call dword [0x100d900c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.10088aee
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.10088aee
add esp, 0x108
ret
Function at 0x1007b710
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1ec]
test esi, esi
jne 0x1007b729
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.100590a0
push edx
push eax
call fcn.100590d0
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x1e0], 0
je 0x1007b776
mov eax, dword [ebx + 0x148]
mov ecx, dword [ebx + 0x144]
push eax
push ecx
call fcn.100590a0
push edx
push eax
call fcn.100590d0
mov ecx, dword [edi + 0x1e0]
sub ecx, eax
add esp, 0x10
mov eax, ecx
cmp esi, ecx
jge 0x1007b778
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x1007c770
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x1007c7a2
push 0x2e
push esi
call fcn.10087220
add esp, 8
test eax, eax
je 0x1007c7a0
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret

Function at 0x1007c870
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1007c8a6
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push esi
mov esi, dword [esp + 0x18]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1007c8b0
sub eax, edx
push eax
call fcn.1004eb90
add esp, 4
push 0
push eax
mov eax, dword [esp + 0x14]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 2
push edx
call esi
cmp dword [esp + 4], 0x10
jne 0x1007c905
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 8]
push eax
push ecx
push 2
push edx
call esi
mov eax, dword [esp + 0xc]
pop esi
test eax, eax
je 0x1007c915
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 4]
test eax, eax
je 0x1007c926
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add esp, 0xc
ret
Function at 0x1007e450
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x1007e472
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x1007e466
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x1007e4a2
cmp dword [esi + 8], 0
jne 0x1007e495
mov ecx, dword [eax + 8]
push 0x100b5340
push ecx
call fcn.10087126
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x1007e495
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.10089710
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1007e4c4
mov eax, dword [esi + 8]
test eax, eax
je 0x1007e4be
push eax
call fcn.100869d2
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x10080610
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
jne 0x10080635
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x1008067c
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x10080680
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
mov dword [esp + 0x10], 0
test ebp, ebp
je 0x100806dc
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
inc ebx
call edx
add esp, 0x18
dec ebp
jne 0x100806a3
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x10080718
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push str.6lower
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x100b5997
push eax
call ecx
mov eax, dword [esp + 0x20]
inc eax
add esp, 0x18
mov dword [esp + 8], eax
cmp eax, dword [esi + 0x10]
jb 0x100806e7
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x1009c8e8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100d95f0]
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.10098924
mov dword [ebp - 0x14], eax
cmp dword [0x100dce88], edi
jne 0x1009c9d9
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x1009c966
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1009cab9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1009cab9
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1009cab9
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x100dce88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x100dce8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x100dce90], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x100dce98], eax
test eax, eax
je 0x1009c9d6
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x100dce94], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1009c9fe
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1009c9f1
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x1009ca13
push 4
pop eax
jmp 0x1009cabb
cmp dword [ebp - 0x14], edi
je 0x1009ca13
push dword [0x100dce88]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1009c9f8
mov eax, dword [0x100dce94]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x1009ca71
cmp dword [0x100dce98], esi
je 0x1009ca71
push eax
call ebx
push dword [0x100dce98]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1009ca71
test eax, eax
je 0x1009ca71
call ecx
test eax, eax
je 0x1009ca66
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 0x1009ca66
test byte [ebp - 8], 1
jne 0x1009ca71
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x1009caa1
mov eax, dword [0x100dce8c]
cmp eax, esi
je 0x1009ca9e
push eax
call ebx
test eax, eax
je 0x1009ca9e
call eax
mov edi, eax
test edi, edi
je 0x1009ca9e
mov eax, dword [0x100dce90]
cmp eax, esi
je 0x1009ca9e
push eax
call ebx
test eax, eax
je 0x1009ca9e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x100dce88]
call ebx
test eax, eax
je 0x1009cab9
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x1009cabb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10088aee
leave
ret
Function at 0x4011e3
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
xor ecx, ecx
mov cx, word [edx + 0x14]
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], 0
jmp 0x401224
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
add ecx, 0x28
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 0x14], ecx
jge 0x4012d7
mov edx, dword [ebp - 8]
cmp dword [edx + 0x10], 0
jne 0x40128b
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jle 0x401289
push 4
push 0x1000
mov edx, dword [ebp - 4]
push edx
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 edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
call fcn.00402c40
add esp, 0xc
jmp 0x401212
push 4
push 0x1000
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00402900
add esp, 0xc
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
jmp 0x401212
mov esp, ebp
pop ebp
ret
Function at 0x4012db
Capabilities:
Enumerate pe sections
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
xor edx, edx
mov dx, word [eax + 0x14]
lea eax, [ecx + edx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x401313
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
add edx, 0x28
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
xor edx, edx
mov dx, word [ecx + 6]
cmp dword [ebp - 8], edx
jge 0x401434
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
and ecx, 0x20000000
neg ecx
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
and eax, 0x40000000
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24]
and edx, 0x80000000
neg edx
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
and ecx, 0x2000000
test ecx, ecx
je 0x401393
push 0x4000
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x401301
mov eax, dword [ebp - 0x10]
shl eax, 4
mov ecx, dword [ebp - 0x20]
lea edx, [eax + ecx*8 + 0x40a030]
mov eax, dword [ebp - 0xc]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
and eax, 0x4000000
test eax, eax
je 0x4013c4
mov ecx, dword [ebp - 0x18]
or ch, 2
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x401408
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24]
and edx, 0x40
test edx, edx
je 0x4013ed
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x14], edx
jmp 0x401408
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
and ecx, 0x80
test ecx, ecx
je 0x401408
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jbe 0x40142f
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40142f
mov byte [ebp - 0x24], 0
jmp 0x401301
mov esp, ebp
pop ebp
ret
Function at 0x401b13
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x58], 0x41
mov byte [ebp - 0x57], 0x42
mov byte [ebp - 0x56], 0x43
mov byte [ebp - 0x55], 0x44
mov byte [ebp - 0x54], 0x45
mov byte [ebp - 0x53], 0x46
mov byte [ebp - 0x52], 0x47
mov byte [ebp - 0x51], 0x48
mov byte [ebp - 0x50], 0x49
mov byte [ebp - 0x4f], 0x4a
mov byte [ebp - 0x4e], 0x4b
mov byte [ebp - 0x4d], 0x4c
mov byte [ebp - 0x4c], 0x4d
mov byte [ebp - 0x4b], 0x4e
mov byte [ebp - 0x4a], 0x4f
mov byte [ebp - 0x49], 0x50
mov byte [ebp - 0x48], 0x51
mov byte [ebp - 0x47], 0x52
mov byte [ebp - 0x46], 0x53
mov byte [ebp - 0x45], 0x54
mov byte [ebp - 0x44], 0x55
mov byte [ebp - 0x43], 0x56
mov byte [ebp - 0x42], 0x57
mov byte [ebp - 0x41], 0x58
mov byte [ebp - 0x40], 0x59
mov byte [ebp - 0x3f], 0x5a
mov byte [ebp - 0x3e], 0x61
mov byte [ebp - 0x3d], 0x62
mov byte [ebp - 0x3c], 0x63
mov byte [ebp - 0x3b], 0x64
mov byte [ebp - 0x3a], 0x65
mov byte [ebp - 0x39], 0x66
mov byte [ebp - 0x38], 0
lea eax, [ebp - 0x58]
push eax
call fcn.00403060
add esp, 4
mov dword [ebp - 8], eax
mov byte [ebp - 0x2c], 0x67
mov byte [ebp - 0x2b], 0x68
mov byte [ebp - 0x2a], 0x69
mov byte [ebp - 0x29], 0x6a
mov byte [ebp - 0x28], 0x6b
mov byte [ebp - 0x27], 0x6c
mov byte [ebp - 0x26], 0x6d
mov byte [ebp - 0x25], 0x6e
mov byte [ebp - 0x24], 0x6f
mov byte [ebp - 0x23], 0x70
mov byte [ebp - 0x22], 0x71
mov byte [ebp - 0x21], 0x72
mov byte [ebp - 0x20], 0x73
mov byte [ebp - 0x1f], 0x74
mov byte [ebp - 0x1e], 0x75
mov byte [ebp - 0x1d], 0x76
mov byte [ebp - 0x1c], 0x77
mov byte [ebp - 0x1b], 0x78
mov byte [ebp - 0x1a], 0x79
mov byte [ebp - 0x19], 0x7a
mov byte [ebp - 0x18], 0x30
mov byte [ebp - 0x17], 0x31
mov byte [ebp - 0x16], 0x32
mov byte [ebp - 0x15], 0x33
mov byte [ebp - 0x14], 0x34
mov byte [ebp - 0x13], 0x35
mov byte [ebp - 0x12], 0x36
mov byte [ebp - 0x11], 0x37
mov byte [ebp - 0x10], 0x38
mov byte [ebp - 0xf], 0x39
mov byte [ebp - 0xe], 0x2b
mov byte [ebp - 0xd], 0x2f
mov byte [ebp - 0xc], 0
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00403060
add esp, 4
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 8]
lea ecx, [eax + edx + 1]
push ecx
call fcn.004030db
add esp, 4
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x34], edx
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00401890
add esp, 8
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.004018c9
add esp, 8
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 4], ecx
jmp 0x401c93
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
test ecx, ecx
je 0x401cb5
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
movsx ecx, byte [ebp + 8]
cmp eax, ecx
jne 0x401cb3
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x34]
jmp 0x401cb8
jmp 0x401c8a
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret