joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d6588
Capabilities:
Reference public rsa key

Disassembly:
push 0x64
mov eax, 0x5bb8ec
call fcn.00518baf
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], ebx
mov eax, dword [esi]
mov ecx, eax
and ecx, 0xf
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], eax
je 0x4d65be
sub eax, ecx
add eax, 0x10
mov dword [esi], eax
push dword [esi]
call fcn.004f3ce5
pop ecx
push eax
mov ecx, edi
call fcn.004018af
mov dword [ebp - 4], ebx
push dword [esi]
mov eax, dword [edi]
xor ebx, ebx
push 0
inc ebx
push eax
mov dword [ebp - 0x2c], ebx
call fcn.00516720
push dword [ebp - 0x28]
mov eax, dword [edi]
push dword [ebp - 0x24]
push eax
call fcn.005167a0
mov eax, dword [ebp + 0x14]
add esp, 0x18
test eax, eax
je 0x4d6629
push 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push 0x6d7aa8
push eax
call fcn.005167a0
add esp, 0xc
push 0x6d7ab8
push 0x10
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x70]
call fcn.004d6340
mov dword [ebp - 4], ebx
jmp 0x4d6644
push 0x6d7ab8
push 0x10
push 0x6d7aa8
lea ecx, [ebp - 0x70]
call fcn.004d6340
mov dword [ebp - 4], 2
push dword [esi]
mov eax, dword [edi]
push eax
push eax
mov eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x70]
call dword [eax + 0x1c]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.004d5df4
mov eax, edi
call fcn.00518c32
ret

Function at 0x4d6667
Capabilities:
Reference public rsa key

