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

Disassembly:
cmp ecx, dword [0x401740]
jne 0x4020b2
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x4041a0], eax
mov dword [0x40419c], ecx
mov dword [0x404198], edx
mov dword [0x404194], ebx
mov dword [0x404190], esi
mov dword [0x40418c], edi
mov word [0x4041b8], ss
mov word [0x4041ac], cs
mov word [0x404188], ds
mov word [0x404184], es
mov word [0x404180], fs
mov word [0x40417c], gs
pushfd
pop dword [0x4041b0]
mov eax, dword [ebp]
mov dword [0x4041a4], eax
mov eax, dword [ebp + 4]
mov dword [0x4041a8], eax
lea eax, [ebp + 8]
mov dword [0x4041b4], eax
mov eax, dword [ebp - 0x320]
mov dword [0x4040f0], 0x10001
mov eax, dword [0x4041a8]
mov dword [0x4040a4], eax
mov dword [0x404098], 0xc0000409
mov dword [0x40409c], 1
mov eax, dword [0x401740]
mov dword [ebp - 0x328], eax
mov eax, dword [0x404064]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x4040e8], eax
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x401744
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x4040e8], 0
jne 0x40219e
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x4020a8
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x402b40
call fcn.00402453
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
cmp dword [0x4043f8], ebx
jne 0x401e40
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.kernel32.dll_HeapSetInformation]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x24], ebx
mov edi, 0x4043ec
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x401e7a
cmp eax, esi
jne 0x401e6d
xor esi, esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x401e7d
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x401e54
xor esi, esi
inc esi
mov eax, dword [0x4043e8]
cmp eax, esi
jne 0x401e90
push 0x1f
call sub.MSVCR100.dll__amsg_exit
pop ecx
jmp 0x401ecb
mov eax, dword [0x4043e8]
test eax, eax
jne 0x401ec5
mov dword [0x4043e8], esi
push 0x401120
push 0x401114
call sub.MSVCR100.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x401ecb
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x401fe5
mov dword [0x404094], esi
mov eax, dword [0x4043e8]
cmp eax, esi
jne 0x401eef
push 0x401110
push 0x401108
call sub.MSVCR100.dll__initterm
pop ecx
pop ecx
mov dword [0x4043e8], 2
cmp dword [ebp - 0x24], ebx
jne 0x401efc
push ebx
push edi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp dword [0x4043fc], ebx
je 0x401f1d
push 0x4043fc
call fcn.004028e6
pop ecx
test eax, eax
je 0x401f1d
push ebx
push 2
push ebx
call dword [0x4043fc]
mov eax, dword [sym.imp.MSVCR100.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x401f76
cmp al, bl
je 0x401f36
cmp dword [ebp - 0x1c], ebx
jne 0x401f76
mov al, byte [esi]
cmp al, bl
je 0x401f46
cmp al, 0x20
ja 0x401f46
inc esi
mov dword [ebp - 0x20], esi
jmp 0x401f36
test byte [ebp - 0x40], 1
je 0x401f52
movzx eax, word [ebp - 0x3c]
jmp 0x401f55
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x404090], eax
cmp dword [0x404084], ebx
jne 0x401fcb
push eax
call dword [sym.imp.MSVCR100.dll_exit]
cmp al, 0x22
jne 0x401f85
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR100.dll__ismbblead]
pop ecx
test eax, eax
je 0x401f98
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x401f24
cmp dword [0x404094], ebx
jne 0x401fd9
call dword [sym.imp.MSVCR100.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x404090]
call fcn.00402498
ret
call fcn.004028e6
jmp 0x401e12
Function at 0x403458
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.004066d8
test esi, esi
jne 0x403490
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406814
jmp 0x4034ae
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040333c
mov edi, eax
test esi, esi
je 0x4034ae
cmp dword [ebx], 0
je 0x4034ae
dec esi
jmp 0x403497
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x404168
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x549020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404200
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4041e0
xor eax, eax
push ebp
push 0x4041d9
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 0x404238
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4041e0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x549020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x549020], ax
mov esp, ebp
pop ebp
ret
Function at 0x40493c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00404bf0
mov byte [esp], al
cmp byte [esp], 0
jne 0x404ac5
test edi, edi
je 0x404ac5
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4049fc
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x4049d7
cmp edi, 0xffffffff
je 0x40499b
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40499b
mov byte [esp], 0
jmp 0x404ac5
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4049d7
test ebx, ebx
jne 0x4049d0
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004013e8
test eax, eax
jne 0x4049d0
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x404ac5
pause
dec ebp
test ebp, ebp
jg 0x404980
cmp edi, 0xffffffff
je 0x4049fc
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4049fa
mov byte [esp], 0
jmp 0x404ac5
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40494a
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004013e8
cmp ebx, eax
jne 0x4049fc
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00404b38
mov edx, eax
mov ebx, dword [0x5588cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x404a63
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x404a61
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x404a63
xor edi, edi
cmp byte [esp], 0
je 0x404a8c
mov ebx, dword [esi]
test bl, 1
jne 0x404aa5
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004013e8
cmp ebx, eax
jne 0x404a69
mov byte [esp + 1], 1
jmp 0x404aa5
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004013e8
cmp ebx, eax
jne 0x404a8c
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x404a16
cmp byte [esp], 0
je 0x404ac5
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x405708
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x558054], 0
je 0x405769
cmp word [0x558330], 0xd7b2
jne 0x405731
cmp dword [0x558338], 0
jbe 0x405731
mov eax, 0x55832c
call dword [0x558348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
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 0x405794
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x54902c], 0
jne 0x405785
push 0
push 0x549788
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405908
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 [0x549034], 0
je 0x40592e
mov edx, esi
mov eax, ebx
call dword [0x549034]
jmp 0x40593d
mov eax, 8
call fcn.00403054
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x558055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4058d0
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 0x408d80
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x40ca24
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebp, eax
test ebp, ebp
je 0x40cac4
test ebp, ebp
setl byte [esp]
mov eax, edi
xor ecx, ecx
mov edx, 0xb
call fcn.004061e0
mov esi, 0xb
mov eax, ebp
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebx, eax
mov ecx, 0xa
mov eax, ebp
cdq
idiv ecx
mov ebp, eax
mov eax, edi
call fcn.004060b8
add bl, 0x30
mov byte [eax + esi - 1], bl
dec esi
test ebp, ebp
jne 0x40ca4e
cmp byte [esp], 0
je 0x40ca93
mov eax, edi
call fcn.004060b8
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x40cad0
mov eax, edi
call fcn.004060b8
push eax
mov eax, edi
call fcn.004060b8
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.0040323c
mov edx, ebx
mov eax, edi
xor ecx, ecx
call fcn.004061e0
jmp 0x40cad0
mov eax, edi
mov edx, 0x40cae4
call fcn.004059d8
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40cae8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x40cb8b
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.00406994
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov ecx, 0xa
mov eax, ebx
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.00407050
add bp, 0x30
mov word [eax + esi*2 - 2], bp
dec esi
test ebx, ebx
jne 0x40cb10
cmp byte [esp], 0
je 0x40cb59
mov eax, edi
call fcn.00407050
mov word [eax + esi*2 - 2], 0x2d
dec esi
test esi, esi
jle 0x40cb97
mov eax, edi
call fcn.00407050
push eax
mov eax, edi
call fcn.00407050
lea eax, [eax + esi*2]
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
add ecx, ecx
pop edx
call fcn.0040323c
mov edx, ebx
mov eax, edi
call fcn.00406994
jmp 0x40cb97
mov eax, edi
mov edx, 0x40cbac
call fcn.004066d8
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40dd04
Capabilities:
Get geographical location

Disassembly:
push ecx
cmp word [0x549aa0], 0
jne 0x40dd3c
push 2
lea eax, [esp + 4]
push eax
push 0xe
call sub.kernel32.dll_GetThreadLocale_1
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40dd33
movzx eax, word [esp]
mov word [0x549aa0], ax
jmp 0x40dd3c
mov word [0x549aa0], 0x2c
movzx eax, word [0x549aa0]
pop edx
ret
Function at 0x40e310
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x40e318
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e52a
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
je 0x40e35b
lea edx, [ebp - 0xc]
mov eax, ebx
call dword [0x54982c]
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.004068f4
jmp 0x40e4f7
test ebx, 0xc0000000
je 0x40e3a3
lea edx, [ebp - 0x10]
mov eax, dword [0x549ab8]
call fcn.0040e548
mov eax, dword [ebp - 0x10]
call fcn.00406040
push eax
lea edx, [ebp - 0x14]
mov eax, dword [0x54989c]
call fcn.0040e548
mov eax, dword [ebp - 0x14]
call fcn.00406040
push eax
call sub.kernel32.dll_GetModuleHandleA
push eax
call sub.kernel32.dll_GetProcAddress_1
test eax, eax
je 0x40e3a3
push ebx
call eax
mov ebx, eax
mov edi, 0x1300
cmp ebx, 0x834
jb 0x40e3e8
cmp ebx, 0xbb7
ja 0x40e3e8
push 2
push 0
lea edx, [ebp - 0x18]
mov eax, dword [0x549ab4]
call fcn.0040e548
mov eax, dword [ebp - 0x18]
call fcn.00406040
push eax
call sub.kernel32.dll_LoadLibraryExA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40e3ed
or edi, 0x800
jmp 0x40e3ed
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x40e4f0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 4]
push eax
push 0x400
push ebx
mov eax, dword [ebp - 8]
push eax
push edi
call sub.kernel32.dll_FormatMessageW
test eax, eax
je 0x40e490
xor eax, eax
push ebp
push 0x40e489
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00406884
mov eax, dword [esi]
call fcn.00406988
mov ebx, eax
test ebx, ebx
jbe 0x40e472
mov eax, dword [esi]
movzx edi, word [eax + ebx*2 - 2]
cmp di, 0xd
jne 0x40e459
mov eax, esi
call fcn.00407050
mov word [eax + ebx*2 - 2], 0x20
jmp 0x40e46d
cmp di, 0xa
jne 0x40e46d
mov eax, esi
mov ecx, 1
mov edx, ebx
call fcn.00406dfc
dec ebx
test ebx, ebx
ja 0x40e43c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e4d3
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_LocalFree
ret
lea edx, [ebp - 0x20]
mov eax, dword [0x549abc]
call fcn.0040e548
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
call fcn.004068f4
push dword [ebp - 0x1c]
push 0x40e544
lea eax, [ebp - 0x24]
push eax
mov cx, 0x30
mov edx, 1
mov eax, ebx
call fcn.0040d510
push dword [ebp - 0x24]
mov eax, esi
mov edx, 3
call fcn.00406b7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e4f7
cmp dword [ebp - 8], 0
je 0x40e4ef
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e531
lea eax, [ebp - 0x24]
call fcn.004066c8
lea eax, [ebp - 0x20]
call fcn.00405984
lea eax, [ebp - 0x1c]
call fcn.004066c8
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.004059a8
ret
Function at 0x40e548
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.004059d8
mov eax, ebx
call fcn.004060b0
mov eax, dword [ebx]
call fcn.00405d18
test eax, eax
jle 0x40e579
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x40e56e
pop esi
pop ebx
ret

Function at 0x40f1d8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40f2d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x30]
call fcn.00407ce0
mov esi, eax
lea eax, [esi + 1]
push eax
lea eax, [ebx + 0x30]
mov ecx, 1
mov edx, dword [0x40eed0]
call fcn.00407ea8
add esp, 4
lea eax, [esi + esi*2]
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x38]
mov dword [edx + eax*8], ecx
mov ecx, dword [ebx + 0x3c]
mov dword [edx + eax*8 + 4], ecx
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebp + 8]
mov dword [edx + eax*8 + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [edx + eax*8 + 0xc], ecx
test edi, edi
jne 0x40f25a
test esi, esi
jle 0x40f25a
lea edi, [esi + esi*2]
mov eax, dword [ebx + 0x30]
lea eax, [eax + edi*8 + 0x10]
mov edx, dword [ebx + 0x30]
mov edx, dword [edx + edi*8 - 8]
call fcn.004066d8
jmp 0x40f26b
lea eax, [esi + esi*2]
mov edx, dword [ebx + 0x30]
lea eax, [edx + eax*8 + 0x10]
mov edx, edi
call fcn.004066d8
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add dword [ebx + 0x38], eax
adc dword [ebx + 0x3c], edx
test esi, esi
jne 0x40f2c3
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x40f29e
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x10]
call fcn.00406764
push eax
mov eax, dword [ebx + 0x28]
push eax
call sub.user32.dll_SetWindowTextW
jmp 0x40f2c3
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x30]
mov edx, dword [edx + 0x10]
mov ecx, 0
call fcn.0040691c
mov eax, dword [ebp - 4]
call fcn.00406040
push eax
mov eax, dword [ebx + 0x28]
push eax
call sub.user32.dll_SetWindowTextA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f2e0
lea eax, [ebp - 4]
call fcn.00405984
ret
Function at 0x410140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x41028a
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x410168
cmp dword [ebx + 4], 0
jne 0x41028a
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x41018e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x41018e
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
push 0
push 0x100000
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
sub eax, dword [ebx + 8]
sbb edx, dword [ebx + 0xc]
push edx
push eax
call fcn.00410094
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
je 0x41028a
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x41023d
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x4101e3
push 4
push 0x1000
push 0x100000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edx, dword [ebp + 8]
mov dword [edx - 0xc], eax
push dword [ebx + 0xc]
push dword [ebx + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor ecx, ecx
xor edx, edx
call fcn.004100d4
test al, al
je 0x410233
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x410233
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 4]
jne 0x410233
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
jmp 0x41025b
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
jmp 0x41025b
push dword [ebx + 0xc]
push dword [ebx + 8]
mov ecx, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 4
call fcn.00410128
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov dword [ebx], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x41028a
mov ecx, dword [ebx + 4]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
call fcn.004143d4
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov dword [edx], eax
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x410654
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 8], eax
mov esi, dword [ebx + 0x24]
sub esi, dword [ebx + 0x5c]
sub esi, dword [ebx + 0x54]
test esi, esi
jne 0x410685
cmp dword [ebx + 0x54], 0
jne 0x410685
cmp dword [ebx + 0x5c], 0
jne 0x410685
mov esi, dword [ebp - 8]
jmp 0x410730
cmp esi, 0xffffffff
jne 0x410690
dec esi
jmp 0x410730
mov eax, dword [ebx + 0x54]
mov edx, dword [ebp - 8]
sub edx, 0x106
add edx, dword [ebp - 8]
cmp eax, edx
jb 0x410730
mov eax, dword [ebx + 0x20]
mov edx, dword [ebp - 8]
lea edx, [eax + edx]
mov ecx, dword [ebp - 8]
xchg edx, eax
call fcn.0040323c
mov eax, dword [ebp - 8]
sub dword [ebx + 0x58], eax
mov eax, dword [ebp - 8]
sub dword [ebx + 0x54], eax
mov eax, dword [ebp - 8]
sub dword [ebx + 0x44], eax
mov eax, dword [ebx + 0x34]
mov edx, dword [ebx + 0x2c]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
jb 0x4106f2
movzx ecx, word [ebp - 4]
sub cx, word [ebp - 8]
mov word [edx], cx
jmp 0x4106f7
mov word [edx], 0
dec eax
test eax, eax
jne 0x4106d4
mov eax, dword [ebp - 8]
mov edx, dword [ebx + 0x28]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
jb 0x410723
movzx ecx, word [ebp - 4]
sub cx, word [ebp - 8]
mov word [edx], cx
jmp 0x410728
mov word [edx], 0
dec eax
test eax, eax
jne 0x410705
add esi, dword [ebp - 8]
mov ecx, dword [ebx]
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
push edx
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
cmp edx, dword [esp + 4]
jne 0x41074c
cmp eax, dword [esp]
pop edx
pop eax
je 0x4107ba
push ebp
mov eax, dword [ebx + 0x54]
add eax, dword [ebx + 0x5c]
mov edx, dword [ebx + 0x20]
add edx, eax
mov eax, ecx
mov ecx, esi
call fcn.004105e0
pop ecx
add dword [ebx + 0x5c], eax
cmp dword [ebx + 0x5c], 3
jb 0x410794
mov eax, dword [ebx + 0x54]
mov edx, dword [ebx + 0x20]
movzx eax, byte [edx + eax]
mov dword [ebx + 0x30], eax
mov ecx, dword [ebx + 0x40]
shl eax, cl
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x20]
movzx edx, byte [ecx + edx + 1]
xor eax, edx
and eax, dword [ebx + 0x3c]
mov dword [ebx + 0x30], eax
cmp dword [ebx + 0x5c], 0x106
jae 0x4107ba
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx + 0x18]
jne 0x410664
cmp eax, dword [ecx + 0x14]
jne 0x410664
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x411d14
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x411e61
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x411d3c
cmp dword [ebx + 4], 0
jne 0x411e61
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x411d62
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x411d62
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
push 0
push 0x100000
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
sub eax, dword [ebx + 8]
sbb edx, dword [ebx + 0xc]
push edx
push eax
call fcn.00410094
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
je 0x411e61
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x411e11
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x411db7
push 4
push 0x1000
push 0x100000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edx, dword [ebp + 8]
mov dword [edx - 0xc], eax
push dword [ebx + 0xc]
push dword [ebx + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor ecx, ecx
xor edx, edx
call fcn.004100d4
test al, al
je 0x411e07
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x411e07
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 4]
jne 0x411e07
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
jmp 0x411e2f
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
jmp 0x411e2f
push dword [ebx + 0xc]
push dword [ebx + 8]
mov ecx, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 4
call fcn.00410128
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov dword [ebx], eax
cmp dword [ebx + 0xc], 0
jne 0x411e61
cmp dword [ebx + 8], 0
jne 0x411e61
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
cdq
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
add dword [ebx], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
sub dword [ebx + 4], eax
pop esi
pop ebx
pop ecx
pop ebp
ret

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

Disassembly:
push esi
mov esi, eax
dec ecx
test ecx, ecx
jl 0x4143f8
inc ecx
mov eax, edx
mov edx, esi
xor dl, byte [eax]
movzx edx, dl
mov edx, dword [edx*4 + 0x54a784]
shr esi, 8
xor edx, esi
mov esi, edx
inc eax
dec ecx
jne 0x4143df
mov eax, esi
pop esi
ret