joyce8/EMBER2024-capa huggingface dataset:
Function at 0x300138fa
Capabilities:
Enumerate files on windows

Disassembly:
push 0x4ec
mov eax, 0x3003ecfe
call fcn.3001ee0e
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x264], eax
call fcn.3001356c
test al, al
jne 0x3001395c
push 0x30003b3c
lea eax, [ebp - 0x4f8]
push 0x22
push eax
call fcn.3000c862
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x30044ba4
lea eax, [ebp - 0x3ec]
lea edi, [ebp - 0x3ec]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3001f2c0
mov ecx, esi
call fcn.3000d0d0
lea ecx, [ebp - 0x2b8]
call fcn.30010485
and dword [ebp - 4], 0
push edi
lea ecx, [ebp - 0x2b8]
call fcn.300112a1
mov esi, 0x30002cbc
push esi
lea ecx, [ebp - 0x290]
call fcn.300112b3
push 1
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.30011919
mov bl, al
neg bl
sbb bl, bl
lea ecx, [ebp - 0x290]
inc bl
mov byte [ebp - 4], 0
call fcn.300104cf
test bl, bl
je 0x300139e3
push esi
lea ecx, [ebp - 0x290]
call fcn.300112b3
push eax
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 2
call fcn.30010fc9
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 0
call fcn.300104cf
push dword [ebp - 0x264]
lea ecx, [ebp - 0x2b8]
call fcn.30010fc9
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x2b8]
call fcn.300102f3
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x264], eax
jne 0x30013a47
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x30013b51
cmp eax, 2
je 0x30013b51
push 0x30003b50
push eax
lea eax, [ebp - 0x4f8]
push eax
call fcn.3001028f
jmp 0x3001393b
mov ecx, edi
call fcn.300102f3
push eax
lea ecx, [ebp - 0x2e0]
call fcn.300112b3
push esi
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 3
call fcn.300112b3
push 1
push eax
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 4
call fcn.30011919
mov bl, al
neg bl
sbb bl, bl
lea ecx, [ebp - 0x290]
inc bl
mov byte [ebp - 4], 3
call fcn.300104cf
test bl, bl
je 0x30013ac2
push esi
lea ecx, [ebp - 0x290]
call fcn.300112b3
push eax
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 5
call fcn.30010fc9
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 3
call fcn.300104cf
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x290]
call fcn.300112b3
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 6
call fcn.30010fc9
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 3
call fcn.300104cf
lea eax, [ebp - 0x2e0]
push eax
call fcn.300122e4
test al, al
je 0x30013b1b
mov ecx, dword [ebp - 0x268]
lea eax, [ebp - 0x2e0]
push eax
call fcn.3000d83c
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 0
call fcn.300104cf
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x30013a47
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2b8]
call fcn.300104cf
call fcn.3001ee91
ret 0xc
Function at 0x30013d12
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x218
call fcn.300102f3
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x30013d70
mov ecx, dword [ebp + 8]
call fcn.300102f3
push eax
push 0x30003b98
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.3001028f
add esp, 0x10
push 0x43
pop ecx
mov esi, eax
push 0x30044ba4
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3001f2c0
leave
ret 4

Function at 0x30013d74
Capabilities:
Accept command line arguments

Disassembly:
push 0x244
mov eax, 0x3003ed69
call fcn.3001eda5
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
jne 0x30013dd7
push 0x30003bc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.3001028f
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x30044ba4
lea eax, [ebp - 0x144]
lea edi, [ebp - 0x144]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3001f2c0
xor esi, esi
cmp dword [ebp - 0x10], esi
jle 0x30013e0b
push dword [edi + esi*4]
lea ecx, [ebp - 0x38]
call fcn.300112b3
mov ecx, dword [ebp + 8]
and dword [ebp - 4], 0
lea eax, [ebp - 0x38]
push eax
call fcn.3000d83c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.300104cf
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x30013dde
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call fcn.3001ee7d
ret 4

Function at 0x300140de
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
sub esp, 0x218
cmp eax, 0xffffffff
jne 0x30014122
push 0x30003c90
lea eax, [ebp - 0x218]
push 0x3d
push eax
call fcn.3000c862
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x30044ba4
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3001f2c0
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
leave
ret 4

