joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a3b
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 1
jne 0x401b9d
push 8
push 0xbb8
push dword [0x4079e4]
call sub.KERNEL32.DLL_FindResourceA
mov dword [0x407a24], eax
push eax
push dword [0x4079e4]
call sub.KERNEL32.DLL_LoadResource
mov dword [0x407a28], eax
push dword [0x407a24]
push dword [0x4079e4]
call sub.KERNEL32.DLL_SizeofResource
mov dword [0x407a2c], eax
push dword [0x407a28]
call sub.KERNEL32.DLL_LockResource
mov dword [0x407a28], eax
push str.gdi32.dll
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x407a14], eax
push str.AddFontMemResourceEx
push dword [0x407a14]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x407a18], eax
push str.RemoveFontMemResourceEx
push dword [0x407a14]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x407a1c], eax
or eax, eax
je 0x401af7
xor ecx, ecx
inc ecx
push ecx
mov ecx, esp
push ecx
push 0
push dword [0x407a2c]
push dword [0x407a28]
call dword [0x407a18]
pop ecx
mov dword [0x407a20], eax
jmp 0x401b74
push 0x407a34
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
push 0x407a34
call fcn.00402690
add eax, 0x407a34
push eax
push str.minikstt.ttf
call fcn.00402660
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0xc0000000
push 0x407a34
call sub.KERNEL32.DLL_CreateFileA
mov dword [0x407a30], eax
push ecx
mov ecx, esp
push 0
push ecx
push dword [0x407a2c]
push dword [0x407a28]
push dword [0x407a30]
call sub.KERNEL32.DLL_WriteFile
pop ecx
push dword [0x407a30]
call sub.KERNEL32.DLL_CloseHandle
push 0x407a34
call sub.gdi32.dll_AddFontResourceA
push str.Mini_Kaliber_S_TT_BRK
push 0
push 2
push 0
push 0
push 1
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push 0x14
call sub.gdi32.dll_CreateFontA
jmp 0x401bd3
cmp dword [0x407a20], 0
je 0x401bb4
push dword [0x407a20]
call dword [0x407a1c]
jmp 0x401bc8
push 0x407a34
call sub.gdi32.dll_RemoveFontResourceA
push 0x407a34
call sub.KERNEL32.DLL_DeleteFileA
push dword [0x407a00]
call sub.gdi32.dll_DeleteObject
pop ecx
leave
ret 4
Function at 0x40238a
Capabilities:
Get graphical window text

Disassembly:
pushal
push 0
push 0x64
push 0x407b38
call fcn.00402730
push 0
push 0x64
push 0x407b9c
call fcn.00402730
push 0
push 0x64
push 0x407c64
call fcn.00402730
push 0
push 0x64
push 0x407cc8
call fcn.00402730
push 0x20
push 0x407b38
push dword [0x4079f0]
call sub.user32.dll_GetWindowTextA
or eax, eax
jne 0x4023eb
push str.Enter_Your_Name...
push dword [0x4079f4]
call sub.user32.dll_SetWindowTextA
popal
ret
push 0x407b38
call fcn.004026e0
push 0x1869f
call fcn.0040234c
mov dword [0x407d2c], eax
mov esi, 0x407c64
mov eax, 0
shl eax, 4
mov byte [esi], al
mov eax, 1
or byte [esi], al
mov eax, 0
shl eax, 4
mov byte [esi + 1], al
mov eax, 9
or byte [esi + 1], al
mov dword [esi + 2], 0x1213375
mov word [esi + 6], 0
mov word [esi + 8], 0x4571
push esi
push dword [0x407d2c]
push 0x407b38
call fcn.004024e1
mov word [esi + 0xa], ax
mov dword [esi + 0xc], 0
push 0x407cc8
push str.430D187DE8BB3F18FB0A986E6B7163BD
push str.86F71688CDD2612CA117D1F54BDAE029
push 0xc
push 0x407c64
call fcn.0040256e
push 0x24
push str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ
push 0x19
push 0x407b9c
push 0x10
push 0x407cc8
call fcn.0040260e
mov edi, 0x407c00
mov esi, 0x407b9c
mov ebx, 5
mov ecx, 5
rep movsb byte es:[edi], byte [esi]
mov byte [edi], 0x2d
inc edi
dec ebx
jne 0x4024a0
mov byte [edi - 1], 0
push 0x407c00
push dword [0x407d2c]
push str._05d__s
push 0x407b9c
call sub.user32.dll_wsprintfA
add esp, 0x10
push 0x407b9c
push dword [0x4079f4]
call sub.user32.dll_SetWindowTextA
popal
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push edx
push edi
push esi
push ebx
mov eax, dword [ebp + 8]
push eax
call fcn.00402690
mov ecx, eax
mov edx, dword [ebp + 8]
mov esi, 0x4072d0
or eax, 0xffffffff
or ecx, ecx
je 0x40251f
lea edi, [ecx]
mov ecx, eax
xor ebx, ebx
mov bl, byte [edx]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [esi + ecx*4]
xor eax, ecx
inc edx
dec edi
jne 0x402505
mov edi, 4
lea edx, [ebp + 0xc]
mov ecx, eax
xor ebx, ebx
mov bl, byte [edx]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [esi + ecx*4]
xor eax, ecx
inc edx
dec edi
jne 0x402527
mov edi, 0xa
mov edx, dword [ebp + 0x10]
mov ecx, eax
xor ebx, ebx
mov bl, byte [edx]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [esi + ecx*4]
xor eax, ecx
inc edx
dec edi
jne 0x402549
not eax
pop ebx
pop esi
pop edi
pop edx
pop ecx
leave
ret 0xc
Function at 0x402900
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push str.IMAGE
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.KERNEL32.DLL_FindResourceA
or eax, eax
jne 0x402927
push 2
call sub.KERNEL32.DLL_SetLastError
xor eax, eax
leave
ret 8
mov dword [ebp - 4], eax
push eax
push dword [ebp + 8]
call sub.KERNEL32.DLL_LoadResource
push eax
call sub.KERNEL32.DLL_LockResource
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
push dword [ebp + 8]
call sub.KERNEL32.DLL_SizeofResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40295d
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.00402852
jmp 0x402966
push 2
call sub.KERNEL32.DLL_SetLastError
xor eax, eax
leave
ret 8
Function at 0x402f1a
Capabilities:
Create thread

Disassembly:
ret
call fcn.00403013
pop eax
pop edx
pop dword [0x409ea4]
pop ecx
test edx, edx
push eax
je 0x402f19
push ebx
push esi
push edi
push ebp
mov ebx, 0x407e94
mov ebp, 0x409eb8
xor eax, eax
mov dword [ebp - 0x10], eax
test cl, 1
mov esi, 0x402da0
jne 0x402f55
test cl, 2
lea esi, [esi + 0x10]
jne 0x402f55
lea esi, [esi - 0x1c]
test cl, 8
setne byte [ebp - 0x18]
and cl, 0x10
mov byte [ebp - 0x17], cl
mov edi, ebp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, edx
cmp dword [ebp - 4], eax
jne 0x402f75
mov word [ebp - 4], 0x8000
push eax
push eax
push eax
push eax
push eax
push eax
push 0x402d84
push 0xffffffffffffffff
push ebx
call dword [sym.imp.winmm.dll_waveOutOpen]
call dword [sym.imp.KERNEL32.DLL_HeapCreate]
test eax, eax
mov dword [ebx - 8], eax
je 0x402fa7
mov dword [ebp - 0xc], esi
call dword [ebp]
call fcn.004037d4
xchg edi, eax
call dword [ebp + 0xc]
test edi, edi
je 0x403017
mov esi, 0x419ec8
mov dword [esi + 4], 0x10000
or dword [esi + 0x14], 0xffffffff
push 0xc
mov dword [esi], 0x409ec8
pop dword [esi + 0x10]
push 0x20
push esi
push dword [ebx]
call dword [sym.imp.winmm.dll_waveOutPrepareHeader]
xor edi, edi
call fcn.004030dc
cmp dword [ebx + 4], edi
jne 0x402fd1
mov dword [ebx + 8], edi
push 0x20
push esi
push dword [ebx]
call dword [sym.imp.winmm.dll_waveOutWrite]
test eax, eax
jne 0x403017
push ebp
push edi
push edi
push 0x403086
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
mov dword [ebx - 4], eax
je 0x403017
push 0xf
push eax
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
xchg ebx, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov ebp, 0x407e90
mov eax, dword [ebp]
test eax, eax
je 0x403035
mov dword [ebp + 0xc], eax
push eax
push ebp
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor ebx, ebx
mov dword [ebp], ebx
mov edi, dword [ebp + 4]
mov dword [ebp + 8], ebx
test edi, edi
je 0x403063
mov dword [ebp + 4], ebx
push edi
push 0x20
push 0x419ec8
push edi
push edi
call dword [sym.imp.winmm.dll_waveOutReset]
call dword [sym.imp.winmm.dll_waveOutUnprepareHeader]
call dword [sym.imp.winmm.dll_waveOutClose]
mov eax, dword [ebp - 4]
test eax, eax
je 0x403081
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.DLL_HeapDestroy]
xchg ebx, eax
mov ecx, 0x23
mov edi, 0x419ee8
rep stosd dword es:[edi], eax
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x10014f2a
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10014f4b
push 0xafb
push 0x189e
push 0
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
jmp 0x10014f7a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x10014f7a
push 0x1abe
push 0x1e4c
push 0
push 0x264b
push 0
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esp, ebp
pop ebp
ret

Function at 0x100158af
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x100158d6
push 0x1abe
push 0x1e4c
push 0
push 0x264b
push 0
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
jmp 0x10015900
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10015900
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esp, ebp
pop ebp
ret

Function at 0x100181e4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10018213
push 0
push 0xf9f
push 0xa78
push 0
push 0x180f
push 0x90e
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp 0x10018238
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x10018238
push 0x10d3
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esp, ebp
pop ebp
ret
Function at 0x1002019f
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x100201cb
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
jmp 0x100201f0
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x100201f0
push 0x1abe
push 0x1e4c
push 0
push 0x264b
push 0
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esp, ebp
pop ebp
ret
Function at 0x10021cb3
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10021ce2
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x10021ce0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
jmp 0x10021cfb
push 0x1abe
push 0x1e4c
push 0
push 0x264b
push 0
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esp, ebp
pop ebp
ret
Function at 0x1002c3c8
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1002c3f4
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1002c3f2
push 0xafb
push 0x189e
push 0
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
jmp 0x1002c40d
push 0x1abe
push 0x1e4c
push 0
push 0x264b
push 0
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esp, ebp
pop ebp
ret
Function at 0x10034d28
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10034d4f
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
and dword [eax + 0xc], 0
jmp 0x10034d74
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10034d74
push 0x1abe
push 0x1e4c
push 0
push 0x264b
push 0
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esp, ebp
pop ebp
ret

Function at 0x10035289
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.10035011
add esp, 0xc
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x100352b9
xor eax, eax
jmp 0x10035405
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x100352d7
xor eax, eax
jmp 0x10035405
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.10035056
add esp, 0xc
cmp dword [ebp - 0xc], 0
jne 0x100352f6
xor eax, eax
jmp 0x10035405
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.100350b4
add esp, 0x18
push 0x911
push 0x1ef8
push 0
push dword [ebp + 8]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.100338d2
add esp, 0x18
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
push 0x78fd
push 0x54b4
push 0x755
lea eax, [ebp - 0x14]
push eax
call fcn.10035135
add esp, 0x1c
cmp dword [ebp - 0x14], 0
je 0x1003536c
push dword [ebp - 4]
push 1
push dword [ebp - 0x14]
call fcn.10030e28
add esp, 0xc
push dword [ebp - 4]
call fcn.100337aa
pop ecx
test eax, eax
jne 0x10035380
xor eax, eax
jmp 0x10035405
lea eax, [ebp - 4]
push eax
push 1
push 0x59ae
push 0x791e
call fcn.100351ce
add esp, 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x100353ed
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x100353b7
xor eax, eax
jmp 0x10035405
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x100353d0
xor eax, eax
jmp 0x10035405
lea eax, [ebp - 4]
push eax
push 0x7d2a
push 0x424c
push 0x4dee
push 1
call fcn.10035225
add esp, 0x14
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x100353fe
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x10035402
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x10047970
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, byte [ebp + 8]
test eax, eax
je 0x100479a5
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x100479a3
push 0x1abe
push 0x1e4c
push 0
push 0x264b
push 0
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
jmp 0x100479c5
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x100479c5
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
mov esp, ebp
pop ebp
ret
Function at 0x1008e0b2
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1009738c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10080a1c
mov dword [ebp - 0x14], eax
cmp dword [0x13c73a50], esi
jne 0x1008e1a5
push 0x800
push esi
push 0x1000864c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1008e132
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1008e285
push esi
push esi
push 0x1000864c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1008e285
push 0x10008664
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1008e285
push eax
call ebx
push 0x10008670
push edi
mov dword [0x13c73a50], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10008680
push edi
mov dword [0x13c73a54], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10008694
push edi
mov dword [0x13c73a58], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x13c73a60], eax
test eax, eax
je 0x1008e1a2
push 0x100086b0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x13c73a5c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1008e1ca
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1008e1bd
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1008e1df
push 4
pop eax
jmp 0x1008e287
cmp dword [ebp - 0x14], esi
je 0x1008e1df
push dword [0x13c73a50]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1008e1c4
mov eax, dword [0x13c73a5c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1008e23d
cmp dword [0x13c73a60], edi
je 0x1008e23d
push eax
call ebx
push dword [0x13c73a60]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1008e23d
test eax, eax
je 0x1008e23d
call ecx
test eax, eax
je 0x1008e232
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1008e232
test byte [ebp - 8], 1
jne 0x1008e23d
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1008e26d
mov eax, dword [0x13c73a54]
cmp eax, edi
je 0x1008e26a
push eax
call ebx
test eax, eax
je 0x1008e26a
call eax
mov esi, eax
test esi, esi
je 0x1008e26a
mov eax, dword [0x13c73a58]
cmp eax, edi
je 0x1008e26a
push eax
call ebx
test eax, eax
je 0x1008e26a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x13c73a50]
call ebx
test eax, eax
je 0x1008e285
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1008e287
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007cbe4
mov esp, ebp
pop ebp
ret
Function at 0x401a40
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8

Function at 0x401026
Capabilities:
Create process on windows
Delete file
Read file on windows
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov edx, section..text
push edi
push esi
push ebx
sub esp, 0x574
lea ecx, [esp + 0x64]
cmp edx, entry0
jae 0x40104c
movzx eax, byte [edx]
inc edx
xor al, 0xdc
mov byte [ecx], al
inc ecx
jmp 0x401039
mov byte [ecx], 0
lea esi, [esp + 0x64]
push esi
push 1
push 0
call 0x401220
push 0x104
lea ebx, [esp + 0x468]
push ebx
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 2
push 0
push 0xffffffffffffff9c
push eax
call sub.KERNEL32.dll_SetFilePointer
push 0
lea ebp, [esp + 4]
push ebp
push 0x64
push esi
push ebx
call sub.KERNEL32.dll_ReadFile
push ebx
call sub.KERNEL32.dll_CloseHandle
lea edx, [esp + 0x65]
lea ecx, [esp + 0xc7]
cmp edx, ecx
jae 0x4010d4
movzx eax, byte [esp + 0x64]
xor byte [edx], al
inc edx
jmp 0x4010c6
lea edx, [esp + 0x14]
lea eax, [esp + 0x58]
cmp edx, eax
jae 0x4010e6
mov byte [edx], 0
inc edx
jmp 0x4010dc
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x8d]
push eax
call sub.KERNEL32.dll_CreateProcessA
test eax, eax
jne 0x401205
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x47c]
push eax
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 2
mov eax, 0xffffff9c
push 0
sub eax, dword [esp + 0x6d]
push eax
push ebx
call sub.KERNEL32.dll_SetFilePointer
push 0
push ebp
push dword [esp + 0x6d]
push dword [esp + 0x71]
push 0
call sub.KERNEL32.dll_GetProcessHeap
push eax
call sub.KERNEL32.dll_HeapAlloc
push eax
mov esi, eax
push ebx
call sub.KERNEL32.dll_ReadFile
push ebx
call sub.KERNEL32.dll_CloseHandle
mov eax, esi
mov edx, esi
add eax, dword [esp + 0x65]
cmp esi, eax
jae 0x40119b
movzx eax, byte [esp + 0x64]
xor byte [edx], al
mov eax, esi
inc edx
add eax, dword [esp + 0x65]
cmp edx, eax
jmp 0x401187
push pe_nt_image_headers32
lea edi, [esp + 0x6d]
push edi
call sub.KERNEL32.dll_SetFileAttributesA
push edi
call sub.KERNEL32.dll_DeleteFileA
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push edi
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 0
push ebp
push dword [esp + 0x6d]
push esi
push eax
call sub.KERNEL32.dll_WriteFile
push ebx
call sub.KERNEL32.dll_CloseHandle
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call sub.KERNEL32.dll_CreateProcessA
push 0
call sub.KERNEL32.dll_ExitProcess
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp dword [sym.imp.KERNEL32.dll_CreateMutexA]
Function at 0x401110
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42faeb
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x43ef44]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x401190
push str.Error_acquiring_crypto_context
mov ecx, dword [ebp + 8]
call fcn.00401c20
mov ecx, dword [ebp - 0x4c8]
or ecx, 1
mov dword [ebp - 0x4c8], ecx
mov eax, dword [ebp + 8]
jmp 0x401341
lea edx, [ebp - 0x10]
push edx
push 0
push 0
push 0x8003
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4011db
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push str.Error_creating_hash
mov ecx, dword [ebp + 8]
call fcn.00401c20
mov edx, dword [ebp - 0x4c8]
or edx, 1
mov dword [ebp - 0x4c8], edx
mov eax, dword [ebp + 8]
jmp 0x401341
mov dword [ebp - 0x18], 0x10
push 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push 2
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x40130c
push 1
push 3
lea ecx, [ebp - 0x4b4]
call fcn.00402390
mov dword [ebp - 4], 0
push 0x30
lea eax, [ebp - 0x4b9]
push eax
call fcn.004068d0
add esp, 8
push eax
push 0x401360
lea ecx, [ebp - 0x4ac]
call fcn.00401cc0
push eax
call fcn.004068f0
add esp, 8
mov dword [ebp - 0x4b8], 0
jmp 0x40125c
mov ecx, dword [ebp - 0x4b8]
add ecx, 1
mov dword [ebp - 0x4b8], ecx
mov edx, dword [ebp - 0x4b8]
cmp edx, dword [ebp - 0x18]
jae 0x4012bf
lea eax, [ebp - 0x4b4]
test eax, eax
je 0x40127f
lea ecx, [ebp - 0x4ac]
mov dword [ebp - 0x4cc], ecx
jmp 0x401289
mov dword [ebp - 0x4cc], 0
mov edx, dword [ebp - 0x4b8]
movzx eax, byte [ebp + edx - 0x2c]
push eax
push 2
lea ecx, [ebp - 0x4c4]
push ecx
call fcn.0042d31c
add esp, 8
push eax
mov edx, dword [ebp - 0x4cc]
push edx
call fcn.00406910
add esp, 8
mov ecx, eax
call fcn.00401d00
jmp 0x40124d
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x4b4]
call fcn.004024c0
mov eax, dword [ebp - 0x4c8]
or eax, 1
mov dword [ebp - 0x4c8], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4b4]
call fcn.004013c0
mov eax, dword [ebp + 8]
jmp 0x401341
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push str.Error_getting_hash_value
mov ecx, dword [ebp + 8]
call fcn.00401c20
mov eax, dword [ebp - 0x4c8]
or eax, 1
mov dword [ebp - 0x4c8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004188ce
mov esp, ebp
pop ebp
ret