joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100083f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1000d890
push 0x10003620
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [section..data]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
xor ebx, ebx
mov dword [ebp - 0x40], ebx
xor esi, esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], ebx
mov ecx, dword [0x10010be0]
cmp ecx, ebx
jne 0x10008583
lea eax, [ebx + 0x20]
call fcn.1000b030
mov esi, eax
mov dword [ebp - 0x44], esi
cmp esi, ebx
je 0x1000858a
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [ebp - 0x3c], 0x20
mov dword [ebp - 0x38], 5
push 0x10
push 0x1000d32c
push 0x10
lea eax, [ebp - 0x30]
push eax
call fcn.1000129b
add esp, 0x10
push ebx
lea ecx, [ebp - 0x3c]
push ecx
push edi
mov ebx, dword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
call ebx
mov dword [esi + 0xc], eax
test eax, eax
je 0x1000858a
push 0x10
push 0x1000d31c
push 0x10
lea edx, [ebp - 0x30]
push edx
call fcn.1000129b
add esp, 0x10
push 0
lea eax, [ebp - 0x3c]
push eax
push edi
call ebx
mov dword [esi + 0x10], eax
test eax, eax
je 0x1000858a
mov dword [esi + 8], edi
mov ecx, dword [ebp - 0x48]
mov dword [ecx], esi
mov dword [0x10010be0], esi
push 0
mov ebx, 1
push ebx
push ebx
push 0
mov edi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
call edi
mov dword [0x10010be4], eax
test eax, eax
je 0x1000858a
mov dword [0x10010be8], ebx
push 0
push ebx
push ebx
push 0
call edi
mov dword [0x10010c10], eax
test eax, eax
je 0x1000858a
mov dword [0x10010c14], ebx
push 0
push 0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x10010c0c], eax
test eax, eax
je 0x10008591
mov eax, 0x10010c18
mov dword [0x10010c18], eax
mov dword [0x10010c1c], eax
push esi
call fcn.10009d90
add esp, 4
test eax, eax
je 0x1000858a
push 0
push 0
push 0
push 0x1000b1a0
push 0
push 0
call fcn.10001488
add esp, 0x18
mov dword [0x10010c08], eax
test eax, eax
je 0x1000858a
mov dword [0x10010c20], 5
jmp 0x10008591
cmp dword [ecx + 8], edi
jne 0x10008591
mov dword [eax], ebx
mov dword [ebp - 0x40], 0xc0000007
mov dword [ebp - 4], 0xfffffffe
call fcn.100085c0
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10001000
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000af20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareInteliusb3monParameters
push 0x80000001
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000af80
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push str.IgnoreUSB30Hub
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
add esp, 0x10
ret
Function at 0x401de0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], fcn.00401de0
mov dword [eax + 0x50], 0x6a09e667
mov dword [eax + 0x54], 0xbb67ae85
mov dword [eax + 0x58], 0x3c6ef372
mov dword [eax + 0x5c], 0xa54ff53a
mov dword [eax + 0x60], 0x510e527f
mov dword [eax + 0x64], 0x9b05688c
mov dword [eax + 0x68], 0x1f83d9ab
mov dword [eax + 0x6c], 0x5be0cd19
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
ret
Function at 0x41f741
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4472b0
cmp edx, dword [eax]
je 0x41f763
add eax, 8
inc ecx
cmp eax, 0x447340
jl 0x41f754
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4472b0]
jne 0x41f891
mov eax, dword [0x447668]
cmp eax, 1
je 0x41f86b
test eax, eax
jne 0x41f794
cmp dword [0x447200], 1
je 0x41f86b
cmp edx, 0xfc
je 0x41f891
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41f7cb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041fcf0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041fe60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41f80e
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041fe60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x422438
push edi
call fcn.00420af0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041fcf0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041fd00
lea eax, [ebp - 0xa0]
push 0x422418
push eax
call fcn.0041fd00
push dword [esi + 0x4472b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041fd00
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00420a5e
add esp, 0x2c
pop edi
jmp 0x41f891
lea eax, [ebp + 8]
lea esi, [esi + 0x4472b4]
push 0
push eax
push dword [esi]
call fcn.0041fe60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10098504
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x1014b671
call fcn.10143988
mov esi, ecx
mov dword [ebp - 0x14], esi
call fcn.1008c7ec
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.1011b229
mov dword [ebp - 0x14], eax
pop ecx
test eax, eax
je 0x1009854b
mov dword [eax], vtable.ScObjects::ThreadData.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
jmp 0x1009854d
mov eax, ebx
mov dword [esi + 8], eax
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push 0x10098730
push ebx
push ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [esi + 8]
mov edx, eax
add esp, 0x18
cmp edx, 0xffffffff
jne 0x10098580
mov dword [esi + 0x10], 0x20
mov dword [esi + 0xc], ebx
mov dword [ecx + 4], ebx
jmp 0x10098589
mov eax, dword [ebp - 0x10]
mov dword [esi + 0xc], eax
mov dword [ecx + 4], edx
mov eax, esi
call fcn.10143951
ret

Function at 0x10098830
Capabilities:
Resume thread

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

Function at 0x1009ee10
Capabilities:
Generate random numbers via winapi

Disassembly:
push 0x2c
mov eax, 0x1014c350
call fcn.101439bc
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.100989f5
mov dword [ebp - 4], edi
mov dword [ebp - 0x34], 1
call fcn.1009ef38
test eax, eax
je 0x1009ee8c
lea ecx, [ebp - 0x20]
push ecx
push 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1009ee8c
push 0xffffffffffffffff
push 0x10155980
mov ecx, esi
call fcn.1011b229
movzx eax, byte [ebp + edi - 0x20]
push eax
lea eax, [ebp - 0x30]
push 0x10161ca0
push eax
call fcn.1011b229
lea eax, [ebp - 0x30]
push eax
push esi
call fcn.1011b229
add esp, 0x14
inc edi
cmp edi, 0x10
jb 0x1009ee63
jmp 0x1009ee9a
push 0xffffffffffffffff
push 0x10155980
mov ecx, esi
call fcn.1011b229
mov eax, esi
call fcn.10143966
ret

Function at 0x1009ef38
Capabilities:
Create new key via cryptacquirecontext

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

Disassembly:
push 0x58
mov eax, 0x1014c3ff
call fcn.101439bc
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ebx
call fcn.1009ef38
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x3c], ebx
call fcn.100989f5
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 4], 1
call fcn.100989f5
push edi
mov eax, 0x10161d28
mov dword [ebp - 0x48], 1
push eax
push esi
mov esi, dword [ebp - 0x44]
push eax
push edi
push esi
call fcn.1011b229
pop ecx
pop ecx
push eax
call fcn.1011b229
pop ecx
pop ecx
push eax
call fcn.1011b229
pop ecx
pop ecx
push eax
call fcn.1011b229
pop ecx
pop ecx
push eax
call fcn.1011b229
mov eax, dword [ebp - 0x4c]
pop ecx
pop ecx
test eax, eax
je 0x1009f271
lea ecx, [ebp - 0x3c]
push ecx
push ebx
push ebx
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1009f271
push ebx
push dword [esi + 8]
push dword [esi + 4]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1009f271
push 4
pop ecx
push ebx
lea eax, [ebp - 0x50]
mov dword [ebp - 0x40], ebx
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x50], ecx
push eax
push ecx
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1009f271
push dword [ebp - 0x40]
call fcn.1011b229
mov edi, eax
pop ecx
test edi, edi
je 0x1009f271
push ebx
lea eax, [ebp - 0x40]
push eax
push edi
push 2
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov ecx, esi
push 0xffffffffffffffff
push 0x10155980
test eax, eax
jne 0x1009f232
call fcn.1011b229
jmp 0x1009f268
call fcn.1011b229
cmp dword [ebp - 0x40], 0
jbe 0x1009f268
cmp ebx, 0x28
jae 0x1009f268
movzx eax, byte [ebx + edi]
push eax
lea eax, [ebp - 0x38]
push 0x10161ca0
push eax
call fcn.1011b229
lea eax, [ebp - 0x38]
push eax
push esi
call fcn.1011b229
add esp, 0x14
inc ebx
cmp ebx, dword [ebp - 0x40]
jb 0x1009f23d
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
pop ecx
jmp 0x1009f27f
push 0xffffffffffffffff
push 0x10155980
mov ecx, esi
call fcn.1011b229
cmp dword [ebp - 0x3c], 0
je 0x1009f28e
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea ecx, [ebp - 0x64]
call fcn.1011b229
mov eax, esi
call fcn.10143966
ret
Function at 0x100acc8e
Capabilities:
Create mailslot

Disassembly:
push 0x14
mov eax, 0x1014e497
call fcn.10143988
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [0x1018de8c]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100a8720
xor ebx, ebx
mov dword [esi], vtable.WinInterAppStream.0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.100989f5
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.1011b229
pop ecx
pop ecx
push eax
call fcn.1011b229
push 0xc
lea edi, [esi + 0x58]
push ebx
push edi
call sub.VCRUNTIME140.dll_memset
push edi
mov ecx, ebx
call fcn.1011b229
add esp, 0x18
test al, al
je 0x100acd01
cmp dword [esi + 0x5c], 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 + 0x54], eax
call fcn.1011b229
mov eax, esi
call fcn.10143951
ret 8

Function at 0x100ace90
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x1014c15d
call fcn.10143988
mov esi, ecx
push esi
lea ecx, [ebp - 0x1c]
call fcn.1008c7b9
and dword [ebp - 4], 0
lea eax, [esi + 0x30]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100988a3
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.1011b229
push 0
xor ecx, ecx
lea eax, [esi + 0x58]
cmp dword [esi + 0x5c], 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 0x100acf2b
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 0x100acf2b
mov eax, dword [ebp - 0x10]
cmp eax, dword [edi + 8]
je 0x100acf2d
xor bl, bl
lea ecx, [ebp - 0x2c]
call fcn.1011b229
lea ecx, [ebp - 0x1c]
call fcn.1011b229
mov al, bl
call fcn.10143951
ret 8
Function at 0x1011b229
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x1011b238
pop dword [ebp - 0x24]
mov eax, 0x1011b238
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x8cde9635
sub dword [ebp - 0x34], 0x3e8c50ea
mov dword [ebp - 0x30], 0xef26b0e0
sub dword [ebp - 0x30], 0xbcf3649b
mov dword [ebp - 0x2c], 0xe16ef559
sub dword [ebp - 0x2c], 0x9522b12b
mov dword [ebp - 0x28], 0xb6ca5535
add dword [ebp - 0x28], 0x4935aacb
lea eax, [ebp - 0x34]
push eax
mov eax, 0x3ee0ce8a
sub eax, 0x2ecbbbd2
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x7b38e617
sub dword [ebp - 0x34], 0x6c67cc1
mov dword [ebp - 0x30], 0x76743b51
sub dword [ebp - 0x30], 0x3507d9dc
mov dword [ebp - 0x2c], 0x8b78b634
add dword [ebp - 0x2c], 0xd7f6b638
mov dword [ebp - 0x28], 0x8f7584e5
add dword [ebp - 0x28], 0x708a7b1b
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x71b84
push 0
call eax
mov ecx, 0xa3162cbb
sub ecx, 0xa315e921
xor edx, edx
add edx, eax
mov ebx, 0x107e8200
add ebx, dword [ebp - 0x24]
mov edi, 0x19f9adc7
add edi, 0xaf21fcce
sub dword [ebp - 0x10], 0xdd988c2a
mov esi, dword [ebx]
add dword [ebp - 4], edi
sub esi, edi
xor dword [ebp - 0x20], 0xbf03548b
mov dword [edx], esi
sub dword [ebp - 0x20], 0x719f3cfa
add edx, 0xb94d8cde
sub edx, 0xb94d8cda
add ebx, 0x20071ea3
add ebx, 0xdff8e161
loop 0x1011b34c
add eax, 0x1013b
xor ebx, ebx
add ebx, eax
add eax, 0xfe3e920f
sub eax, 0xfe3e920a
mov ecx, 0x828c8695
sub ecx, 0x728c8695
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x101236a0
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 0x1012373b
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 0x101236f2
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x101236f2
cmp esi, ebx
jge 0x101236f2
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 0x10123735
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x10123735
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x10151aac]
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 [0x10151aac]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1012374d
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 0x10123970
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x101935e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107d058c], 0
mov eax, dword [ebp + 8]
je 0x10123998
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x101239b2
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.1011b229
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.10143940
leave
ret 4

Function at 0x10123b80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x101935e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107d058c], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x10123bb6
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x10123c15
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.1011b229
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.1011b229
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.1011b229
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10143940
leave
ret 0x10

Function at 0x10123c30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x101935e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107d058c], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x10123c5c
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x10123c8d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x10123c8b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.1011b229
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x10123c8d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10143940
leave
ret 8
Function at 0x10132ac0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x101935e0]
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 0x10132b20
cmp dword [edi + 0x264], ebx
je 0x10132b19
cmp byte [0x107d058c], 0
push edi
push dword [edi + 0x250]
je 0x10132b08
call dword [sym.imp.kernel32.dll_FindNextFileW]
jmp 0x10132b0e
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 0x10132c00
mov eax, dword [edi + 0x25c]
test eax, eax
je 0x10132c8f
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 0x10132b6e
lea eax, [ebp - 0x234]
push eax
call fcn.1011b229
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 [0x107d058c], 0
je 0x10132b9a
push dword [esi]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
jmp 0x10132bbc
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.1011b229
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 0x10132bea
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 0x10132c00
mov dword [esi + 4], edx
mov ecx, eax
cmp dword [eax + 0x264], ebx
je 0x10132c27
cmp byte [0x107d058c], 0
jne 0x10132c27
push dword [eax + 0x258]
add eax, 0x2c
push eax
call fcn.1011b229
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 0x10132c5c
push esi
xor ebx, ebx
call fcn.1011b229
xor edx, edx
inc edx
cmp word [eax], 0x2e
je 0x10132c58
test byte [edi + 0x268], 3
jne 0x10132c66
mov ebx, edx
jmp 0x10132c66
test byte [edi + 0x268], 1
cmovne ebx, edx
mov eax, dword [edi + 0x264]
test eax, eax
je 0x10132c8a
push 0
test ebx, ebx
pop ebx
jne 0x10132ae0
test byte [edi + 0x26c], 2
jne 0x10132ae0
test eax, eax
setne al
jmp 0x10132c91
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10143940
leave
ret 4
Function at 0x401794
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4017d3
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4017d3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4017d3
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4017d3
cmp dword [ecx + 0x74], 0xe
jbe 0x4017d3
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4076a3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4145cc
push 0x4145c4
push str.FlsAlloc
push 0x1f
call fcn.004075de
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4076d7
push dword [ebp + 8]
mov ecx, esi
call dword [0x413108]
call esi
jmp 0x4076dd
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x407721
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4145dc
push 0x4145d4
push str.FlsGetValue
push 0x21
call fcn.004075de
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407758
push dword [ebp + 8]
mov ecx, esi
call dword [0x413108]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x407760
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4145e4
push 0x4145dc
push str.FlsSetValue
push 0x22
call fcn.004075de
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40779a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x413108]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]