joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002be20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006f800
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [ebp + 8]
push esi
push 0xffffffffffffffff
add eax, 0x18
mov dword [ebp - 0x10], 0xf
push 0
mov esi, ecx
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], 0
call fcn.10003060
push 2
push 0x10073e98
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.1000d370
cmp byte [esi + 0x10], 0
je 0x1002be9f
cmp dword [ebp - 0x10], 0x10
lea ecx, [ebp + 8]
push 0
push ecx
push dword [ebp - 0x14]
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1002befa
xor eax, eax
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.10036750
add esp, 8
lea ecx, [ebp + 8]
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push 0
push ecx
push dword [ebp - 0x2c]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov eax, dword [ebp - 0x28]
cmp eax, 8
jb 0x1002befa
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.1000e870
mov eax, dword [ebp - 0x10]
pop esi
cmp eax, 0x10
jb 0x1002bf10
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.10003190
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x1002e130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070608
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], ebx
cmp dword [ebx + 0x18], 0xffffffff
jne 0x1002e15c
call fcn.1002df30
push esi
push edi
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x10]
lea ecx, [edi + 0x10]
add eax, 0x10
mov dword [ebp - 4], 0
mov dword [ebp + 8], ecx
cmp eax, 0xf
je 0x1002e1b2
push 1
push eax
lea ecx, [ebp - 0x2c]
call fcn.100031e0
mov ecx, dword [ebp + 8]
test al, al
je 0x1002e1b2
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
cmovae eax, dword [ebp - 0x2c]
mov byte [eax], 0
mov eax, dword [edi + 0x14]
cmp eax, 0x10
jb 0x1002e1be
mov esi, dword [edi]
jmp 0x1002e1c0
mov esi, edi
cmp eax, 0x10
jb 0x1002e1c7
mov edi, dword [edi]
mov eax, dword [ecx]
xor edx, edx
add eax, edi
xor edi, edi
mov ecx, eax
sub ecx, esi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x1002e20e
mov ebx, ecx
mov al, byte [esi]
lea ecx, [ebp - 0x2c]
mov byte [ebp + 8], al
cmp al, 0xa
jne 0x1002e1fb
push 2
push 0x10073e98
call fcn.1000d370
jmp 0x1002e205
push dword [ebp + 8]
push 1
call fcn.1000ea30
inc edi
inc esi
cmp edi, ebx
jne 0x1002e1e1
mov ebx, dword [ebp - 0x10]
push 2
push 0x10073e98
lea ecx, [ebp - 0x2c]
call fcn.1000d370
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x14]
push 0
push ecx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
test eax, eax
jne 0x1002e259
push eax
push ebx
lea ecx, [ebp - 0x58]
call fcn.10025d80
push 0x1009100c
lea eax, [ebp - 0x58]
push eax
call fcn.1004cc2d
cmp byte [ebp + 0xc], 0
je 0x1002e284
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x1002e284
push eax
push ebx
lea ecx, [ebp - 0x58]
call fcn.10025d80
push 0x1009100c
lea eax, [ebp - 0x58]
push eax
call fcn.1004cc2d
mov eax, dword [ebp - 0x18]
pop ebx
cmp eax, 0x10
jb 0x1002e2cf
mov ecx, dword [ebp - 0x2c]
inc eax
cmp eax, 0x1000
jb 0x1002e2c6
test cl, 0x1f
je 0x1002e2a2
call fcn.100558f1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x1002e2ae
call fcn.100558f1
sub ecx, eax
cmp ecx, 4
jae 0x1002e2ba
call fcn.100558f1
cmp ecx, 0x23
jbe 0x1002e2c4
call fcn.100558f1
mov ecx, eax
push ecx
call fcn.10049ee6
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x10034490
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10070da8
push eax
mov dword fs:[0], esp
sub esp, 0x44
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x100344ff
push 0x22
push str.cannot_allocate_thread_context_key
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x24], 0
call fcn.10002f60
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x50]
call fcn.10025cb0
push 0x10090c40
lea eax, [ebp - 0x50]
push eax
call fcn.1004cc2d
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x100346c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006f910
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push esi
lea eax, [ebp - 0x10]
mov esi, ecx
push eax
push 0
push esi
push dword [ebp + 8]
push dword [esi + 0x14]
push 0
call fcn.10057e5c
mov ecx, dword [ebp - 0x10]
mov edx, eax
add esp, 0x18
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
test edx, edx
jne 0x10034746
push 0x14
push str.cannot_create_thread
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.10002f60
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x6c]
call fcn.10025cb0
push 0x10090c40
lea eax, [ebp - 0x6c]
push eax
call fcn.1004cc2d
mov eax, dword [esi + 0x10]
pop esi
test eax, eax
je 0x10034790
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x10034790
push str.cannot_set_thread_priority
lea ecx, [ebp - 0x40]
call fcn.10002d90
push 0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x98]
call fcn.10025cb0
push 0x10090c40
lea eax, [ebp - 0x98]
push eax
call fcn.1004cc2d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x10034ed0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006fff1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x10], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x10034f51
push 0x18
push str.Cannot_get_computer_name
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
call fcn.10002f60
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x78]
call fcn.10025cb0
push 0x10090c40
lea eax, [ebp - 0x78]
push eax
call fcn.1004cc2d
push esi
mov esi, dword [ebp + 8]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x10034f7b
mov eax, dword [esi]
jmp 0x10034f7d
mov eax, esi
mov byte [eax], 0
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 0
push esi
push eax
mov dword [ebp - 0x14], 1
call fcn.10036860
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10035820
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100701d9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov dword [ebp - 0x10], 0
push esi
mov esi, dword [ebp + 8]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x1003586c
mov eax, dword [esi]
jmp 0x1003586e
mov eax, esi
push ebx
push edi
mov byte [eax], 0
push 0
push 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
test ebx, ebx
je 0x10035929
xor ecx, ecx
mov dword [ebp - 0x20], ebx
mov edx, 2
mov dword [ebp - 0x1c], ebx
mul edx
mov byte [ebp - 0x14], 1
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1004a370
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
push edi
push ebx
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1003591c
cmp eax, ebx
ja 0x1003591c
push esi
push edi
call fcn.10036860
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x100358eb
mov eax, dword [esi]
jmp 0x100358ed
mov eax, esi
cmp byte [eax + ecx - 1], 0x5c
je 0x10035900
push 0x100875b4
mov ecx, esi
call fcn.1000a810
push edi
call fcn.10049f1c
mov ecx, dword [ebp - 0xc]
add esp, 4
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov byte [ebp - 4], 0
call fcn.10049f1c
add esp, 4
push 0x1c
push str.Cannot_get_current_directory
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10002f60
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x54]
call fcn.10025cb0
push 0x10090c40
lea eax, [ebp - 0x54]
push eax
call fcn.1004cc2d
int3
Function at 0x10037600
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070778
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.1000d840
push 0x100
mov dword [ebp - 4], 0
mov dword [esi], vtable.Poco::BasicBufferedStreamBuf_char__struct_std::char_traits_char___class_Poco::BufferAllocator_char__.0
mov dword [esi + 0x38], 0x100
mov dword [esi + 0x3c], 0
call fcn.1004a370
mov dword [esi + 0x40], eax
add esp, 4
mov dword [esi + 0x44], 1
lea ecx, [eax + 4]
mov eax, dword [esi + 0xc]
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
sub ecx, ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], ecx
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x38]
add edx, ecx
mov dword [eax], ecx
sub edx, ecx
mov eax, dword [esi + 0x20]
mov dword [eax], ecx
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, esi
mov dword [esi], vtable.Poco::RandomBuf.0
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x10037a70
Capabilities:
Generate random numbers via winapi

Disassembly:
push ecx
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push dword [esp + 8]
push dword [esp + 0x10]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp + 0xc]
pop ecx
ret 0xc
Function at 0x10038b60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, dword [esp + 0x3c]
xor edx, edx
push ebp
mov ecx, ebx
mov dword [esp + 0xc], 1
neg ecx
mov dword [esp + 8], 0
mov eax, ecx
mov dword [esp + 0x1c], ebx
xor ebp, ebp
bts ebp, eax
cmp eax, 0x20
push esi
cmovae edx, ebp
xor ebp, edx
cmp eax, 0x40
mov eax, dword [esp + 0x3c]
cmovae edx, ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x40]
push edi
call fcn.1004af50
mov edx, dword [esp + 0x28]
mov ecx, eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x18], ecx
push eax
add ebp, 0xffffffff
lea eax, [esp + 0x24]
push eax
adc edx, 0xffffffff
mov dword [esp + 0x38], ebp
and ebp, dword [esp + 0x48]
lea eax, [ebx + 0x40]
mov dword [esp + 0x3c], edx
and edx, dword [esp + 0x4c]
push eax
push ecx
mov dword [esp + 0x2c], edx
call fcn.10037fe0
mov ebx, dword [esp + 0x70]
add esp, 0x10
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x20]
mov dword [ebx], eax
mov dword [ecx], 0
cmp dword [ebx], 0
jle 0x10038c45
nop dword [eax + eax]
mov eax, dword [esp + 0x18]
xor edx, edx
div edi
mov dword [esp + 0x18], edx
add al, 0x30
mov edx, dword [ecx]
mov ecx, dword [esp + 0x54]
mov byte [ecx + edx], al
mov ecx, dword [esp + 0x5c]
inc dword [ecx]
dec dword [ebx]
sub esi, 1
je 0x10038c49
mov eax, 0xcccccccd
mul edi
mov edi, edx
shr edi, 3
cmp dword [ebx], 0
jg 0x10038c10
test esi, esi
jne 0x10038c81
mov esi, dword [esp + 0x24]
mov eax, edi
push ebx
push 0
neg esi
xor edx, edx
push 1
mov ecx, esi
call fcn.1004ae60
push edx
push eax
mov eax, dword [esp + 0x2c]
xor edx, edx
mov ecx, esi
call fcn.1004ae60
add eax, ebp
adc edx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x74]
push eax
push dword [edx]
jmp 0x10038d41
mov edi, dword [esp + 0x1c]
jle 0x10038d1f
nop dword [eax + eax]
mov eax, dword [esp + 0x10]
cmp edi, eax
jb 0x10038d21
mov edx, dword [esp + 0x14]
ja 0x10038ca6
cmp ebp, edx
jbe 0x10038d21
mov eax, ebp
mov ecx, edi
shld ecx, eax, 2
shl eax, 2
add ebp, eax
mov eax, edx
adc edi, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], ecx
shld ecx, eax, 2
shld edi, ebp, 1
shl eax, 2
add ebp, ebp
add edx, eax
mov eax, dword [esp + 0x10]
adc eax, ecx
mov ecx, dword [esp + 0x24]
shld eax, edx, 1
neg ecx
add edx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, ebp
mov edx, edi
call fcn.1004af50
mov edx, dword [esp + 0x5c]
add al, 0x30
mov ecx, dword [esp + 0x54]
dec esi
and ebp, dword [esp + 0x30]
and edi, dword [esp + 0x34]
mov edx, dword [edx]
mov byte [ecx + edx], al
mov ecx, dword [esp + 0x5c]
inc dword [ecx]
dec dword [ebx]
test esi, esi
jg 0x10038c90
mov eax, dword [esp + 0x10]
jmp 0x10038d21
xor eax, eax
test esi, esi
je 0x10038d2f
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x2c
ret
push ebx
push eax
push dword [esp + 0x1c]
push dword [esp + 0x34]
push dword [esp + 0x48]
push edi
push ebp
push dword [ecx]
push dword [esp + 0x78]
push dword [esp + 0x78]
call fcn.1003aaa0
add esp, 0x28
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x1003b4e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070598
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.1000d840
push 0x400
mov dword [ebp - 4], 0
mov dword [edi], vtable.Poco::BasicBufferedStreamBuf_char__struct_std::char_traits_char___class_Poco::BufferAllocator_char__.0
mov dword [edi + 0x38], 0x400
mov dword [edi + 0x3c], 0
call fcn.1004a370
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], 2
lea ecx, [eax + 4]
mov eax, dword [edi + 0xc]
mov dword [eax], ecx
mov eax, dword [edi + 0x1c]
mov dword [eax], ecx
sub ecx, ecx
mov eax, dword [edi + 0x2c]
mov dword [eax], ecx
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x40]
mov edx, dword [edi + 0x38]
add edx, ecx
mov dword [eax], ecx
sub edx, ecx
mov eax, dword [edi + 0x20]
mov dword [eax], ecx
mov eax, dword [edi + 0x30]
mov dword [eax], edx
mov eax, dword [ebp + 8]
lea esi, [edi + 0x54]
push 0x8000
mov dword [ebp - 4], 1
mov dword [edi], vtable.Poco::DeflatingStreamBuf.0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], eax
mov byte [edi + 0x8c], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [esi], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
call fcn.1004a370
cmp dword [ebp + 0xc], 1
mov ecx, 0x1f
push 0x38
push str.1.2.11
push 0
mov dword [edi + 0x50], eax
mov eax, 0xf
push 8
cmove eax, ecx
push eax
push 8
push dword [ebp + 0x10]
push esi
call fcn.10040440
mov esi, eax
add esp, 0x28
test esi, esi
je 0x1003b65b
push dword [edi + 0x50]
call fcn.10049f1c
push esi
call fcn.100410c0
mov edx, eax
mov dword [ebp - 0x14], 0xf
add esp, 8
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp byte [edx], 0
jne 0x1003b623
xor ecx, ecx
jmp 0x1003b631
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003b628
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10002f60
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x54]
call fcn.10025670
push 0x10090d90
lea eax, [ebp - 0x54]
push eax
call fcn.1004cc2d
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1003c700
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070778
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.1000d840
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push edx
mov dword [ebp - 4], 0
mov dword [esi], vtable.Poco::BasicBufferedBidirectionalStreamBuf_char__struct_std::char_traits_char___class_Poco::BufferAllocator_char__.0
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], eax
call fcn.1004a370
push dword [esi + 0x38]
mov dword [esi + 0x40], eax
call fcn.1004a370
mov ecx, dword [esi + 0x40]
add esp, 8
mov dword [esi + 0x44], eax
add ecx, 4
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0xc]
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
sub ecx, ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], ecx
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x38]
add edx, ecx
mov dword [eax], ecx
sub edx, ecx
mov eax, dword [esi + 0x20]
mov dword [eax], ecx
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1003d0f0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x68], 0xffffffff
je 0x1003d14a
mov eax, dword [esi + 0x48]
test al, 1
je 0x1003d14a
test al, 2
je 0x1003d10a
mov eax, dword [esi]
call dword [eax + 0x34]
push 0
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esi + 0x68]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1003d13a
lea eax, [esi + 0x50]
push eax
call fcn.1002b0a0
add esp, 4
mov eax, dword [esp + 4]
add dword [esi + 0x70], eax
adc dword [esi + 0x74], 0
pop esi
pop ecx
ret 0xc
or eax, 0xffffffff
pop esi
pop ecx
ret 0xc

Function at 0x1003d480
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
mov ecx, dword [esi + 0x68]
cmp ecx, 0xffffffff
je 0x1003d529
mov eax, dword [esi + 0x48]
test al, 2
je 0x1003d529
test al, 8
je 0x1003d4e7
push 2
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0
push ecx
movlpd qword [esp + 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
jne 0x1003d4dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1003d4d9
lea eax, [esi + 0x50]
push eax
call fcn.1002b0a0
add esp, 4
mov eax, dword [esp + 8]
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 0x74], eax
push 0
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esi + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1003d517
lea eax, [esi + 0x50]
push eax
call fcn.1002b0a0
add esp, 4
mov eax, dword [esp + 4]
add dword [esi + 0x70], eax
adc dword [esi + 0x74], 0
pop esi
add esp, 0xc
ret 0xc
or eax, 0xffffffff
pop esi
add esp, 0xc
ret 0xc
Function at 0x1003d6b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070918
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.1000d840
mov eax, dword [esi + 0xc]
mov dword [esi + 0x38], 0xffffffff
mov byte [esi + 0x3c], 0
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [esi + 0x10]
mov dword [eax], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x48]
push 0xffffffffffffffff
mov dword [esi], vtable.Poco::LineEndingConverterStreamBuf.0
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], 0
push 0
mov dword [esi + 0x5c], 0xf
mov dword [esi + 0x58], 0
push 0x100999ac
mov dword [ebp - 4], 0
mov byte [esi + 0x48], 0
call fcn.10003060
mov dword [esi + 0x60], 0
mov byte [esi + 0x64], 0
cmp dword [esi + 0x5c], 0x10
jb 0x1003d769
mov ecx, dword [esi + 0x48]
jmp 0x1003d76c
lea ecx, [esi + 0x48]
mov eax, dword [esi + 0x58]
add eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x60], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x10062106
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10061f85

Function at 0x100652ab
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10064f6b

Function at 0x1012bb68
Capabilities:
Encode data using xor

Disassembly:
and byte [eax + 3], ah
int1
jmp 0x101afd1b
push esi
mov dword [esp + 8], 0x1fc89786
lea esp, [esp + 8]
and al, 8
call fcn.10127a3c
cmp eax, 0xe675e257
popfd
fistp word [0x69e40386]
xor al, byte [esi - 0x12038069]
jns 0x1012bbed
nop
jae 0x1012bb73
jns 0x1012bb33
mov al, byte [0x860e48b0]
sbb al, 0xe7
mov al, 0x48
push cs
xchg byte [edi], bl
or dword [edi], ecx
xchg byte [ebp - 0x79eb3cda], bl
xchg esi, eax
inc esi
aas
int 0x79
mov edx, 0x79fb3281
jb 0x1012bb92
ret 0x79ce
push 3
xchg byte [edi + 0x7b], ch
salc
retf 0x46c1
push esi
ret
Function at 0x100233c1
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x10023534
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
test eax, eax
je 0x10023514
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
push 0x14
push 0
push 0xb477
push 0xd287
call fcn.10049c54
pop ecx
pop ecx
call eax
push eax
push 0xb477
push 0xbbfb
call fcn.10049c54
pop ecx
pop ecx
call eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
and dword [eax + 0xc], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
and dword [eax + 8], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
and dword [eax + 0x10], 0
push 4
push 0x1000
mov eax, dword [ebp - 0xc]
push dword [eax + 0x50]
mov eax, dword [ebp - 8]
push dword [eax]
push 0xb477
push 0xf097
call fcn.10049c54
pop ecx
pop ecx
call eax
push 4
push 0x1000
mov eax, dword [ebp - 0xc]
push dword [eax + 0x54]
mov eax, dword [ebp - 8]
push dword [eax]
push 0xb477
push 0xf097
call fcn.10049c54
pop ecx
pop ecx
call eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 0xc]
add eax, dword [ecx + 0x54]
push eax
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push dword [eax]
call fcn.10049efc
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.100235e5
add esp, 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov dword [eax + 0x34], ecx
jmp 0x10023532
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test eax, eax
je 0x10023532
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1002355c
push 0x67e0
push 0
push 0x6ff6
push 0x33c3
push 0x4966
push 0x25b3
push 0x48b0
call fcn.1001ffb3
add esp, 0x1c
mov esp, ebp
pop ebp
ret