joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002e83b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006a15a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x1002e96b
mov dword [ebp - 0x28], 0x51c0
mov dword [ebp - 0x2c], 0x100083a8
cmp dword [ebp - 0x28], 0x5433
jle 0x1002e90a
and dword [ebp - 0x24], 0
jmp 0x1002e891
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x625
jge 0x1002e90a
and dword [ebp - 0x20], 0
jmp 0x1002e8a7
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x2c9b
jge 0x1002e908
and dword [ebp - 0x18], 0
jmp 0x1002e8bd
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x1319
jge 0x1002e906
and dword [ebp - 0x1c], 0
jmp 0x1002e8d3
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x792f
jge 0x1002e904
mov ecx, dword [ebp - 0x18]
imul ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
sar eax, cl
cdq
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], edx
push dword [ebp - 0x60]
push dword [ebp - 0x64]
mov ecx, 0x10611838
call fcn.1001624c
jmp 0x1002e8cc
jmp 0x1002e8b6
jmp 0x1002e8a0
jmp 0x1002e88a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x28], 0x4e60
jge 0x1002e92a
mov edx, dword [ebp - 0x2c]
mov ecx, 0x10611838
call fcn.10019248
jmp 0x1002e946
or dword [ebp - 4], 0xffffffff
jmp 0x1002e950
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
push dword [ebp - 0x30]
push 1
push dword [ebp - 0x34]
call fcn.1002e9fc
add esp, 0xc
jmp 0x1002e9eb
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x40], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test eax, eax
je 0x1002e9d4
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
push dword [ebp - 0x54]
push 0x694b
push 0
mov eax, dword [ebp - 0x58]
push dword [eax]
push 0x5a69
mov eax, dword [ebp - 0x5c]
push dword [eax]
call fcn.1001c174
add esp, 0x18
jmp 0x1002e9eb
mov byte [ebp - 0x11], 0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x1002e9eb
push 0x15f8
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100334e1
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push ecx
test cl, cl
je 0x100334f8
push ecx
push dword [ebp + 0xc]
push ecx
call fcn.10033526
add esp, 0xc
jmp 0x10033522
cmp byte [ebp + 8], 0
je 0x10033512
xor eax, eax
mov byte [ebp - 1], al
cmp byte [ebp - 1], al
je 0x10033522
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x10033522
push 0x131f
push 0xe91
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov esp, ebp
pop ebp
ret

Function at 0x100343cb
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1003444f
lea eax, [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x10034402
push 0x15f8
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10034430
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 1
jge 0x1003444d
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x1c]
call fcn.100165f3
mov dword [eax], 0x3e0c
jmp 0x10034425
jmp 0x10034470
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x20], eax
push 0x26ad
push dword [ebp - 0x20]
push 0
push dword [ebp - 0x24]
call fcn.10038117
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x1003888d
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10038930
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x1003890e
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x100388ef
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 1
jge 0x1003890c
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x1c]
call fcn.100165f3
mov dword [eax], 0xc4d8e5c
jmp 0x100388e4
jmp 0x1003892e
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test eax, eax
je 0x1003892e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
jmp 0x10038951
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push 1
push 0x6093
call fcn.10033bed
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x10063cff
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1006e740]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10055038
mov dword [ebp - 0x14], eax
cmp dword [0x10612950], esi
jne 0x10063df2
push 0x800
push esi
push 0x1000680c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10063d7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10063ed2
push esi
push esi
push 0x1000680c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10063ed2
push 0x10006824
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10063ed2
push eax
call ebx
push 0x10006830
push edi
mov dword [0x10612950], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10006840
push edi
mov dword [0x10612954], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10006854
push edi
mov dword [0x10612958], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10612960], eax
test eax, eax
je 0x10063def
push 0x10006870
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1061295c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10063e17
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10063e0a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10063e2c
push 4
pop eax
jmp 0x10063ed4
cmp dword [ebp - 0x14], esi
je 0x10063e2c
push dword [0x10612950]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10063e11
mov eax, dword [0x1061295c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10063e8a
cmp dword [0x10612960], edi
je 0x10063e8a
push eax
call ebx
push dword [0x10612960]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10063e8a
test eax, eax
je 0x10063e8a
call ecx
test eax, eax
je 0x10063e7f
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 0x10063e7f
test byte [ebp - 8], 1
jne 0x10063e8a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10063eba
mov eax, dword [0x10612954]
cmp eax, edi
je 0x10063eb7
push eax
call ebx
test eax, eax
je 0x10063eb7
call eax
mov esi, eax
test esi, esi
je 0x10063eb7
mov eax, dword [0x10612958]
cmp eax, edi
je 0x10063eb7
push eax
call ebx
test eax, eax
je 0x10063eb7
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10612950]
call ebx
test eax, eax
je 0x10063ed2
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10063ed4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10052180
mov esp, ebp
pop ebp
ret
Function at 0x401a50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1525
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x4d33a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x130], esi
mov dword [esi + 4], edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.UrlRequestJobManager.0
mov eax, dword [0x4d2c98]
mov edx, dword [eax + 0xc]
mov ecx, 0x4d2c98
call edx
add eax, 0x10
mov dword [esi + 8], eax
mov byte [ebp - 4], 1
mov eax, dword [0x4d2c98]
mov edx, dword [eax + 0xc]
mov ecx, 0x4d2c98
call edx
add eax, 0x10
mov dword [esi + 0xc], eax
mov byte [ebp - 4], 2
push 0xc
mov dword [esi + 0x14], edi
call fcn.0047d8a0
add esp, 4
cmp eax, edi
je 0x401be1
mov dword [esi + 0x10], eax
mov dword [eax], eax
mov eax, dword [esi + 0x10]
mov dword [eax + 4], eax
mov byte [ebp - 4], 3
push 0xc
mov dword [esi + 0x20], edi
call fcn.0047d8a0
add esp, 4
cmp eax, edi
je 0x401bae
mov dword [esi + 0x1c], eax
mov dword [eax], eax
mov eax, dword [esi + 0x1c]
mov dword [eax + 4], eax
lea ecx, [esi + 0x28]
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
push 5
mov byte [ebp - 4], 5
call fcn.00404440
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push 1
mov dword [0x4d8704], edi
push edi
mov dword [0x4d8708], edi
call ebx
push edi
push edi
push 1
push edi
mov dword [0x4d870c], eax
call ebx
mov dword [0x4d8710], eax
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x124], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 2
jne 0x401b84
cmp dword [ebp - 0x120], 6
jae 0x401b84
push 0x10
push 0x4d8704
push 0x40a970
call dword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
jmp 0x401b91
mov ecx, dword [0x4d8710]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048638c
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x12c]
push edx
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x12c], edi
call fcn.0047e259
push 0x4ca5e4
lea eax, [ebp - 0x148]
push eax
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.0047e454
lea ecx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x128], edi
call fcn.0047e259
push 0x4ca5e4
lea edx, [ebp - 0x13c]
push edx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.0047e454
int3
Function at 0x4071d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4071eb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407222
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40721e
jmp 0x407210
cmp esi, eax
jae 0x407222
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407210
cmp esi, eax
jb 0x407229
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x408510
Capabilities:
Create thread

Disassembly:
push esi
mov esi, eax
lea ecx, [edi + 8]
test esi, esi
je 0x408530
push ebx
lea ebx, [eax + 2]
mov edi, edi
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x408520
sub eax, ebx
sar eax, 1
pop ebx
push eax
push esi
call fcn.00407840
push 0
push 0
push edi
push 0x4083d0
push 0
push 0
call fcn.00482d60
mov esi, eax
add esp, 0x18
test esi, esi
je 0x408578
mov dword [edi + 0x20], esi
mov eax, dword [edi + 0xc]
test eax, eax
je 0x408566
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [edi + 0x14], 0
je 0x408571
mov eax, dword [edi + 0x18]
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret

Function at 0x40bb10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2868
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4d33a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40bb4e
mov esi, 1
jmp 0x40bb89
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.Util_PathFileExist
call fcn.00407520
lea ecx, [ebp - 0x10]
push ecx
call fcn.0040b3b0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bb89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bbaf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40bbd0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2b60
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4d33a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0xb
push eax
push ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x40bc18
mov esi, 1
jmp 0x40bc53
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.Util_RenameFile_Failed
call fcn.00407520
lea edx, [ebp - 0x10]
push edx
call fcn.0040b3b0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bc53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bc76
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bc9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40dc80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1248
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4d33a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [esi + 4], edi
mov dword [ebp - 4], edi
mov dword [esi], vtable._t_UrlInfo.0
mov dword [esi + 8], edi
push 0xc
mov dword [esi + 0x10], edi
call fcn.0047d8a0
add esp, 4
cmp eax, edi
je 0x40dd69
mov dword [esi + 0xc], eax
mov dword [eax], eax
mov eax, dword [esi + 0xc]
mov dword [eax + 4], eax
mov dword [esi + 0x18], 1
mov eax, dword [0x4d2c98]
mov edx, dword [eax + 0xc]
mov ecx, 0x4d2c98
call edx
add eax, 0x10
mov dword [esi + 0x1c], eax
mov eax, dword [0x4d2c98]
mov edx, dword [eax + 0xc]
mov ecx, 0x4d2c98
call edx
add eax, 0x10
mov dword [esi + 0x20], eax
mov eax, dword [0x4d2c98]
mov edx, dword [eax + 0xc]
mov ecx, 0x4d2c98
call edx
add eax, 0x10
mov dword [esi + 0x24], eax
mov eax, dword [0x4d2c98]
mov edx, dword [eax + 0xc]
mov ecx, 0x4d2c98
call edx
add eax, 0x10
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], edi
call fcn.0047e259
push 0x4ca5e4
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x1c], vtable.std::bad_alloc.0
call fcn.0047e454
int3
Function at 0x40eae0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3b03
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4d33a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
or edi, 0xffffffff
mov dword [esi + 8], ebx
mov dword [esi + 0xc], edi
mov eax, dword [0x4d2c98]
mov edx, dword [eax + 0xc]
mov ecx, 0x4d2c98
call edx
add eax, 0x10
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], edi
push ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], edi
push ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], edi
push ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], edi
push ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], edi
push edi
mov dword [esi + 0x58], 0xfde9
mov eax, dword [eax]
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [0x4d2c98]
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4d2c98
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp eax, ebx
jge 0x40ebb2
push 0x80070057
call fcn.00407be0
mov ecx, dword [edi - 8]
mov edx, 1
sub edx, dword [edi - 4]
sub ecx, eax
or ecx, edx
jge 0x40ebd2
push eax
lea ecx, [ebp - 0x10]
call fcn.00408840
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
cmp eax, dword [edi - 8]
jg 0x40eba8
mov dword [edi - 0xc], eax
mov byte [edi + eax], bl
cmp dword [edi - 4], 1
jle 0x40ebf5
mov ecx, dword [edi - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00408780
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
push ebx
push ebx
push eax
push edi
push 0xffffffffffffffff
push ecx
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp + 0xc], eax
mov eax, dword [edi - 8]
push eax
push edi
call fcn.00485aae
add esp, 8
cmp eax, ebx
jl 0x40eba8
cmp eax, dword [edi - 8]
jg 0x40eba8
mov dword [edi - 0xc], eax
mov byte [eax + edi], bl
cmp dword [ebp + 0xc], ebx
jne 0x40ec46
lea eax, [edi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40ec67
mov ecx, dword [esi + 0x58]
push ecx
lea eax, [ebp - 0x10]
mov ecx, esi
call fcn.0040ec90
lea eax, [edi - 0x10]
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ec73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x413300
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a28b8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x4d33a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x4d2c98]
mov edx, dword [eax + 0xc]
mov ecx, 0x4d2c98
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
lea esi, [edi + 0x30]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00421390
push 0x4bf294
lea ecx, [ebp - 0x20]
call fcn.00407520
mov esi, eax
mov byte [ebp - 4], 1
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00407520
push esi
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 2
call fcn.0040d680
lea ecx, [ebp - 0x10]
push ecx
push eax
lea edx, [ebp - 0x14]
push edx
mov byte [ebp - 4], 3
call fcn.0040d680
add esp, 0x18
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 4
call fcn.004078f0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4133c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4133ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41340f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413432
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413458
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4