joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bedee
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x4bee08
mov dword [ebp - 0x2c], 1
jmp 0x4befa2
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov byte [edx + 0xa], al
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sar eax, 8
mov byte [edx + 0xb], al
mov byte [ebp - 1], 1
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
mov dword [esp + 8], eax
mov eax, 0x8004667e
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.WSOCK32.DLL_ioctlsocket
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
cmp byte [eax + 0x4188], 0
je 0x4beebb
mov eax, dword [ebp + 8]
cmp byte [eax + 0x4189], 0
jne 0x4beea7
mov dword [esp + 4], str.Failure:__NetworkMessage::WriteToSocket_._Key_not_set
mov dword [esp], 0x60f608
call fcn.005eb730
mov dword [esp + 4], 0x5e8450
mov dword [esp], eax
call fcn.0058f72c
mov dword [ebp - 0x2c], 0
jmp 0x4befa2
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004bf7ce
jmp 0x4beec2
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x20], 0x3e8
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov eax, dword [eax]
sub eax, edx
add eax, 2
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
mov dword [esp], eax
call fcn.005e7f70
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [edx]
mov dword [esp + 8], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp + 8]
add eax, dword [ebp - 0x18]
add eax, 8
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.WSOCK32.DLL_send
sub esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jg 0x4bef5c
call sub.WSOCK32.DLL_WSAGetLastError
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x2733
jne 0x4bef56
mov dword [ebp - 0x1c], 0
mov dword [esp], 0xa
call fcn.0053c4e4
lea eax, [ebp - 0x14]
inc dword [eax]
cmp dword [ebp - 0x14], 0xa
jne 0x4bef5c
mov byte [ebp - 1], 0
jmp 0x4bef76
mov byte [ebp - 1], 0
jmp 0x4bef76
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
add dword [eax], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add eax, 2
cmp eax, dword [ebp - 8]
jle 0x4bef76
jmp 0x4beec2
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
mov dword [esp + 8], eax
mov eax, 0x8004667e
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.WSOCK32.DLL_ioctlsocket
sub esp, 0xc
movzx eax, byte [ebp - 1]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
leave
ret
Function at 0x4bf99c
Capabilities:
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x418c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x4190]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x4194]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x4198]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
add eax, 0xa
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jns 0x4bf9f4
add dword [ebp - 0x38], 3
mov eax, dword [ebp - 0x38]
sar eax, 2
cmp eax, dword [ebp - 0x20]
jle 0x4bfadb
mov eax, dword [ebp - 0x20]
lea edx, [eax*4]
mov eax, dword [ebp - 0x1c]
mov eax, dword [edx + eax]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
shl eax, 2
add eax, dword [ebp - 0x1c]
add eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 0x61c88647
mov dword [ebp - 0x30], 0xc6ef3720
mov dword [ebp - 0x34], 0
cmp dword [ebp - 0x34], 0x1f
jg 0x4bfaac
mov eax, dword [ebp - 0x24]
mov edx, eax
shl edx, 4
mov eax, dword [ebp - 0x24]
shr eax, 5
xor eax, edx
mov ecx, eax
add ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
shr eax, 0xb
mov edx, eax
and edx, 3
mov eax, dword [ebp - 0x30]
add eax, dword [ebp + edx*4 - 0x18]
mov edx, ecx
xor edx, eax
lea eax, [ebp - 0x28]
sub dword [eax], edx
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x30]
add dword [eax], edx
mov eax, dword [ebp - 0x28]
mov edx, eax
shl edx, 4
mov eax, dword [ebp - 0x28]
shr eax, 5
xor eax, edx
mov ecx, eax
add ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
and edx, 3
mov eax, dword [ebp - 0x30]
add eax, dword [ebp + edx*4 - 0x18]
mov edx, ecx
xor edx, eax
lea eax, [ebp - 0x24]
sub dword [eax], edx
lea eax, [ebp - 0x34]
inc dword [eax]
jmp 0x4bfa3c
mov eax, dword [ebp - 0x20]
lea ecx, [eax*4]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
mov dword [ecx + edx], eax
mov eax, dword [ebp - 0x20]
shl eax, 2
add eax, dword [ebp - 0x1c]
lea edx, [eax + 4]
mov eax, dword [ebp - 0x28]
mov dword [edx], eax
lea eax, [ebp - 0x20]
add dword [eax], 2
jmp 0x4bf9e2
leave
ret
Function at 0x5138ea
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
mov dword [ebp - 0x28], 0x527d48
mov dword [ebp - 0x24], 0x5f2602
lea eax, [ebp - 0x20]
lea edx, [ebp - 0xc]
mov dword [eax], edx
mov edx, 0x513ade
mov dword [eax + 4], edx
mov dword [eax + 8], esp
lea eax, [ebp - 0x40]
mov dword [esp], eax
call fcn.005341e8
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [ebp - 0x3c], 0xffffffff
call fcn.00593d98
mov eax, dword [ebp + 8]
add eax, 4
mov dword [esp], eax
mov dword [ebp - 0x3c], 4
call fcn.00593d98
mov eax, dword [ebp + 8]
add eax, 0x7c
mov dword [esp], eax
mov dword [ebp - 0x3c], 3
call fcn.005ad64c
mov eax, dword [ebp + 8]
add eax, 0x94
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], 6
cmp dword [ebp - 0x4c], 0xffffffff
je 0x5139e9
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
mov dword [ebp - 0x3c], 2
call fcn.005ad64c
add dword [ebp - 0x48], 0x18
dec dword [ebp - 0x4c]
jmp 0x513973
mov dword [esp + 4], str.none
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [ebp - 0x3c], 1
call fcn.005943b8
mov eax, dword [ebp + 8]
mov dword [eax + 8], 6
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 6
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x24], 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x28], 2
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 5
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 5
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], 5
mov eax, dword [ebp + 8]
mov dword [eax + 0x2c], 0xfa
mov edx, dword [ebp + 8]
mov eax, 0x40800000
mov dword [edx + 0x6c], eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x30], 0x5dc
mov eax, dword [ebp + 8]
mov dword [eax + 0x34], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x3c], 7
mov eax, dword [ebp + 8]
mov dword [eax + 0x40], 7
mov eax, dword [ebp + 8]
mov dword [eax + 0x44], 7
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], 7
mov eax, dword [ebp + 8]
mov dword [eax + 0x4c], 0x64
mov edx, dword [ebp + 8]
mov eax, 0x3f99999a
mov dword [edx + 0x70], eax
mov edx, dword [ebp + 8]
mov eax, 0x3f8ccccd
mov dword [edx + 0x74], eax
mov edx, dword [ebp + 8]
mov eax, 0x3f8ccccd
mov dword [edx + 0x78], eax
jmp 0x513bbe
lea eax, [ebp - 0x40]
mov dword [esp], eax
call fcn.005342c8
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x5278c8
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0xc]
pcmpeqd mm7, mm7
lea eax, [edx + ecx*4]
and eax, 4
mov eax, dword [esp + 8]
movd mm0, dword [eax + ecx*4 - 4]
je 0x5278ef
pxor mm0, mm7
movd dword [edx + ecx*4 - 4], mm0
dec ecx
je 0x527915
add eax, 4
add edx, 4
dec ecx
je 0x52790a
sub ecx, 2
movq mm0, qword [eax + ecx*4]
pxor mm0, mm7
movq qword [edx + ecx*4], mm0
jg 0x5278f8
jne 0x527915
movd mm0, dword [eax - 4]
pxor mm0, mm7
movd dword [edx - 4], mm0
emms
ret

Function at 0x5321e8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00532128
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
mov ebx, eax
jne 0x532234
call sub.msvcrt.dll__errno
cmp dword [eax], 4
je 0x532208
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x5340d8
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x614818]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x534118
mov dword [ebx + 0x30], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call fcn.0053c470
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x2c], eax
add esp, 0x14
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x2c], eax
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x5344c8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x614818]
mov edi, dword [ebp + 8]
test eax, eax
je 0x5345a4
mov ecx, dword [eax + 0x2c]
test ecx, ecx
js 0x5345b9
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x534578
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x534510
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x534520
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x53456b
test edx, edx
jne 0x53455e
test ecx, ecx
je 0x534508
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call ecx
cmp eax, 6
je 0x5345c8
cmp eax, 8
je 0x534508
mov eax, 3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 5
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x5344fa
call fcn.00533e68
mov eax, dword [0x614818]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jns 0x5344ec
call fcn.00534138
mov eax, dword [0x614818]
jmp 0x5344ec
mov dword [edi + 0xc], 0
mov eax, dword [ebp - 0x14]
mov edx, ebx
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.00534438
cmp eax, 7
jne 0x534563
mov eax, dword [0x614818]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x53461b
mov edi, dword [eax + 0x2c]
test edi, edi
js 0x534646
mov esi, dword [eax + 0x2c]
test esi, esi
jne 0x534627
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.00533e68
mov eax, dword [0x614818]
jmp 0x5345f9
mov eax, dword [eax + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x53460a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x53460a
call fcn.00534138
mov eax, dword [0x614818]
jmp 0x534600
Function at 0x5348a8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x614818]
mov edi, dword [ebp + 8]
test eax, eax
je 0x53493c
mov esi, dword [eax + 0x2c]
test esi, esi
js 0x534958
mov ebx, dword [eax + 0x2c]
test ebx, ebx
jne 0x534978
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x534930
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.00534438
cmp eax, 7
jne 0x5349f7
mov eax, dword [0x614818]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x5349ce
mov edx, dword [eax + 0x2c]
test edx, edx
js 0x5349e8
mov edi, dword [eax + 0x2c]
test edi, edi
jne 0x5349a8
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.00534658
jmp 0x5348ed
call fcn.00533e68
mov eax, dword [0x614818]
mov esi, dword [eax + 0x2c]
test esi, esi
jns 0x5348c8
lea esi, [esi]
call fcn.00534138
mov eax, dword [0x614818]
mov ebx, dword [eax + 0x2c]
test ebx, ebx
je 0x5348d3
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x5348d6
mov eax, dword [eax + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x53491f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x53491f
call fcn.00533e68
mov eax, dword [0x614818]
mov edx, dword [eax + 0x2c]
test edx, edx
jns 0x534911
nop
lea esi, [esi]
call fcn.00534138
mov eax, dword [0x614818]
jmp 0x534911
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x534a08
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x534a9a
mov eax, dword [0x614818]
test eax, eax
je 0x534a8e
mov ebx, dword [eax + 0x2c]
test ebx, ebx
js 0x534b09
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jne 0x534aaf
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.00534658
cmp eax, 7
jne 0x534b27
mov eax, dword [0x614818]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x534afa
mov edx, dword [eax + 0x2c]
test edx, edx
js 0x534b18
mov edi, dword [eax + 0x2c]
test edi, edi
jne 0x534adb
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.00533e68
mov eax, dword [0x614818]
jmp 0x534a2a
mov dword [esp], edi
call fcn.005344c8
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x534a3f
mov eax, dword [eax + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x534a7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x534a7d
call fcn.00533e68
mov eax, dword [0x614818]
jmp 0x534a68
call fcn.00534138
mov eax, dword [0x614818]
jmp 0x534a35
call fcn.00534138
mov eax, dword [0x614818]
jmp 0x534a73
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x534f98
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov edx, eax
je 0x534fc8
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.0053c470
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret
Function at 0x53c984
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
cmp byte [eax + 0x18], 0
je 0x53ca8e
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0053c678
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x53c9cb
mov dword [ebp - 0x18], 0
jmp 0x53cb0b
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x50], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
shl eax, 4
add eax, edx
add eax, 0x24
mov edx, dword [eax]
mov eax, dword [ebp + 0x14]
sub eax, edx
mov dword [ecx + 0x54], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
shl eax, 4
add eax, edx
lea ecx, [eax + 0x28]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x54]
mov eax, dword [ecx]
sub eax, edx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
lea eax, [ebp - 8]
mov dword [esp], eax
call fcn.005e7fc0
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
lea eax, [ebp - 8]
sub dword [eax], edx
mov eax, dword [ebp - 4]
mov dword [esp + 8], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x50]
shl eax, 4
add eax, edx
lea edx, [eax + 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x54]
add eax, dword [edx]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
add eax, dword [edx + 0x54]
mov dword [ecx + 0x54], eax
mov edx, dword [ebp - 4]
lea eax, [ebp - 0xc]
add dword [eax], edx
mov edx, dword [ebp - 4]
lea eax, [ebp + 0x14]
add dword [eax], edx
cmp dword [ebp - 8], 0
je 0x53ca85
jmp 0x53c9a4
mov dword [ebp - 0x18], 1
jmp 0x53cb0b
mov dword [esp + 8], 0
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
test eax, eax
je 0x53cac2
mov eax, dword [ebp + 8]
mov dword [eax + 8], 5
mov dword [ebp - 0x18], 0
jmp 0x53cb0b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x10]
je 0x53cb04
mov eax, dword [ebp + 8]
mov dword [eax + 8], 4
mov dword [ebp - 0x18], 0
jmp 0x53cb0b
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
leave
ret
Function at 0x53cb10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov byte [ebp - 1], al
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jge 0x53cbe5
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 8]
movzx eax, byte [eax]
mov byte [ebp - 9], al
cmp byte [ebp - 1], 0
je 0x53cb9a
cmp byte [ebp - 9], 0xfe
je 0x53cb55
cmp byte [ebp - 9], 0xff
je 0x53cb55
cmp byte [ebp - 9], 0xfd
je 0x53cb55
jmp 0x53cb9a
mov byte [ebp - 0xa], 0xfd
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 1
lea eax, [ebp - 0xa]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
je 0x53cb9a
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0xa
mov dword [ebp - 0x14], 0
jmp 0x53cbec
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 1
lea eax, [ebp - 9]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
je 0x53cbdb
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0xa
mov dword [ebp - 0x14], 0
jmp 0x53cbec
lea eax, [ebp - 8]
inc dword [eax]
jmp 0x53cb23
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
leave
ret
Function at 0x564e80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov eax, dword [0x5f4d38]
test eax, eax
je 0x564f8a
movzx eax, byte [0x5f4d50]
test al, al
jne 0x564f7b
mov eax, dword [0x5f4d40]
mov esi, dword [0x5f4d3c]
cmp esi, eax
jbe 0x564ed1
mov ecx, dword [0x5f4d54]
lea esi, [esi]
add eax, eax
lea edx, [ecx + 1]
cmp esi, eax
mov ecx, edx
ja 0x564ec0
mov dword [0x5f4d54], edx
lea eax, [esi + esi + 2]
xor edi, edi
mov dword [esp], eax
call fcn.0052a9a8
movzx ebx, word [0x5f4d40]
mov dword [0x5f4d78], eax
mov edx, eax
mov esi, dword [0x5f4d3c]
xor ecx, ecx
lea esi, [esi]
lea edi, [edi]
cmp ecx, ebx
jbe 0x564f10
lea eax, [ebx + ebx]
movzx ebx, ax
lea eax, [edi + 1]
movzx edi, ax
mov word [edx], di
lea eax, [ecx + 1]
movzx ecx, ax
add edx, 2
cmp ecx, esi
jbe 0x564f00
mov eax, dword [0x5f4d54]
shl eax, 4
mov dword [esp], eax
call fcn.0052a9a8
mov dword [0x5f4d68], eax
mov ecx, dword [0x613e08]
test ecx, ecx
jne 0x564fe4
xor esi, esi
cmp esi, dword [0x5f4d54]
jae 0x564f7b
lea esi, [esi]
mov dword [esp], 4
mov eax, dword [0x5f4d68]
mov ebx, esi
shl ebx, 4
inc esi
add ebx, eax
call fcn.0052a9a8
mov dword [ebx], eax
mov eax, dword [ebx]
mov dword [eax], 0
cmp esi, dword [0x5f4d54]
jb 0x564f50
mov byte [0x5f4d6c], 1
add esp, 0xc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.GLIBCXX_FORCE_NEW
mov eax, 8
mov edi, 0xff0
mov dword [0x5f4d38], eax
mov eax, pe_nt_image_headers32
mov esi, 0x1000
mov dword [0x5f4d3c], eax
mov ebx, 0xa
mov eax, 8
mov dword [0x5f4d40], eax
mov dword [0x5f4d44], edi
mov dword [0x5f4d48], esi
mov dword [0x5f4d4c], ebx
call sub.msvcrt.dll_getenv
test eax, eax
setne al
mov byte [0x5f4d50], al
jmp 0x564e9d
mov eax, dword [0x5f4d48]
mov ebx, 1
shl eax, 3
mov dword [esp], eax
call fcn.0052a9a8
cmp dword [0x5f4d48], 1
mov dword [0x5f4d5c], eax
jmp 0x56502c
mov edx, dword [0x5f4d5c]
lea eax, [ebx*8]
mov ecx, dword [0x5f4d5c]
lea edx, [eax + edx]
add eax, ecx
mov dword [edx - 4], ebx
inc ebx
cmp dword [0x5f4d48], ebx
mov dword [edx - 8], eax
ja 0x565007
mov eax, dword [0x5f4d5c]
xor edx, edx
mov dword [eax + ebx*8 - 8], edx
mov eax, dword [0x5f4d5c]
mov dword [eax + ebx*8 - 4], ebx
mov dword [esp], 0x5f4d60
call fcn.00535088
mov dword [esp], 0x5f4d58
mov eax, 0x565260
mov dword [esp + 4], eax
call fcn.00534f98
mov dword [ebp - 0x10], 0
mov esi, dword [0x5f4d48]
xor eax, eax
inc esi
cmp eax, dword [0x5f4d54]
jae 0x564f7b
lea edi, [esi*4]
lea esi, [esi]
lea edi, [edi]
mov dword [esp], edi
mov edx, dword [ebp - 0x10]
mov eax, dword [0x5f4d68]
shl edx, 4
lea ebx, [edx + eax]
call fcn.0052a9a8
mov dword [ebx], eax
mov dword [esp], edi
call fcn.0052a9a8
mov dword [ebx + 4], eax
mov dword [esp], edi
call fcn.0052a9a8
mov dword [ebx + 8], eax
mov dword [esp], 8
call fcn.0052a9a8
mov dword [ebx + 0xc], eax
mov dword [esp], eax
call fcn.00535088
xor edx, edx
jmp 0x5650fe
mov eax, dword [ebx]
mov dword [eax + edx*4], 0
mov eax, dword [ebx + 4]
mov dword [eax + edx*4], 0
mov eax, dword [ebx + 8]
mov dword [eax + edx*4], 0
inc edx
cmp edx, esi
jb 0x5650e0
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [0x5f4d54]
jb 0x565090
jmp 0x564f7b