joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c71a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x43d120]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x42c7bc
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x42c8be
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x42c86c
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocString
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42c8bf
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42c861
cmp dword [ebp - 0x24], 1
jne 0x42c861
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x433034
push eax
call fcn.00417c63
add esp, 0xc
cmp eax, 1
jne 0x42c861
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42c8bf
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x42c8bf
lea ecx, [ebp - 0x18]
push ecx
push 0x42c704
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x42c8bf
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x42c8e5
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.0042c685
cmp eax, ebx
pop ecx
pop ecx
jne 0x42c8e7
inc edi
cmp edi, esi
jl 0x42c8ce
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00415ffe
leave
ret 4
Function at 0x42c8f6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x43c874
je 0x42c9b2
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42c99a
mov esi, dword [ebx + 4]
jmp 0x42c994
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42c984
cmp dword [ebp - 0xc], 4
jne 0x42c984
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x42c97c
or dword [eax + 0x9c], ecx
jmp 0x42c984
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x42c948
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x42c92b
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x42cda0
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x430290
call fcn.00417350
sub esp, 0x11c
mov eax, dword [0x43d120]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x42ce99
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x42ce6d
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00408540
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.0042cda0
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.004032b0
test bl, bl
jne 0x42ce6d
or dword [ebp - 4], 0xffffffff
jmp 0x42cdde
cmp esi, 0x103
je 0x42ce7d
cmp esi, 0x3f2
jne 0x42ce8d
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.00415ffe
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x42d786
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x42d7bb
cmp edi, dword [esi + 0xc]
jge 0x42d7bb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42d7bb
cmp edi, dword [eax + 8]
jge 0x42d7bb
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x42d7bd
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x42d8c1
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x42d8f5
jmp fcn.00422a53
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x42d966
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x42da5f
cmp eax, dword [edi + 0xc]
jge 0x42da5f
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x42d9b7
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x42da48
cmp dword [ebp + 0xc], ebx
je 0x42da48
jmp 0x42d9e1
push 0x10
call fcn.0042d652
cmp eax, ebx
je 0x42d9cd
mov ecx, eax
call fcn.0042d8b8
mov esi, eax
jmp 0x42d9cf
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x42d9f8
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x42da08
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x42da1a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00422a53
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.004173b0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x42da5a
cmp ecx, dword [esi + 8]
jge 0x42da5a
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x42da60
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x42db1e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42db4c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42db6a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042da88
jmp 0x42db6a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42db6a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0042da88
test edi, edi
mov eax, edi
jne 0x42db54
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x44617c]
test ecx, ecx
je 0x42dc1d
jmp 0x42db1d
ret 8

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.004016ae
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x406355
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax + 4]
test eax, eax
jne 0x406365
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push esi
push 0x427ed0
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x4063b9
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 4]
test eax, eax
jne 0x40638a
mov eax, 0x41d69c
mov ecx, dword [esp + 0x10]
push esi
push 1
add eax, ecx
push dword [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
push esi
je 0x4063b2
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
xor eax, eax
jmp 0x4063bc
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push 1
pop eax
pop esi
ret 0x10
Function at 0x4089b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x10]
push eax
push 0x427f90
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
add esp, 0xc
lea eax, [esp + 0x10]
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebp
je 0x408b41
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
je 0x408b41
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebp
mov dword [esp + 0x44], eax
je 0x408b41
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x408b41
mov esi, dword [esp + 0x48]
mov ebp, dword [0x41d698]
mov edi, dword [esi + 4]
test edi, edi
je 0x408a78
mov al, byte [edi - 1]
test al, al
je 0x408a78
cmp al, 0xff
je 0x408a78
push 1
mov ecx, esi
call fcn.00403e8d
mov cl, byte [edi]
xor eax, eax
test cl, cl
je 0x408a6f
mov cl, byte [eax + edi + 1]
inc eax
test cl, cl
jne 0x408a66
push eax
push edi
mov ecx, esi
call fcn.004054be
mov eax, dword [esi + 8]
cmp eax, ebp
jae 0x408a81
mov ebp, eax
test ebp, ebp
jbe 0x408adc
sub eax, ebp
mov edx, eax
mov eax, dword [esi + 4]
lea ecx, [eax + ebp]
cmp ecx, eax
jae 0x408ab0
lea edi, [ecx + edx]
cmp eax, edi
jae 0x408ab0
add eax, edx
mov ecx, edi
test edx, edx
jbe 0x408abf
mov edi, edx
mov dl, byte [ecx - 1]
dec ecx
dec eax
dec edi
mov byte [eax], dl
jne 0x408aa4
jmp 0x408abf
test edx, edx
jbe 0x408abf
mov edi, edx
mov dl, byte [ecx]
mov byte [eax], dl
inc eax
inc ecx
dec edi
jne 0x408ab6
mov edi, dword [esi + 8]
push 0
sub edi, ebp
mov ecx, esi
push edi
call fcn.00405408
test al, al
je 0x408adc
mov eax, dword [esi + 4]
mov dword [esi + 8], edi
mov byte [edi + eax], 0
cmp ebx, 0xfffffffd
jbe 0x408ae7
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov eax, dword [esi + 4]
test eax, eax
je 0x408af9
mov al, byte [eax - 1]
test al, al
je 0x408af9
cmp al, 0xff
jne 0x408b0e
mov eax, dword [esi + 0xc]
cmp eax, 0x1f
ja 0x408b05
cmp eax, ebx
jae 0x408b16
push 1
mov ecx, esi
call fcn.00403e8d
push ebx
mov ecx, esi
call fcn.0040553a
mov ecx, dword [esp + 0x44]
mov eax, dword [esi + 4]
test ebx, ebx
jbe 0x408b2c
mov edi, ebx
mov dl, byte [ecx]
mov byte [eax], dl
inc eax
inc ecx
dec edi
jne 0x408b23
push ebx
mov ecx, esi
call fcn.00408860
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x40a340
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x41bc98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
push esi
lea eax, [esp + 0x1c]
push edi
xor ebx, ebx
mov esi, ecx
push eax
xor ebp, ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x32]
mov word [esp + 0x30], bx
lea edx, [esp + 0x30]
push ebx
rep stosd dword es:[edi], eax
push edx
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x1c]
stosw word es:[edi], ax
mov eax, dword [esi + 8]
push edx
push 2
push 0x800
mov ecx, dword [eax]
push 0x421130
push 0x76
push eax
mov dword [esp + 0x7c], ebx
call dword [ecx + 0x18]
cmp eax, ebx
mov dword [esi + 0xc], eax
jl 0x40a3c9
mov ebp, dword [esp + 0x28]
jmp 0x40a3d0
push ebx
push eax
call fcn.00417433
lea eax, [esp + 0x20]
mov dword [esp + 0x58], 0xffffffff
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, ebx
jge 0x40a3ed
push eax
call fcn.00416e90
mov ecx, dword [esp + 0x50]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret

Function at 0x40aca0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x41be68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push esi
push edi
lea eax, [esp + 0x1c]
xor edi, edi
mov esi, ecx
push eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea edx, [esp + 8]
mov eax, dword [esi + 8]
push edx
lea edx, [esp + 0x30]
push edx
lea edx, [esp + 0x24]
mov ecx, dword [eax]
push edx
lea edx, [esp + 0x18]
mov dword [esp + 0x60], edi
push edx
push 1
push 0x800
push 0x421130
push 0x115
push eax
call dword [ecx + 0x18]
cmp eax, edi
mov dword [esi + 0xc], eax
jge 0x40ad19
push edi
push eax
call fcn.00417433
lea eax, [esp + 0x1c]
mov dword [esp + 0x54], 0xffffffff
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, edi
pop edi
pop esi
jge 0x40ad38
push eax
call fcn.00416e90
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret
Function at 0x40bf19
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x41c134
call fcn.00417690
sub esp, 0x18
mov al, byte [ebp - 0xd]
push ebx
push esi
mov esi, ecx
push 0
lea ecx, [ebp - 0x24]
mov bl, 1
mov byte [ebp - 0x24], al
call fcn.00403e8d
and dword [ebp - 4], 0
mov ecx, esi
call fcn.0040c01b
test al, al
je 0x40bf94
push edi
mov edi, dword [sym.imp.MSVCRT.dll_rand]
call edi
push 0xb
cdq
pop ecx
idiv ecx
push ecx
push ecx
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fstp qword [esp]
call edi
push 7
cdq
pop ecx
idiv ecx
push ecx
push ecx
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fstp qword [esp]
call edi
push 3
cdq
pop ecx
idiv ecx
push ecx
push ecx
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fstp qword [esp]
call fcn.0040b45a
add esp, 0x18
pop edi
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
push 0x3fc
call fcn.0040bc8d
mov ecx, esi
call fcn.0040b77e
mov esi, eax
test esi, esi
je 0x40bffb
mov edx, dword [ebp - 0x20]
mov eax, 0x41d69c
test edx, edx
mov ecx, eax
je 0x40bfc1
mov ecx, edx
mov ecx, dword [ecx]
cmp ecx, dword [0x41d99b]
jne 0x40bff1
test edx, edx
je 0x40bfd1
mov eax, edx
mov ecx, dword [ebp - 0x1c]
push esi
add ecx, 0xfffffffc
push 1
add eax, 4
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ebx, eax
add esp, 0x10
dec ebx
neg ebx
sbb bl, bl
inc bl
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
jmp 0x40bffd
xor bl, bl
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x24]
call fcn.00403e8d
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40c0f3
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x41c15c
call fcn.00417690
sub esp, 0x14
mov al, byte [ebp - 0xd]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x20]
push ebx
mov byte [ebp - 0x20], al
call fcn.00403e8d
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0040c031
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
push 0x401
call fcn.0040bc8d
mov ecx, esi
call fcn.0040bb8a
mov esi, eax
cmp esi, ebx
je 0x40c168
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x40c148
mov eax, 0x41d69c
push esi
push 1
push dword [ebp - 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ebx, eax
push esi
dec ebx
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x20]
call fcn.00403e8d
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40c527
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.MSVCRT.dll_clock]
xor ebx, ebx
mov edi, eax
cmp dword [esi + 0x184], ebx
jne 0x40c57e
mov ecx, 0x42a4a8
call fcn.00410950
cmp eax, 3
jne 0x40c55e
test byte [0x42a4c0], 1
je 0x40c55e
cmp byte [esi + 0xa5], bl
je 0x40c57e
lea eax, [esi + 0x190]
push eax
push ebx
push 0x42a4a8
push 0x40440f
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x194], eax
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x41287a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
cmp eax, ecx
mov dword [ebp - 8], edi
jb 0x412907
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x4128c7
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x4128e9
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x4129c5
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
cmp ecx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
jbe 0x41292f
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x41293a
xor eax, eax
jmp 0x412986
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x412957
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.0041391a
jmp 0x412967
cmp ecx, 2
jne 0x412970
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.00413d88
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
push dword [ebp - 4]
push dword [edi]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x4129b1
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x4129c5
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x412885
pop edi
pop ebx
leave
ret