Function at 0x30014130
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
sub esp, 0x218
cmp eax, 0xffffffff
jne 0x30014174
push 0x30003c90
lea eax, [ebp - 0x218]
push 0x3d
push eax
call fcn.3000c862
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x30044ba4
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3001f2c0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
or eax, 0xffffffff
cmp dword [ebp + 0xc], ecx
jle 0x30014717
push esi
mov edx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
mov esi, eax
and esi, 0xff
xor edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x3004d338]
inc ecx
cmp ecx, dword [ebp + 0xc]
jl 0x300146f5
pop esi
not eax
pop ebp
ret 8
Function at 0x30014f07
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x490
mov eax, 0x3003f0f0
call fcn.3001eda5
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x30], ebx
jne 0x30014f53
push 0x30004078
lea eax, [ebp - 0x390]
push 0x3a
push eax
call fcn.3000c862
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
lea edi, [ebp - 0x178]
rep movsd dword es:[edi], dword [esi]
push 0x30044ba4
lea eax, [ebp - 0x178]
push eax
call fcn.3001f2c0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x10], 1
call fcn.300102f3
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push dword [esi + 0x30]
call edi
cmp eax, ebx
jle 0x30014f8d
and eax, 0xffff
or eax, 0x80070000
cmp eax, 0x80070002
mov dword [ebp - 0x14], eax
je 0x300150be
cmp dword [ebp - 0x18], 7
jne 0x300150be
cmp eax, ebx
jge 0x30014fd7
mov ecx, dword [ebp + 8]
call fcn.300102f3
push eax
lea ecx, [esi + 8]
call fcn.300102f3
push eax
push 0x30003e20
push dword [ebp - 0x14]
lea eax, [ebp - 0x390]
push eax
call fcn.3000c896
add esp, 0x14
jmp 0x30014f35
mov eax, dword [ebp - 0x10]
inc eax
inc eax
mov dword [ebp - 0x10], eax
shr eax, 1
push eax
lea ecx, [ebp - 0x6c]
call fcn.30014841
lea eax, [ebp - 0x10]
push eax
push ebx
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], ebx
call fcn.30014cb4
mov ecx, dword [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.300102f3
push eax
push dword [esi + 0x30]
call edi
cmp eax, ebx
jle 0x3001501c
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jge 0x30015066
mov ecx, dword [ebp + 8]
call fcn.300102f3
push eax
lea ecx, [esi + 8]
call fcn.300102f3
push eax
push 0x30003e20
lea eax, [ebp - 0x49c]
push edi
push eax
call fcn.3000c896
add esp, 0x14
push 0x43
pop ecx
mov esi, eax
lea edi, [ebp - 0x284]
rep movsd dword es:[edi], dword [esi]
push 0x30044ba4
lea eax, [ebp - 0x284]
jmp 0x30014f4d
push ebx
lea ecx, [ebp - 0x6c]
call fcn.30014cb4
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.30010485
mov byte [ebp - 4], 1
push esi
lea ecx, [ebp - 0x40]
call fcn.30011274
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x40]
push eax
call fcn.3000d83c
lea ecx, [ebp - 0x40]
call fcn.3001032e
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
jne 0x3001507d
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.300104cf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.300148b0
mov al, 1
jmp 0x300150c0
xor al, al
call fcn.3001ee7d
ret 8
Function at 0x3001ed97
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3004d9c0]
jne 0x30022520
repz ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x3004fda0], eax
mov dword [0x3004fd9c], ecx
mov dword [0x3004fd98], edx
mov dword [0x3004fd94], ebx
mov dword [0x3004fd90], esi
mov dword [0x3004fd8c], edi
mov word [0x3004fdb8], ss
mov word [0x3004fdac], cs
mov word [0x3004fd88], ds
mov word [0x3004fd84], es
mov word [0x3004fd80], fs
mov word [0x3004fd7c], gs
pushfd
pop dword [0x3004fdb0]
mov eax, dword [ebp]
mov dword [0x3004fda4], eax
mov eax, dword [ebp + 4]
mov dword [0x3004fda8], eax
lea eax, [ebp + 8]
mov dword [0x3004fdb4], eax
mov eax, dword [ebp - 0x320]
mov dword [0x3004fcf0], 0x10001
mov eax, dword [0x3004fda8]
mov dword [0x3004fca4], eax
mov dword [0x3004fc98], 0xc0000409
mov dword [0x3004fc9c], 1
mov eax, dword [0x3004d9c0]
mov dword [ebp - 0x328], eax
mov eax, dword [0x3004d9c4]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x3004fce8], eax
push 1
call fcn.3002271b
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x30008668
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x3004fce8], 0
jne 0x30022610
push 1
call fcn.3002271b
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x30026b50
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.30020fa6
xor ebx, ebx
cmp dword [0x30050170], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x30026c25
push 0x300087c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x30026b90
xor eax, eax
jmp 0x30026ce9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x300087b8
push edi
call esi
cmp eax, ebx
je 0x30026b89
push eax
call fcn.30020f43
mov dword [esp], 0x300087a8
push edi
mov dword [0x30050170], eax
call esi
push eax
call fcn.30020f43
mov dword [esp], 0x30008794
push edi
mov dword [0x30050174], eax
call esi
push eax
call fcn.30020f43
mov dword [0x30050178], eax
lea eax, [ebp - 8]
push eax
call fcn.30020256
test eax, eax
pop ecx
pop ecx
je 0x30026bf3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.3001eef8
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x30026c25
push 0x30008778
push edi
call esi
push eax
call fcn.30020f43
cmp eax, ebx
pop ecx
mov dword [0x30050180], eax
je 0x30026c25
push 0x30008760
push edi
call esi
push eax
call fcn.30020f43
pop ecx
mov dword [0x3005017c], eax
mov eax, dword [0x3005017c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x30026c9e
cmp dword [0x30050180], esi
je 0x30026c9e
push eax
call fcn.30020faf
pop ecx
call eax
cmp eax, ebx
je 0x30026c6b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x30050180]
call fcn.30020faf
pop ecx
call eax
test eax, eax
je 0x30026c6b
test byte [ebp - 0x18], 1
jne 0x30026c9e
lea eax, [ebp - 0xc]
push eax
call fcn.3002028d
test eax, eax
pop ecx
je 0x30026c86
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.3001eef8
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x30026c95
or dword [ebp + 0x10], 0x200000
jmp 0x30026ccf
or dword [ebp + 0x10], 0x40000
jmp 0x30026ccf
mov eax, dword [0x30050174]
cmp eax, esi
je 0x30026ccf
push eax
call fcn.30020faf
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x30026ccf
mov eax, dword [0x30050178]
cmp eax, esi
je 0x30026ccf
push dword [ebp - 4]
push eax
call fcn.30020faf
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x30050170]
call fcn.30020faf
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x3002dc3e
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x3004d9c0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x7ff
push eax
call fcn.3001f0d9
add esp, 0x10
lea eax, [ebp - 0x804]
push eax
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.3001ed97
leave
ret
Function at 0x3002dd25
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov esi, ecx
xor ecx, ecx
mov eax, 0x30050300
inc ecx
lock xadd dword [eax], ecx
inc ecx
cmp ecx, 1
jne 0x3002dd76
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x28]
mov dword [0x30050304], eax
mov ax, word [ebp - 0x30]
mov word [0x30050308], ax
mov eax, dword [ebp - 0x18]
mov dword [0x3005030c], eax
mov eax, dword [ebp - 0x40]
mov dword [0x30050310], eax
mov eax, esi
pop esi
leave
ret

