joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40462e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d028]
jne 0x404638
repz ret
jmp fcn.00404b6e

Function at 0x406580
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x40d028]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x440], ecx
call fcn.00401b70
mov dword [ebp - 0x218], eax
push 0x409b58
push 0xa8
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
jne 0x4065d1
xor al, al
jmp 0x40679b
mov ecx, dword [ebp - 0x430]
push ecx
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x4065fb
xor al, al
jmp 0x40679b
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x430]
push ecx
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x42c], eax
xor eax, eax
mov word [ebp - 0x428], ax
push 0x206
push 0
lea ecx, [ebp - 0x426]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [ebp - 0x428]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
push 0
push 0x409b60
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp - 0x440]
add ecx, 0xa8
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov ecx, dword [ebp - 0x440]
add ecx, 0xa8
call dword [sym.imp.mfc90u.dll_]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0xffffffff
jne 0x4066ed
xor al, al
jmp 0x40679b
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x214], edx
cmp dword [ebp - 0x42c], 0
je 0x40677f
cmp dword [ebp - 0x42c], 0x1000
jbe 0x40671a
mov dword [ebp - 0x444], 0x1000
jmp 0x406726
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x444], eax
mov ecx, dword [ebp - 0x444]
mov dword [ebp - 0x43c], ecx
push 0
lea edx, [ebp - 0x438]
push edx
mov eax, dword [ebp - 0x43c]
push eax
mov ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [ebp - 0x434]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x42c]
sub eax, dword [ebp - 0x43c]
mov dword [ebp - 0x42c], eax
mov ecx, dword [ebp - 0x214]
add ecx, dword [ebp - 0x43c]
mov dword [ebp - 0x214], ecx
jmp 0x4066f9
mov edx, dword [ebp - 0x430]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040462e
mov esp, ebp
pop ebp
ret
Function at 0x406c80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0
lea eax, [ebp - 0xc]
push eax
push 9
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x406cc1
cmp dword [ebp - 0xc], 9
jae 0x406cc1
lea ecx, [ebp - 0x18]
call fcn.004018b0
push 0x40ac0c
lea eax, [ebp - 0x18]
push eax
call sub.MSVCR90.dll__CxxThrowException
push 0
lea ecx, [ebp - 0xc]
push ecx
push 4
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x406cfc
cmp dword [ebp - 0xc], 4
jae 0x406cfc
lea ecx, [ebp - 0x24]
call fcn.004018b0
push 0x40ac0c
lea ecx, [ebp - 0x24]
push ecx
call sub.MSVCR90.dll__CxxThrowException
mov esp, ebp
pop ebp
ret

Function at 0x406d00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0
lea eax, [ebp - 8]
push eax
push 0xb
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x406d3d
lea ecx, [ebp - 0x14]
call fcn.004018b0
push 0x40ac0c
lea eax, [ebp - 0x14]
push eax
call sub.MSVCR90.dll__CxxThrowException
jmp 0x406d59
cmp dword [ebp - 8], 0xb
jae 0x406d59
lea ecx, [ebp - 0x20]
call fcn.004018b0
push 0x40ac0c
lea ecx, [ebp - 0x20]
push ecx
call sub.MSVCR90.dll__CxxThrowException
mov esp, ebp
pop ebp
ret
Function at 0x4076c0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 0
mov ecx, dword [ebp - 4]
push ecx
push 0x407600
call dword [sym.imp.USER32.dll_EnumWindows]
mov edx, dword [ebp - 4]
cmp dword [edx + 0x1c], 0
je 0x4076fc
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
push ecx
call sub.mfc90u.dll_CWnd::FromHandle
mov dword [ebp - 8], eax
jmp 0x407703
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x1002874
Capabilities:
Encode data using xor

Disassembly:
adc dl, byte [eax - 0xdcafeff]
add byte [ecx], al
and eax, 0x6010088
Function at 0x4035f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x42d020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403690
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403670
xor eax, eax
push ebp
push 0x403669
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 0x4036ac
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 0x403670
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x42d020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x42d020], ax
mov esp, ebp
pop ebp
ret

Function at 0x40434c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x42f04c], 0
je 0x4043ad
cmp word [0x42f220], 0xd7b2
jne 0x404375
cmp dword [0x42f228], 0
jbe 0x404375
mov eax, 0x42f21c
call dword [0x42f238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4043d4
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x42d02c], 0
jne 0x4043c9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret

Function at 0x404504
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x42d030], 0
je 0x40452a
mov edx, esi
mov eax, ebx
call dword [0x42d030]
jmp 0x404539
mov eax, 8
call fcn.00402c6c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x42f04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4044cc
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x405dbc
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405fec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405e3f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405fec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405e3f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406008
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405ec8
xor eax, eax
push ebp
push 0x405ec1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405bf8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405ea6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406028
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405ea6
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405ec8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale_1
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405fe2
cmp byte [ebp - 0xd], 0
jne 0x405f0f
cmp byte [ebp - 0x12], 0
je 0x405fe2
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405f28
dec ebx
cmp byte [ebx], 0x2e
je 0x405f37
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405f27
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405fe2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405f74
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405fe2
cmp byte [ebp - 0xd], 0
je 0x405fe2
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405fe2
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407db8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x407e48
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x407e48
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x407dfb
test edx, 3
jne 0x407dea
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x407df5
jmp 0x407dfb
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x407dfb
cmp dword [ecx - 8], 1
je 0x407e05
mov edx, ebx
or edx, 3
call fcn.00404c70
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x407e17
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404580

Function at 0x407e54
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x407ee4
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x407ee4
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x407e97
test edx, 3
jne 0x407e86
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x407e91
jmp 0x407e97
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x407e97
cmp dword [ecx - 8], 1
je 0x407ea1
mov edx, ebx
or edx, 3
call fcn.00404c70
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x407eb3
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404580

Function at 0x408bfc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404a44
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408c15
test al, 0x10
je 0x408c19
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40bb84
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x40bbbd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404670
jmp 0x40bbc6
mov eax, ebx
mov edx, esi
call fcn.004045d4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bbd0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x40bbf2
movzx eax, byte [esp]
jmp 0x40bbf4
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x419654
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00419320
dec esi
jne 0x419676
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x419ccc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x432304
cmp dword [edi], 0
jne 0x419d48
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x432300]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x42dae8
mov ecx, 2
call fcn.00402e3c
mov edx, 0x419ca4
lea eax, [esi + 5]
call fcn.00419cc4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00419cc4
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x419d1d
mov dword [0x432300], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41d3ec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404ec8
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41d408
test al, 0x10
jne 0x41d40d
xor eax, eax
pop ebx
pop ebp
ret
mov al, 1
pop ebx
pop ebp
ret

Function at 0x41d800
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffbc
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404d04
test esi, esi
jne 0x41d846
push 0x821
lea eax, [ebp - 0x1042]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
mov eax, ebx
lea edx, [ebp - 0x1042]
mov ecx, 0x821
call fcn.00404e9c
jmp 0x41d86a
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0041d65c
mov edi, eax
test esi, esi
je 0x41d86a
mov eax, dword [ebx]
xor edx, edx
call fcn.00404ffc
je 0x41d86a
dec esi
jmp 0x41d84d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41d930
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404ec8
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
mov ecx, eax
mov eax, ecx
xor edx, edx
cmp edx, 0xffffffff
jne 0x41d951
cmp eax, 0xffffffff
je 0x41d958
test cl, 0x10
je 0x41d95d
xor eax, eax
pop ebx
pop ebp
ret
mov al, 1
pop ebx
pop ebp
ret
Function at 0x41d964
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.004051f0
xor eax, eax
push ebp
push 0x41da54
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.00404ffc
jne 0x41d99e
xor ebx, ebx
jmp 0x41da2c
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0041d4a8
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.00404d68
mov eax, dword [ebp - 4]
call fcn.00404ed8
cmp eax, 3
jl 0x41da2c
mov eax, dword [ebp - 4]
call fcn.0041d3ec
test al, al
jne 0x41da2c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0041d8f8
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404ffc
je 0x41da2c
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
call fcn.00404808
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00408dbc
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.00404eb8
mov eax, dword [ebp - 0x10]
call fcn.0041d964
test al, al
je 0x41da26
push 0
mov eax, dword [ebp - 4]
call fcn.00404ec8
push eax
call sub.KERNEL32.DLL_CreateDirectoryW
test eax, eax
jne 0x41da2a
xor ebx, ebx
jmp 0x41da2c
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41da5b
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004045a4
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404d1c
ret

Function at 0x41da64
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
push 0x80
mov eax, ebx
call fcn.00404ec8
push eax
call sub.KERNEL32.DLL_SetFileAttributesW
cmp eax, 1
sbb eax, eax
inc eax
pop ebx
pop ebp
ret
Function at 0x41dbcc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41dd39
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.00403134
mov dword [ebp - 0x4c], 0x44
mov word [ebp - 0x1c], di
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0041d8f8
mov eax, esi
xor edx, edx
call fcn.00404ffc
je 0x41dc82
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 4]
call fcn.00404ec8
push eax
push 0
push 0x420
push 0
push 0
push 0
lea ecx, [ebp - 0x64]
mov dx, 0x22
mov eax, ebx
call fcn.0041d52c
push dword [ebp - 0x64]
push 0x41dd50
push esi
lea eax, [ebp - 0x60]
mov edx, 3
call fcn.00404fb4
mov eax, dword [ebp - 0x60]
call fcn.00404ec8
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
jmp 0x41dcc6
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 4]
call fcn.00404ec8
push eax
push 0
push 0x420
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x68]
mov dx, 0x27
mov eax, ebx
call fcn.0041d52c
mov eax, dword [ebp - 0x68]
call fcn.00404ec8
push eax
call sub.KERNEL32.DLL_CreateProcessW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
jne 0x41dcd4
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 8], eax
jmp 0x41dcd9
xor eax, eax
mov dword [ebp - 8], eax
test bl, bl
je 0x41dd16
mov ebx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x58]
push eax
call sub.KERNEL32.DLL_CloseHandle
cmp byte [ebp + 8], 0
je 0x41dd10
push 0xffffffffffffffff
push ebx
call sub.KERNEL32.DLL_WaitForSingleObject
cmp eax, 0xffffffff
je 0x41dd08
lea eax, [ebp - 8]
push eax
push ebx
call sub.KERNEL32.DLL_GetExitCodeProcess
jmp 0x41dd10
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 8], eax
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41dd40
lea eax, [ebp - 0x68]
mov edx, 3
call fcn.00404d1c
lea eax, [ebp - 4]
call fcn.00404d04
ret

Function at 0x41f2d8
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.00403134
pop ebp
ret
Function at 0x41f41c
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.004051f0
xor eax, eax
push ebp
push 0x41f56a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
call fcn.0041f2d8
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00404ec8
push eax
call sub.KERNEL32.DLL_CreateFileW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x41f549
xor eax, eax
push ebp
push 0x41f542
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CreateFileMappingW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x41f52b
xor eax, eax
push ebp
push 0x41f524
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_MapViewOfFile
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41f50d
xor eax, eax
push ebp
push 0x41f506
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetFileSize
mov ecx, eax
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x14]
call fcn.0041f314
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f50d
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f52b
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f549
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CloseHandle
ret
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x6c]
call fcn.0041f3a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f571
lea eax, [ebp - 4]
call fcn.00404d04
ret

Function at 0x41fce8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.0041f790
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404a44
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x41fd47
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x42e0c8]
mov dl, 1
mov eax, dword [0x41f688]
call fcn.0040c468
call fcn.00403ef8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8