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

Disassembly:
cmp ecx, dword [0x4abd08]
jne 0x46c64b
repz ret
jmp fcn.00476e7c

Function at 0x472245
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x47226c
call fcn.0047015b
mov dword [eax], esi
call fcn.00470148
push 0x16
pop esi
mov dword [eax], esi
call fcn.00478c8d
mov eax, esi
jmp 0x4722c1
test dword [ebp + 0xc], 0xfffffff9
jne 0x472252
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x472299
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0047016e
pop ecx
call fcn.00470148
mov eax, dword [eax]
jmp 0x4722c1
test al, 0x10
jne 0x4722bf
test al, 1
je 0x4722bf
test byte [ebp + 0xc], 2
je 0x4722bf
call fcn.0047015b
mov dword [eax], 5
call fcn.00470148
mov dword [eax], 0xd
jmp 0x472290
xor eax, eax
pop esi
pop ebp
ret
Function at 0x47930f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4abd08]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00476876
and dword [ebp - 0x14], 0
cmp dword [0x4af040], 0
mov dword [ebp - 0x18], eax
jne 0x4793c2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x47946a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x47946a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4af040], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4af044], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4af048], eax
call edi
push eax
call esi
mov dword [0x4af050], eax
test eax, eax
je 0x4793c2
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4af04c], eax
mov eax, dword [0x4af04c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x47941b
cmp dword [0x4af050], ecx
je 0x47941b
push eax
call esi
push dword [0x4af050]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x47941b
test ebx, ebx
je 0x47941b
call edi
test eax, eax
je 0x479412
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x479412
test byte [ebp - 8], 1
jne 0x47941b
or dword [ebp + 0x10], 0x200000
jmp 0x47944e
mov eax, dword [0x4af044]
cmp eax, dword [ebp - 0x18]
je 0x47944e
push eax
call esi
test eax, eax
je 0x47944e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x47944e
mov eax, dword [0x4af048]
cmp eax, dword [ebp - 0x18]
je 0x47944e
push eax
call esi
test eax, eax
je 0x47944e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4af040]
call esi
test eax, eax
je 0x47946a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x47946c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046c641
leave
ret
Function at 0x40a280
Capabilities:
Encode data using xor

Disassembly:
xchg dword [ebx + 0x2d5756ec], ecx
jge 0x40a1f8
push 0x24
pop ss
call 0x36404a60
mov esi, dword [ebp + 8]
std
dec ebp
or al, 0xca
push es
mov dword [eax], edi
xor edi, dword [edx]
add byte [eax], al
add byte [eax + ecx*8 + 0x68b1edc], al
push 0
push 1
push 0
push 0x23
mov dword [eax + 0x6a], 1
call dword [0x40c0a0]
ja 0x40a24a
mov dword [ecx + 8], eax
sbb eax, 0xdc549b36
inc esi
jle 0x40a227
adc al, 0x7c
pop ss
mov edx, dword [esi]
add edx, 0xffffffa7
jecxz 0x40a230
inc dword [esi]
push es
inc eax
js 0x40a275
fcom dword [esi + 6]
mov dword [eax - 0x6c], 0
sbb dl, byte [esi]
mov ecx, dword [esi]
push 0
iretd
inc ecx
add al, 0xff
adc eax, 0x40c044
stosd dword es:[edi], eax
push ss
mov dword [edx + 8], eax
mov dh, 0xb7
push 0x405720
push 0x40a257
push esi
mov eax, dword [esi]
push eax
call fcn.00405577
pop edi
xor dword [ebx + 0x5e], 0xa88f5d
nop
nop
nop
nop
nop
nop
push edx
nop
or edx, dword [eax - 0x74aa6f70]
in al, dx
mov dh, 0x45
or byte [ebx + 0x584904f8], cl
loop 0x40a2a2
mov dword [eax - 0x63], 0xffffffda
add eax, 0xc
push eax
call dword [0x40c03c]
xor edx, dword [ebp + 0x408bc35d]
or byte [eax - 0x77], dl
adc eax, 0x40c074
mov eax, dword [eax + 8]
push eax
mov dword [0x40c074], edx
test eax, eax
jne 0x40a29e
push esi
mov ecx, dword [eax]
cwde
inc ebp
inc eax
add bh, bh
sbb eax, dword [ebp + 0x5e2c75d3]
pop ebp
sar edi, 1
salc
add eax, 0x490a2666
pop esi
pop ebp
ret

Function at 0x40abf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
sar byte [edx], 1
test edi, edi
cmp al, 0x7d
push 0x75
push cs
pop edi
pop esi
xor edx, dword [ebx + 0x5b]
mov ebp, dword [edi + 0x10c25d]
mov ebp, dword [0x14458bfc]
cmp dword [eax], 0
je 0x40ac05
mov eax, dword [edx + 0x66c91a08]
mov ecx, dword [esi]
in al, dx
invalid
Function at 0x8313bdb1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
and eax, 0x7fffffff
push ebx
push edi
mov dword [esp + 0xc], ecx
cmp eax, 1
jne 0x8313bddd
mov eax, dword [ebp + 0x10]
and dword [eax], 0
jmp 0x8313bf83
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x8313be41
cmp byte [esi + 0x78], 0
je 0x8313bdef
cmp eax, 4
je 0x8313be41
test dword [ebp + 8], 0x80000000
jne 0x8313bdd2
push 0x82fcf6a4
push 0xe
push 2
push ecx
push 0x12
pop ecx
call fcn.8314bc79
mov eax, dword [esi + 0xc]
lea ecx, [eax + 0xf4]
push ecx
push ecx
call fcn.83145b54
add esp, 8
cmp byte [eax + 0xa6], 0
je 0x8313be2e
call dword [0x82fcf038]
jmp 0x8313be37
push ecx
call fcn.83145b54
add esp, 4
mov eax, 0xc0000001
jmp 0x8313bf85
cmp eax, 2
jne 0x8313be4e
mov ebx, dword [edi + 0xc]
jmp 0x8313bf0e
cmp eax, 3
jne 0x8313be5b
mov ebx, dword [edi + 0x10]
jmp 0x8313bf0e
lea edi, [esp + 0x10]
mov ecx, esi
xor ebx, ebx
call fcn.831359bc
mov edi, dword [ebp + 0xc]
lea edx, [esi + 0xd4]
mov eax, dword [edx]
mov dword [esp + 0x14], eax
test edi, edi
jne 0x8313beac
lea ebx, [eax - 0x44]
test ebx, ebx
jne 0x8313bee0
cmp byte [esi + 0x78], 0
je 0x8313bee0
mov eax, dword [esi + 0x44]
cmp dword [eax + 0x2c], 0x1b
jne 0x8313bee0
mov eax, dword [esp + 0x14]
cmp eax, edx
je 0x8313bee0
lea ebx, [eax - 0x44]
test ebx, ebx
je 0x8313beb2
mov eax, dword [ebx + 0x3c]
jmp 0x8313beb4
cmp dword [eax - 8], edi
je 0x8313be7b
mov eax, dword [eax]
cmp eax, edx
jne 0x8313bea5
jmp 0x8313be82
xor eax, eax
push eax
push edi
push 0x82fcf6a4
push 0xf
push 3
push dword [esp + 0x20]
push 0x12
pop ecx
call fcn.831530f3
push 0x82fcf6a4
push 0x10
push 3
push dword [esp + 0x18]
push 0x12
pop ecx
call fcn.8314bc79
mov al, byte [esi + 0x10]
shr al, 7
test al, 1
je 0x8313befd
mov eax, dword [esi - 0x14]
test eax, eax
je 0x8313befd
push dword [esp + 0x10]
push eax
call fcn.83188117
jmp 0x8313bf0a
mov dl, byte [esp + 0x10]
lea ecx, [esi + 0x34]
call dword [0x82fcf2d8]
mov ecx, dword [esp + 0xc]
test ebx, ebx
jne 0x8313bf7e
test dword [ebp + 8], 0x80000000
jne 0x8313bf7e
push edi
push 0x82fcf6a4
push 0x11
push 2
push ecx
push 0x12
pop ecx
call fcn.83141e64
mov edi, dword [esp + 0xc]
push 0x82fcf6a4
push 0x12
push 2
push edi
push 0x12
pop ecx
call fcn.8314bc79
push 9
pop edx
mov eax, edi
call fcn.83139227
test al, al
je 0x8313bf7e
mov eax, dword [esi + 0xc]
lea ecx, [eax + 0xf4]
push ecx
push ecx
call fcn.83145b54
add esp, 8
cmp byte [eax + 0xa6], bl
je 0x8313bf75
call dword [0x82fcf038]
jmp 0x8313bf7e
push ecx
call fcn.83145b54
add esp, 4
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x8314a294
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push dword [ebx + 0x15c]
call fcn.83149518
test eax, eax
js 0x8314a3be
mov esi, dword [edi + 0x1c]
mov dword [ebp - 8], esi
cmp esi, 0x3c
jae 0x8314a2c9
mov al, byte [esi - 0x7d030a28]
mov byte [ebx + 0x7b], al
mov eax, dword [edi + 0x24]
mov dword [ebp - 4], eax
mov eax, edi
call fcn.8314a3c9
test al, al
je 0x8314a324
mov eax, dword [edi + 0x20]
xor esi, esi
lea ecx, [eax + 0x34]
test eax, eax
jne 0x8314a2e8
mov ecx, esi
cmp byte [edi + 0x80], 0
je 0x8314a2f4
lea esi, [edi + 0x70]
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x8314a300
add eax, 0x34
jmp 0x8314a305
mov eax, 0x82fd237c
lea edx, [ebp + 8]
push edx
push esi
push eax
movzx eax, byte [ebx + 0x78]
push eax
push dword [ebp - 4]
mov eax, dword [ebx + 0x40]
push dword [ebp - 8]
push ecx
push dword [eax + 0x3c]
call fcn.831a6e6c
jmp 0x8314a342
lea eax, [ebp + 8]
push eax
movzx eax, byte [ebx + 0x78]
push eax
push dword [ebp - 4]
mov eax, dword [ebx + 0x40]
push esi
xor esi, esi
push esi
push 0x1c
push dword [eax + 0x3c]
call dword [0x82fcf00c]
mov dword [ebp - 4], eax
test eax, eax
js 0x8314a3be
mov esi, dword [ebp + 8]
push 0x18
xor eax, eax
push eax
push eax
mov eax, dword [ebx + 0xc]
push dword [eax + 0x24]
add esi, 0xb8
push esi
call dword [0x82fcf224]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0xb4]
or eax, dword [edi + 0x10]
mov dword [esi + 0x18], eax
movzx eax, word [ebx + 6]
test ax, ax
jne 0x8314a381
xor eax, eax
jmp 0x8314a383
add eax, ebx
lea ecx, [eax + 0x18]
mov eax, dword [ebp + 8]
mov dword [eax + 0x28], ecx
cmp byte [ebx + 0x75], 0
mov eax, dword [ebp + 8]
mov dword [ebx + 0x44], eax
jne 0x8314a3bb
mov ecx, dword [edi + 0x18]
cmp ecx, 2
jne 0x8314a3a6
or dword [eax + 0x1c], 4
jmp 0x8314a3af
cmp ecx, 3
jne 0x8314a3af
or dword [eax + 0x1c], 0x10
mov eax, dword [edi + 0x18]
mov dword [ebx + 0x70], eax
mov al, byte [edi + 0xe]
mov byte [ebx + 0x76], al
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 4
Function at 0x414ac0
Capabilities:
Encode data using xor

Disassembly:
add esp, dword [esi]
xor eax, 0x817f539e
sbb dword [esi - 0x52], edx
mov eax, 0xd0ed9488
xor ah, byte [eax - 0x576255b9]
push eax
xor byte [eax - 0x58d1960e], 0xef
scasd eax, dword es:[edi]
xor byte [edx], bl
push esi
adc eax, 0xaf14b8d4
push 0xd0ee3668
mov al, 6
push eax
das
cmpsd dword [esi], dword es:[edi]
mov esi, 0xa9a72ff4
pop ss
sar byte [eax], 0x17
scasd eax, dword es:[edi]
cmp byte [ecx - 0x6ed0af30], cl
xchg ebp, eax
scasd eax, dword es:[edi]
rcr byte [eax + 0x56], 1
scasd eax, dword es:[edi]
rcr byte [eax + 0x56], 1
scasd eax, dword es:[edi]
rcr byte [eax + 0x56], 1
scasd eax, dword es:[edi]
rcr byte [eax - 0x57], 1
push eax
das
cmpsd dword [esi], dword es:[edi]
push esi
scasd eax, dword es:[edi]
rcr byte [eax - 0x57], 1
push eax
das
cmpsd dword [esi], dword es:[edi]
push esi
scasd eax, dword es:[edi]
rcr byte [eax + 0x56], 1
scasd eax, dword es:[edi]
rcr byte [eax + 0x56], 1
scasd eax, dword es:[edi]
rcr byte [eax + 0x56], 1
scasd eax, dword es:[edi]
push ebx
mov ah, 0x52
push 0x7ba7cd4
xchg edx, eax
pop eax
pop edi
push esp
lahf
xor byte [esi - 0x21], dl
xchg ecx, eax
pop eax
sbb al, ch
push 0x5695d480
jecxz 0x414ade
invalid

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x1000e200
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b683d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100fa2c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.1005a09d
mov edi, eax
add esp, 4
test edi, edi
je 0x1000e2a4
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1003fea6
add esp, 4
mov dword [edi + 4], eax
jmp 0x1000e2a6
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.10005380
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov ecx, dword [ebp - 0x10]
mov bl, al
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x1000e300
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x1000e300
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x1000e31c
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x1000e33f
cmp byte [ebp + 0xc], 0
je 0x1000e32b
push esi
call fcn.100404ba
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 8
test cl, 4
je 0x1000e34b
mov esi, str.ios_base::badbit_set
jmp 0x1000e35b
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.1000e390
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.100064a0
push 0x100f0d98
lea eax, [ebp - 0x28]
push eax
call fcn.1005c127
int3
Function at 0x10028480
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b979c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x100fa2c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
cmp dword [ebp + 8], 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
je 0x100284d9
lea ecx, [edi + 0x68]
mov dword [edi], 0x100e1bc8
call fcn.10028400
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [edi]
lea esi, [edi + 4]
push 0
push esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.1002b160
mov eax, dword [edi]
push 8
mov dword [ebp - 4], 2
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ecx + edi - 4], eax
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.1005a09d
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100285a9
xorps xmm0, xmm0
movq qword [ebx], xmm0
push 1
mov byte [ebp - 4], 3
call fcn.1003fea6
add esp, 4
mov dword [ebx + 4], eax
jmp 0x100285ab
xor ebx, ebx
mov ecx, esi
mov dword [esi + 0x34], ebx
call fcn.10029630
lea eax, [esi + 4]
mov dword [esi], vtable.std::basic_filebuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
mov byte [esi + 0x48], 0
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea edx, [esi + 0x14]
mov byte [esi + 0x3e], 0
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
lea ebx, [esi + 0x18]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x20], ebx
mov dword [ecx], 0
mov dword [ebx], 0
mov dword [eax], 0
mov eax, edi
mov dword [esi + 4], 0
mov dword [edx], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x4c], 0
mov ecx, dword [0x100fc370]
mov edx, dword [0x100fc374]
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], edx
mov dword [esi + 0x38], 0
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 0x1002b160
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b9b4d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x100fa2c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.1005a09d
mov edi, eax
add esp, 4
test edi, edi
je 0x1002b203
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1003fea6
add esp, 4
mov dword [edi + 4], eax
jmp 0x1002b205
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.10024fe0
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x30]
mov ecx, eax
call edx
mov ecx, dword [ebp - 0x10]
movzx edi, ax
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x1002b260
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x1002b260
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov word [esi + 0x40], di
jne 0x1002b27d
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x1002b29f
cmp byte [ebp + 0xc], 0
je 0x1002b28c
push esi
call fcn.100404ba
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x1002b2ab
mov esi, str.ios_base::badbit_set
jmp 0x1002b2bb
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.1000e390
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.100064a0
push 0x100f0d98
lea eax, [ebp - 0x28]
push eax
call fcn.1005c127
int3
Function at 0x1002bab0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b9bad
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100fa2c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov edi, dword [ebp + 0xc]
mov eax, edi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1002bae2
sub eax, esi
lea ecx, [edx + 0x134]
sar eax, 1
push eax
push edi
call fcn.10029da0
call fcn.10038b50
mov esi, eax
mov dword [ebp - 0x14], vtable.AutoLock.0
mov dword [ebp - 0x10], esi
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x1c]
mov dword [ebp - 4], 0
test eax, eax
je 0x1002bb2f
push edi
push 0xa
push dword [ebp + 8]
call eax
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
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 0x1002d470
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], edi
test eax, eax
jg 0x1002d49c
jl 0x1002d490
test ecx, ecx
jne 0x1002d49c
pop edi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
push esi
je 0x1002d54e
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
nop dword [eax]
mov ecx, ebx
call fcn.100080e0
mov esi, eax
mov eax, edx
mov dword [ebp - 0xc], eax
test eax, eax
jl 0x1002d503
jg 0x1002d4c8
test esi, esi
je 0x1002d503
mov ecx, dword [ebp - 4]
cmp ecx, eax
jg 0x1002d4dd
mov eax, dword [ebp - 8]
jl 0x1002d4d8
cmp eax, esi
jae 0x1002d4dd
mov esi, eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.1005c620
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
sub ecx, esi
sbb edx, dword [ebp - 0xc]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x1002d522
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [ebp - 4]
cmp eax, 0xffffffff
je 0x1002d538
mov ecx, dword [ebp - 8]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
test edx, edx
jg 0x1002d4b0
jl 0x1002d538
test ecx, ecx
jne 0x1002d4b0
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 8]
mov esi, dword [ebp + 0x10]
sbb esi, edx
mov edx, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x1002d58a
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x1002d58a
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [ebp - 4]
call fcn.1005c620
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x1002d5f7
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1002d5b0
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [ebp - 4]
cmp edi, 0xfff
jbe 0x1002d5e2
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.1008c48e
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x1002d5f7
cmp edi, eax
ja 0x1002d5c0
test edi, edi
je 0x1002d5f7
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.1008c48e
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop esi
pop edi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc