joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ddf0
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7123
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x7c]
call fcn.0040dc30
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x7c]
mov ebx, 8
cmp dword [ebp - 0x68], ebx
jae 0x40de3b
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, edi
je 0x40df25
mov eax, dword [ebp - 0x7c]
cmp dword [ebp - 0x68], ebx
jae 0x40de55
lea eax, [ebp - 0x7c]
push 0x506840
push eax
call fcn.004b2a7f
mov esi, eax
add esp, 8
cmp esi, edi
jne 0x40de85
cmp dword [ebp - 0x68], ebx
jb 0x40df36
mov ecx, dword [ebp - 0x7c]
push ecx
call fcn.004b1676
add esp, 4
xor eax, eax
jmp 0x40df7c
push 0x4e
lea eax, [ebp - 0x5e]
xor edx, edx
push edi
push eax
mov word [ebp - 0x60], dx
call fcn.004b96b0
push esi
push 1
lea ecx, [ebp - 0x60]
push 0x50
push ecx
call fcn.004b2e67
push esi
call fcn.004b2ef1
add esp, 0x20
mov esi, 7
xor edx, edx
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x88], edi
mov word [ebp - 0x98], dx
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40ded2
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x98]
call fcn.00404960
cmp dword [ebp - 0x88], edi
jne 0x40df3a
cmp dword [ebp - 0x84], ebx
jb 0x40df10
mov ecx, dword [ebp - 0x98]
push ecx
call fcn.004b1676
add esp, 4
xor edx, edx
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x88], edi
mov word [ebp - 0x98], dx
cmp dword [ebp - 0x68], ebx
jb 0x40df36
mov eax, dword [ebp - 0x7c]
push eax
call fcn.004b1676
add esp, 4
xor eax, eax
jmp 0x40df7c
cmp dword [ebp - 0x84], ebx
jb 0x40df51
mov ecx, dword [ebp - 0x98]
push ecx
call fcn.004b1676
add esp, 4
xor edx, edx
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x88], edi
mov word [ebp - 0x98], dx
cmp dword [ebp - 0x68], ebx
jb 0x40df77
mov eax, dword [ebp - 0x7c]
push eax
call fcn.004b1676
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1681
mov esp, ebp
pop ebp
ret
Function at 0x40ef20
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e63e2
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
lea eax, [ebp - 0x218]
push eax
push edi
push edi
push 0x1a
mov dword [ebp - 4], edi
push edi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor ecx, ecx
lea eax, [ebp - 0x218]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40ef87
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
mov ecx, esi
call fcn.00404960
mov dword [ebp - 4], edi
push 8
mov eax, 0x507350
mov ecx, esi
mov dword [ebp - 0x21c], 1
call fcn.00403f00
cmp dword [esi + 0x14], 8
jb 0x40efca
mov eax, dword [esi]
jmp 0x40efcc
mov eax, esi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 1
mov eax, 0x5062dc
mov ecx, esi
call fcn.00403f00
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1681
mov esp, ebp
pop ebp
ret

Function at 0x40f250
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e638b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
mov esi, ecx
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], ax
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push edi
mov dword [ebp - 4], edi
push edx
mov word [ebp - 0x218], cx
call fcn.004b96b0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x40f30a
mov dword [esi + 0x10], edi
xor ecx, ecx
mov dword [esi + 0x14], 7
lea edi, [ebp - 0x234]
mov word [esi], cx
call fcn.00404350
cmp dword [ebp - 0x220], 8
jb 0x40f3a1
mov edx, dword [ebp - 0x234]
push edx
jmp 0x40f399
push 0x5072d0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x40f352
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40f330
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x234]
call fcn.00404960
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x40f367
lea eax, [ebp - 0x234]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov dword [esi + 0x10], edi
xor edx, edx
mov dword [esi + 0x14], 7
lea edi, [ebp - 0x234]
mov word [esi], dx
call fcn.00404350
cmp dword [ebp - 0x220], 8
jb 0x40f3a1
mov eax, dword [ebp - 0x234]
push eax
call fcn.004b1676
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1681
mov esp, ebp
pop ebp
ret
Function at 0x40f500
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
mov dword [ebp - 0x210], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor ecx, ecx
lea eax, [ebp - 0x20c]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
lea edx, [eax + 2]
jmp 0x40f550
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f550
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
mov ecx, esi
call fcn.00404960
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.004b1681
mov esp, ebp
pop ebp
ret