Function at 0x300341ae
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x3004d9c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x300341e5
push 4
pop eax
jmp 0x3003425f
push 2
pop ecx
cmp dword [ebp - 0x88], ecx
jne 0x30034230
push 4
pop eax
cmp dword [ebp - 0x94], eax
jne 0x30034203
mov dword [esi], 3
jmp 0x3003425d
cmp dword [ebp - 0x94], 5
jne 0x30034228
cmp dword [ebp - 0x90], 0
je 0x30034224
xor eax, eax
cmp dword [ebp - 0x90], 1
setne al
add eax, 5
mov dword [esi], eax
jmp 0x3003425d
mov dword [esi], 6
jmp 0x3003425d
xor eax, eax
inc eax
cmp dword [ebp - 0x88], eax
jne 0x3003425d
cmp dword [ebp - 0x90], 0
je 0x3003425a
cmp dword [ebp - 0x90], 0xa
je 0x30034224
cmp dword [ebp - 0x90], 0x5a
jne 0x3003425d
mov dword [esi], ecx
jmp 0x3003425d
and dword [esi], 0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.3001ed97
leave
ret 4
Function at 0x30038808
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 0x14]
push eax
call fcn.300341ae
cmp eax, 4
jne 0x30038820
xor al, al
leave
ret
cmp dword [ebp - 0x14], 2
jle 0x3003882a
mov al, 1
leave
ret
push ebx
lea eax, [ebp - 0xc]
push eax
push 1
xor ebx, ebx
push ebx
push 0x3000a41c
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x30038856
cmp eax, 2
sete bl
jmp 0x300388dc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
mov edi, 0x30009a04
push edi
push dword [ebp - 0xc]
mov dword [ebp - 8], ebx
call esi
cmp eax, ebx
je 0x3003887f
cmp eax, 2
sete bl
jmp 0x300388da
mov eax, dword [ebp - 8]
inc eax
push eax
call fcn.300156eb
cmp eax, ebx
pop ecx
mov dword [ebp - 0x10], eax
je 0x300388da
lea ecx, [ebp - 8]
push ecx
push eax
push ebx
push ebx
push edi
push dword [ebp - 0xc]
call esi
cmp eax, ebx
je 0x300388aa
cmp eax, 2
sete bl
jmp 0x300388d1
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
push 0x76
push esi
mov byte [eax + esi], bl
call fcn.3002c68e
test eax, eax
pop ecx
pop ecx
jne 0x300388d1
push 0x56
push esi
call fcn.3002c68e
test eax, eax
pop ecx
pop ecx
jne 0x300388d1
mov bl, 1
push dword [ebp - 0x10]
call fcn.30015713
pop ecx
pop edi
pop esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret
Function at 0x10004260
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c31fb
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x100eb6ac]
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]
xor edi, edi
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 0x68], edi
xor ecx, ecx
push edi
mov word [ebp - 0x2c], cx
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
call fcn.100166c0
mov dword [ebp - 4], 1
cmp dword [ebp - 0x1c], edi
jne 0x10004306
lea ecx, [ebp - 0x48]
call fcn.10077db0
mov byte [ebp - 4], 2
mov edi, eax
lea esi, [ebp - 0x2c]
call fcn.10016430
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], 8
jb 0x100042f0
mov edx, dword [ebp - 0x48]
push edx
call fcn.1009c0c0
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
xor edi, edi
push 1
mov eax, 0x100cde64
lea ecx, [ebp - 0x2c]
call fcn.10016590
push edi
mov esi, eax
push ebx
or eax, 0xffffffff
call fcn.100164a0
cmp dword [ebp - 0x1c], edi
je 0x10004371
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x10004332
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x10004371
xor ecx, ecx
push edi
lea edx, [ebp - 0x2c]
mov word [ebp - 0x48], cx
push edx
or eax, 0xffffffff
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
call fcn.100166c0
lea edi, [ebp - 0x48]
mov byte [ebp - 4], 3
mov ebx, 1
jmp 0x1000439d
xor eax, eax
mov word [ebp - 0x64], ax
push edi
mov eax, 0x100d7118
lea esi, [ebp - 0x64]
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], edi
call fcn.10019760
mov edi, esi
mov dword [ebp - 4], 4
mov ebx, 2
mov dword [ebp - 0x68], ebx
mov esi, dword [ebp - 0x6c]
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
call fcn.10016430
or ebx, 4
mov dword [ebp - 0x68], ebx
mov dword [ebp - 4], 3
test bl, 2
je 0x100043fa
and ebx, 0xfffffffd
mov dword [ebp - 0x68], ebx
cmp dword [ebp - 0x50], 8
jb 0x100043e5
mov edx, dword [ebp - 0x64]
push edx
call fcn.1009c0c0
add esp, 4
xor esi, esi
mov edi, 7
xor eax, eax
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], esi
mov word [ebp - 0x64], ax
jmp 0x10004401
mov edi, 7
xor esi, esi
mov dword [ebp - 4], 1
test bl, 1
je 0x10004431
and ebx, 0xfffffffe
mov dword [ebp - 0x68], ebx
cmp dword [ebp - 0x34], 8
jb 0x10004425
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.1009c0c0
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], dx
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 8
jb 0x10004447
mov eax, dword [ebp - 0x2c]
push eax
call fcn.1009c0c0
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], cx
mov eax, dword [ebp - 0x6c]
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.1009c0cb
mov esp, ebp
pop ebp
ret 8
Function at 0x10016a50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100be258
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100eb6ac]
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 edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x10016b7d
cmp byte [edi + 0x49], bl
je 0x10016b7d
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x10016b0f
mov ecx, 0xf
mov dword [ebp - 0x18], ecx
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x10016ac4
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x10016adc
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x10016b13
dec eax
je 0x10016b17
sub eax, 2
je 0x10016b6e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10011aa0
xor al, al
jmp 0x10016b7f
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x10016b27
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x10016b50
cmp ebx, 0x10
jae 0x10016b36
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.1009db67
add esp, 0x10
cmp esi, eax
jne 0x10016b00
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x10016b6e
test esi, esi
jne 0x10016ad0
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.10015f60
jmp 0x10016aca
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10011aa0
mov al, 1
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.1009c0cb
mov esp, ebp
pop ebp
ret
Function at 0x10019560
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bd583
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100eb6ac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1009b73d
mov dword [ebp - 4], 0
push 4
call fcn.1009ddc4
mov edi, eax
add esp, 4
test edi, edi
je 0x100195e8
call fcn.1009b538
mov dword [edi], eax
call fcn.1009b2f7
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.1009b6fe
mov byte [ebp - 4], 1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x100195da
inc eax
mov dword [ebx + 4], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.1009b726
jmp 0x100195ea
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret