joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004dc9c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1004dd39
push ebx
push esi
call fcn.1004dc65
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1004c418
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1004dce6
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004dd38
push edi
push eax
call fcn.10042a78
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1004dd06
call fcn.10042a3e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004dd37
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1004c418
add esp, 0x20
test eax, eax
jne 0x1004dd25
push edi
call fcn.10042a3e
jmp 0x1004dd2d
push ebx
call fcn.10042a3e
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1004dd3c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1004dd4d
pop esi
ret
push ebx
push edi
push esi
call fcn.1004dc65
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10042a78
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1004dd75
push ebx
push esi
push edi
call fcn.1002f8c0
add esp, 0xc
push 0
call fcn.10042a3e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1004e4cf
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1004dfea

Function at 0x10051fb6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10043eb6
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10052025
cmp esi, dword [ebp - 4]
je 0x10052020
cmp dword [ebp + 0xc], 0
je 0x10052020
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10051ffd
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10051b08
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10052027
xor eax, eax
inc eax
jmp 0x10052027
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1005208c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1006d04c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10043eb6
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10043eb6
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10052103
cmp word [ecx], dx
je 0x10052103
mov eax, dword [0x1005e7c4]
push edi
dec eax
push eax
push 0x1005e6b0
call fcn.1005202b
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10052176
cmp word [eax], dx
je 0x10052176
mov eax, dword [edi]
test eax, eax
je 0x10052127
cmp word [eax], dx
je 0x10052127
lea eax, [ebp - 0x10]
push eax
call fcn.10051a0e
jmp 0x10052130
lea eax, [ebp - 0x10]
push eax
call fcn.10051aa9
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x100521a0
mov eax, dword [0x1005e6ac]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1005e3a0
call fcn.1005202b
add esp, 0xc
test al, al
je 0x100521a0
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1005216b
cmp word [eax], di
je 0x1005216b
lea eax, [ebp - 0x10]
push eax
call fcn.10051a0e
pop ecx
jmp 0x100521a2
lea eax, [ebp - 0x10]
push eax
call fcn.10051aa9
jmp 0x10052168
mov eax, dword [edi]
test eax, eax
je 0x1005218d
cmp word [eax], dx
je 0x1005218d
lea eax, [ebp - 0x10]
push eax
call fcn.100519c3
pop ecx
jmp 0x100521a0
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1005226b
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10051eb0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1005226b
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1005226b
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1005226b
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100521f8
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10046188
test ebx, ebx
je 0x10052266
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10046188
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1005226b
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1005226b
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10054f42
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1005226d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002e0f2
leave
ret
Function at 0x100553c5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10055341
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10055534
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10055534
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100554e9
jg 0x10055421
test eax, eax
je 0x100554df
push 1
push 0x1000
call fcn.10045a58
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10055444
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100554d6
push 0x8000
push ebx
call fcn.10052a4d
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1005546d
jg 0x10055468
cmp ecx, 0x1000
jb 0x1005546d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10048c81
add esp, 0x10
cmp eax, 0xffffffff
je 0x100554b2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10055468
jl 0x10055499
test ecx, ecx
jne 0x1005545a
push dword [ebp - 0xc]
push ebx
call fcn.10052a4d
push esi
call fcn.10042a3e
add esp, 0xc
xor ebx, ebx
jmp 0x10055542
cmp byte [edi + 0x24], 0
je 0x100554c9
cmp dword [edi + 0x20], 5
jne 0x100554c9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100554d4
mov ebx, dword [edi + 0x18]
jmp 0x100554d6
xor ebx, ebx
push esi
call fcn.10042a3e
pop ecx
jmp 0x10055542
test ecx, ecx
jg 0x100554ab
jl 0x100554e9
test eax, eax
jae 0x100554ab
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100490a3
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10055509
cmp byte [edi + 0x1c], 0
je 0x100554ab
jmp 0x1005553a
push ebx
call fcn.10052646
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100554ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10055542
cmp byte [edi + 0x1c], 0
je 0x1005553f
mov ebx, dword [edi + 0x18]
jmp 0x10055542
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100490a3
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10056040
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1005606d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1005606d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x8f01b8
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008f0308
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x8f01de
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8f01ca
add dl, dl
jne 0x8f01e9
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8f023c
xor eax, eax
add dl, dl
jne 0x8f01f6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8f02dd
add dl, dl
jne 0x8f0205
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8f0210
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8f021b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8f0226
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8f0232
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8f01d5
mov eax, 1
add dl, dl
jne 0x8f024a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8f0255
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8f0241
sub eax, ebx
mov ebx, 1
jne 0x8f0288
mov ecx, 1
add dl, dl
jne 0x8f026e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8f0279
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8f0265
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8f01d5
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8f029f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8f02aa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8f0296
cmp eax, 0x7d00
jae 0x8f02cd
cmp eax, 0x500
jb 0x8f02c8
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8f01d5
cmp eax, 0x7f
ja 0x8f02d0
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8f01d5
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8f02fe
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x8f01d5
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x4073e2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461134], 0
jne 0x407420
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4073f6
mov dword [ecx*4 + 0x461130], eax
inc ecx
cmp ecx, 0x100
jl 0x4073f1
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40744d
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461130]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40742e
not eax
pop ebp
ret 0xc
Function at 0xd5fadb
Capabilities:
Execute anti-debugging instructions

Disassembly:
push edi
ret
bswap esi
mov ebx, esp
cwd
dec esi
adc dx, cx
xchg edi, edx
xor esi, 0x189462d1
and di, 0x6016
btr di, 0x54
add esi, 0x41796c10
inc bp
add esi, eax
bsr ebp, ebx
mov ebp, esp
sub esp, 0xc0
sbb ch, ch
mov ebx, esi
shld edx, eax, 0x53
btr ecx, 0x89
mov ecx, 0
sub ebx, ecx
bt edi, edi
btc edi, 0x86
lea edi, [0x8074b7]
mov edx, dword [esi]
lea esi, [esi + 4]
clc
test bh, 0xef
xor edx, ebx
xor edx, 0x733e09e6
add edx, 0x66cb17f4
rol edx, 1
sub edx, 0x149f63dd
jmp 0xdff81b
dec edx
cmp cl, 0xeb
test di, bp
stc
xor ebx, edx
cmp edx, esi
cmc
add edi, edx
jmp 0x7ea1c6
push esi
cdq
jmp 0xe5920e
push edi
bswap di
push edx
jmp 0xd301f7
not edx
jmp 0x912f21
push eax
rdtsc
push ebx
mov si, 0x3227
push ecx
rdtsc
push ebp
cdq
cmova ecx, ecx
pushfd
not al
sbb ax, di
mov eax, 0
cmc
push eax
mov esi, dword [esp + 0x28]
dec edi
xor esi, 0x6a722702
jmp 0x80746b
Function at 0x10001430
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x1008c258
call fcn.10075840
mov edi, edx
push 0x1c
lea eax, [ebp - 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x34]
cmp word [ecx], ax
jne 0x100014a6
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x100014a6
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x100014a6
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x100014a6
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x100014af
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000172f
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x10094040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x10097238]
jmp 0x10001760
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10001773
mov esi, dword [esi + 4]
test esi, esi
jne 0x10001747
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100739ff
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10001766

Function at 0x100017d1
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10094040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
movzx eax, si
push edi
mov edi, 0x10000
test eax, eax
je 0x1000186f
sub esi, eax
add esi, edi
jmp 0x1000186f
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x1000180f
add esi, 0x8000000
jmp 0x1000186f
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10001873
mov ecx, dword [ebp - 0x14]
mov edi, 0x10000
cmp dword [ebp - 0x10], edi
jne 0x1000185d
cmp ecx, edi
jb 0x1000185d
push 0x40
push 0x3000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x10001875
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x677
je 0x10001873
jmp 0x100017f6
mov esi, dword [ebp - 0x20]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x1000186f
mov eax, edi
sub eax, ecx
add esi, eax
cmp esi, ebx
jb 0x100017fa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100739ff
leave
ret
Function at 0x10001884
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10094040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
add edx, 0xffff0000
mov ebx, ecx
push esi
movzx eax, dx
mov esi, edx
sub esi, eax
test eax, eax
push edi
cmove esi, edx
jmp 0x10001925
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x100018c2
sub esi, 0x8000000
jmp 0x10001925
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10001929
mov edi, 0x10000
cmp dword [ebp - 0x10], edi
jne 0x10001910
cmp dword [ebp - 0x14], edi
jb 0x10001910
push 0x40
push 0x3000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1000192b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x677
je 0x10001929
sub esi, edi
jmp 0x10001925
mov ecx, dword [ebp - 0x1c]
add ecx, 0xffff0000
mov esi, ecx
movzx eax, si
sub esi, eax
test eax, eax
cmove esi, ecx
cmp esi, ebx
ja 0x100018ad
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100739ff
leave
ret

Function at 0x1000193a
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
mov esi, ecx
push eax
lea edx, [ebp - 4]
call fcn.100014e8
mov edx, dword [0x10097230]
mov eax, dword [0x10097238]
pop ecx
test edx, edx
jne 0x1000196a
test eax, eax
je 0x1000197f
mov edx, eax
mov dword [0x10097230], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x1000197f
cmp ecx, dword [ebp - 4]
jb 0x1000197f
cmp ecx, dword [ebp - 8]
jbe 0x10001a13
mov edx, eax
mov dword [0x10097230], edx
test eax, eax
je 0x100019b3
mov ecx, eax
test eax, eax
je 0x100019a2
mov eax, dword [ecx + 8]
test eax, eax
je 0x100019a2
cmp eax, dword [ebp - 4]
jb 0x100019a2
cmp eax, dword [ebp - 8]
jbe 0x10001a13
mov edx, dword [edx + 4]
mov ecx, edx
mov dword [0x10097230], edx
mov eax, edx
test ecx, ecx
jne 0x1000198d
mov ecx, dword [ebp - 4]
and esi, 0xffff0000
mov edx, esi
call fcn.10001884
mov edx, eax
test edx, edx
jne 0x100019d9
mov edx, dword [ebp - 8]
mov ecx, esi
call fcn.100017d1
mov edx, eax
test edx, edx
je 0x10001a3a
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x10097238]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x10097230], edx
mov dword [0x10097238], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x10001a03
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, dword [ebp - 4]
jb 0x10001a3a
cmp esi, dword [ebp - 8]
ja 0x10001a3a
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, esi
jmp 0x10001a3c
xor eax, eax
pop esi
leave
ret
Function at 0x10001b04
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x10094040]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1009722c], eax
je 0x10001b2b
mov eax, 0x10dd
jmp 0x10001bb9
push ebx
push esi
push edi
mov edi, dword [0x10097240]
xor ebx, ebx
test edi, edi
je 0x10001b78
lea eax, [ebp - 8]
push eax
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
movzx eax, byte [eax + 0x36]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [edi + 4], ebx
jne 0x10001b66
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x10001b66
call fcn.10001a3f
mov dword [edi + 0x10], ebx
mov esi, dword [edi]
push 0x18
push edi
call fcn.10073a3d
mov edi, esi
pop ecx
pop ecx
test esi, esi
jne 0x10001b3a
mov dword [0x10097240], ebx
call fcn.1000177b
mov edi, dword [0x1009723c]
test edi, edi
je 0x10001ba8
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [edi]
push 8
push edi
call fcn.10073a3d
mov edi, esi
pop ecx
pop ecx
test esi, esi
jne 0x10001b8d
pop edi
pop esi
mov dword [0x1009723c], ebx
xor eax, eax
mov dword [0x1009722c], ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100739ff
leave
ret
Function at 0x10001e7e
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x10097228]
push esi
mov esi, ecx
test eax, eax
jne 0x10001ee5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp esi, eax
jne 0x10001e98
xor eax, eax
pop esi
ret
push edi
push 8
call fcn.10073a0d
pop ecx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10001ed2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 8
push edi
call fcn.10073a3d
and dword [0x10097234], 0
mov eax, esi
pop ecx
pop ecx
mov dword [0x10097228], esi
jmp 0x10001ee4
mov eax, dword [0x1009723c]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], esi
mov dword [0x1009723c], edi
pop edi
pop esi
ret
Function at 0x10002642
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x10002665
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
jmp 0x10002724
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x1000268b
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x10002690
xor ecx, ecx
mov dword [ebp - 8], eax
mov eax, ecx
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x100026f0
jg 0x100026a5
test esi, esi
je 0x100026f0
test ecx, ecx
jl 0x100026eb
jg 0x100026af
test eax, eax
je 0x100026eb
cmp edi, ecx
jg 0x100026c1
jl 0x100026b9
cmp esi, eax
jae 0x100026c1
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 4]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x100026f3
mov ecx, dword [ebp + 8]
jmp 0x100026fd
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10002718
jg 0x100026fd
test esi, esi
je 0x10002718
cmp dword [ebx + 0x4c], 0
je 0x10002718
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10002729
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
test esi, esi
jg 0x10002753
jl 0x1000274a
test ebx, ebx
jne 0x10002753
xor eax, eax
xor edx, edx
jmp 0x1000280f
cmp dword [ecx + 0x38], 0
je 0x10002767
push esi
push ebx
push edx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
jmp 0x1000280f
mov eax, dword [ecx + 0x1c]
push edi
mov edi, ebx
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x100027a7
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x100027a7
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push dword [ebp - 0xc]
push edx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 8]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
cmp dword [ecx + 0x4c], 0
je 0x10002805
call fcn.1000338f
mov edx, dword [ebp - 4]
mov eax, edi
cmp edi, 0xfff
jbe 0x100027ef
push dword [ecx + 0x4c]
push 0xfff
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, dword [ebp - 4]
mov ecx, 0xfff
add edx, eax
add esp, 0x10
sub edi, eax
mov dword [ebp - 4], edx
cmp eax, ecx
jne 0x10002805
cmp edi, ecx
mov ecx, dword [ebp - 8]
ja 0x100027bf
mov eax, edi
test eax, eax
je 0x10002805
push dword [ecx + 0x4c]
push edi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebx
leave
ret 0xc