Function at 0x40ffb0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6318
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x53f1e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x288
mov dword [ebp - 0x14], 0x288
call fcn.004b2b1c
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x410006
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 0x14]
push eax
push ebx
call esi
cmp eax, 0x6f
jne 0x410030
push ebx
call fcn.004b2f65
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004b2b1c
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40fff2
lea edx, [ebp - 0x14]
push edx
push ebx
mov byte [ebp - 0xd], 0
call esi
test eax, eax
jne 0x410111
mov esi, ebx
test ebx, ebx
je 0x410111
mov eax, 6
cmp dword [esi + 0x1a0], eax
jne 0x410062
cmp dword [esi + 0x190], eax
je 0x41006d
mov esi, dword [esi]
test esi, esi
jne 0x410052
jmp 0x410111
mov eax, dword [0x53ef48]
mov edx, dword [eax + 0xc]
mov ecx, 0x53ef48
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
movzx eax, byte [esi + 0x199]
movzx ecx, byte [esi + 0x198]
movzx edx, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push ecx
movzx ecx, byte [esi + 0x195]
push edx
movzx edx, byte [esi + 0x194]
push eax
push ecx
push edx
push str._02X_02X_02X_02X_02X_02X
lea edi, [ebp - 0x18]
call fcn.00408a70
mov esi, dword [ebp - 0x18]
mov eax, esi
add esp, 0x1c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4100d1
mov ecx, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
push esi
call fcn.00404960
lea eax, [esi - 0x10]
mov byte [ebp - 0xd], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410111
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
call fcn.004b2f65
mov al, byte [ebp - 0xd]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415290
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e627b
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x53f1e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, 0x1388
mov dword [esi], vtable.CHttpClient.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov eax, dword [0x53ef48]
mov edx, dword [eax + 0xc]
mov ecx, 0x53ef48
lea edi, [esi + 0x20]
call edx
add eax, 0x10
mov dword [edi], eax
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 4], ebx
push 0x507ea8
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x41532b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x507ee0
push 0x508050
call fcn.00408a70
add esp, 0xc
jmp 0x41533f
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push edx
push ecx
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
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 4
Function at 0x415820
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7028
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 0x14], 0x10
mov edi, ecx
mov dword [esi + 0x10], ebx
jb 0x41585e
mov ecx, dword [esi]
jmp 0x415860
mov ecx, esi
mov byte [ecx], bl
push eax
xor ecx, ecx
mov edx, edi
mov byte [ebp - 0x2d], bl
call fcn.00415c90
test al, al
je 0x4158de
xor eax, eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 4], ebx
call fcn.00415b80
test al, al
je 0x4158e5
push 3
push 0x507f54
lea edx, [ebp - 0x2c]
push edx
xor eax, eax
call fcn.0040d750
cmp eax, 0xffffffff
je 0x4158e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryRawHeaders404
push 0x508050
add edi, 0x20
call fcn.00408a70
add esp, 0xc
cmp dword [ebp - 0x18], 8
jb 0x4158de
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b1676
add esp, 4
xor al, al
jmp 0x415989
mov edx, dword [edi + 0xc]
lea ecx, [ebp - 0x34]
push ecx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x4158cc
push 0x100000
call fcn.004b2b1c
mov ebx, eax
mov eax, dword [ebp - 0x34]
add esp, 4
cmp eax, 0x100000
ja 0x415951
mov edx, dword [edi + 0xc]
lea ecx, [ebp - 0x38]
push ecx
push eax
push ebx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x41596b
mov eax, dword [ebp - 0x38]
push eax
mov eax, ebx
mov ecx, esi
call fcn.004016e0
mov edx, dword [edi + 0xc]
lea ecx, [ebp - 0x34]
push ecx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x41596b
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x415967
cmp eax, 0x100000
jbe 0x415910
push ebx
call fcn.004b2f65
mov eax, dword [ebp - 0x34]
push eax
call fcn.004b2b1c
add esp, 8
mov ebx, eax
jmp 0x41596b
mov byte [ebp - 0x2d], 1
push ebx
call fcn.004b2f65
add esp, 4
cmp dword [ebp - 0x18], 8
jb 0x415986
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b1676
add esp, 4
mov al, byte [ebp - 0x2d]
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.004b1681
mov esp, ebp
pop ebp
ret 4
Function at 0x4159b0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e80f8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x3c], esi
mov edi, edx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
push eax
mov dword [ebp - 4], esi
call fcn.00415c90
test al, al
jne 0x415a2f
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], 0xf
lea edi, [ebp - 0x2c]
mov esi, ebx
mov byte [ebx], al
call fcn.00401de0
cmp dword [ebp - 0x18], 0x10
jb 0x415b06
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x415afe
push 0x100000
call fcn.004b2b1c
mov edx, dword [edi + 0xc]
add esp, 4
lea ecx, [ebp - 0x38]
push ecx
push edx
mov esi, eax
mov byte [ebp - 0x2d], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x415ab4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x415aad
cmp ebx, 0x100000
jbe 0x415a77
push esi
call fcn.004b2f65
mov ebx, dword [ebp - 0x38]
push ebx
call fcn.004b2b1c
add esp, 8
mov esi, eax
mov ecx, dword [edi + 0xc]
lea eax, [ebp - 0x3c]
push eax
push ebx
push esi
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x415ab1
mov edx, dword [ebp - 0x3c]
push edx
mov eax, esi
lea ecx, [ebp - 0x2c]
call fcn.004016e0
mov ecx, dword [edi + 0xc]
lea eax, [ebp - 0x38]
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x415a54
jmp 0x415ab1
mov byte [ebp - 0x2d], 1
mov ebx, dword [ebp - 0x34]
push esi
call fcn.004b2f65
add esp, 4
cmp byte [ebp - 0x2d], 0
jne 0x415ad9
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
jae 0x415ad6
lea eax, [ebp - 0x2c]
mov byte [eax], 0
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
lea edi, [ebp - 0x2c]
mov esi, ebx
mov byte [ebx], 0
call fcn.00401de0
cmp dword [ebp - 0x18], 0x10
jb 0x415b06
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b1676
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1681
mov esp, ebp
pop ebp
ret 8
Function at 0x415b80
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [edi + 0xc]
push ebx
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x15
push ecx
xor bl, bl
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x415bfa
mov edx, dword [ebp - 4]
push esi
push edx
call fcn.004b2b1c
mov ecx, dword [edi + 0xc]
add esp, 4
push 0
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push 0
push 0x15
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x415bf0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415bd5
mov ecx, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
push esi
call fcn.00404960
mov bl, 1
push esi
call fcn.004b2f65
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x415c10
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push 0x3a
push eax
lea ecx, [ebp - 0x3e]
push ecx
xor bl, bl
mov word [ebp - 0x40], ax
call fcn.004b96b0
mov ecx, dword [esi + 0xc]
add esp, 0xc
push 0
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x40]
push eax
push 0
push 5
push ecx
mov dword [ebp - 0x48], 0x3c
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x415c78
push 0xa
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x44], 0
call fcn.004b40d4
add esp, 0xc
mov dword [edi], eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004b1681
mov esp, ebp
pop ebp
ret
Function at 0x4162a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3e88
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x53f1e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
push 8
mov dword [esi], ebx
call fcn.004b1d85
add esp, 4
cmp eax, ebx
je 0x416384
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x18]
push 8
mov dword [edi], ebx
call fcn.004b1d85
add esp, 4
cmp eax, ebx
je 0x416360
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov word [esi + 0x7c], 1
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 4
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call fcn.004b1a8a
push 0x5197c8
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call fcn.004b5d45
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], ebx
call fcn.004b1a8a
push 0x5197c8
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], vtable.std::bad_alloc.0
call fcn.004b5d45
int3
Function at 0x422b40
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e34eb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x53f1e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0046b7af
push 4
mov dword [ebp - 4], 0
call fcn.004b1d85
mov edi, eax
add esp, 4
test edi, edi
je 0x422bbc
call fcn.0046bd6b
mov dword [edi], eax
call fcn.0046baac
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0046b915
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x422bb2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0046b93d
jmp 0x422bbe
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 4
Function at 0x42b5c0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0xb4]
push ebx
push eax
mov byte [esi], 0
mov byte [esi + 0xa0], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0xa4]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x42b62f
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42b626
mov edx, dword [esi + 0xa4]
lea ecx, [ebp - 4]
push ecx
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0xa4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0xa4]
push edx
call ebx
cmp byte [esi + 0x6c], 0
push edi
je 0x42b661
lea edi, [esi + 0x84]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x80]
push eax
call ebx
push edi
mov dword [esi + 0x80], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esi + 0x6c], 0
mov ecx, dword [esi + 0xb4]
push ecx
call ebx
lea edx, [esi + 0x84]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ebx, [esi + 0xa8]
call fcn.0042d9c0
mov eax, dword [ebx]
push eax
call fcn.004b1676
mov edi, 8
add esp, 4
cmp dword [esi + 0x64], edi
jb 0x42b6a3
mov ecx, dword [esi + 0x50]
push ecx
call fcn.004b1676
add esp, 4
xor ebx, ebx
xor edx, edx
mov dword [esi + 0x64], 7
mov dword [esi + 0x60], ebx
mov word [esi + 0x50], dx
cmp dword [esi + 0x48], edi
jb 0x42b6c6
mov eax, dword [esi + 0x34]
push eax
call fcn.004b1676
add esp, 4
xor ecx, ecx
mov dword [esi + 0x48], 7
mov dword [esi + 0x44], ebx
mov word [esi + 0x34], cx
cmp dword [esi + 0x2c], edi
pop edi
jb 0x42b6e8
mov edx, dword [esi + 0x18]
push edx
call fcn.004b1676
add esp, 4
mov dword [esi + 0x28], ebx
xor eax, eax
mov dword [esi + 0x2c], 7
mov word [esi + 0x18], ax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42cfb0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0xb4]
push eax
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0xa4]
cmp eax, 0xffffffff
je 0x42d059
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x42d059
mov edx, dword [esi + 0xa4]
push ebx
lea ecx, [ebp - 4]
push ecx
push edx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0xa4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0xa4]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
cmp byte [esi + 0x6c], 0
mov dword [esi + 0xa4], 0xffffffff
je 0x42d052
push edi
lea edi, [esi + 0x84]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x80]
push eax
call ebx
push edi
mov dword [esi + 0x80], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esi + 0x6c], 0
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret