joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100f3d40
Capabilities:
Check http status code

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
lea eax, [ecx - 0xc8]
xor edi, edi
mov ebx, dword [esi + 0xc]
cmp eax, 0x64
jb 0x100f3d70
push str.Couldnt_set_desired_mode
push esi
call fcn.100d58e0
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
ret
cmp ecx, 0xc8
je 0x100f3d87
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push esi
call fcn.100d59a0
add esp, 0xc
mov eax, dword [esp + 0x18]
push ebp
cmp eax, 0x13
jne 0x100f3da2
push ebx
push esi
call fcn.100f3c40
add esp, 8
mov edi, eax
pop ebp
pop edi
pop esi
pop ebx
ret
cmp eax, 0x14
jne 0x100f3eb3
mov edi, dword [esi + 0xc]
xor ebx, ebx
cmp dword [esi + 0x4f8], 2
mov dword [esp + 0x18], edi
jne 0x100f3e21
mov eax, dword [esi + 0x13c]
mov eax, dword [eax]
test eax, eax
je 0x100f3e21
push 3
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
push ecx
push ebx
push eax
push esi
call fcn.100ec3d0
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x100f3ee0
push 0x2f
push dword [esp + 0x18]
call sub.VCRUNTIME140.dll_strrchr
add esp, 8
test eax, eax
je 0x100f3e10
mov ebx, dword [esp + 0x14]
mov ecx, 1
sub eax, ebx
cmovne ecx, eax
mov byte [ecx + ebx], 0
jmp 0x100f3e1d
push dword [esp + 0x14]
call dword [0x1013d004]
add esp, 4
mov edi, dword [esp + 0x18]
mov ecx, dword [esi + 0x53c]
test ecx, ecx
jne 0x100f3e3f
cmp byte [esi + 0x6f1], 0
mov ecx, str.NLST
mov eax, str.LIST
cmove ecx, eax
mov edx, 0x101298c6
test ebx, ebx
mov eax, edx
cmovne eax, ebx
push eax
mov eax, 0x1012c9f4
cmove eax, edx
push eax
push ecx
push 0x10120338
call fcn.100d94d0
push ebx
mov ebp, eax
call dword [0x1013d004]
add esp, 0x14
test ebp, ebp
jne 0x100f3e7c
mov edi, 0x1b
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
push ebp
push 0x10124714
lea eax, [edi + 0x430]
push eax
push esi
call fcn.10109450
push ebp
mov edi, eax
call dword [0x1013d004]
add esp, 0x14
test edi, edi
jne 0x100f3ee0
mov eax, dword [esi + 0xc]
pop ebp
mov dword [eax + 0x4b4], 0x1f
mov eax, edi
pop edi
pop esi
pop ebx
ret
cmp eax, 0x15
jne 0x100f3ecc
push 0xd
push 1
push esi
call fcn.100f37d0
add esp, 0xc
mov edi, eax
pop ebp
pop edi
pop esi
pop ebx
ret
cmp eax, 0x16
jne 0x100f3ee0
push 0xe
push 1
push esi
call fcn.100f37d0
add esp, 0xc
mov edi, eax
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x100f9eb0
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push 0
mov byte [esp + 0x12], cl
lea ecx, [esp + 0x10]
push 3
mov eax, dword [esi + 0xc]
push ecx
mov byte [esp + 0x18], 0xff
mov byte [esp + 0x19], bl
push dword [eax + 0x158]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x100f9efc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.100d58e0
add esp, 0xc
push dword [esp + 0x14]
push ebx
push str.SENT
push esi
call fcn.100f9ac0
add esp, 0x10
pop esi
pop ebx
ret

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

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov eax, dword [ebx + 0xc]
mov ebp, dword [ebx + 0x13c]
mov dword [esp + 8], eax
jne 0x100fa19f
push esi
push edi
lea eax, [ebp + 0x1cb4]
lea edi, [ebp + 0x1eb4]
mov dword [edi], eax
cmp eax, edi
jae 0x100fa09d
mov byte [eax], 0xff
inc eax
mov dword [edi], eax
cmp eax, edi
jae 0x100fa09d
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x100fa09d
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [esp + 0x18], eax
movzx eax, word [ebp + 0x1caa]
push eax
call esi
mov edx, dword [esp + 0x18]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x100fa107
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x100fa107
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x100fa107
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x100fa107
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x100fa107
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x100fa107
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov dword [ebp + 0x1eb8], eax
lea esi, [ebp + 0x1cb4]
sub eax, esi
mov dword [edi], esi
sub eax, 2
push eax
lea eax, [ebp + 0x1cb6]
push eax
push 0x3e
push ebx
call fcn.100f9bc0
mov eax, dword [esp + 0x20]
add esp, 0x10
mov edi, dword [sym.imp.WS2_32.dll_send]
push 0
push 3
push esi
push dword [eax + 0x158]
call edi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x100fa15f
call esi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.100d58e0
add esp, 0xc
push 4
lea eax, [ebp + 0x1cb7]
push eax
push ebx
call fcn.100f9f20
add esp, 0xc
lea eax, [ebp + 0x1cbb]
push 0
push 2
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x158]
call edi
test eax, eax
jns 0x100fa19d
call esi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.100d58e0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x100fb630
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x1013d040]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
mov ebx, dword [esp + 0x90]
push ebp
push esi
push edi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax + 0x430]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
lea eax, [esp + 0x18]
push eax
mov eax, dword [edi + 0x14c]
push 0
add eax, 4
push eax
push dword [edi + 0x158]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x140], 0
mov dword [edi + 0x144], eax
jne 0x100fb6b6
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea eax, [edi + 0xc0]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [edi + 0x140], eax
mov esi, dword [edi + 0x144]
cmp esi, 4
jge 0x100fb6f1
push str.Received_too_short_packet
push ebx
call fcn.100d58e0
add esp, 8
mov dword [edi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1010e0bc
add esp, 0x88
ret
mov edx, dword [edi + 0x158]
movzx eax, byte [edx]
movzx ecx, byte [edx + 1]
shl eax, 8
or ecx, eax
mov dword [edi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x100fb710.1
jmp dword [ecx*4 + 0x100fb81c]
cmp esi, 4
jle case.0x100fb710.4
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [edi + 0x154]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x100fb710.4
lea eax, [esi - 4]
push eax
lea eax, [edx + 4]
push eax
push 1
push ebx
call fcn.100d5810
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100fb76b
push 5
push edi
call fcn.100fc1c0
add esp, 8
mov eax, esi
jmp 0x100fb6d8
mov eax, dword [edi + 0x144]
sub eax, 4
cdq
add dword [ebx + 0x98], eax
adc dword [ebx + 0x9c], edx
push dword [ebx + 0x9c]
push dword [ebx + 0x98]
push ebx
call fcn.100e4820
jmp 0x100fb7f1
movzx ecx, byte [edx + 2]
lea ebp, [edx + 4]
movzx eax, byte [edx + 3]
add esi, 0xfffffffc
shl ecx, 8
or ecx, eax
push esi
push ebp
mov dword [edi + 8], ecx
call fcn.100fc230
add esp, 8
cmp eax, esi
jae case.0x100fb710.4
push ebp
push str.TFTP_error:__s_n
push ebx
call fcn.100d59a0
jmp 0x100fb7f1
lea eax, [esi - 2]
push eax
lea eax, [edx + 2]
push eax
push edi
call fcn.100fb3c0
add esp, 0xc
test eax, eax
je case.0x100fb710.4
jmp 0x100fb6d8
push str.Internal_error:_Unexpected_packet
push 0x10124714
push ebx
call fcn.100d58e0
add esp, 0xc
push ebx
call fcn.100e4c00
add esp, 4
test eax, eax
je 0x100fb6d6
push 5
push edi
call fcn.100fc1c0
add esp, 8
mov eax, 0x2a
jmp 0x100fb6d8
Function at 0x1010bfe0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
jne 0x1010c007
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x1010c052
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [esp + 0x20], ebx
jmp 0x1010c056
mov ebp, dword [esp + 0x1c]
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x1010c0b6
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x1010c075
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x1010c0e7
nop dword [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0x1012941c
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x1012941d
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x1010c0c0
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x1010c0f0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push dword [esp + 0x20]
call fcn.100d8120
mov esi, dword [esp + 0x1c]
mov ebx, eax
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [section..data]
mov edi, eax
add esp, 8
test edi, edi
je 0x1010c258
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x1010c16c
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push ebp
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov eax, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x18]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x1010c1d1
mov dword [esp + 0x18], eax
mov ebx, eax
nop dword [eax + eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x1c], al
lea eax, [esp + 0x1c]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x28], al
lea eax, [esp + 0x28]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x1010c190
mov ebx, dword [esp + 0x18]
cmp ebx, dword [esi + 0x10]
jae 0x1010c1fd
mov eax, dword [esi + 4]
push 1
push 0x1012941c
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x1012941d
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x1010c1d6
push dword [esp + 0x28]
call fcn.100d8120
mov ecx, dword [edi]
push eax
push dword [esp + 0x2c]
push dword [edi + 4]
mov eax, dword [ecx + 4]
call eax
mov esi, dword [esp + 0x3c]
add esp, 0x10
mov ebx, dword [edi]
test esi, esi
jne 0x1010c228
mov esi, dword [ebx + 0xc]
add esi, dword [edi + 8]
push dword [edi + 4]
mov eax, dword [ebx + 8]
push esi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push esi
push dword [edi + 8]
call eax
push dword [edi + 8]
mov eax, dword [ebx + 8]
push esi
call eax
push edi
call dword [0x1013d004]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
pop ecx
ret
Function at 0x1006e22
Capabilities:
Allocate thread local storage
Link many functions at runtime
Set thread local storage value

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x1001cc0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x1006e74
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress_1]
push 0x1001d2c
push edi
call esi
push 0x1001d20
push edi
mov dword [0x10159c4], eax
call esi
push 0x1001d14
push edi
mov dword [0x10159c8], eax
call esi
push 0x1001d0c
push edi
mov dword [0x10159cc], eax
call esi
mov dword [0x10159d0], eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [0x10159c4], ebx
je 0x1006e9a
cmp dword [0x10159c8], ebx
je 0x1006e9a
cmp dword [0x10159cc], ebx
je 0x1006e9a
cmp dword [0x10159d0], ebx
jne 0x1006ebe
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x10159c8], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x10159c4], 0x1006ae6
mov dword [0x10159cc], esi
mov dword [0x10159d0], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x101417c], eax
cmp eax, 0xffffffff
je 0x1006f31
push dword [0x10159c8]
push eax
call esi
test eax, eax
je 0x1006f31
call fcn.01005dfd
push dword [0x10159c4]
call fcn.010069e8
push dword [0x10159c8]
mov dword [0x10159c4], eax
call fcn.010069e8
push dword [0x10159cc]
mov dword [0x10159c8], eax
call fcn.010069e8
push dword [0x10159d0]
mov dword [0x10159cc], eax
call fcn.010069e8
add esp, 0x10
mov dword [0x10159d0], eax
call fcn.01009c1c
test eax, eax
jne 0x1006f37
call fcn.01006b23
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x1006cd2
push dword [0x10159c4]
call fcn.01006a6e
pop ecx
call eax
mov dword [0x1014180], eax
cmp eax, 0xffffffff
je 0x1006f2c
push 0x214
push 1
call fcn.0100b511
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x1006f2c
push esi
push dword [0x1014180]
push dword [0x10159cc]
call fcn.01006a6e
pop ecx
call eax
test eax, eax
jne 0x1006f8a
push esi
call fcn.01008472
pop ecx
jmp 0x1006f2c
push ebx
push esi
call fcn.01006b65
or dword [esi + 4], 0xffffffff
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x1006f33
Function at 0x100a2c4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.01006a60
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
cmp dword [0x1015e6c], ebx
jne 0x100a39d
push ebx
push ebx
push 0x1001e54
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
jne 0x100a308
xor eax, eax
jmp 0x100a461
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress_1]
push 0x1001e48
push edi
call esi
cmp eax, ebx
je 0x100a301
push eax
call fcn.010069e8
mov dword [esp], 0x1001e38
push edi
mov dword [0x1015e6c], eax
call esi
push eax
call fcn.010069e8
mov dword [esp], 0x1001e24
push edi
mov dword [0x1015e70], eax
call esi
push eax
call fcn.010069e8
mov dword [0x1015e74], eax
lea eax, [ebp - 8]
push eax
call fcn.01005bb8
pop ecx
pop ecx
test eax, eax
je 0x100a36b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01008318
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x100a39d
push 0x1001e08
push edi
call esi
push eax
call fcn.010069e8
pop ecx
mov dword [0x1015e7c], eax
cmp eax, ebx
je 0x100a39d
push 0x1001df0
push edi
call esi
push eax
call fcn.010069e8
pop ecx
mov dword [0x1015e78], eax
mov eax, dword [0x1015e78]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x100a416
cmp dword [0x1015e7c], esi
je 0x100a416
push eax
call fcn.01006a6e
pop ecx
call eax
cmp eax, ebx
je 0x100a3e3
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x1015e7c]
call fcn.01006a6e
pop ecx
call eax
test eax, eax
je 0x100a3e3
test byte [ebp - 0x18], 1
jne 0x100a416
lea eax, [ebp - 0xc]
push eax
call fcn.01005bf9
pop ecx
test eax, eax
je 0x100a3fe
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01008318
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x100a40d
or dword [ebp + 0x10], 0x200000
jmp 0x100a447
or dword [ebp + 0x10], 0x40000
jmp 0x100a447
mov eax, dword [0x1015e70]
cmp eax, esi
je 0x100a447
push eax
call fcn.01006a6e
pop ecx
call eax
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x100a447
mov eax, dword [0x1015e74]
cmp eax, esi
je 0x100a447
push dword [ebp - 4]
push eax
call fcn.01006a6e
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x1015e6c]
call fcn.01006a6e
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10117f5
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x1014004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
xor esi, esi
push eax
mov dword [ebp - 0xc], esi
call fcn.01005bb8
pop ecx
test eax, eax
je 0x101182a
push esi
push esi
push esi
push esi
push esi
call fcn.01008318
add esp, 0x14
push 4
pop eax
call fcn.01005990
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1011946
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec edi
neg edi
sbb edi, edi
and edi, 0x103
inc edi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], esi
jne 0x10118bf
mov dword [ebp - 0x10], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001dd0
call esi
test eax, eax
jne 0x1011896
push 0x1001db4
call esi
test eax, eax
je 0x10118bf
push 0x1002adc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress_1]
test eax, eax
je 0x10118bf
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
call eax
cmp eax, 1
jne 0x10118bf
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x10118bf
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea esi, [ebx - 1]
push esi
push dword [ebp - 8]
call fcn.01006288
add esp, 0xc
test eax, eax
jl 0x1011946
not esi
and dword [ebp - 8], esi
je 0x10118f1
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.01006288
add esp, 0xc
test eax, eax
jl 0x1011946
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x10118fc
mov dword [ebp - 8], eax
lea esi, [ebx - 1]
not esi
and esi, dword [ebp - 0x14]
sub esi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x1011910
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp esi, ebx
jb 0x1011946
push 4
push 0x1000
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x1011946
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1011946
xor eax, eax
inc eax
jmp 0x1011948
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100597b
leave
ret
Function at 0x1023000
Capabilities:
Encode data using xor

Disassembly:
push 0x3e94c1
pop ebx
mov edx, 0x1023020
nop
push 0x598
pop edi
nop
push dword [edx + edi]
xor dword [esp], ebx
pop dword [edx + edi]
nop
nop
sub edi, 3
dec edi
jne 0x1023013
sub ecx, ebp
aas
add cl, al
xchg esp, eax
add cl, al
xchg esp, eax
add ebp, ebx
int3

Function at 0x1000b36e
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1000b327
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1000b345
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1000b3a3
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
inc eax
inc eax
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1000b38a
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1000b393
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1000b39d
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x1000b37f
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1000b309
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x1000b3f0
dec eax
je 0x1000b3e7
sub eax, 3
je 0x1000b3de
mov dword [ebp - 4], 0x40
jmp 0x1000b40d
mov dword [ebp - 4], 4
jmp 0x1000b3f3
mov dword [ebp - 4], 0x20
jmp 0x1000b3f3
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
jne 0x1000b3f6
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x1000b43f
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1000b3bf
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.1000ac50
cmp al, 0xfa
jbe 0x1000b3f3
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x1000b44b
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
Function at 0x401206
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
push ebx
push esi
xor ebx, ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x264]
mov esi, 0x12c
push eax
push esi
mov byte [ebp - 0x264], bl
mov byte [ebp - 0x138], bl
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, esi
jae 0x401267
cmp eax, ebx
jbe 0x401267
cmp byte [ebp - 0x264], bl
je 0x401267
lea eax, [ebp - 0x138]
push eax
push ebx
lea eax, [ebp - 0x264]
push 0x4083a8
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov esi, dword [ebp + 8]
cmp dword [esi], ebx
je 0x401370
mov eax, esi
add esi, 0x10
cmp dword [eax + 4], ebx
je 0x401370
movzx eax, word [esi - 0xc]
push ebx
push ebx
push ebx
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_LoadImageA]
cmp eax, ebx
mov dword [esi], eax
jne 0x401361
cmp byte [ebp - 0x138], bl
je 0x401361
movzx eax, word [esi - 0xc]
push 0x4083a0
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x401361
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
jbe 0x401361
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x401361
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x401361
lea eax, [ebp - 0x138]
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
push 0x80
push 2
push ebx
push ebx
lea eax, [ebp - 0x138]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x401361
lea ecx, [ebp + 8]
push ebx
push ecx
push edi
push dword [ebp - 0xc]
mov dword [ebp + 8], ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], edi
jne 0x401361
push 0x10
push ebx
push ebx
lea eax, [ebp - 0x138]
push ebx
push eax
push ebx
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [esi], eax
add esi, 0x14
cmp dword [esi - 0x10], ebx
lea eax, [esi - 0x10]
jne 0x401277
cmp byte [ebp - 0x138], bl
pop edi
pop esi
pop ebx
je 0x401388
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, 1
leave
ret