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

Disassembly:
push 0xffffffffffffffff
push 0x1015c491
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101b0cd0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
xor ebp, ebp
lea eax, [esp + 0x3c]
mov dword [esp + 0x68], ebp
push eax
mov dword [esp + 0x18], ebp
call fcn.1002bd10
add esp, 4
mov esi, 1
mov dword [esp + 0x68], esi
mov ecx, dword [esp + 0x70]
push ecx
call fcn.1001bf90
mov eax, dword [esp + 0x5c]
push 0x2710
mov dword [esp + 0x18], esi
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [esp + 0x4c]
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp edi, ebp
jle 0x1000d67e
push ebp
lea ecx, [esp + 0x40]
call fcn.1001c720
mov ebx, eax
call fcn.10015b10
push 0
sub esp, 0x1c
mov edi, eax
mov eax, esp
mov dword [esp + 0x3c], esp
call fcn.10017fc0
call fcn.10020280
mov esi, eax
test esi, esi
je 0x1000d576
push esi
mov ecx, edi
call fcn.100207f0
test al, al
je 0x1000d576
mov esi, dword [esi + 0x78]
mov eax, 0x66666667
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
sete al
test al, al
jne 0x1000d5da
push ebp
lea ecx, [esp + 0x40]
call fcn.1001c720
mov ebx, eax
call fcn.10015b10
push 0
sub esp, 0x1c
mov edi, eax
mov eax, esp
mov dword [esp + 0x3c], esp
call fcn.10017fc0
call fcn.10020280
mov esi, eax
test esi, esi
je 0x1000d673
push esi
mov ecx, edi
call fcn.100207f0
test al, al
je 0x1000d673
mov esi, dword [esi + 0x78]
mov eax, 0x66666667
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 7
sete al
test al, al
je 0x1000d673
push ebp
lea ecx, [esp + 0x40]
call fcn.1001c720
sub esp, 0x1c
mov ebx, eax
mov eax, esp
mov dword [esp + 0x38], esp
call fcn.10017fc0
lea ebx, [esp + 0x3c]
call fcn.1002c200
add esp, 0x1c
mov byte [esp + 0x68], 2
mov edx, dword [esp + 0x70]
push edx
mov ecx, ebx
call fcn.1001c140
mov byte [esp + 0x68], 1
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], vtable.XStringA.0
test eax, eax
je 0x1000d64e
mov ecx, dword [esp + 0x28]
inc ecx
imul ecx, dword [esp + 0x30]
push ecx
push 0
push eax
call fcn.10057070
mov edx, dword [esp + 0x30]
push edx
call fcn.10054ff5
add esp, 0x10
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x34]
test eax, eax
je 0x1000d673
mov ecx, dword [esp + 0x38]
lea edx, [ecx + ecx]
push edx
push 0
push eax
call fcn.10057070
mov eax, dword [esp + 0x40]
push eax
call fcn.1004698d
add esp, 0x10
inc ebp
cmp ebp, dword [esp + 0x18]
jl 0x1000d51e
mov dword [esp + 0x3c], vtable.XStringAList.0
lea esi, [esp + 0x3c]
mov dword [esp + 0x68], 3
call fcn.1001c3f0
mov ecx, dword [esp + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], 0
call fcn.1004a2ea
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 4
Function at 0x100142d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1015cc70
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x101b0cd0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor ebx, ebx
lea esi, [esp + 0x48]
mov dword [esp + 0x30], 0
call fcn.1001bed0
push eax
lea eax, [esp + 0x10]
call fcn.10018050
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x44]
push eax
push ecx
mov ecx, dword [esp + 0x54]
push edx
mov byte [esp + 0x48], 1
call fcn.100140a0
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.10018140
lea ecx, [esp + 0x48]
call fcn.1001bb20
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x28
ret 0x34

Function at 0x10014370
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1015b860
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x101b0cd0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
cmp dword [ebx + 8], 0
jne 0x100143f9
push str.CBxlLabelImpl::cPrintBinaryFile
lea eax, [esp + 0x14]
call fcn.10018050
sub esp, 0x1c
mov edi, esp
push str._Invalid_filename_:___
mov ecx, 7
mov esi, ebx
push 0xab3
lea eax, [esp + 0x34]
mov dword [esp + 0x5c], 0
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.1001d2e0
add esp, 0x28
lea ecx, [esp + 0x10]
call fcn.10018140
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push ebx
call fcn.1001f040
mov edi, eax
add esp, 8
test edi, edi
jne 0x1001443f
push str.CBxlLabelImpl::cPrintBinaryFile
lea eax, [esp + 0x14]
call fcn.10018050
sub esp, 0x1c
mov edi, esp
mov ecx, 7
mov esi, ebx
push str._empty_file_:___
mov dword [esp + 0x58], 1
rep movsd dword es:[edi], dword [esi]
push 0xabb
lea ecx, [esp + 0x34]
push ecx
jmp 0x100143d4
push edi
call fcn.10046982
add esp, 4
push edi
mov esi, eax
push 0
push esi
call fcn.10057070
add esp, 0xc
push esi
push ebx
call fcn.1001f040
add esp, 8
mov edi, eax
push esi
call fcn.1000d700
xor edx, edx
cmp eax, edi
sete dl
mov dword [esp + 0xc], edx
test esi, esi
je 0x1001448c
push edi
push 0
push esi
call fcn.10057070
add esp, 0xc
push esi
call fcn.1004698d
add esp, 4
push str.CBxlLabelImpl::cPrintBinaryFile
lea eax, [esp + 0x14]
call fcn.10018050
cmp dword [esp + 0xc], 0
jne 0x100144ce
push edi
sub esp, 0x1c
mov edi, esp
push str.___:__d_bytes
lea eax, [esp + 0x34]
push 0xac6
mov dword [esp + 0x60], 2
mov ecx, 7
mov esi, ebx
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.1001d2e0
jmp 0x100144f9
push edi
sub esp, 0x1c
mov edi, esp
mov dword [esp + 0x58], 3
mov ecx, 7
mov esi, ebx
push str.___:__d_bytes
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x34]
push 0xac8
push ecx
call fcn.1001cda0
add esp, 0x2c
lea ecx, [esp + 0x10]
call fcn.10018140
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10014520
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1015cc40
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x101b0cd0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor ebx, ebx
lea esi, [esp + 0x38]
mov dword [esp + 0x30], 0
call fcn.1001bed0
push eax
lea eax, [esp + 0x10]
call fcn.10018050
lea ebx, [esp + 0xc]
mov byte [esp + 0x30], 1
call fcn.10014370
mov ecx, ebx
mov esi, eax
call fcn.10018140
lea ecx, [esp + 0x38]
call fcn.1001bb20
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x28
ret 0x1c
Function at 0x10016020
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10159066
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x101b0cd0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CLabelUniPort.0
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], 1
call fcn.1002de80
mov byte [esp + 0x14], 0
mov ecx, dword [0x101be584]
mov dword [esi + 0x24], vtable.CPortFacade.0
test ecx, ecx
je 0x1001608c
cmp dword [ecx + 0x1c], 0
jne 0x1001608c
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [0x101be584], 0
lea ecx, [esi + 8]
call fcn.10018140
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x10019d70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10019d89
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10019dc4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x10019dc0
lea ebx, [ebx]
cmp esi, eax
jae 0x10019dc4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10019db0
cmp esi, eax
jb 0x10019dca
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x1001a6d0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x1015cd40
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101b0cd0]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
xor ebp, ebp
mov ebx, ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], ebp
call fcn.10017fc0
mov dword [esp + 0x5c], ebp
mov eax, dword [esp + 0x24]
cdq
idiv dword [esp + 0x2c]
test eax, eax
jne 0x1001a766
mov al, 1
lea esi, [esp + 0x38]
call fcn.1001a430
mov ebx, eax
lea eax, [esp + 0x1c]
cmp eax, ebx
je 0x1001a75d
mov eax, dword [ebx + 8]
cdq
idiv dword [ebx + 0x10]
lea esi, [esp + 0x1c]
cmp eax, ebp
jle 0x1001a757
push eax
call fcn.100184f0
mov edi, dword [ebx + 8]
cmp edi, ebp
mov ebx, dword [ebx + 4]
jle 0x1001a75d
push ebx
mov eax, esi
call fcn.10018600
jmp 0x1001a75d
push ebp
call fcn.100184f0
lea ecx, [esp + 0x38]
call fcn.10018140
push 0x1019bc42
lea eax, [esp + 0x3c]
call fcn.10018050
mov byte [esp + 0x5c], 1
mov ebx, dword [esp + 0x20]
push ebp
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebp
jne 0x1001a794
mov ebx, 0x101be75c
jmp 0x1001a844
push esi
call fcn.10046982
mov edi, eax
add esp, 4
cmp edi, ebp
je 0x1001a78a
push esi
push ebp
push edi
call fcn.10057070
add esp, 0xc
push edi
push esi
push ebp
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1001a837
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x1019d9f8
push edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1001a837
mov eax, dword [esp + 0x14]
movzx ecx, word [eax + 0xa]
mov edx, dword [esp + 0x68]
mov esi, dword [esp + 0x6c]
mov ebx, dword [esp + 0x70]
mov dword [edx], ecx
movzx edx, word [eax + 8]
mov dword [esi], edx
movzx esi, word [eax + 0xe]
movzx eax, word [eax + 0xc]
cmp eax, ebp
mov dword [ebx], esi
mov ebx, dword [esp + 0x74]
mov dword [ebx], eax
jle 0x1001a823
push eax
push esi
push edx
push ecx
push str._d._d._d._d
lea eax, [esp + 0x4c]
call fcn.10018690
add esp, 0x14
jmp 0x1001a837
push esi
push edx
push ecx
push str._d._d._d
lea eax, [esp + 0x48]
call fcn.10018690
add esp, 0x10
push edi
call fcn.1004698d
add esp, 4
lea ebx, [esp + 0x38]
mov esi, dword [esp + 0x64]
mov eax, esi
call fcn.10017fc0
lea ecx, [esp + 0x38]
call fcn.10018140
lea ecx, [esp + 0x1c]
call fcn.10018140
mov eax, esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x1001a880
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x101b0cd0]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
xor ebx, ebx
lea eax, [esp + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esp + 4], eax
cmp eax, ebx
je 0x1001a8f9
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1001a8ea
mov dword [esp + 4], ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x14]
xor edx, edx
cmp eax, 1
sete dl
pop ebx
xor ecx, esp
mov al, dl
call fcn.1005392f
add esp, 0x14
ret

Function at 0x1001a920
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push 0x3c
lea eax, [esp + 4]
push 0
push eax
call fcn.10057070
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 4]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x54]
mov eax, dword [edx + 4]
mov dword [esp + 0x1c], ecx
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x3c
mov dword [esp + 0x10], str.runas
mov dword [esp + 0x18], eax
mov dword [esp + 8], 0x440
mov dword [esp + 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x1001a98d
call dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x3c
ret
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1001a9a2
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x3c
ret
Function at 0x1001d830
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x101591ce
mov eax, dword fs:[0]
push eax
push ebp
push esi
push edi
mov eax, dword [0x101b0cd0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, dword [esp + 0x20]
xor ebp, ebp
mov ecx, 0x11
mov eax, 0xa
mov dword [edi], vtable.CMap_int__int__int__int_.0
mov dword [edi + 4], ebp
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ebp
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], ebp
mov dword [edi + 0x18], eax
mov dword [esp + 0x18], ebp
mov dword [edi + 0x1c], vtable.CMap_int__int__struct__TRACE_INFO____struct__TRACE_INFO___.0
mov dword [edi + 0x20], ebp
mov dword [edi + 0x24], ecx
mov dword [edi + 0x28], ebp
mov dword [edi + 0x2c], ebp
mov dword [edi + 0x30], ebp
mov dword [edi + 0x34], eax
lea esi, [edi + 0x38]
mov dword [esi], vtable.XStringA.0
mov dword [esi + 0x10], 1
mov dword [esi + 4], ebp
cmp ebp, ebp
jne 0x1001d8c7
push 1
call fcn.10054f2b
mov dword [esi + 4], eax
mov ecx, dword [esi + 0x10]
push ecx
push ebp
push eax
call fcn.10057070
add esp, 0x10
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], ebp
mov byte [esp + 0x18], 2
mov eax, dword [edi + 0x20]
cmp eax, ebp
je 0x1001d8eb
push eax
call fcn.1004698d
add esp, 4
mov dword [edi + 0x20], ebp
xor ecx, ecx
mov eax, 0x40
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10046982
add esp, 4
mov dword [edi + 0x20], eax
cmp eax, ebp
jne 0x1001d915
call fcn.100490c5
push 0x100
push ebp
push eax
call fcn.10057070
mov dword [edi + 0x24], 0x40
mov eax, dword [edi + 4]
add esp, 0xc
cmp eax, ebp
je 0x1001d93e
push eax
call fcn.1004698d
add esp, 4
mov dword [edi + 4], ebp
xor ecx, ecx
mov eax, 0x40
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10046982
add esp, 4
mov dword [edi + 4], eax
cmp eax, ebp
jne 0x1001d968
call fcn.100490c5
push 0x100
push ebp
push eax
call fcn.10057070
add esp, 0xc
push ebp
mov dword [edi + 8], 0x40
call fcn.100184f0
mov dword [edi + 0x54], 7
mov dword [edi + 0x58], 3
mov dword [edi + 0x5c], 1
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4
Function at 0x1001e0e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.1001e2d0
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x1001e227
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 1
mov dword [esp + 0x2c], vtable.XStringA.0
mov dword [esp + 0x3c], 1
call fcn.10054f2b
mov esi, dword [ebp + 0x14]
sub esp, 0x18
mov byte [eax], bl
movzx edx, word [esp + 0x3e]
mov edi, esp
mov dword [esp + 0x48], eax
movzx eax, word [esp + 0x42]
push eax
movzx eax, word [esp + 0x40]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
movzx ecx, word [esp + 0x44]
push ecx
push edx
push eax
push str.__02d:_02d:_02d._03d____
lea eax, [esp + 0x58]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
call fcn.10018690
add esp, 0x30
cmp byte [ebp + 0x18], bl
je 0x1001e1a2
mov edi, dword [esp + 0x38]
add edi, edi
add edi, edi
add edi, edi
cmp edi, ebx
jle 0x1001e1a2
push str._ERROR_
lea eax, [esp + 0x2c]
call fcn.10018600
mov ebx, dword [ebp + 0x1c]
lea esi, [esp + 0x44]
call fcn.10019ab0
mov ecx, eax
mov eax, dword [ecx + 8]
cdq
idiv dword [ecx + 0x10]
test eax, eax
je 0x1001e1e5
mov esi, dword [ecx + 4]
test esi, esi
je 0x1001e1e5
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001e1c7
sub eax, edx
imul eax, dword [esp + 0x38]
test eax, eax
jle 0x1001e1e5
mov edi, eax
push esi
lea eax, [esp + 0x2c]
call fcn.10018600
lea ecx, [esp + 0x44]
call fcn.10018140
mov eax, dword [esp + 0x30]
cdq
idiv dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x28]
call fcn.10018140
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x1001e280
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 1
push eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.1001e2d0
mov esi, eax
test esi, esi
je 0x1001e2ca
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0
lea edx, [esp + 8]
push edx
push eax
push ecx
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ecx
ret 0x14
Function at 0x1001e2d0
Capabilities:
Create directory
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10159588
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x101b0cd0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
push 1
mov dword [esp + 0x24], vtable.XStringA.0
mov dword [esp + 0x34], 1
call fcn.10054f2b
add esp, 4
xor ebx, ebx
mov dword [esp + 0x24], eax
mov byte [eax], bl
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x48], ebx
mov eax, dword [esi + 4]
mov ecx, 0x1019bc42
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1001e360
cmp dl, bl
je 0x1001e35c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1001e360
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x1001e340
xor eax, eax
jmp 0x1001e365
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x1001e3ae
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x1a]
movzx edx, word [esp + 0x18]
movzx eax, word [esp + 0x16]
push ecx
movzx ecx, word [esp + 0x16]
push edx
mov edx, dword [ebp + 8]
push eax
mov eax, dword [edx + 4]
push ecx
push eax
mov eax, esi
cmp byte [ebp + 0x10], bl
je 0x1001e3a1
push str._s__02d_02d__02d_02d.bin
jmp 0x1001e3a6
push str._s__02d_02d__02d_02d.log
call fcn.10018690
add esp, 0x18
mov ecx, dword [esi + 4]
mov edx, dword [edi + 0x3c]
push ecx
push edx
push str._s_s
lea eax, [esp + 0x2c]
call fcn.10018690
mov eax, dword [edi + 0x3c]
add esp, 0xc
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x24]
push ebx
push 0x80
push 4
push ebx
push 3
push 4
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, ebx
je 0x1001e451
cmp esi, 0xffffffff
je 0x1001e451
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov eax, dword [edi + 0x58]
cdq
shr ecx, 0x14
cmp ebx, edx
ja 0x1001e41c
jb 0x1001e410
cmp ecx, eax
jae 0x1001e41c
push edi
mov ecx, esi
call fcn.1001e480
test al, al
jne 0x1001e431
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push edx
call fcn.1001e520
mov esi, eax
lea ecx, [esp + 0x20]
call fcn.10018140
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [esp + 0x20]
call fcn.10018140
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001e520
Capabilities:
Create directory

Disassembly:
sub esp, 0x30
push ebx
push esi
push 1
mov esi, eax
mov dword [esp + 0x20], vtable.XStringA.0
mov dword [esp + 0x30], 1
call fcn.10054f2b
xor ebx, ebx
mov dword [esp + 0x24], eax
mov byte [eax], bl
add esp, 4
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x16]
movzx edx, word [esp + 0x14]
movzx eax, word [esp + 0x12]
push ecx
movzx ecx, word [esp + 0x12]
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [edx + 4]
push ecx
push eax
push str._s__02d_02d__02d_02d.log
mov eax, esi
call fcn.10018690
mov ecx, dword [esi + 4]
mov edx, dword [edi + 0x3c]
push ecx
push edx
push str._s_s
lea eax, [esp + 0x40]
call fcn.10018690
mov eax, dword [edi + 0x3c]
add esp, 0x24
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x20]
push ebx
push 0x80
push 4
push ebx
push 3
push 4
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, ebx
je 0x1001e5ea
cmp esi, 0xffffffff
je 0x1001e5ea
lea ecx, [esp + 0x1c]
call fcn.10018140
mov eax, esi
pop esi
pop ebx
add esp, 0x30
ret 4
lea ecx, [esp + 0x1c]
call fcn.10018140
pop esi
xor eax, eax
pop ebx
add esp, 0x30
ret 4

Function at 0x1001f040
Capabilities:
Get file size

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
push 0x1019f2e0
lea eax, [esp + 0x20]
call fcn.10018050
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x18]
xor ebx, ebx
push ecx
lea edi, [esp + 0x24]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.1001f260
test al, al
jne 0x1001f082
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebx
jmp 0x1001f086
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
call fcn.10018140
cmp ebp, ebx
jne 0x1001f09d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x1001f0c0
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x1001f0c0
mov ebx, eax
lea edi, [esp + 0x14]
call fcn.1001f370
mov esi, eax
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret