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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4188e8
cmp edx, dword [eax]
je 0x40256b
add eax, 8
inc ecx
cmp eax, 0x418978
jl 0x40255c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4188e8]
jne 0x402699
mov eax, dword [0x418cf4]
cmp eax, 1
je 0x402673
test eax, eax
jne 0x40259c
cmp dword [0x418838], 1
je 0x402673
cmp edx, 0xfc
je 0x402699
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x4025d3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403990
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403a80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402616
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403a80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4088b0
push edi
call fcn.00403b90
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403990
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004039a0
lea eax, [ebp - 0xa0]
push 0x408890
push eax
call fcn.004039a0
push dword [esi + 0x4188ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.004039a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00403afb
add esp, 0x2c
pop edi
jmp 0x402699
lea eax, [ebp + 8]
lea esi, [esi + 0x4188ec]
push 0
push eax
push dword [esi]
call fcn.00403a80
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 0x40353c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40500c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4035d4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4035b4
xor eax, eax
push ebp
push 0x4035ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4035f0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4035b4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40500c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40500c], ax
mov esp, ebp
pop ebp
ret

Function at 0x403c1c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x406034], 0
je 0x403c7d
cmp word [0x406208], 0xd7b2
jne 0x403c45
cmp dword [0x406210], 0
jbe 0x403c45
mov eax, 0x406204
call dword [0x406220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x405084
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403ca4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x405018], 0
jne 0x403c99
push 0
push 0x40507c
push 0x405084
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404034
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40409a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403e68
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b9c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404084
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4040a1
lea eax, [ebp - 0x10]
call fcn.00403d98
ret
Function at 0x425685
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041e6cf
and dword [ebp - 4], 0
cmp dword [0x4501f0], 0
mov ebx, eax
jne 0x425736
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4257e7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4257e7
push eax
call fcn.0041e65d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4501f0], eax
call esi
push eax
call fcn.0041e65d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4501f4], eax
call esi
push eax
call fcn.0041e65d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4501f8], eax
call esi
push eax
call fcn.0041e65d
pop ecx
mov dword [0x450200], eax
test eax, eax
je 0x425736
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041e65d
pop ecx
mov dword [0x4501fc], eax
mov eax, dword [0x4501fc]
cmp eax, ebx
je 0x42578e
cmp dword [0x450200], ebx
je 0x42578e
push eax
call fcn.0041e6d8
push dword [0x450200]
mov esi, eax
call fcn.0041e6d8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42578e
test edi, edi
je 0x42578e
call esi
test eax, eax
je 0x425785
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x425785
test byte [ebp - 0xc], 1
jne 0x42578e
or dword [ebp + 0x10], 0x200000
jmp 0x4257c7
mov eax, dword [0x4501f4]
cmp eax, ebx
je 0x4257c7
push eax
call fcn.0041e6d8
pop ecx
test eax, eax
je 0x4257c7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4257c7
mov eax, dword [0x4501f8]
cmp eax, ebx
je 0x4257c7
push eax
call fcn.0041e6d8
pop ecx
test eax, eax
je 0x4257c7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4501f0]
call fcn.0041e6d8
pop ecx
test eax, eax
je 0x4257e7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4257e9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4153e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0xf1ecbdc4]
lodsd eax, dword [esi]
cmp dword [ebx - 0xc], ebp
dec esp
xor dl, bh
out 0xe, al
pop eax
inc eax
add ah, byte [ebp - 0x4df569fe]
or dl, al
jo 0x4153ea
cmpsb byte [esi], byte es:[edi]
aad 0x4d
dec ebp
push 0x5cf7f469
sbb dh, byte [edi - 0x7b951fb3]
or al, 0x58
ret 0xb2a4
Function at 0x10055677
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x10055686
pop dword [ebp - 0x38]
mov eax, 0x10055686
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xb2753352
sub dword [ebp - 0x48], 0x6422ee07
mov dword [ebp - 0x44], 0xa8049241
sub dword [ebp - 0x44], 0x75d145fc
mov dword [ebp - 0x40], 0x9419a502
add dword [ebp - 0x40], 0xb8329f2c
mov dword [ebp - 0x3c], 0xcce7be25
sub dword [ebp - 0x3c], 0xcce7be25
lea eax, [ebp - 0x48]
push eax
mov eax, 0x841fc520
add eax, 0x8bf54dc8
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x9ae2b5bf
add dword [ebp - 0x48], 0xd98fb397
mov dword [ebp - 0x44], 0x60bb0856
sub dword [ebp - 0x44], 0x1f4ea6e1
mov dword [ebp - 0x40], 0xc253e199
add dword [ebp - 0x40], 0xa11b8ad3
mov dword [ebp - 0x3c], 0x865bf10a
add dword [ebp - 0x3c], 0x79a40ef6
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x19270245
sub eax, 0x911ef79
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x71057
push 0
call eax
mov ecx, 0xf97e21d0
sub ecx, 0xf97ddd19
xor edx, edx
add edx, eax
mov ebx, 0x222b230e
add ebx, 0xee536ef2
add ebx, dword [ebp - 0x38]
mov esi, 0xb68131ae
add esi, 0xfd7c861
mov edi, dword [ebx]
sub dword [ebp - 0x18], edx
xor edi, esi
sub dword [ebp - 0x34], 0x7ff8a21c
mov dword [edx], edi
sub dword [ebp - 0x30], 0x864e60da
add edx, 0x6a78540a
sub edx, 0x6a785406
add ebx, 0x894ccff4
sub ebx, 0x894ccff0
loop 0x100557a5
add eax, 0xd97332b2
add eax, 0x268dd2fd
mov ebx, eax
add eax, 5
mov ecx, 0xd199a625
add ecx, 0x3e6659db
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x10097788
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x1014b7a8
call fcn.10143748
mov esi, ecx
mov dword [ebp - 0x14], esi
call fcn.1008c4ce
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.10055677
mov dword [ebp - 0x14], eax
pop ecx
test eax, eax
je 0x100977cf
mov dword [eax], vtable.ScObjects::ThreadData.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
jmp 0x100977d1
mov eax, ebx
mov dword [esi + 8], eax
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push 0x10097990
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 0x10097801
mov dword [esi + 0x10], 0x20
mov dword [esi + 0xc], ebx
jmp 0x10097809
mov eax, dword [ebp - 0x10]
mov ebx, edx
mov dword [esi + 0xc], eax
mov dword [ecx + 4], ebx
mov eax, esi
call fcn.10143711
ret

Function at 0x10097a80
Capabilities:
Resume thread

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

Function at 0x1009dc82
Capabilities:
Generate random numbers via winapi

Disassembly:
push 0x2c
mov eax, 0x1014c549
call fcn.1014377c
mov esi, dword [ebp + 8]
xor edi, edi
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], edi
call fcn.10097c22
mov dword [ebp - 4], edi
mov dword [ebp - 0x34], 1
call fcn.1009dd82
test eax, eax
jne 0x1009dcc6
push 0xffffffffffffffff
push 0x10155f30
mov ecx, esi
call fcn.10055677
jmp 0x1009dd0c
lea ecx, [ebp - 0x20]
push ecx
push 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov ecx, esi
push 0xffffffffffffffff
push 0x10155f30
test eax, eax
je 0x1009dcbf
call fcn.10055677
movzx eax, byte [ebp + edi - 0x20]
push eax
lea eax, [ebp - 0x30]
push 0x10162258
push eax
call fcn.10055677
lea eax, [ebp - 0x30]
push eax
push esi
call fcn.10055677
add esp, 0x14
inc edi
cmp edi, 0x10
jb 0x1009dce5
mov eax, esi
call fcn.10143726
ret

Function at 0x1009dd82
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push esi
mov esi, dword [0x107d14a0]
test esi, esi
jne 0x1009ddd7
push esi
push 1
push esi
push esi
push 0x107d14a0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1009ddd1
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1009ddd1
push 8
push 1
push esi
push esi
push 0x107d14a0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1009ddd1
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [0x107d14a0], esi
jmp 0x1009ddd7
mov esi, dword [0x107d14a0]
mov eax, esi
pop esi
ret
Function at 0x1009df6e
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x54
mov eax, 0x1014c611
call fcn.1014377c
mov ebx, dword [ebp + 8]
xor eax, eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x44], eax
call fcn.1009dd82
and dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x48], eax
call fcn.10097c22
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.10097c22
push edi
mov eax, 0x101622e0
mov dword [ebp - 0x44], 1
push eax
push esi
push eax
push edi
push ebx
call fcn.10055677
pop ecx
pop ecx
push eax
call fcn.10055677
pop ecx
pop ecx
push eax
call fcn.10055677
pop ecx
pop ecx
push eax
call fcn.10055677
pop ecx
pop ecx
push eax
call fcn.10055677
mov eax, dword [ebp - 0x48]
pop ecx
pop ecx
test eax, eax
jne 0x1009e003
push 0xffffffffffffffff
push 0x10155f30
mov ecx, ebx
call fcn.10055677
jmp 0x1009e0bf
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 0x1009dff0
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 0x1009dff0
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 0x1009dff0
push dword [ebp - 0x40]
call fcn.10055677
mov edi, eax
pop ecx
test edi, edi
je 0x1009dff0
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 0x10155f30
test eax, eax
jne 0x1009e083
call fcn.10055677
jmp 0x1009e0b8
call fcn.10055677
cmp dword [ebp - 0x40], esi
jbe 0x1009e0b8
cmp esi, 0x28
jae 0x1009e0b8
movzx eax, byte [esi + edi]
push eax
lea eax, [ebp - 0x38]
push 0x10162258
push eax
call fcn.10055677
lea eax, [ebp - 0x38]
push eax
push ebx
call fcn.10055677
add esp, 0x14
inc esi
cmp esi, dword [ebp - 0x40]
jb 0x1009e08d
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
pop ecx
cmp dword [ebp - 0x3c], 0
je 0x1009e0ce
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea ecx, [ebp - 0x60]
call fcn.10055677
mov eax, ebx
call fcn.10143726
ret
Function at 0x100ab3c5
Capabilities:
Create mailslot

Disassembly:
push 0x14
mov eax, 0x1014e980
call fcn.10143748
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [0x1018ee8c]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100a71a2
xor ebx, ebx
mov dword [esi], vtable.WinInterAppStream.0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.10097c22
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.10055677
pop ecx
pop ecx
push eax
call fcn.10055677
push 0xc
lea edi, [esi + 0x56]
push ebx
push edi
call sub.VCRUNTIME140.dll_memset
push edi
mov ecx, ebx
call fcn.10055677
add esp, 0x18
test al, al
je 0x100ab438
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.10055677
mov eax, esi
call fcn.10143711
ret 8

Function at 0x100ab5c0
Capabilities:
Write file on windows

Disassembly:
push 0x1c
mov eax, 0x1014c080
call fcn.10143748
mov esi, ecx
push esi
lea ecx, [ebp - 0x18]
call fcn.1008c49b
and dword [ebp - 4], 0
lea eax, [esi + 0x30]
push eax
lea ecx, [ebp - 0x28]
call fcn.10097af3
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
push dword [eax + 8]
push dword [eax + 4]
call fcn.10055677
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 - 0x24]
call dword [sym.imp.kernel32.dll_CreateFileA]
and dword [ebp - 0x10], 0
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x100ab65b
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 + 8]
mov esi, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
test esi, esi
je 0x100ab65b
mov eax, dword [ebp - 0x10]
cmp eax, dword [edi + 8]
je 0x100ab65d
xor bl, bl
lea ecx, [ebp - 0x28]
call fcn.10055677
lea ecx, [ebp - 0x18]
call fcn.10055677
mov al, bl
call fcn.10143711
ret 8
Function at 0x10122f80
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 0x1012301b
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 0x10122fd2
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x10122fd2
cmp esi, ebx
jge 0x10122fd2
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 0x10123015
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x10123015
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x10151b24]
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 [0x10151b24]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1012302d
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 0x10123250
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x101945dc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107d1590], 0
mov eax, dword [ebp + 8]
je 0x10123278
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x10123292
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.10055677
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.10143700
leave
ret 4

Function at 0x10123460
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x101945dc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107d1590], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x10123496
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x101234f5
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.10055677
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.10055677
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.10055677
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10143700
leave
ret 0x10
Function at 0x10123510
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x101945dc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107d1590], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1012353c
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x1012356d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x1012356b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.10055677
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x1012356d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10143700
leave
ret 8
Function at 0x10132580
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x101945dc]
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 0x101325e1
cmp dword [edi + 0x264], ebx
je 0x101325da
cmp byte [0x107d1590], 0
mov eax, dword [edi + 0x250]
push edi
push eax
je 0x101325c9
call dword [sym.imp.kernel32.dll_FindNextFileW]
jmp 0x101325cf
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 0x101326c1
mov eax, dword [edi + 0x25c]
test eax, eax
je 0x10132750
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 0x1013262f
lea eax, [ebp - 0x234]
push eax
call fcn.10055677
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 [0x107d1590], 0
je 0x1013265b
push dword [esi]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
jmp 0x1013267d
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.10055677
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 0x101326ab
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 0x101326c1
mov dword [esi + 4], edx
mov ecx, eax
cmp dword [eax + 0x264], ebx
je 0x101326e8
cmp byte [0x107d1590], 0
jne 0x101326e8
push dword [eax + 0x258]
add eax, 0x2c
push eax
call fcn.10055677
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 0x1013271d
push esi
xor ebx, ebx
call fcn.10055677
xor edx, edx
inc edx
cmp word [eax], 0x2e
je 0x10132719
test byte [edi + 0x268], 3
jne 0x10132727
mov ebx, edx
jmp 0x10132727
test byte [edi + 0x268], 1
cmovne ebx, edx
mov eax, dword [edi + 0x264]
test eax, eax
je 0x1013274b
push 0
test ebx, ebx
pop ebx
jne 0x101325a0
test byte [edi + 0x26c], 2
jne 0x101325a0
test eax, eax
setne al
jmp 0x10132752
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10143700
leave
ret 4
Function at 0x4727ad
Capabilities:
Encode data using xor

Disassembly:
rol dword [esi - 0x257cbfb8], 1
idiv ebp
mov eax, 0x849c4ac5
or byte [eax + 0x4d], cl
fnsave dword [ebx + 0x1902ac5a]
das
dec esi
ljmp 0xd89
jmp 0x7b6762a4
out 0x20, eax
dec edi
push edx
pop eax
sub al, byte [edi + 0x96fb3ac]
test ah, cl
int3
lodsb al, byte [esi]
mov bl, 0x6f
or dword [esp + ecx*8 + 0x9d290cc], eax
int 0x68
stosb byte es:[edi], al
xor byte [edi], al
adc al, 0x19
pushal
pop edi
xor byte [ebx - 0x66], ch
and al, 0xc7
cmp dword [eax], ecx
ret
ret 0x981a
fimul dword [ebx]
pop ebx
das
dec ebx
jg 0x4726c7
sar bh, 0x1a
mov dl, 3
or eax, 0xa9afee3c
jno 0x4726f4
int1
xchg esp, eax
add al, 0x74
je 0x47275e
jne 0x472716
scasd eax, dword es:[edi]
mov dh, 0x51
dec eax
sbb eax, 0x7b4334d0
jae 0x4726e7
mov ebx, 0x72349190
lcall 0x5c37, 0x52d65211
jb 0x4726ed
adc dword [edx - 0x2a], edx
push edx
aaa
pop esp
mov cs, esp
and al, 0x5e
xor dword [edi], ecx
jne 0x472758
pcmpeqw mm6, mm7
mov dword [0xf4d56ddb], eax
and eax, 0xb849ae1
push ss
movsb byte es:[edi], byte [esi]
pushfd
cmp esi, dword [ebp + 0x65d8843d]
imul edx, ebx, 0xf0dffc92
jb 0x4727c0
pop ss
neg byte [ebx]
add dl, dh
xor al, 0xc2
jns 0x472799
add eax, 0xfa130965
push edx
jl 0x472751
inc edx
out 0x36, al
int 0x3c
xchg esi, eax
into
invalid
pop edi
jge 0x472727
push 0x41
cmp eax, 0xa43542e8
pushal
rol dword [ebp + 0x50], cl
and bh, dl
ret 0x36de
outsd dx, dword [esi]
xor ch, byte [edi + 0x5a0b95b3]
call dword [eax + ebx*4 + 2]
scasb al, byte es:[edi]
movsd dword es:[edi], dword [esi]
or eax, 0x6f7f227d
jp 0x472746
test dword [edx], ebx
invalid
sbb dh, bl
invalid