joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406170
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x408b03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 0x68]
lea ecx, [esp + 0xc]
push eax
push 0x40c768
push ecx
mov dword [esp + 0x12c], 0
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push 0x40c724
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x124], 1
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [0x40cdf8]
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
push eax
lea ecx, [esp + 0x1c]
push 0x100
push ecx
push 0x40c180
push edx
push str.QQMiniIE
call ebp
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jae 0x40624e
push 0x40c184
lea ecx, [esp + 0x10]
mov dword [esi + 0x68], 1
call fcn.00407d58
mov eax, dword [0x40cdf8]
lea ecx, [esp + 0x18]
push eax
push 0x100
push ecx
push 0x40c180
push str.url1
push str.QQMiniIE
call ebp
push 0xa4
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x120], 2
je 0x406278
push 0
mov ecx, eax
call fcn.00404920
mov edi, eax
jmp 0x40627a
xor edi, edi
lea edx, [esp + 0x18]
lea ecx, [edi + 0x60]
push edx
mov byte [esp + 0x124], 1
call fcn.00407d58
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
push eax
push 0x81
mov ecx, edi
call sub.MFC42.DLL_CDialog::Create
mov eax, dword [esi + 0x68]
lea ecx, [esp + 0x10]
inc eax
mov byte [esp + 0x120], 0
mov dword [esi + 0x68], eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x120], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x118
ret

Function at 0x407710
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push 1
push 0
push eax
push str.iexplore.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString
xor al, al
ret
Function at 0x4086eb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x4086fa
pop dword [ebp - 0x50]
mov eax, 0x9da604e2
sub eax, 0x9d657de8
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x761eb2a2
sub dword [ebp - 0x60], 0x27cc6d57
mov dword [ebp - 0x5c], 0x2eaa67bd
add dword [ebp - 0x5c], 0x388e488
mov dword [ebp - 0x58], 0x1bd059a5
sub dword [ebp - 0x58], 0xcf841577
mov dword [ebp - 0x54], 0x7af63edd
add dword [ebp - 0x54], 0x8509c123
lea eax, [ebp - 0x60]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x5b3902e
sub dword [ebp - 0x60], 0x914126d8
mov dword [ebp - 0x5c], 0xda588d78
sub dword [ebp - 0x5c], 0x98ec2c03
mov dword [ebp - 0x58], 0x79d5ee6a
add dword [ebp - 0x58], 0xe9997e02
mov dword [ebp - 0x54], 0xc275a1a2
add dword [ebp - 0x54], 0x3d8a5e5e
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0xec86117a
add eax, 0x13bf9f06
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x4cf3d
push 0
call eax
mov ecx, 0x46a1
xor edi, edi
add edi, eax
mov ebx, 0x476000
add ebx, dword [ebp - 0x50]
mov esi, 0x7ef7c3d6
add esi, 0x40c3acec
add dword [ebp - 0x48], eax
mov edx, dword [ebx]
sub dword [ebp - 0x18], ecx
xor edx, esi
mov dword [edi], edx
xor dword [ebp - 0x48], 0x53d1dea6
add edi, 0xc261f8a
add edi, 0xf3d9e07a
add ebx, 4
loop 0x40880d
add eax, 0xc56158e5
add eax, 0x3a9fb472
xor ebx, ebx
add ebx, eax
add eax, 0x94195657
add eax, 0x6be6a9ae
mov ecx, 0xbe922f1c
add ecx, 0x41add0e4
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x403640
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.00406edc
test esi, esi
jne 0x403678
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.00407018
jmp 0x403696
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403524
mov edi, eax
test esi, esi
je 0x403696
cmp dword [ebx], 0
je 0x403696
dec esi
jmp 0x40367f
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4036c8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x668008], 0x8088405
inc edx
mov dword [ebx + 0x668008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403f24
Capabilities:
Clear file content

Disassembly:
movzx edx, word [eax + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x403f42
push dword [eax]
call sub.KERNEL32.DLL_SetEndOfFile
dec eax
je 0x403f4c
jmp fcn.004033f8
mov eax, 0x67
jmp fcn.004033e8
ret

Function at 0x40458c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x668024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404624
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x404604
xor eax, eax
push ebp
push 0x4045fd
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 0x40465c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404604
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
movzx eax, word [0x668024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x668024], ax
mov esp, ebp
pop ebp
ret
Function at 0x404e0c
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.004050c0
mov byte [esp], al
cmp byte [esp], 0
jne 0x404f95
test edi, edi
je 0x404f95
mov byte [esp + 1], 0
test ebp, ebp
jle 0x404ecc
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x404ea7
cmp edi, 0xffffffff
je 0x404e6b
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x404e6b
mov byte [esp], 0
jmp 0x404f95
mov ebx, dword [esi]
cmp ebx, 1
jg 0x404ea7
test ebx, ebx
jne 0x404ea0
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004015bc
test eax, eax
jne 0x404ea0
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x404f95
pause
dec ebp
test ebp, ebp
jg 0x404e50
cmp edi, 0xffffffff
je 0x404ecc
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x404eca
mov byte [esp], 0
jmp 0x404f95
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x404e1a
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004015bc
cmp ebx, eax
jne 0x404ecc
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405008
mov edx, eax
mov ebx, dword [0x67e8cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x404f33
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x404f31
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x404f33
xor edi, edi
cmp byte [esp], 0
je 0x404f5c
mov ebx, dword [esi]
test bl, 1
jne 0x404f75
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004015bc
cmp ebx, eax
jne 0x404f39
mov byte [esp + 1], 1
jmp 0x404f75
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004015bc
cmp ebx, eax
jne 0x404f5c
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x404ee6
cmp byte [esp], 0
je 0x404f95
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 0x405bf4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x67e054], 0
je 0x405c55
cmp word [0x67e330], 0xd7b2
jne 0x405c1d
cmp dword [0x67e338], 0
jbe 0x405c1d
mov eax, 0x67e32c
call dword [0x67e348]
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 0x405c80
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x668034], 0
jne 0x405c71
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x405df4
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 [0x66803c], 0
je 0x405e1a
mov edx, esi
mov eax, ebx
call dword [0x66803c]
jmp 0x405e29
mov eax, 8
call fcn.00403230
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x67e055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405dbc
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 0x40d7f0
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 0x40d890
test ebp, ebp
setl byte [esp]
mov eax, edi
xor ecx, ecx
mov edx, 0xb
call fcn.00406810
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.004065a4
add bl, 0x30
mov byte [eax + esi - 1], bl
dec esi
test ebp, ebp
jne 0x40d81a
cmp byte [esp], 0
je 0x40d85f
mov eax, edi
call fcn.004065a4
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x40d89c
mov eax, edi
call fcn.004065a4
push eax
mov eax, edi
call fcn.004065a4
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.00403424
mov edx, ebx
mov eax, edi
xor ecx, ecx
call fcn.00406810
jmp 0x40d89c
mov eax, edi
mov edx, 0x40d8b0
call fcn.00405ec4
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40d8b4
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 0x40d957
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.00407198
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.00407854
add bp, 0x30
mov word [eax + esi*2 - 2], bp
dec esi
test ebx, ebx
jne 0x40d8dc
cmp byte [esp], 0
je 0x40d925
mov eax, edi
call fcn.00407854
mov word [eax + esi*2 - 2], 0x2d
dec esi
test esi, esi
jle 0x40d963
mov eax, edi
call fcn.00407854
push eax
mov eax, edi
call fcn.00407854
lea eax, [eax + esi*2]
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
add ecx, ecx
pop edx
call fcn.00403424
mov edx, ebx
mov eax, edi
call fcn.00407198
jmp 0x40d963
mov eax, edi
mov edx, 0x40d978
call fcn.00406edc
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40ead0
Capabilities:
Get geographical location

Disassembly:
push ecx
cmp word [0x668ac0], 0
jne 0x40eb08
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 0x40eaff
movzx eax, word [esp]
mov word [0x668ac0], ax
jmp 0x40eb08
mov word [0x668ac0], 0x2c
movzx eax, word [0x668ac0]
pop edx
ret
Function at 0x40f0dc
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x40f0e4
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40f2f6
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.KERNEL32.DLL_GetVersion_1
test eax, 0x80000000
je 0x40f127
lea edx, [ebp - 0xc]
mov eax, ebx
call dword [0x66884c]
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.004070f8
jmp 0x40f2c3
test ebx, 0xc0000000
je 0x40f16f
lea edx, [ebp - 0x10]
mov eax, dword [0x668ad8]
call fcn.0040f314
mov eax, dword [ebp - 0x10]
call fcn.0040652c
push eax
lea edx, [ebp - 0x14]
mov eax, dword [0x6688bc]
call fcn.0040f314
mov eax, dword [ebp - 0x14]
call fcn.0040652c
push eax
call sub.KERNEL32.DLL_GetModuleHandleA
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
test eax, eax
je 0x40f16f
push ebx
call eax
mov ebx, eax
mov edi, 0x1300
cmp ebx, 0x834
jb 0x40f1b4
cmp ebx, 0xbb7
ja 0x40f1b4
push 2
push 0
lea edx, [ebp - 0x18]
mov eax, dword [0x668ad4]
call fcn.0040f314
mov eax, dword [ebp - 0x18]
call fcn.0040652c
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40f1b9
or edi, 0x800
jmp 0x40f1b9
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x40f2bc
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 0x40f25c
xor eax, eax
push ebp
push 0x40f255
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00407088
mov eax, dword [esi]
call fcn.0040718c
mov ebx, eax
test ebx, ebx
jbe 0x40f23e
mov eax, dword [esi]
movzx edi, word [eax + ebx*2 - 2]
cmp di, 0xd
jne 0x40f225
mov eax, esi
call fcn.00407854
mov word [eax + ebx*2 - 2], 0x20
jmp 0x40f239
cmp di, 0xa
jne 0x40f239
mov eax, esi
mov ecx, 1
mov edx, ebx
call fcn.00407600
dec ebx
test ebx, ebx
ja 0x40f208
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f29f
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_LocalFree
ret
lea edx, [ebp - 0x20]
mov eax, dword [0x668adc]
call fcn.0040f314
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
call fcn.004070f8
push dword [ebp - 0x1c]
push 0x40f310
lea eax, [ebp - 0x24]
push eax
mov cx, 0x30
mov edx, 1
mov eax, ebx
call fcn.0040e2dc
push dword [ebp - 0x24]
mov eax, esi
mov edx, 3
call fcn.00407380
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f2c3
cmp dword [ebp - 8], 0
je 0x40f2bb
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 0x40f2fd
lea eax, [ebp - 0x24]
call fcn.00406ecc
lea eax, [ebp - 0x20]
call fcn.00405e70
lea eax, [ebp - 0x1c]
call fcn.00406ecc
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00405e94
ret
Function at 0x40f314
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.00405ec4
mov eax, ebx
call fcn.0040659c
mov eax, dword [ebx]
call fcn.00406204
test eax, eax
jle 0x40f345
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x40f33a
pop esi
pop ebx
ret

Function at 0x410030
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 0x410131
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x30]
call fcn.004085c0
mov esi, eax
lea eax, [esi + 1]
push eax
lea eax, [ebx + 0x30]
mov ecx, 1
mov edx, dword [0x40fd28]
call fcn.00408788
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 0x4100b2
test esi, esi
jle 0x4100b2
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.00406edc
jmp 0x4100c3
lea eax, [esi + esi*2]
mov edx, dword [ebx + 0x30]
lea eax, [edx + eax*8 + 0x10]
mov edx, edi
call fcn.00406edc
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add dword [ebx + 0x38], eax
adc dword [ebx + 0x3c], edx
test esi, esi
jne 0x41011b
call sub.KERNEL32.DLL_GetVersion_1
test eax, 0x80000000
jne 0x4100f6
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x10]
call fcn.00406f68
push eax
mov eax, dword [ebx + 0x28]
push eax
call sub.user32.dll_SetWindowTextW
jmp 0x41011b
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x30]
mov edx, dword [edx + 0x10]
mov ecx, 0
call fcn.00407120
mov eax, dword [ebp - 4]
call fcn.0040652c
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 0x410138
lea eax, [ebp - 4]
call fcn.00405e70
ret
Function at 0x410f98
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 0x4110e2
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x410fc0
cmp dword [ebx + 4], 0
jne 0x4110e2
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x410fe6
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x410fe6
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.00410eec
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
je 0x4110e2
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x411095
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x41103b
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.00410f2c
test al, al
je 0x41108b
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 0x41108b
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 4]
jne 0x41108b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
jmp 0x4110b3
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
jmp 0x4110b3
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.00410f80
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 0x4110e2
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.0041522c
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 0x4114ac
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 0x4114dd
cmp dword [ebx + 0x54], 0
jne 0x4114dd
cmp dword [ebx + 0x5c], 0
jne 0x4114dd
mov esi, dword [ebp - 8]
jmp 0x411588
cmp esi, 0xffffffff
jne 0x4114e8
dec esi
jmp 0x411588
mov eax, dword [ebx + 0x54]
mov edx, dword [ebp - 8]
sub edx, 0x106
add edx, dword [ebp - 8]
cmp eax, edx
jb 0x411588
mov eax, dword [ebx + 0x20]
mov edx, dword [ebp - 8]
lea edx, [eax + edx]
mov ecx, dword [ebp - 8]
xchg edx, eax
call fcn.00403424
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 0x41154a
movzx ecx, word [ebp - 4]
sub cx, word [ebp - 8]
mov word [edx], cx
jmp 0x41154f
mov word [edx], 0
dec eax
test eax, eax
jne 0x41152c
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 0x41157b
movzx ecx, word [ebp - 4]
sub cx, word [ebp - 8]
mov word [edx], cx
jmp 0x411580
mov word [edx], 0
dec eax
test eax, eax
jne 0x41155d
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 0x4115a4
cmp eax, dword [esp]
pop edx
pop eax
je 0x411612
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.00411438
pop ecx
add dword [ebx + 0x5c], eax
cmp dword [ebx + 0x5c], 3
jb 0x4115ec
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 0x411612
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 0x4114bc
cmp eax, dword [ecx + 0x14]
jne 0x4114bc
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret