joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45994c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x459963
add esp, 0xfffffff0
call fcn.00403bc8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d84c
mov eax, dword [0x472b80]
cmp word [eax + 2], 0
jne 0x45998b
mov eax, dword [0x472b80]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045b48c
mov eax, dword [0x472c3c]
cmp word [eax + 2], 0
jne 0x4599a5
mov eax, dword [0x472c3c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045b698
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415648]
call fcn.00403874
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415648]
call fcn.00403874
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x415648]
call fcn.00403874
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x421e20]
call fcn.00429458
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x459b5c
mov eax, dword [0x472a88]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042982c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45bd58
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x472a88]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d0ac
test eax, eax
je 0x459aac
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409188
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d0e0
test eax, eax
je 0x459ac0
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404940
mov byte [ebx + 0xd4], 0
push ebx
push 0x45afec
call fcn.0041e9c8
mov dword [ebx + 0xc8], eax
mov eax, dword [0x472954]
cmp byte [eax], 0
jne 0x459b11
mov eax, ebx
call fcn.00459ca0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0045bf34
mov eax, ebx
call fcn.0045ca94
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x459b51
call fcn.00403c20
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x459f20
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x476580]
cmp dword [eax + 0x30], 0
je 0x459fca
cmp dword [ebx + 0x94], 0
jne 0x459fc4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x459eb0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x459fc4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x459f8a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x459fc4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004179f4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x459f99
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45ace4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45ad19
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004047c0
jmp 0x45ad26
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404724
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45c118
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45c186
mov eax, esi
call fcn.0044683c
test al, al
je 0x45c186
mov eax, dword [ebx + 0x84]
call fcn.0044649c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45c186
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45c17a
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044649c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043e8c8
jmp 0x45c186
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045bf54
pop esi
pop ebx
ret
Function at 0x4696b0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x4075a8]
call fcn.004051b0
xor eax, eax
push ebp
push 0x469851
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x472818], 0
jne 0x46970b
mov ecx, dword [0x472964]
mov dl, 1
mov eax, dword [0x407938]
call fcn.0040c284
call fcn.00404118
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.004031e0
mov eax, ebx
call fcn.00405010
mov dword [ebp - 0x24], eax
mov esi, 0x469860
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.004061c0
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.00405020
test eax, eax
jle 0x4697f4
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4697e0
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00404940
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x469786
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.00404958
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x46979c
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.00404958
mov eax, dword [ebp - 0x54]
call fcn.00404b94
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00404940
mov eax, dword [ebp - 0x58]
call fcn.00404b94
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x4697e2
xor eax, eax
test al, al
je 0x4697ed
mov ebx, 0x15
jmp 0x4697f9
mov ebx, 0x10
jmp 0x4697f9
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x472818]
call fcn.00469534
mov eax, dword [ebp - 4]
call fcn.00469534
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.004061d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469858
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.004046f4
lea eax, [ebp - 0xc]
mov edx, dword [0x4075a8]
call fcn.00405280
ret
Function at 0x412910
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x10000]
push edi
or ebp, 0xffffffff
jmp 0x412932
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x412939
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x412928
mov eax, 1
add ebx, ebx
jne 0x41294b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x412940
jne 0x41295c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412940
xor ecx, ecx
sub eax, 3
jb 0x412970
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4129e2
mov ebp, eax
add ebx, ebx
jne 0x41297b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x412988
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4129ac
inc ecx
add ebx, ebx
jne 0x412998
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41298d
jne 0x4129a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41298d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4129cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4129bd
jmp 0x41292e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4129cc
add edi, ecx
jmp 0x41292e
pop esi
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x412a34
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4129e9
mov ecx, edi
jns 0x412a18
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12068]
or eax, eax
je 0x412a2e
mov dword [ebx], eax
add ebx, 4
jmp 0x412a06
call dword [esi + 0x12070]
mov ebp, dword [esi + 0x1206c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x412a68
sub esp, 0xffffff80
jmp 0x40fcec

Function at 0x408938
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
add ebx, 0x2cc31a8a
mov edi, 0xbb8f4078
call fcn.0040896c
xor dword [edx], esi
inc ebx
inc ebx
add edx, 1
mov edi, edi
cmp edx, eax
jne fcn.00408938
add edi, 1
ret
Function at 0x4053e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x434054]
xor eax, esp
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 8]
push esi
push edi
push str.Advapi32.dll
mov dword [esp + 0x38], edx
mov edi, ecx
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x40542b
push str.SystemFunction036
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40542b
push 0x20
lea ecx, [esp + 0x40]
push ecx
call eax
push 0
call fcn.00412d9c
add esp, 4
push eax
call fcn.004121e7
add esp, 4
xor esi, esi
call fcn.004121c6
and eax, 0x800000ff
jns 0x405453
dec eax
or eax, 0xffffff00
inc eax
mov byte [esp + esi + 0x3e], al
inc esi
cmp esi, 0xe
jb 0x405440
cmp dword [edi + 0x14], 0x10
mov eax, dword [edi + 0x10]
jb 0x405468
mov edi, dword [edi]
lea ecx, [esp + 0x4c]
push ecx
push eax
push edi
call fcn.0040ce50
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x3c]
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
movaps xmmword [esp + 0x20], xmm0
push eax
mov byte [esp + 0x14], 9
call fcn.0040c140
add esp, 4
mov dword [esp + 0x10], 0xfae9b828
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0x7ea68917
lea edx, [esp + 0x3c]
mov dword [esp + 0x18], 0x1947bf48
lea ecx, [esp + 0x5c]
mov dword [esp + 0x1c], 0x651ada40
push eax
mov dword [esp + 0x24], 0xac7c0ade
mov dword [esp + 0x28], 0x94e82d58
mov dword [esp + 0x2c], 0xd3996e8c
mov dword [esp + 0x30], 0x4872d9dd
call fcn.0040c140
add esp, 4
lea eax, [esp + 0x5c]
push dword [esp + 0x38]
push 0x20
push eax
call fcn.0040c520
mov ecx, dword [esp + 0x88]
add esp, 0xc
pop edi
pop esi
xor ecx, esp
call fcn.0040e07d
mov esp, ebp
pop ebp
ret
Function at 0x4061e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x4062c7
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x4062b6
jg 0x406220
test edx, edx
je 0x4062b6
nop dword [eax]
call fcn.00407b90
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x406273
jg 0x406237
test esi, esi
je 0x406273
cmp ebx, eax
jg 0x406247
jl 0x406241
cmp edi, esi
jae 0x406247
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
push esi
push dword [esp + 0x14]
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.0040f4b0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x40629a
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x4062b0
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x406220
jl 0x4062b0
test edi, edi
jne 0x406220
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x4062e9
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x4062eb
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x406369
jg 0x4062fe
test esi, esi
je 0x406369
test eax, eax
jl 0x40634d
jg 0x406308
test ebx, ebx
je 0x40634d
cmp edi, eax
jg 0x406318
jl 0x406312
cmp esi, ebx
jae 0x406318
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.0040f4b0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x406369
jg 0x406350
test esi, esi
je 0x406369
jmp 0x406350
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x406369
push eax
push esi
push 1
push edx
call fcn.00412b31
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406380
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x4063b2
jl 0x4063a5
test ecx, ecx
jne 0x4063b2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x406472
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00407bb0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40641e
jg 0x4063dd
test esi, esi
je 0x40641e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x4063f5
mov eax, dword [esp + 0x10]
jl 0x4063ef
cmp eax, esi
jae 0x4063f5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0040f4b0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x40643f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x40645b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x4063c4
jl 0x40645b
test ecx, ecx
jne 0x4063c4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x4064ab
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x4064ab
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.0040f4b0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
add dword [esp + 0xc], esi
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x40651b
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x4064d1
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x406504
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.004131a3
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x40652f
cmp edi, eax
ja 0x4064e0
test ecx, ecx
je 0x40651b
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.004131a3
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4068a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x434054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4068d0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e07d
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40690c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40690c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e07d
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4069f6
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x406934
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x406967
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.004120bc
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e07d
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x25], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x4069c9
sub eax, 1
je 0x4069c9
sub eax, 2
jne 0x4069f6
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.004120bc
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e07d
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4069e6
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00412b31
add esp, 0x10
cmp edi, eax
jne 0x4069f6
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x4068f7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e07d
mov esp, ebp
pop ebp
ret 4
Function at 0x4078a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x434054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40795c
cmp byte [esi + 0x3d], 0
je 0x40795c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40794a
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x407912
sub eax, 1
je 0x407916
sub eax, 2
jne 0x40794a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e07d
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x407933
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00412b31
add esp, 0x10
cmp edi, eax
jne 0x40794a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e07d
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e07d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0040e07d
mov esp, ebp
pop ebp
ret

Function at 0x407a80
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425e10
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x434054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
push 8
mov dword [ebp - 0x14], edi
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040e090
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0040d6f7
mov dword [esi + 4], eax
lea ebx, [edi + 4]
mov eax, dword [ebp - 0x10]
lea edx, [edi + 8]
mov dword [ebp - 0x18], ebx
lea ecx, [eax + 0x18]
mov ebx, dword [ebp - 0x10]
add esp, 8
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x10]
mov dword [edi + 0x34], esi
add edi, 0x14
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
lea esi, [eax + 0x24]
mov byte [ebx + 0x48], 0
add eax, 0x28
mov byte [ebx + 0x3d], 0
mov ebx, dword [ebp - 0x18]
mov dword [edx + 0xc], ebx
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x2c], esi
mov ebx, dword [ebp - 0x18]
mov dword [edx], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [esi], 0
mov dword [eax + 0x4c], 0
mov ecx, dword [0x435de8]
mov edx, dword [0x435dec]
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
mov dword [eax + 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