joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50dfd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x6dded4]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x50e16a
sub esp, 0x38
lea edi, [esp + 0x54]
xor eax, eax
call fcn.00460ba8
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
cmp ecx, edx
jbe 0x50e162
mov ebx, dword [esp + 0x40]
movzx ebp, byte [ebx + edx]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x50e0ee
lea eax, [0x555b00]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [esp + 0x14], eax
mov dword [eax + 4], 0x25
lea ecx, [0x58b9bd]
mov dword [eax], ecx
lea ecx, [0x5b76e0]
cmp dword [0x688198], ecx
jne 0x50e072
mov edx, dword [0x68819c]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call sym.runtime.ifaceeq
movzx eax, byte [esp + 0xc]
test al, al
je 0x50e072
lea ecx, [0x5b76e0]
mov eax, dword [esp + 0x14]
jmp 0x50e0cd
lea eax, [0x55bb60]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x18]
mov ebx, dword [esp + 0x4c]
mov ebp, ebx
sar ebx, 0x1f
add edx, ebp
mov dword [eax], edx
adc ecx, ebx
mov dword [eax + 4], ecx
lea ecx, [0x5b76e0]
mov dword [eax + 8], ecx
mov ecx, dword [0x6ddfe0]
test ecx, ecx
jne 0x50e0b9
mov ecx, dword [esp + 0x14]
jmp 0x50e0c4
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x14]
mov dword [edi], ecx
mov dword [eax + 0xc], ecx
lea ecx, [0x5b7a28]
mov dword [esp + 0x10], ecx
lea edi, [esp + 0x54]
mov edx, eax
xor eax, eax
call fcn.00460ba8
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
add esp, 0x38
ret
xchg ebp, eax
movzx esi, al
xchg ebp, eax
xchg ebp, eax
movzx eax, al
xchg ebp, eax
mov edi, edx
lea edx, [0x58ec51]
movzx edx, byte [edx + ebp]
dec edx
nop
mov ebp, edi
lea edi, [esp + 0x18]
call fcn.00460ba8
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ebp
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edx
lea edi, [esp + 0x54]
lea esi, [esp + 0x18]
call fcn.00461070
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x38
ret
mov eax, edx
call sym.runtime.panicIndex
nop
call sym.runtime.morestack_noctxt
jmp sym.internal_zstd._Reader_.makeReverseBitReader
Function at 0x53c460
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0x6dded4]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x53c4db
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [esp + 0x18]
cmp dword [edx], ecx
jne 0x53c4d1
movzx ecx, byte [eax + 4]
cmp byte [edx + 4], cl
jne 0x53c4d1
movzx ecx, word [eax + 6]
cmp word [edx + 6], cx
jne 0x53c4d1
mov ecx, dword [eax + 8]
mov ebx, dword [edx + 0xc]
cmp dword [edx + 8], ecx
sete cl
cmp dword [eax + 0xc], ebx
sete bl
and ebx, ecx
test bl, bl
je 0x53c4d1
mov ecx, dword [eax + 0x14]
cmp dword [edx + 0x14], ecx
jne 0x53c4d1
mov edx, dword [edx + 0x10]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call sym.runtime.memequal
movzx eax, byte [esp + 0xc]
jmp 0x53c4d3
xor eax, eax
mov byte [esp + 0x1c], al
add esp, 0x10
ret
call sym.runtime.morestack_noctxt
jmp sym.type:.eq.cmd_internal_objfile.goobjReloc
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40122f
mov edi, dword [esp + 0x14]
xor ebx, ebx
mov ebp, dword [sym.imp.USER32.dll_ReleaseDC]
nop dword [eax]
push str.dHJdvghcgyhushgjdshgj
push 0x437338
call fcn.00401b60
add esp, 8
push eax
call fcn.00402050
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x2f
push str.dHJdvghcgyhushgjdshgj
push 0x437338
call fcn.00401b60
add esp, 8
push eax
call fcn.00402050
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xb8
push str.dHJdvghcgyhushgjdshgj
push 0x437338
call fcn.00401b60
add esp, 8
push eax
call fcn.00402050
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x44
push str.dHJdvghcgyhushgjdshgj
push 0x437338
call fcn.00401b60
add esp, 8
push eax
call fcn.00402050
add esp, 4
push 0
push 0
call ebp
xor byte [edi + ebx], 0xcd
push str.dHJdvghcgyhushgjdshgj
push 0x437338
call fcn.00401b60
add esp, 8
push eax
call fcn.00402050
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xe2
push str.dHJdvghcgyhushgjdshgj
push 0x437338
call fcn.00401b60
add esp, 8
push eax
call fcn.00402050
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xbd
push str.dHJdvghcgyhushgjdshgj
push 0x437338
call fcn.00401b60
add esp, 8
push eax
call fcn.00402050
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xc1
push str.dHJdvghcgyhushgjdshgj
push 0x437338
call fcn.00401b60
add esp, 8
push eax
call fcn.00402050
add esp, 4
push 0
push 0
call ebp
xor byte [edi + ebx], 0xf4
push str.dHJdvghcgyhushgjdshgj
push 0x437338
call fcn.00401b60
add esp, 8
push eax
call fcn.00402050
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x1b
push str.dHJdvghcgyhushgjdshgj
push 0x437338
call fcn.00401b60
add esp, 8
push eax
call fcn.00402050
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0x6b
push str.dHJdvghcgyhushgjdshgj
push 0x437338
call fcn.00401b60
add esp, 8
push eax
call fcn.00402050
add esp, 4
push 0
push 0
call ebp
xor byte [edi + ebx], 0x18
push str.dHJdvghcgyhushgjdshgj
push 0x437338
call fcn.00401b60
add esp, 8
push eax
call fcn.00402050
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xa
push str.dHJdvghcgyhushgjdshgj
push 0x437338
call fcn.00401b60
add esp, 8
push eax
call fcn.00402050
add esp, 4
push 0
push 0
call ebp
xor byte [edi + ebx], 0x3b
push str.dHJdvghcgyhushgjdshgj
push 0x437338
call fcn.00401b60
add esp, 8
push eax
call fcn.00402050
add esp, 4
push 0
push 0
call ebp
add byte [edi + ebx], 0xe1
inc ebx
cmp esi, ebx
jne 0x401020
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100053c2
Capabilities:
Terminate process

Disassembly:
push 0x10
mov eax, 0x1001ac1b
call fcn.1001a456
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x10], 1
ja 0x100053ea
mov ecx, dword [0x10029d48]
call fcn.100043a3
test al, al
jne 0x100053ea
xor cl, cl
jmp 0x100053ec
mov cl, 1
mov edx, dword [ebp + 0xc]
mov byte [ebp - 0x10], cl
test edx, edx
jne 0x1000542c
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
cmp esi, eax
je 0x10005550
cmp dword [esi + 8], 0
je 0x1000541d
movzx eax, cl
mov ecx, dword [esi + 8]
push eax
push dword [ebp + 0x10]
push 0x402
call fcn.1000d275
mov esi, dword [esi]
mov cl, byte [ebp - 0x10]
cmp esi, dword [ebx + 0xc]
jne 0x10005403
jmp 0x10005550
mov edi, dword [ebx + 0xc]
xor cl, cl
mov esi, dword [edi]
jmp 0x1000543f
mov eax, dword [esi + 8]
cmp edx, dword [eax + 0x10]
je 0x10005445
mov esi, dword [esi]
cmp esi, edi
jne 0x10005435
jmp 0x10005492
mov ecx, dword [eax + 0x50]
mov edx, dword [eax + 0x54]
mov eax, ecx
or eax, edx
mov byte [ebp + 0xb], 1
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
je 0x10005477
call dword [sym.imp.kernel32.dll_GetTickCount64]
sub eax, dword [ebp - 0x14]
sbb edx, dword [ebp - 0x18]
mov dword [ebp - 0x18], edx
jne 0x10005473
cmp eax, 0x1388
jbe 0x10005477
mov edi, esi
jmp 0x1000548c
movzx eax, byte [ebp - 0x10]
mov ecx, dword [esi + 8]
push eax
push dword [ebp + 0x10]
push 0x402
call fcn.1000d275
mov cl, byte [ebp + 0xb]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebx + 0xc]
cmp edi, eax
jne 0x100054c7
test cl, cl
jne 0x10005550
mov esi, dword [eax]
cmp esi, eax
je 0x10005550
mov ecx, dword [esi + 8]
push 1
push dword [ebp - 0x10]
push dword [ebp + 0x10]
call fcn.1000d275
mov esi, dword [esi]
cmp esi, dword [ebx + 0xc]
jne 0x100054ab
jmp 0x10005550
mov esi, dword [eax]
cmp esi, eax
je 0x100054ec
mov ecx, dword [esi + 8]
cmp edx, dword [ecx + 0x10]
je 0x100054e5
push 1
push dword [ebp - 0x10]
push dword [ebp + 0x10]
call fcn.1000d275
mov edx, dword [ebp + 0xc]
mov esi, dword [esi]
cmp esi, dword [ebx + 0xc]
jne 0x100054cd
mov ecx, dword [edi + 8]
push 1
push dword [ebp - 0x10]
push 0x80043074
call fcn.1000d275
push 0
lea ecx, [ebx + 0x3c]
call fcn.1000d275
mov esi, 0x10029eb0
push esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [0x10029d58]
test eax, eax
je 0x1000552b
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
and dword [0x10029d58], 0
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
mov esi, eax
push 1
push esi
call dword [sym.imp.kernel32.dll_TerminateProcess]
test eax, eax
je 0x10005550
push 0xffffffffffffffff
push esi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
xor eax, eax
call fcn.1001a427
ret 0xc
Function at 0x10007580
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x1001add5
call fcn.1001a456
mov edi, ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 8]
xor ebx, ebx
lea eax, [esi + 8]
mov dword [edi], ebx
push eax
push 4
push edi
push 0x10007bb5
push ebx
push ebx
mov byte [edi + 4], bl
mov dword [ebp - 0x14], esi
call dword [sym.imp.kernel32.dll_CreateThread]
mov dword [esi + 4], eax
mov dword [ebp - 4], ebx
mov dword [esi], vtable.Thread::OsfThread.0
test eax, eax
je 0x1000764c
push ebx
push ebx
push ebx
mov dword [ebp - 4], 1
mov esi, dword [sym.imp.kernel32.dll_CreateEventW]
push ebx
call esi
mov dword [edi + 0x14], eax
test eax, eax
jne 0x100075f1
mov dword [ebp - 0x14], str.Failed_to_create_event_handle_in_ThreadEvent__
lea eax, [ebp - 0x14]
push 0x10025450
jmp 0x1000765b
mov dword [edi + 0x18], ebx
lea eax, [edi + 0x34]
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebx
push 8
mov dword [edi + 0x30], ebx
mov dword [edi + 0x44], ebx
mov dword [edi + 0x48], ebx
mov dword [edi + 0x4c], ebx
pop ecx
mov dword [edi + 0x50], ebx
mov edx, ecx
mov dword [edi + 0x54], ebx
mov byte [eax], bl
inc eax
sub edx, 1
jne 0x1000761d
lea eax, [edi + 0x3c]
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x10007628
push ebx
push ebx
push 1
push ebx
call esi
mov dword [edi + 0x1c], eax
test eax, eax
jne 0x10007644
call dword [sym.imp.kernel32.dll_GetLastError]
mov eax, edi
call fcn.1001a427
ret
mov dword [ebp - 0x10], str.Cannot_create_thread
lea eax, [ebp - 0x10]
push 0x10025450
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1000ce6b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 0
push dword [eax + 0x40]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop ebp
ret 4

Function at 0x1000d275
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x1000d284
pop dword [ebp - 0x14]
mov eax, 0x97ccadc2
sub eax, 0x87cbdb3e
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x29edfe6c
add dword [ebp - 0x24], 0x246446df
mov dword [ebp - 0x20], 0x49a57a0e
sub dword [ebp - 0x20], 0x17722dc9
mov dword [ebp - 0x1c], 0x2e8a8ef9
add dword [ebp - 0x1c], 0x1dc1b535
mov dword [ebp - 0x18], 0x27de3584
add dword [ebp - 0x18], 0xd821ca7c
lea eax, [ebp - 0x24]
push eax
mov eax, 0xd8171c34
sub eax, 0xc8154c2c
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xecb4dece
sub dword [ebp - 0x24], 0x78427578
mov dword [ebp - 0x20], 0xb71ecbdf
sub dword [ebp - 0x20], 0x75b26a6a
mov dword [ebp - 0x1c], 0x1bcb1c8e
add dword [ebp - 0x1c], 0x47a44fde
mov dword [ebp - 0x18], 0x85b0897d
sub dword [ebp - 0x18], 0x85b0897d
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0xadbfec2c
sub eax, 0x9dbe1c00
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x3a638
push 0
call eax
mov ecx, 0xf2f5c7a0
sub ecx, 0xf2f57f58
xor edx, edx
add edx, eax
mov ebx, 0x1002e000
add ebx, dword [ebp - 0x14]
mov edi, 0x7d4ef386
xor dword [ebp - 0x10], 0xbaa5777b
mov esi, dword [ebx]
sub dword [ebp - 4], ebx
add esi, edi
add dword [ebp - 0xc], eax
mov dword [edx], esi
xor dword [ebp - 4], 0xae2d9942
add edx, 0x4d6fdcb2
sub edx, 0x4d6fdcae
add ebx, 0x48bc4d72
add ebx, 0xb743b292
loop 0x1000d39c
add eax, 0xd4a4336b
sub eax, 0xd4a31f78
xor ebx, ebx
add ebx, eax
add eax, 0x239cfbe
add eax, 0xfdc63047
mov ecx, 0xe59a06d
add ecx, 0x1a65f93
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x1000ddaa
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xc
mov eax, 0x1001b43b
call fcn.1001a456
and dword [ebp - 0x14], 0
xor ecx, ecx
and dword [ebp - 0x18], 0
inc ecx
mov edi, dword [ebp + 0xc]
mov byte [ebp - 0xd], cl
test edi, edi
jne 0x1000ddd5
mov esi, 0x80070057
jmp 0x1000df49
mov ebx, dword [ebp + 8]
xor esi, esi
cmp dword [edi + 8], 0x1b
jne 0x1000de05
lea eax, [ebp + 0xf]
mov byte [ebp + 0xf], 0
lea ecx, [ebx - 0x14]
push eax
call fcn.1000d275
mov esi, eax
test esi, esi
js 0x1000de02
cmp byte [ebp + 0xf], 0
je 0x1000de02
mov byte [ebp - 0xd], 0
jmp 0x1000de64
xor ecx, ecx
inc ecx
mov eax, dword [edi + 4]
sub eax, 0x100
je 0x1000de33
sub eax, 1
je 0x1000de2c
sub eax, 3
je 0x1000de25
sub eax, 1
jne 0x1000de64
mov eax, dword [0x10029d28]
jmp 0x1000de38
mov eax, dword [0x10029d30]
jmp 0x1000de38
mov eax, dword [0x10029d24]
jmp 0x1000de38
mov eax, dword [0x10029d2c]
test eax, eax
je 0x1000de64
cmp dword [ebx + 0xc4], 0
jne 0x1000de4d
cmp dword [ebx + 0x18], 0
jne 0x1000de4d
xor cl, cl
push ecx
push dword [edi + 0xc]
lea ecx, [ebx - 0x14]
push dword [edi + 8]
push eax
call fcn.1000d1e8
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x1000dee1
cmp dword [ebx + 0xc4], 4
jne 0x1000de7a
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x5b4
je 0x1000dee1
cmp dword [edi + 4], 0x100
je 0x1000de8c
cmp dword [edi + 4], 0x101
jne 0x1000dea7
cmp dword [edi + 8], 0x1b
jne 0x1000dea7
cmp dword [ebx + 0xc4], 0
jne 0x1000dea7
cmp dword [ebx + 0x18], 0
jne 0x1000dea7
cmp byte [ebp - 0xd], 0
jne 0x1000dee1
mov ecx, dword [ebx + 0x34]
xor esi, esi
test ecx, ecx
je 0x1000dec0
mov eax, dword [ecx]
lea edx, [ebp - 0x18]
push edx
push 0x1001d700
push ecx
call dword [eax]
mov esi, eax
test esi, esi
js 0x1000df49
cmp dword [ebp - 0x18], 0
jne 0x1000ded5
mov esi, 0x8000ffff
jmp 0x1000df49
mov eax, dword [ebp - 0x18]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov esi, eax
cmp esi, 1
jne 0x1000df3e
cmp dword [edi + 4], 0x100
jne 0x1000df0c
cmp dword [edi + 8], 9
jne 0x1000df3e
push 0
push dword [edi + 0xc]
lea ecx, [ebx - 0x14]
push 9
push dword [0x10029d40]
call fcn.1000d1e8
jmp 0x1000df41
cmp dword [edi + 4], 0x104
jne 0x1000df3e
cmp dword [edi + 8], 0x79
jne 0x1000df3e
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call edi
mov ebx, 0x8000
test bx, ax
je 0x1000df3e
push 0x10
call edi
test bx, ax
je 0x1000df3e
xor eax, eax
xor esi, esi
jmp 0x1000df41
mov eax, dword [ebp - 0x14]
test eax, eax
push 1
pop eax
cmovne esi, eax
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1000df5a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
call fcn.1001a427
ret 8
Function at 0x10011b7a
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x3c]
mov esi, 0x8004307f
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x3c], edi
mov eax, 0x824
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x3c]
push eax
push 0
push dword [ebp + 0xc]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x10011c2b
mov eax, dword [ebp - 0x30]
cmp eax, 3
je 0x10011bd1
cmp eax, 4
jne 0x10011c2b
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x10011be7
xor ecx, ecx
mov esi, 0x8004307b
cmp eax, 4
cmove esi, ecx
jne 0x10011c2b
cmp dword [ebp + 0x14], 0
je 0x10011c2b
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [edi + 0x74]
jne 0x10011c14
push dword [edi + 0x74]
push dword [edi + 0x6c]
push dword [ebp - 0x2c]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x10011c2b
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
push ecx
push dword [ebp - 0x2c]
lea ecx, [edi - 0x14]
push eax
call fcn.10011c4c
test al, al
mov ecx, 0x8004307c
cmove esi, ecx
pop edi
mov eax, esi
pop esi
leave
ret 0x10
Function at 0x10016d3d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x10016d60
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 0x10016e0e
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x10016d81
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x10016d83
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x10016e02
jg 0x10016d96
test esi, esi
je 0x10016e02
test ecx, ecx
jl 0x10016dda
jg 0x10016da0
test eax, eax
je 0x10016dda
cmp edi, ecx
jg 0x10016db2
jl 0x10016daa
cmp esi, eax
jae 0x10016db2
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x10016ddd
mov edx, dword [ebp + 8]
test edi, edi
jl 0x10016e02
jg 0x10016de7
test esi, esi
je 0x10016e02
cmp dword [ebx + 0x4c], 0
je 0x10016e02
push dword [ebx + 0x4c]
push esi
push 1
push edx
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 - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10016e13
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x10016e36
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__::xsgetn_char___long_long___int64__]
jmp 0x10016eee
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x10016e57
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x10016e59
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x10016ee2
jg 0x10016e6c
test esi, esi
je 0x10016ee2
test ecx, ecx
jl 0x10016eae
jg 0x10016e76
test eax, eax
je 0x10016eae
cmp ebx, ecx
jg 0x10016e88
jl 0x10016e80
cmp esi, eax
jae 0x10016e88
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [edi + 0x2c]
add dword [ebp + 8], ecx
sub esi, ecx
sbb ebx, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x10016eb4
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x10016ee2
jg 0x10016ebe
test esi, esi
je 0x10016ee2
cmp dword [edi + 0x4c], 0
je 0x10016ee2
mov ecx, edi
call fcn.100173d8
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
pop esi
sbb edx, ebx
pop ebx
pop edi
leave
ret 0xc
Function at 0x1001715e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10028108]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x10017184
xor eax, eax
jmp 0x10017243
mov eax, dword [esi + 0x20]
cmp dword [eax], 0
je 0x100171a6
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, dword [eax]
cmp dword [eax], edx
jae 0x100171a6
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
mov byte [eax], bl
mov eax, ebx
jmp 0x10017243
cmp dword [esi + 0x4c], 0
je 0x10017241
call fcn.100173d8
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100171d2
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x10017241
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x10017241
cmp eax, 1
jle 0x1001720f
cmp eax, 3
jne 0x10017241
push dword [esi + 0x4c]
movsx ecx, byte [ebp - 0x25]
push ecx
jmp 0x100171c3
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x30], eax
je 0x10017233
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x30], eax
jne 0x10017241
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x34], eax
mov eax, ebx
jne 0x10017243
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10018d7d
leave
ret 4
Function at 0x403690
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x423c58
push eax
mov dword fs:[0], esp
sub esp, 0x448
push esi
push edi
mov edi, dword [sym.imp.GDI32.dll_SetDeviceGammaRamp]
xor esi, esi
cmp esi, 0x2710
jge 0x4036cb
lea eax, [ebp - 0x454]
push eax
push 0
call edi
inc esi
cmp esi, 0x1ff49ccc
jl 0x4036b8
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
mov ebx, dword [ebp - 0x10]
xor esi, esi
call edi
cmp esi, 0x2b259d
jle 0x4036f2
cmp ebx, 0x785074d5
jne 0x4036fb
inc esi
cmp esi, 0x1c1b
jl 0x4036e0
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
lea esp, [esp]
push 0
call edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp esi, 0x206d47
jg 0x40372d
inc esi
cmp esi, 0x4f6a4
jl 0x403710
cmp dword [0x845080], 0x400
jne 0x403767
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthW]
lea eax, [ebp - 0x30]
call fcn.00403800
push 0
mov dword [ebp - 4], 0
call fcn.00403b34
add esp, 4
lea esi, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.00403820
mov ecx, dword [0x42613c]
mov edx, dword [0x426110]
mov dword [0x845080], ecx
mov dword [0x845084], edx
call fcn.004033c0
mov ebx, dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
xor esi, esi
nop
push 0
call edi
cmp esi, 0x2b259d
jle 0x4037a4
cmp ebx, 0x785074d5
jne 0x4037ad
inc esi
cmp esi, 0x11915
jl 0x403790
mov esi, dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edi, 0x3078f
pop ebx
lea esp, [esp]
cmp dword [0x845080], 0x51f
jne 0x4037d2
lea eax, [ebp - 0x54]
push eax
call esi
sub edi, 1
jne 0x4037c0
mov eax, dword [0x843fd4]
mov dword [0x844614], eax
call eax
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4044a0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4250c8]
jne 0x4044aa
repz ret
jmp fcn.00406c0e