joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f030
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00461900
mov eax, dword [0x4baba4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0046955b
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x46f163
push 2
push esi
push dword [ebp + 8]
call fcn.0046955b
add esp, 0xc
cmp eax, ebx
je 0x46f163
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x46f103
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00463460
push 0x8000
push dword [ebp + 8]
call fcn.0046f569
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x46f0b9
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00468f25
add esp, 0xc
cmp eax, 0xffffffff
je 0x46f0d9
sub edi, eax
test edi, edi
jg 0x46f0b1
jmp 0x46f0f1
call fcn.00464af1
cmp dword [eax], 5
jne 0x46f0ee
call fcn.00464ae8
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0046f569
pop ecx
pop ecx
jmp 0x46f14b
jge 0x46f14b
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0046955b
push dword [ebp + 8]
call fcn.0046db04
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x46f14b
call fcn.00464ae8
mov dword [eax], 0xd
call fcn.00464af1
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0046955b
add esp, 0xc
mov eax, esi
pop edi
jmp 0x46f165
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0046135e
leave
ret
Function at 0x46fa23
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x46fa3c
or eax, 0xffffffff
jmp 0x46fa9d
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x46fa99
push 0x3d
push esi
call fcn.0046fc23
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x46fa99
cmp esi, eax
je 0x46fa99
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x4c22f8]
sete cl
cmp eax, dword [0x4c22fc]
mov dword [ebp - 8], ecx
jne 0x46fa7f
mov edi, eax
call fcn.0046f9c2
mov dword [0x4c22f8], eax
cmp eax, ebx
jne 0x46fad8
cmp dword [ebp + 0xc], ebx
je 0x46faa1
cmp dword [0x4c2300], ebx
je 0x46faa1
call fcn.0046f1bf
test eax, eax
je 0x46fad8
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x46faaa
xor eax, eax
jmp 0x46fa9c
push 4
call fcn.0046118a
cmp eax, ebx
pop ecx
mov dword [0x4c22f8], eax
je 0x46fa99
mov dword [eax], ebx
cmp dword [0x4c2300], ebx
jne 0x46fad8
push 4
call fcn.0046118a
cmp eax, ebx
pop ecx
mov dword [0x4c2300], eax
je 0x46fa99
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x4c22f8]
call fcn.0046f975
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x46fb39
cmp dword [esi], ebx
je 0x46fb39
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0046119c
cmp dword [ebp - 8], ebx
pop ecx
jne 0x46fb1c
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x46fb7a
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x46fb13
mov eax, edi
shl eax, 2
push eax
push dword [0x4c22f8]
call fcn.004683f8
cmp eax, ebx
pop ecx
pop ecx
je 0x46fb7a
jmp 0x46fb75
cmp dword [ebp - 8], ebx
jne 0x46fbe5
cmp edi, ebx
jge 0x46fb48
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4c22f8]
call fcn.004683f8
cmp eax, ebx
pop ecx
pop ecx
je 0x46fa99
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x4c22f8], eax
cmp dword [ebp + 0xc], ebx
je 0x46fbcf
push dword [ebp - 4]
call fcn.00463370
inc eax
inc eax
push eax
call fcn.0046118a
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x46fbcf
push dword [ebp - 4]
push esi
call fcn.00462f30
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x46fbc8
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0046119c
pop ecx
cmp dword [ebp - 8], ebx
je 0x46fbdd
push dword [ebp - 4]
call fcn.0046119c
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x46fa9c
push dword [ebp - 4]
call fcn.0046119c
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x46faa6
Function at 0x4715f0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x471610
mov edx, dword [esp + 8]
mov dword [ecx + 0x44], edx
mov eax, dword [eax + 0x58]
push 1
add eax, 4
push eax
call fcn.0048524c
mov ecx, dword [eax + 0x10]
push eax
call dword [ecx + 0x28]
add esp, 4
push 1
call fcn.00468349
int3

Function at 0x471b40
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
mov ebp, edi
sub ebp, ecx
cmp eax, 6
je 0x471b60
call fcn.00471ab0
mov edi, eax
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x24]
add eax, 0x18
cmp eax, ecx
jne 0x471ba4
mov ax, word [esi + 0x2c]
cmp ax, 0x1000
jbe 0x471b7f
push 5
push esi
call fcn.004715f0
movzx ecx, ax
shl ecx, 1
push ecx
push esi
call fcn.00471760
add esp, 8
cmp word [esi + 0x2c], 0x1000
jbe 0x471ba4
push str.stack_overflow
push esi
call fcn.00477810
add esp, 8
mov eax, dword [edi + 8]
mov cl, byte [eax + 6]
test cl, cl
jne 0x471c67
push ebx
mov ebx, dword [eax + 0xc]
mov al, byte [ebx + 0x46]
test al, al
je 0x471bcd
movzx eax, byte [ebx + 0x45]
lea edx, [edi + 0x10]
push eax
call fcn.00471970
add esp, 4
movzx eax, byte [ebx + 0x47]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, edx
mov edx, eax
shl edx, 4
cmp ecx, edx
jg 0x471bec
push eax
push esi
call fcn.004717d0
add esp, 8
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x1c]
add eax, 0x18
mov dword [esi + 0x14], eax
lea edx, [ecx + ebp + 0x10]
mov dword [eax], edx
mov ecx, dword [esi + 0x14]
mov ecx, dword [ecx]
mov dword [esi + 0xc], ecx
movzx edx, byte [ebx + 0x47]
shl edx, 4
add edx, ecx
mov dword [eax + 4], edx
mov ecx, dword [ebx + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [eax + 4]
mov dword [eax + 0x14], 0
mov dword [eax + 8], 8
mov edx, dword [esi + 8]
cmp edx, ecx
jae 0x471c5a
mov ecx, 0x10
jmp 0x471c40
mov edx, dword [esi + 8]
mov dword [edx], 0
mov ebx, dword [esi + 8]
add ebx, ecx
mov dword [esi + 8], ebx
mov edi, dword [eax + 4]
mov edx, ebx
cmp edx, edi
jb 0x471c40
mov eax, dword [eax + 4]
pop ebx
pop edi
mov dword [esi + 8], eax
pop esi
xor eax, eax
pop ebp
ret
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 8]
cmp ecx, 0x140
jg 0x471c80
push 0x14
push esi
call fcn.004717d0
add esp, 8
mov edx, dword [esi + 0x14]
add edx, 0x18
mov dword [esi + 0x14], edx
mov eax, edx
mov edx, dword [esi + 0x1c]
lea ecx, [edx + ebp + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x14]
mov ecx, dword [edx]
mov edx, dword [esi + 8]
mov dword [esi + 0xc], ecx
add edx, 0x140
mov ecx, 1
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
test byte [esi + 0x30], cl
je 0x471cc2
push 0xffffffffffffffff
push 0
push esi
call fcn.00471890
add esp, 0xc
mov eax, dword [esi + 0xc]
mov ecx, dword [eax - 8]
push esi
call dword [ecx + 0xc]
add esp, 4
shl eax, 4
mov edx, eax
mov eax, dword [esi + 8]
pop edi
pop esi
sub eax, edx
pop ebp
ret
Function at 0x4754c0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
mov ecx, ebx
shr ecx, 5
push ebp
push esi
mov esi, dword [esp + 0x14]
inc ecx
cmp ebx, ecx
push edi
mov edx, ebx
mov eax, ebx
jb 0x4754fb
lea ebx, [ebx]
movzx edi, byte [esi + eax - 1]
mov ebp, edx
shl ebp, 5
add edi, ebp
mov ebp, edx
shr ebp, 2
add edi, ebp
sub eax, ecx
xor edx, edi
cmp eax, ecx
jae 0x4754e0
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x47552b
cmp dword [eax + 0xc], ebx
jne 0x475525
mov ecx, ebx
lea edi, [eax + 0x10]
xor ebp, ebp
repe cmpsb byte [esi], byte es:[edi]
je 0x47553c
mov esi, dword [esp + 0x18]
mov eax, dword [eax]
test eax, eax
jne 0x475511
mov ecx, dword [esp + 0x14]
push ebx
push esi
push ecx
mov eax, edx
call fcn.00475420
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x485226
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00464afa
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x485249
test byte [esp + 8], 2
je 0x485249
call fcn.00464ae8
mov dword [eax], 0xd
call fcn.00464af1
mov dword [eax], 5
jmp 0x485222
xor eax, eax
ret
Function at 0x48c46a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
je 0x48c495
cmp eax, 1
je 0x48c495
jle 0x48c49d
cmp eax, 3
jle 0x48c495
cmp eax, 4
jne 0x48c49d
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x48c4c8
call fcn.00464ae8
mov dword [eax], 0x16
call fcn.00464af1
mov dword [eax], ebx
or eax, 0xffffffff
jmp 0x48c641
inc eax
cmp byte [eax], bl
jne 0x48c4b7
lea ecx, [eax + 1]
cmp byte [ecx], bl
je 0x48c4c8
mov byte [eax], 0x20
mov eax, ecx
cmp byte [eax], bl
jne 0x48c4b7
push esi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.00463460
mov dword [ebp - 0x68], esi
mov esi, dword [0x4c292c]
add esp, 0xc
cmp esi, ebx
je 0x48c50e
lea ecx, [esi - 1]
mov edx, ecx
mov eax, ecx
sar edx, 5
mov edx, dword [edx*4 + 0x4c2940]
and eax, 0x1f
lea eax, [eax + eax*8]
cmp byte [edx + eax*4 + 4], bl
jne 0x48c50e
dec esi
dec ecx
cmp esi, ebx
jne 0x48c4ee
lea eax, [esi + esi*4 + 4]
mov word [ebp - 0x36], ax
push edi
movzx eax, ax
push 1
push eax
call fcn.0046cb43
cmp esi, ebx
mov dword [ebp - 0x34], eax
pop ecx
mov dword [eax], esi
mov eax, dword [ebp - 0x34]
pop ecx
mov dword [ebp - 8], ebx
lea ecx, [eax + 4]
lea edx, [eax + esi + 4]
jle 0x48c575
mov eax, dword [ebp - 8]
mov edi, eax
sar edi, 5
mov edi, dword [edi*4 + 0x4c2940]
and eax, 0x1f
lea eax, [eax + eax*8]
lea edi, [edi + eax*4]
mov al, byte [edi + 4]
test al, 0x10
jne 0x48c561
mov byte [ecx], al
mov eax, dword [edi]
mov dword [edx], eax
jmp 0x48c566
mov byte [ecx], bl
or dword [edx], 0xffffffff
inc dword [ebp - 8]
inc ecx
add edx, 4
cmp dword [ebp - 8], esi
jl 0x48c53a
mov eax, dword [ebp - 0x34]
cmp byte [ebp - 1], bl
je 0x48c5a6
lea ecx, [eax + 4]
xor edx, edx
lea eax, [eax + esi + 4]
cmp esi, 3
jge 0x48c58c
mov edi, esi
jmp 0x48c58f
push 3
pop edi
cmp edx, edi
jge 0x48c59f
mov byte [ecx], bl
or dword [eax], 0xffffffff
inc edx
inc ecx
add eax, 4
jmp 0x48c583
mov dword [ebp - 0xc], 8
call fcn.00464ae8
mov dword [eax], ebx
call fcn.00464af1
mov dword [eax], ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0xc]
push 1
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x34]
mov edi, eax
call fcn.0046119c
cmp esi, ebx
pop ecx
jne 0x48c5f6
push edi
call fcn.00464afa
pop ecx
or eax, 0xffffffff
jmp 0x48c63f
cmp dword [ebp + 8], 2
jne 0x48c602
push ebx
call fcn.0046835a
cmp dword [ebp + 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x48c62f
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x24]
call esi
jmp 0x48c638
cmp dword [ebp + 8], 4
je 0x48c628
mov ebx, dword [ebp - 0x24]
push dword [ebp - 0x20]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401750
Capabilities:
Terminate process

Disassembly:
adc dword [ebx + 0x43458bec], ecx
mov ecx, dword [0x40d9e0]
push eax
add ecx, 0x40
push 0x40d274
push ecx
call dword [0xbec180]
mov eax, dword [0x4102ac]
add esp, 0xc
test eax, eax
je 0x401787
cmp ebp, dword [eax + 0x54]
rol byte [eax], cl
call dword [0xfc40c1f5]
add esp, 8
push 1
call dword [sym.imp.MSVCRT.dll_exit]
nop
push ebp
add ch, ah
sub esp, 0xae00badd
mov eax, dword [0x410278]
test eax, eax
out dx, eax
inc edi
inc eax
mov al, byte [0xcc14b900]
ja 0x4017e6
inc ecx
arpl word [ecx], si
call 0x40cf50
mov dx, di
push cs
inc edi
inc ecx
add bl, ch
adc al, 0x8b
invalid
inc ecx
add byte [ebp + 0x5d7557c0], al
je 0x401804
add byte [eax], bl
inc ecx
add byte [edx + 0x68], dl
cwde
inc eax
add bh, bh
mov ax, word [0x410286]
add esp, 8
test eax, eax
je 0x40181c
sal byte [ebp + edx - 0x5f], 0x74
pop ss
inc ecx
add byte [ecx + 0x413c4068], ah
mov eax, dword [0x411774]
mov eax, dword [0x413c4068]
jecxz 0x40184c
test ah, dl
inc eax
add bh, bh
salc
add esp, 0xc
mov ah, 0x14
ror byte [edx], 1
add byte [ebp - 0x2b7f4740], al
inc eax
add byte [ebp + 5], dh
ret 0xd47c
sbb al, dl
inc eax
add byte [ebx + 0x35], dl
add ecx, eax
inc eax
add byte [eax + 0x60], ch
or byte [eax], al
add byte [edx - 1], dl
scasb al, byte es:[edi]
cmp dh, byte [eax - 0x5effbef5]
adc al, dl
inc eax
add byte [edx + 0x20], ch
push eax
call esi
mov ecx, dword [0x414082]
mov edx, dword [0x40d041]
add esp, 0x10
mov dword [0x410b67], eax
push 0xffffffffffffffd5
push ecx
cmp dword [eax - 8], ebp
daa
add byte [eax], 0xe8
add dword [edi], 0x74c0a100
push cs
push eax
push es
push eax
aam 0x40
add al, ch
mov byte [0xaf8900ec], al
les ecx, [eax]
mov eax, dword [0xe741027c]
test dword [edx - 0x535eca8b], edi
or eax, dword [ecx]
mov ecx, dword [0x410b9c]
pushfd
or eax, dword [ecx]
mov edx, dword [0xf84048]
push 0
push 0x61d19c
push eax
mov eax, dword [0x18404c]
jb 0x401932
dec eax
aam 0x40
dec edx
push edx
push eax
call 0x40d26b
add esp, 0xffffffee
mov dword [0x3741b944], eax
jmp 0x4018b1
add esp, 0x10
mov dword [0x414048], eax
mov ecx, dword [0x410260]
test dword [ebx + 0x323d63c0], esi
push 0xbe0a413b
cld
rol dword [eax], cl
test edx, edx
jne 0x401958
or eax, 0x4102d4
mov edx, dword [0x41021f]
test edx, edx
mov edx, dword [ecx]
inc eax
inc eax
inc ecx
sbb esi, dword [ebp + 6]
mov edx, dword [0xaa4117e4]
test dword [ecx + edi*4 - 8], edx
rol dword [eax], cl
invalid

Function at 0x405113
Capabilities:
Encode data using xor

Disassembly:
pop esi
push esi
xor dword [esi], ebx
lodsd eax, dword [esi]
add ebx, eax
test eax, eax
jne 0x405115
ret
Function at 0x100014c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004d285
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x10085018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov ecx, dword [0x1008bce4]
test ecx, ecx
je 0x10001512
mov eax, dword [ecx]
cmp ecx, 0x1008bcc0
mov edx, dword [eax + 0x10]
setne al
push eax
call edx
mov dword [0x1008bce4], 0
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x10001555
lea eax, [ebp + 8]
cmp ecx, eax
jne 0x10001548
mov eax, dword [ecx]
push 0x1008bcc0
call dword [eax + 4]
mov ecx, dword [ebp + 0x2c]
mov dword [0x1008bce4], eax
test ecx, ecx
je 0x10001555
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp + 8]
cmp ecx, eax
setne al
push eax
call edx
jmp 0x1000154e
mov dword [0x1008bce4], ecx
mov dword [ebp + 0x2c], 0
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
push 0x14
mov byte [ebp - 4], 1
call fcn.1002c24d
mov esi, eax
mov dword [esi], 1
mov dword [esi + 4], 2
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [ebp - 0x18], esi
mov eax, 1
lock xadd dword [esi], eax
mov dword [ebp - 0x10], esi
push 8
mov byte [ebp - 4], 3
call fcn.1002c24d
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
mov dword [eax], esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
push ecx
push 0
push eax
push 0x10001700
push 0
push 0
call fcn.10030f7c
add esp, 0x20
mov dword [ebp - 0x20], eax
test eax, eax
je 0x1000165e
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x1000166c
push ecx
push eax
call fcn.1002ab26
add esp, 8
test eax, eax
jne 0x10001673
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x10001636
lea eax, [edx + 4]
mov ecx, 0xfffffffe
lock xadd dword [eax], ecx
and ecx, 0xfffffffe
cmp ecx, 2
jne 0x10001630
or eax, 0xffffffff
lock xadd dword [edx], eax
cmp eax, 1
jne 0x10001630
push 0x14
push edx
call fcn.1002c23a
add esp, 8
cmp dword [ebp - 0x1c], 0
jne 0x10001679
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x1000164e
mov edx, dword [ecx]
lea eax, [ebp + 8]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 6
mov dword [ebp - 0x1c], 0
call fcn.1002ac0d
push 1
call fcn.1002ac0d
push eax
call fcn.1002abe0
call fcn.10030de4
int3
Function at 0x10003ca0
Capabilities:
Set console window title

Disassembly:
sub esp, 0x34
mov eax, dword [0x10085018]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
push str.Librarycore
mov esi, ecx
mov edi, 0x84e590
push 0xffffd8f0
push esi
call edi
add esp, 0xc
mov ebx, 0x84deb0
push 0xffffffffffffffff
push esi
call ebx
add esp, 8
cmp eax, 5
je 0x10003ce1
push 0xfffffffffffffffd
jmp 0x10003e27
push str.OnUpdate
push 0xffffffffffffffff
push esi
call edi
add esp, 0xc
push 0xffffffffffffffff
push esi
call ebx
add esp, 8
cmp eax, 6
je 0x10003d02
push 0xfffffffffffffffc
jmp 0x10003e27
push 0xfffffffffffffffe
push esi
mov eax, 0x84dc50
call eax
push esi
mov eax, 0x84dbd0
call eax
add esp, 0xc
dec eax
push eax
push esi
mov eax, 0x84dcc0
call eax
push 0
push 0
push 1
push esi
mov eax, 0x84ec50
call eax
add esp, 0x18
test eax, eax
je 0x10003e32
push 0
push 0xffffffffffffffff
push esi
mov eax, 0x84e0e0
call eax
add esp, 0xc
mov edi, eax
cmp byte [0x1008bc81], 0
jne 0x10003d89
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 1
call fcn.10032e6c
add esp, 4
push eax
push 0x1007b768
push str.CONOUT_
call fcn.10032d7e
add esp, 0xc
push str.Library
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov byte [0x1008bc81], 1
sub esp, 8
mov dword [esp + 0x24], str.OnUpdate
mov eax, esp
mov dword [esp + 0x1c], 0xb0000000
mov dword [esp + 0x28], edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], 0xb0000004
sub esp, 8
mov dword [eax + 4], ecx
lea ecx, [esp + 0x34]
mov dword [eax], 2
mov eax, esp
mov dword [eax], str.callback___fail:_
mov dword [eax + 4], 0x16
call fcn.100052a0
add esp, 0x10
cmp dword [eax + 0x14], 0x10
jb 0x10003ddd
mov eax, dword [eax]
push eax
call fcn.100330cc
mov ecx, dword [esp + 0x3c]
add esp, 4
cmp ecx, 0x10
jb 0x10003e18
mov edx, dword [esp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10003e0e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003e44
push ecx
push edx
call fcn.1002c23a
add esp, 8
push 0x1007b77c
call fcn.100330cc
add esp, 4
push 0xfffffffffffffffe
push esi
mov eax, 0x84dbf0
call eax
add esp, 8
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002bf12
add esp, 0x34
ret
call fcn.10030d4f
int3
Function at 0x100050e0
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x10085018]
xor eax, esp
mov dword [esp + 0x24], eax
cmp byte [0x1008bc80], 0
push esi
push edi
mov edi, edx
mov esi, ecx
jne 0x10005138
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 1
call fcn.10032e6c
add esp, 4
push eax
push 0x1007b768
push str.CONOUT_
call fcn.10032d7e
add esp, 0xc
push str.Library
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov byte [0x1008bc80], 1
mov eax, dword [edi]
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], eax
lea edx, [esi + 1]
sub esp, 8
mov dword [esp + 0x14], 0xb0000000
mov eax, esp
sub esp, 8
mov dword [eax + 4], ecx
mov ecx, esp
mov dword [eax], 1
mov dword [ecx], esi
mov al, byte [esi]
inc esi
test al, al
jne 0x10005162
sub esi, edx
mov dword [ecx + 4], esi
lea ecx, [esp + 0x24]
call fcn.100052a0
add esp, 0x10
cmp dword [eax + 0x14], 0x10
jb 0x10005182
mov eax, dword [eax]
push eax
call fcn.100330cc
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp ecx, 0x10
jb 0x100051bd
mov edx, dword [esp + 0x14]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100051b3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100051db
push ecx
push edx
call fcn.1002c23a
add esp, 8
push 0x1007b77c
call fcn.100330cc
mov ecx, dword [esp + 0x30]
add esp, 4
pop edi
pop esi
xor ecx, esp
call fcn.1002bf12
mov esp, ebp
pop ebp
ret
call fcn.10030d4f
int3

Function at 0x1000a650
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jns 0x1000a670
xorps xmm0, xmm0
mov eax, 6
cvtss2sd xmm0, xmm2
mov dword [esp + 4], eax
movaps xmm3, xmm0
jmp fcn.1000ea60
cmp eax, 0x3b9aca00
jge 0x1000a68a
xorps xmm0, xmm0
cvtss2sd xmm0, xmm2
mov dword [esp + 4], eax
movaps xmm3, xmm0
jmp fcn.1000ea60
mov ecx, 0x84
mov eax, edx
mov edx, ecx
ret
Function at 0x1000f110
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
movaps xmm0, xmm3
test eax, eax
jns 0x1000f129
mov eax, 6
mov dword [esp + 4], eax
jmp fcn.1000ea60
cmp eax, 0x3b9aca00
jge 0x1000f139
mov dword [esp + 4], eax
jmp fcn.1000ea60
mov ecx, 0x84
mov eax, edx
mov edx, ecx
ret
Function at 0x10028e30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004f6ed
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10085018]
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 eax, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x40]
mov edi, dword [eax]
mov edx, edi
call fcn.10028910
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 0
push eax
push 2
push edi
mov eax, 0x84f9f0
call eax
mov ebx, eax
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x48]
add esp, 0x10
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x40]
push eax
call fcn.100195b0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push 0
cmovae ecx, dword [ebp - 0x28]
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x14]
mov esi, eax
cmp ecx, 8
jb 0x10028ef7
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10028eed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10028f72
push ecx
push edx
call fcn.1002c23a
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp esi, 0xffffffff
je 0x10028f28
push eax
push eax
push dword [ebp - 0x44]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10028f52
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
lea ecx, [ebp - 0x40]
call fcn.100196a0
mov eax, esi
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.1002bf12
mov esp, ebp
pop ebp
ret 4
movsd xmm0, qword [0x1007d290]
sub esp, 8
movsd qword [esp], xmm0
push edi
call fcn.100039c0
add esp, 0xc
mov esi, 1
jmp 0x10028f2a
call fcn.10030d4f
int3