Disassembly:
push 0x6c
mov eax, 0x5bb93a
call fcn.00518baf
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], ebx
push dword [esi]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], eax
call fcn.004f3ce5
pop ecx
push eax
mov ecx, edi
call fcn.004018af
mov dword [ebp - 4], ebx
push dword [esi]
mov eax, dword [edi]
push dword [ebp - 0x24]
inc ebx
push eax
mov dword [ebp - 0x28], ebx
call fcn.005167a0
mov eax, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
je 0x4d66e6
push 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push 0x6d7aa8
push eax
call fcn.005167a0
add esp, 0xc
push 0x6d7ab8
push 0x10
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x78]
call fcn.004d6414
mov dword [ebp - 4], ebx
jmp 0x4d6701
push 0x6d7ab8
push 0x10
push 0x6d7aa8
lea ecx, [ebp - 0x78]
call fcn.004d6414
mov dword [ebp - 4], 2
push dword [esi]
mov eax, dword [edi]
push eax
push eax
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x78]
call dword [eax + 0x1c]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
call fcn.004d5b29
mov eax, edi
call fcn.00518c32
ret
Function at 0x4de0af
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
push ebx
push esi
push edi
mov esi, ecx
jne 0x4de0c9
push eax
push 2
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov edi, dword [sym.imp.WSOCK32.dll_setsockopt]
push 4
mov dword [esi + 0x2cc], eax
lea eax, [ebp + 8]
push eax
push 0x1002
mov ebx, 0xffff
push ebx
push dword [esi + 0x2cc]
mov dword [ebp + 8], 0x20000
call edi
push 4
lea eax, [ebp + 8]
push eax
push 0x1001
push ebx
push dword [esi + 0x2cc]
call edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4e1fa8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
sub esp, 0x5c
push 0x1d8
mov eax, 0x5bdd45
call fcn.00518b79
mov esi, ecx
mov dword [ebp + 0x5c], esi
lea eax, [esi + 0x254]
push eax
lea ecx, [ebp + 0x3c]
call fcn.00411378
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x174], ebx
jbe 0x4e232b
lea eax, [ebp + 0x44]
push eax
call fcn.00519540
pop ecx
lea eax, [esi + 0x16c]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx]
push eax
push ecx
lea ecx, [ebp + 0x48]
call fcn.004cdfd3
mov eax, dword [ebp + 0x48]
mov dword [ebp + 0x50], eax
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0x54], eax
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x4c], ebx
mov eax, dword [esi + 0x174]
mov dword [ebp + 0x2c], eax
mov byte [ebp - 4], 1
wait
lea eax, [ebp + 0x24]
push eax
lea ecx, [esi + 0x16c]
call fcn.004de3d2
push eax
lea ecx, [ebp + 0x50]
call fcn.004c32b4
test al, al
jne 0x4e20ea
lea ecx, [ebp + 0x50]
call fcn.004f13c4
mov esi, eax
lea edi, [ebp + 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
inc dword [ebp + 0x58]
push dword [ebp + 0x34]
push dword [ebp + 0x44]
call fcn.0051a2b6
pop ecx
pop ecx
fcomp qword [0x65bc38]
fnstsw ax
test ah, 0x41
je 0x4e2099
push dword [ebp + 0x34]
push dword [ebp + 0x44]
call fcn.0051a2b6
pop ecx
pop ecx
fcomp qword [0x65bc30]
fnstsw ax
test ah, 0x41
jne 0x4e208c
cmp byte [ebp + 0x38], 1
je 0x4e2099
lea ecx, [ebp + 0x50]
call fcn.004dc6b0
mov esi, dword [ebp + 0x5c]
jmp 0x4e201f
push dword [ebp + 0x54]
push dword [ebp + 0x50]
lea eax, [ebp + 0x24]
push eax
mov ecx, dword [ebp + 0x5c]
add ecx, 0x16c
call fcn.004d896b
lea eax, [ebp + 0x30]
cmp byte [ebp + 0x38], bl
je 0x4e20bc
push ebx
jmp 0x4e20be
push 1
push eax
call fcn.004b2e00
pop ecx
pop ecx
mov eax, dword [ebp + 0x5c]
cmp dword [eax + 0x174], ebx
jne 0x4e20e8
or dword [ebp - 4], 0xffffffff
cmp byte [ebp + 0x40], bl
je 0x4e20e2
mov ecx, dword [ebp + 0x3c]
call fcn.0040dc30
wait
jmp 0x4e2348
mov esi, eax
wait
mov dword [ebp - 4], ebx
jmp 0x4e232b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x2a4], eax
or dword [ebp - 4], 0xffffffff
cmp byte [ebp + 0x40], bl
je 0x4e2348
mov ecx, dword [ebp + 0x3c]
call fcn.0040dc30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x60
leave
ret

Function at 0x4e235b
Capabilities:
Connect socket

Disassembly:
push 8
mov eax, 0x5bc45a
call fcn.00518b46
mov esi, ecx
cmp dword [esi + 0x168], 0xffffffff
je 0x4e23aa
lea eax, [esi + 0x254]
push eax
lea ecx, [ebp - 0x14]
call fcn.00411378
and dword [ebp - 4], 0
push 0x10
push 0x6da1b4
push dword [esi + 0x168]
call dword [sym.imp.WSOCK32.dll_connect]
or dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x10], 0
je 0x4e23aa
mov ecx, dword [ebp - 0x14]
call fcn.0040dc30
call fcn.00518c1e
ret
Function at 0x4e27ef
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0x24
mov eax, 0x5bddf1
call fcn.00518baf
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor eax, eax
push eax
push eax
mov esi, ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.004d3105
and dword [ebp - 4], 0
mov eax, dword [esi + 0x15c]
test eax, eax
jle 0x4e28b7
cmp eax, 2
jle 0x4e28bb
add eax, 0xfffffffb
cmp eax, 1
ja 0x4e28b7
mov ecx, esi
call fcn.004e2511
add esi, 0xa0
mov ecx, esi
call fcn.00432f85
cmp eax, 5
jb 0x4e28b7
push 5
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.004cdcf7
push 1
lea eax, [ebp - 0x16]
push eax
lea eax, [ebp - 0x2a]
push eax
call fcn.005167a0
movzx eax, byte [ebp - 0x2a]
mov dword [edi], eax
push 2
lea eax, [ebp - 0x15]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005167a0
movzx eax, word [ebp - 0x28]
add eax, 5
add esp, 0x18
mov ecx, esi
mov dword [ebx], eax
call fcn.00432f85
movzx ecx, word [ebp - 0x28]
add ecx, 5
cmp eax, ecx
jb 0x4e28b7
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004d30e4
mov al, bl
call fcn.00518c32
ret 8
xor bl, bl
jmp 0x4e28a1
push dword [esi + 0x160]
mov ecx, esi
call fcn.004de34a
cmp eax, 5
mov dword [ebp - 0x30], eax
jb 0x4e28b7
push 2
push 5
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x160]
call dword [sym.imp.WSOCK32.dll_recv]
push 1
lea eax, [ebp - 0x16]
push eax
lea eax, [ebp - 0x2a]
push eax
call fcn.005167a0
movzx eax, byte [ebp - 0x2a]
mov dword [edi], eax
push 2
lea eax, [ebp - 0x15]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005167a0
movzx eax, word [ebp - 0x28]
add eax, 5
add esp, 0x18
cmp dword [ebp - 0x30], eax
mov dword [ebx], eax
jmp 0x4e289d
Function at 0x4eb06d
Capabilities:
Enumerate network shares

Disassembly:
push 0x10
mov eax, 0x5bf3ea
call fcn.00518b79
mov edi, ecx
mov eax, dword [ebp + 0x1c]
cmp dword [eax], 3
jg 0x4eb15a
mov ebx, dword [ebp + 0x20]
cmp dword [ebx], 3
ja 0x4eb15a
mov al, byte [edi + 0x21]
test al, al
jne 0x4eb15a
mov eax, 0x4000
mov dword [ebp - 0x14], eax
push eax
call fcn.004f3ce5
pop ecx
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x4eb15a
and dword [ebp + 0x20], 0
mov dword [ebp - 0x18], 1
and dword [ebp - 4], 0
lea eax, [ebp + 0x20]
push eax
push dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
jne 0x4eb140
cmp byte [edi + 0x21], 0
jne 0x4eb138
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x20]
call sub.MPR.dll_WNetEnumResourceW
test eax, eax
jne 0x4eb138
cmp dword [esi + 8], 2
jne 0x4eb10d
inc dword [ebx]
cmp dword [ebx], 3
ja 0x4eb138
test byte [esi + 0xc], 2
je 0x4eb0e2
cmp dword [esi + 8], 2
je 0x4eb0e2
push ebx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
mov ecx, edi
call fcn.004eb06d
jmp 0x4eb0e2
push dword [ebp + 0x20]
call sub.MPR.dll_WNetCloseEnum
or dword [ebp - 4], 0xffffffff
jmp 0x4eb153
push esi
call fcn.00511c38
pop ecx
call fcn.00518c1e
ret 0x1c
Function at 0x4f2c69
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x726d78], 0
push esi
jne 0x4f2bdc
call fcn.004f2b07
test eax, eax
je 0x4f2c1f
mov eax, dword [0x726d78]
cmp eax, 1
jne 0x4f2bfd
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4f2c1f
pop esi
ret
push eax
call dword [0x726d80]
test eax, eax
jne 0x4f2c67
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4f2c23
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x726d78]
call dword [0x726d80]
mov edi, eax
test edi, edi
je 0x4f2c4a
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4f2c66
lea edi, [esi + 0xff0]
push esi
push dword [0x726d78]
call dword [0x726d7c]
add esi, 0x10
cmp esi, edi
jb 0x4f2c50
mov eax, esi
pop edi
pop esi
ret
jmp 0x4f2bc9

Function at 0x4f2e37
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x6dd9a4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004f2d76
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00516720
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4f2e86
cmp dword [ebp - 0x1c], 5
jb 0x4f2e9e
jmp 0x4f2e9a
cmp dword [ebp - 0x10], 1
jne 0x4f2e9e
cmp dword [ebp - 0x1c], 4
ja 0x4f2e9a
jne 0x4f2e9e
cmp dword [ebp - 0x18], 0
jbe 0x4f2e9e
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x65e6b4
call fcn.00430041
test eax, eax
jge 0x4f2ebf
mov byte [0x731aa4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.005112a7
add ebp, 0x78
leave
ret
Function at 0x5018b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5c16a3
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6dd9a4]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x20], esi
push 0x1c
call fcn.00511d1d
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x64], ebp
je 0x501909
lea edi, [ebx + 0x10]
mov ecx, edi
call fcn.00501750
mov dword [edi + 4], eax
mov dword [edi + 8], ebp
jmp 0x50190b
xor ebx, ebx
mov dword [ebx], esi
mov dword [ebx + 4], ebp
mov byte [ebx + 0xc], 0
mov dword [ebx + 8], fcn.00501740
mov eax, dword [esi]
push ebx
lea ecx, [eax + 0x10]
mov dword [esp + 0x68], 0xffffffff
call fcn.00501e90
mov eax, dword [esi]
add eax, 0x10
push eax
lea ecx, [esp + 0x4c]
call fcn.00501c70
mov edi, dword [esi]
mov ebp, dword [edi + 4]
cmp ebp, dword [edi + 8]
mov dword [esp + 0x64], 1
mov dword [esp + 0x14], edi
jbe 0x501958
call fcn.00512070
mov dword [esp + 0x28], ebp
lea esp, [esp]
mov eax, dword [esi]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
jbe 0x50197b
call fcn.00512070
mov eax, dword [esp + 0x18]
cmp edi, eax
je 0x501984
call fcn.00512070
cmp ebp, dword [esp + 0x1c]
je 0x501a41
mov esi, dword [esi]
lea eax, [esp + 0x2c]
push eax
sub esp, 0x10
add esi, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
call fcn.00501aa0
cmp ebp, dword [edi + 8]
mov byte [esp + 0x78], 2
jb 0x5019b6
call fcn.00512070
mov byte [esp + 0x78], 1
mov ecx, dword [ebp]
call fcn.00503b60
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
mov byte [esp + 0x44], 1
mov edi, dword [ebx + 0x14]
mov edx, dword [edi + 4]
lea esi, [ebx + 0x10]
lea ecx, [esp + 0x2c]
push ecx
push edx
push edi
mov ecx, esi
mov byte [esp + 0x70], 3
call fcn.00501770
push 1
mov ecx, esi
mov ebp, eax
call fcn.00501810
mov ecx, dword [esp + 0x28]
mov dword [edi + 4], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ebp
mov eax, dword [esp + 0x14]
cmp ecx, dword [eax + 8]
mov byte [esp + 0x44], 0
mov byte [esp + 0x64], 1
jb 0x501a2b
call fcn.00512070
add dword [esp + 0x28], 4
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x28]
jmp 0x501960
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x4c]
call fcn.00501d10
lea ecx, [esp + 0x38]
call fcn.00501be0
mov esi, dword [esi]
lea ecx, [esp + 0x48]
mov byte [esi + 0x1c], 1
mov dword [esp + 0x64], 0xffffffff
call fcn.00501cb0
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
Function at 0x504010
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x7271dc]
test eax, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
je 0x504027
push eax
call edi
test eax, eax
jne 0x50405d
push esi
call fcn.00503dc0
push 0x503c80
push 0x7271d8
mov esi, eax
call fcn.00503f60
mov eax, dword [0x7271dc]
add esp, 8
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x7271dc]
test eax, eax
pop esi
jne 0x50405a
pop edi
ret
push eax
call edi
pop edi
ret

Function at 0x504140
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x5c1b88
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6dd9a4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x7271dc]
test eax, eax
jne 0x504172
xor esi, esi
jmp 0x50417b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x20], 0
je 0x5041bd
cmp dword [esi + 0x14], 0
jne 0x5041ff
cmp dword [esi + 0x10], 0
jne 0x504205
push 0x503c80
push 0x7271d8
call fcn.00503f60
mov eax, dword [0x7271dc]
add esp, 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
mov dword [esp + 0x20], 0xffffffff
je 0x5041eb
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x5041eb
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x10], 0
je 0x504245
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x504233
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x504205
cmp dword [esi + 0x14], 0
je 0x504197
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x50426a
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x50429b
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x50429b
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x50429b
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x50424f
jmp 0x504191
Function at 0x504350
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 0x10
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 8]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x5042c0
push 0
push 0
call fcn.0051f6f0
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x504390
lea ecx, [esp + 8]
call fcn.00504e90
push 0x6b1fa4
lea edx, [esp + 0xc]
push edx
call fcn.00518c50
mov eax, dword [edi + 8]
push esi
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi + 8]
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x5043b9
cmp eax, 0xffffffff
je 0x5043b9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
mov edx, dword [edi + 8]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop edi
pop ebx
add esp, 0x10
ret
Function at 0x5058f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5c1df8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6dd9a4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.0040f8d1
mov dword [esi], vtable.boost::program_options::multiple_occurrences.0
test edi, edi
mov dword [esp + 0x18], 0
je 0x50593a
add edi, 0x28
jmp 0x50593c
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
test ecx, ecx
mov dword [esi + 0x2c], ecx
je 0x505954
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::program_options::multiple_occurrences_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_class_boost::program_options::multiple_occurrences_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x505af0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5c1e63
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6dd9a4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x24]
push edi
call fcn.005058f0
mov dword [esp + 0x1c], 0
mov dword [esi + 0x3c], vtable.boost::exception_detail::clone_base.0
test edi, edi
mov byte [esp + 0x1c], 1
mov dword [esi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::program_options::multiple_occurrences__.2.0
mov dword [esi + 0x28], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::program_options::multiple_occurrences__.1.0
mov dword [esi + 0x3c], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::program_options::multiple_occurrences__.0
je 0x505b55
lea ebx, [edi + 0x28]
jmp 0x505b57
xor ebx, ebx
mov ecx, dword [esi + 0x2c]
test ecx, ecx
mov edi, dword [ebx + 4]
je 0x505b68
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
test edi, edi
mov dword [esi + 0x2c], edi
je 0x505b78
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
call edx
mov eax, dword [ebx + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [ebx + 0x10]
mov dword [esi + 0x38], edx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x5073d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5c2178
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6dd9a4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.0040f8d1
mov dword [esi], vtable.boost::program_options::unknown_option.0
test edi, edi
mov dword [esp + 0x18], 0
je 0x50741a
add edi, 0x28
jmp 0x50741c
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
test ecx, ecx
mov dword [esi + 0x2c], ecx
je 0x507434
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::program_options::unknown_option_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_class_boost::program_options::unknown_option_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x5074c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5c21b3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6dd9a4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x24]
push edi
call fcn.005073d0
mov dword [esp + 0x1c], 0
mov dword [esi + 0x3c], vtable.boost::exception_detail::clone_base.0
test edi, edi
mov byte [esp + 0x1c], 1
mov dword [esi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::program_options::unknown_option__.2.0
mov dword [esi + 0x28], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::program_options::unknown_option__.1.0
mov dword [esi + 0x3c], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::program_options::unknown_option__.0
je 0x507525
lea ebx, [edi + 0x28]
jmp 0x507527
xor ebx, ebx
mov ecx, dword [esi + 0x2c]
test ecx, ecx
mov edi, dword [ebx + 4]
je 0x507538
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
test edi, edi
mov dword [esi + 0x2c], edi
je 0x507548
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
call edx
mov eax, dword [ebx + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [ebx + 0x10]
mov dword [esi + 0x38], edx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4