joyce8/EMBER2024-capa huggingface dataset:
Function at 0xe72fb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6ba000]
push edi
or ebp, 0xffffffff
jmp 0xe72fd2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xe72fd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xe72fc8
mov eax, 1
add ebx, ebx
jne 0xe72feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xe72ffc
jne 0xe7301b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xe7301b
dec eax
add ebx, ebx
jne 0xe73008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xe72fe0
add ebx, ebx
jne 0xe73017
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xe7306d
xor ecx, ecx
sub eax, 3
jb 0xe73033
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xe730a2
sar eax, 1
mov ebp, eax
jmp 0xe7303e
add ebx, ebx
jne 0xe7303e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xe7300c
inc ecx
add ebx, ebx
jne 0xe7304c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xe7300c
add ebx, ebx
jne 0xe73059
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xe7304e
jne 0xe7306a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xe7304e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xe7308c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xe7307e
jmp 0xe72fce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xe7308c
add edi, ecx
jmp 0xe72fce
pop esi
mov edi, esi
mov ecx, 0x5f2f2e
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0xe730c7
cmp byte [edi], 0xcb
jne 0xe730ac
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0xe730aa
lea edi, [esi + 0xa2f000]
mov eax, dword [edi]
or eax, eax
je 0xe7310f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xad1100]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xad12c8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xe730cd
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xad12d0]
or eax, eax
je 0xe73109
mov dword [ebx], eax
add ebx, 4
jmp 0xe730ea
call dword [esi + 0xad12cc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xe73140
cmp al, 0xef
ja 0xe73133
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xe73115
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xe73122
mov ebp, dword [esi + 0xad12d4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xe73174
sub esp, 0xffffff80
jmp 0xa63d10
Function at 0x401020
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40377f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_1
movsx eax, word [esp + 0x20]
push eax
lea ecx, [esp + 8]
push 0x406050
push ecx
push 8
push 1
push 3
push esi
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_COleDispatchDriver::InvokeHelper
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x4010b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4037af
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_1
movsx eax, word [esp + 0x20]
push eax
lea ecx, [esp + 8]
push 0x40605c
push ecx
push 8
push 1
push 3
push esi
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_COleDispatchDriver::InvokeHelper
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x402810
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x403b1f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_1
movsx eax, word [esp + 0x20]
push eax
lea ecx, [esp + 8]
push 0x4064a0
push ecx
push 8
push 1
push 3
push esi
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_COleDispatchDriver::InvokeHelper
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x1009b454
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x1014fef1
call fcn.10147df8
mov esi, ecx
mov dword [ebp - 0x14], esi
call fcn.1008f6dc
xor ebx, ebx
mov dword [esi], vtable.ScObjects::Thread.0
push 0x10
mov dword [ebp - 4], ebx
mov dword [esi + 0x10], ebx
mov byte [esi + 0x14], bl
call fcn.10108ead
mov dword [ebp - 0x14], eax
pop ecx
test eax, eax
je 0x1009b49b
mov dword [eax], vtable.ScObjects::ThreadData.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
jmp 0x1009b49d
mov eax, ebx
mov dword [esi + 8], eax
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push 0x1009b680
push ebx
push ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
cmp ecx, 0xffffffff
jne 0x1009b4d0
mov eax, dword [esi + 8]
mov dword [esi + 0x10], 0x20
mov dword [esi + 0xc], ebx
mov dword [eax + 4], ebx
jmp 0x1009b4dc
mov eax, dword [ebp - 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
mov dword [eax + 4], ecx
mov eax, esi
call fcn.10147dc1
ret

Function at 0x1009b790
Capabilities:
Resume thread

Disassembly:
cmp dword [ecx + 0x10], 0
jne 0x1009b7a2
mov eax, dword [ecx + 8]
push dword [eax + 4]
call dword [sym.imp.kernel32.dll_ResumeThread]
ret

Function at 0x100a1d60
Capabilities:
Generate random numbers via winapi

Disassembly:
push 0x2c
mov eax, 0x10150bd0
call fcn.10147e2c
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x38], esi
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x34], edi
call fcn.1009b955
mov dword [ebp - 4], edi
mov dword [ebp - 0x34], 1
call fcn.100a1e88
test eax, eax
jne 0x100a1da4
push 0xffffffffffffffff
push 0x10159980
mov ecx, esi
call fcn.10108ead
jmp 0x100a1dea
lea ecx, [ebp - 0x20]
push ecx
push 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov ecx, esi
push 0xffffffffffffffff
push 0x10159980
test eax, eax
je 0x100a1d9d
call fcn.10108ead
movzx eax, byte [ebp + edi - 0x20]
push eax
lea eax, [ebp - 0x30]
push 0x10165c80
push eax
call fcn.10108ead
lea eax, [ebp - 0x30]
push eax
push esi
call fcn.10108ead
add esp, 0x14
inc edi
cmp edi, 0x10
jb 0x100a1dc3
mov eax, esi
call fcn.10147dd6
ret

Function at 0x100a1e88
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push esi
mov esi, dword [0x107d4410]
test esi, esi
jne 0x100a1edc
push edi
push esi
push 1
push esi
push esi
mov edi, 0x107d4410
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x100a1ed5
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x100a1ed5
push 8
push 1
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x100a1ed5
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [0x107d4410], esi
jmp 0x100a1edb
mov esi, dword [0x107d4410]
pop edi
mov eax, esi
pop esi
ret
Function at 0x100a2070
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x54
mov eax, 0x10150c7f
call fcn.10147e2c
mov ebx, dword [ebp + 8]
xor eax, eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x44], eax
call fcn.100a1e88
and dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x48], eax
call fcn.1009b955
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.1009b955
push edi
mov eax, 0x10165d08
mov dword [ebp - 0x44], 1
push eax
push esi
push eax
push edi
push ebx
call fcn.10108ead
pop ecx
pop ecx
push eax
call fcn.10108ead
pop ecx
pop ecx
push eax
call fcn.10108ead
pop ecx
pop ecx
push eax
call fcn.10108ead
pop ecx
pop ecx
push eax
call fcn.10108ead
mov eax, dword [ebp - 0x48]
pop ecx
pop ecx
test eax, eax
jne 0x100a2105
push 0xffffffffffffffff
push 0x10159980
mov ecx, ebx
call fcn.10108ead
jmp 0x100a21c1
lea ecx, [ebp - 0x3c]
xor esi, esi
push ecx
push esi
push esi
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x100a20f2
push esi
push dword [ebx + 8]
push dword [ebx + 4]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x100a20f2
push 4
pop ecx
push esi
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x40], esi
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x4c], ecx
push eax
push ecx
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x100a20f2
push dword [ebp - 0x40]
call fcn.10108ead
mov edi, eax
pop ecx
test edi, edi
je 0x100a20f2
push esi
lea eax, [ebp - 0x40]
push eax
push edi
push 2
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov ecx, ebx
push 0xffffffffffffffff
push 0x10159980
test eax, eax
jne 0x100a2185
call fcn.10108ead
jmp 0x100a21ba
call fcn.10108ead
cmp dword [ebp - 0x40], esi
jbe 0x100a21ba
cmp esi, 0x28
jae 0x100a21ba
movzx eax, byte [esi + edi]
push eax
lea eax, [ebp - 0x38]
push 0x10165c80
push eax
call fcn.10108ead
lea eax, [ebp - 0x38]
push eax
push ebx
call fcn.10108ead
add esp, 0x14
inc esi
cmp esi, dword [ebp - 0x40]
jb 0x100a218f
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
pop ecx
cmp dword [ebp - 0x3c], 0
je 0x100a21d0
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea ecx, [ebp - 0x60]
call fcn.10108ead
mov eax, ebx
call fcn.10147dd6
ret
Function at 0x100afdae
Capabilities:
Create mailslot

Disassembly:
push 0x14
mov eax, 0x10152d8e
call fcn.10147df8
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [0x10191e8c]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100ab64a
xor ebx, ebx
mov dword [esi], vtable.WinInterAppStream.0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.1009b955
lea eax, [esi + 0x40]
mov byte [ebp - 4], 1
push eax
lea eax, [esi + 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10108ead
pop ecx
pop ecx
push eax
call fcn.10108ead
push 0xc
lea edi, [esi + 0x56]
push ebx
push edi
call sub.VCRUNTIME140.dll_memset
push edi
mov ecx, ebx
call fcn.10108ead
add esp, 0x18
test al, al
je 0x100afe21
cmp dword [esi + 0x5a], ebx
cmovne ecx, edi
push ecx
push ebx
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.kernel32.dll_CreateMailslotA]
lea ecx, [ebp - 0x20]
mov dword [esi + 0x52], eax
call fcn.10108ead
mov eax, esi
call fcn.10147dc1
ret 8

Function at 0x100affb0
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x101509dd
call fcn.10147df8
mov esi, ecx
push esi
lea ecx, [ebp - 0x1c]
call fcn.1008f6a9
and dword [ebp - 4], 0
lea eax, [esi + 0x30]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1009b803
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
push dword [eax + 8]
push dword [eax + 4]
call fcn.10108ead
push 0
xor ecx, ecx
lea eax, [esi + 0x56]
cmp dword [esi + 0x5a], ecx
push 0x80
push 3
cmovne ecx, eax
push ecx
push ebx
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.kernel32.dll_CreateFileA]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x100b004b
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push 0
push ecx
push dword [edi + 8]
push dword [edi + 4]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
push dword [ebp - 0x14]
mov esi, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
test esi, esi
je 0x100b004b
mov eax, dword [ebp - 0x10]
cmp eax, dword [edi + 8]
je 0x100b004d
xor bl, bl
lea ecx, [ebp - 0x2c]
call fcn.10108ead
lea ecx, [ebp - 0x1c]
call fcn.10108ead
mov al, bl
call fcn.10147dc1
ret 8
Function at 0x10108ead
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x10108ebc
pop dword [ebp - 0x40]
mov eax, 0x10108ebc
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x36231e8c
add dword [ebp - 0x50], 0x182f26bf
mov dword [ebp - 0x4c], 0x2f1f810b
sub dword [ebp - 0x4c], 0xfcec34c6
mov dword [ebp - 0x48], 0x3f0b8f06
add dword [ebp - 0x48], 0xd40b528
mov dword [ebp - 0x44], 0x7c75c881
add dword [ebp - 0x44], 0x838a377f
lea eax, [ebp - 0x50]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x33289e1d
add dword [ebp - 0x50], 0x4149cb39
mov dword [ebp - 0x4c], 0x23735d66
sub dword [ebp - 0x4c], 0xe206fbf1
mov dword [ebp - 0x48], 0xd4bd6008
sub dword [ebp - 0x48], 0x714df39c
mov dword [ebp - 0x44], 0xc1ffafdf
add dword [ebp - 0x44], 0x3e005021
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x904cf3e7
sub eax, 0x8037a14b
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x7535b
push 0
call eax
mov ecx, 0x5828a42e
add ecx, 0xa7d7acff
mov esi, eax
mov edx, 0x107ec400
add edx, dword [ebp - 0x40]
mov edi, 0x2d0efdc2
add edi, 0xcfcd3cf2
mov dword [ebp - 0x24], 0x94b3435d
mov ebx, dword [edx]
xor ebx, edi
add dword [ebp - 0x18], 0xabd2baf8
mov dword [esi], ebx
add esi, 0xf7af6d15
add esi, 0x85092ef
add edx, 4
loop 0x10108fce
add eax, 0x639e2e5a
sub eax, 0x639cf6d3
xor ebx, ebx
add ebx, eax
add eax, 0x473fc3a9
add eax, 0xb8c03c5c
mov ecx, 0x10000000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x10127680
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x1012771b
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x101276d2
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x101276d2
cmp esi, ebx
jge 0x101276d2
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x10127715
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x10127715
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x10155aa8]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1012772d
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x10127950
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x101975e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107d44f4], 0
mov eax, dword [ebp + 8]
je 0x10127978
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x10127992
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.10108ead
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10147db0
leave
ret 4

Function at 0x10127b60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x101975e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107d44f4], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x10127b96
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x10127bf5
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.10108ead
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.10108ead
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.10108ead
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10147db0
leave
ret 0x10
Function at 0x10127c10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x101975e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107d44f4], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x10127c3c
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x10127c6d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x10127c6b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.10108ead
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x10127c6d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10147db0
leave
ret 8
Function at 0x10136c00
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x101975e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor edx, edx
push edi
xor ebx, ebx
inc edx
mov edi, dword [esi]
cmp dword [edi + 0x254], ebx
je 0x10136c60
cmp dword [edi + 0x264], ebx
je 0x10136c59
cmp byte [0x107d44f4], 0
push edi
push dword [edi + 0x250]
je 0x10136c48
call dword [sym.imp.kernel32.dll_FindNextFileW]
jmp 0x10136c4e
call dword [sym.imp.kernel32.dll_FindNextFileA]
mov ecx, dword [esi]
xor edx, edx
inc edx
mov dword [ecx + 0x264], eax
mov eax, dword [esi]
jmp 0x10136d40
mov eax, dword [edi + 0x25c]
test eax, eax
je 0x10136dcf
push eax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy]
pop ecx
pop ecx
mov ecx, dword [esi]
cmp dword [ecx + 0x260], ebx
je 0x10136cae
lea eax, [ebp - 0x234]
push eax
call fcn.10108ead
mov eax, dword [esi]
push dword [eax + 0x260]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat]
mov ecx, dword [esi]
add esp, 0xc
test byte [ecx + 0x268], 1
push 0x10
pop eax
lea edx, [eax + 0x70]
cmove eax, edx
mov dword [ecx], eax
cmp byte [0x107d44f4], 0
je 0x10136cda
push dword [esi]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
jmp 0x10136cfc
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.10108ead
push dword [esi]
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov ecx, dword [esi]
mov dword [ecx + 0x250], eax
xor eax, eax
mov ecx, dword [esi]
cmp dword [ecx + 0x250], 0xffffffff
setne al
mov dword [ecx + 0x264], eax
mov eax, dword [esi]
cmp dword [eax + 0x264], ebx
jne 0x10136d2a
mov dword [eax + 0x250], ebx
mov eax, dword [esi]
xor edx, edx
inc edx
mov dword [eax + 0x254], edx
mov eax, dword [esi]
cmp dword [eax + 0x264], ebx
jne 0x10136d40
mov dword [esi + 4], edx
mov ecx, eax
cmp dword [eax + 0x264], ebx
je 0x10136d67
cmp byte [0x107d44f4], 0
jne 0x10136d67
push dword [eax + 0x258]
add eax, 0x2c
push eax
call fcn.10108ead
mov ecx, dword [esi]
xor edx, edx
inc edx
mov eax, dword [ecx]
mov dword [ecx + 0x26c], eax
mov edi, dword [esi]
mov ebx, dword [edi + 0x26c]
shr ebx, 4
and ebx, edx
je 0x10136d9c
push esi
xor ebx, ebx
call fcn.10108ead
xor edx, edx
inc edx
cmp word [eax], 0x2e
je 0x10136d98
test byte [edi + 0x268], 3
jne 0x10136da6
mov ebx, edx
jmp 0x10136da6
test byte [edi + 0x268], 1
cmovne ebx, edx
mov eax, dword [edi + 0x264]
test eax, eax
je 0x10136dca
push 0
test ebx, ebx
pop ebx
jne 0x10136c20
test byte [edi + 0x26c], 2
jne 0x10136c20
test eax, eax
setne al
jmp 0x10136dd1
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10147db0
leave
ret 4
Function at 0x1001205f
Capabilities:
Link many functions at runtime

Disassembly:
push 0x28
mov eax, 0x10043a9b
call fcn.100308d0
mov esi, ecx
mov dword [ebp - 0x34], esi
mov eax, dword [esi]
push 0x10001528
call dword [eax + 4]
test eax, eax
je 0x10012233
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1000151c
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
push 0x10001510
push eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
push 0x100014fc
push eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
push 0x100014f0
push eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 4]
push 0x100014e0
push eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 4]
push 0x100014d4
push eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 4]
push 0x100014c8
push eax
call edi
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
push 0x100014b8
push eax
call edi
mov dword [esi + 0x24], eax
mov eax, dword [esi + 4]
push 0x100014a4
push eax
call edi
mov dword [esi + 0x28], eax
mov eax, dword [esi + 4]
push 0x10001494
push eax
call edi
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 4]
push 0x10001488
push eax
call edi
mov dword [esi + 0x30], eax
mov eax, dword [esi + 4]
push 0x10001478
push eax
call edi
mov dword [esi + 0x34], eax
mov eax, dword [esi + 4]
push 0x1000146c
push eax
call edi
mov dword [esi + 0x38], eax
mov eax, dword [esi + 4]
push 0x10001460
push eax
call edi
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 4]
push 0x10001450
push eax
call edi
mov dword [esi + 0x40], eax
mov eax, dword [esi + 4]
push 0x10001440
push eax
call edi
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
push 0x1000142c
push eax
call edi
mov dword [esi + 0x48], eax
mov eax, dword [esi + 4]
push 0x1000141c
push eax
call edi
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 8]
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x10012200
cmp dword [esi + 0xc], edi
je 0x10012200
cmp dword [esi + 0x10], edi
je 0x10012200
cmp dword [esi + 0x14], edi
je 0x10012200
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call eax
cmp eax, 1
je 0x100121db
or dword [ebp - 0x28], 0xffffffff
push 0x10045c78
lea eax, [ebp - 0x28]
push eax
call fcn.100303d8
push esi
push 0x10011fba
push edi
push edi
call dword [esi + 0x10]
mov dword [esi + 0x50], eax
cmp eax, edi
jne 0x100121fb
or dword [ebp - 0x2c], 0xffffffff
push 0x10045c78
lea eax, [ebp - 0x2c]
jmp 0x100121d5
xor eax, eax
inc eax
jmp 0x10012235
or dword [ebp - 0x30], 0xffffffff
push 0x10045c78
lea eax, [ebp - 0x30]
jmp 0x100121d5
xor eax, eax
call fcn.10030984
ret