joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a208
Capabilities:
Copy file
Create process on windows
Get common file path
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
xor eax, eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40a370
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x100
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x108]
lea edx, [ebp - 0x104]
mov ecx, 0x100
call fcn.00403fe4
mov edx, dword [ebp - 0x108]
lea eax, [ebp - 4]
mov ecx, 0x40a384
call fcn.00404048
push 0
mov eax, dword [ebp - 4]
call fcn.004041fc
push eax
lea edx, [ebp - 0x10c]
xor eax, eax
call fcn.00402764
mov eax, dword [ebp - 0x10c]
call fcn.004041fc
push eax
call sub.kernel32.dll_CopyFileA
push 0
push 0x40a39c
push dword [ebp - 4]
push 0x40a410
lea eax, [ebp - 0x110]
mov edx, 3
call fcn.004040bc
mov eax, dword [ebp - 0x110]
call fcn.004041fc
push eax
call sub.kernel32.dll_WinExec
push 0
push 0x40a414
lea edx, [ebp - 0x114]
xor eax, eax
call fcn.00402764
mov eax, dword [ebp - 0x114]
call fcn.004041fc
push eax
call sub.kernel32.dll_CopyFileA
push 0
push 0x40a428
lea edx, [ebp - 0x118]
xor eax, eax
call fcn.00402764
mov eax, dword [ebp - 0x118]
call fcn.004041fc
push eax
call sub.kernel32.dll_CopyFileA
push 0
push 0x40a438
lea edx, [ebp - 0x11c]
xor eax, eax
call fcn.00402764
mov eax, dword [ebp - 0x11c]
call fcn.004041fc
push eax
call sub.kernel32.dll_CopyFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a377
lea eax, [ebp - 0x11c]
mov edx, 6
call fcn.00403e9c
lea eax, [ebp - 4]
call fcn.00403e78
ret

Function at 0x40a448
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
xor eax, eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40a527
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x100
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x108]
lea edx, [ebp - 0x104]
mov ecx, 0x100
call fcn.00403fe4
mov edx, dword [ebp - 0x108]
lea eax, [ebp - 4]
mov ecx, 0x40a53c
call fcn.00404048
push 0
mov eax, dword [ebp - 4]
call fcn.004041fc
push eax
lea edx, [ebp - 0x10c]
xor eax, eax
call fcn.00402764
mov eax, dword [ebp - 0x10c]
call fcn.004041fc
push eax
call sub.kernel32.dll_CopyFileA
push 0x40a54c
push 0x40a558
push 0x40a574
push 0x40a57c
call sub.kernel32.dll_WritePrivateProfileStringA
mov eax, 0x40a58c
call fcn.0040a124
test al, al
jne 0x40a501
push 0
call sub.kernel32.dll_ExitProcess_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a52e
lea eax, [ebp - 0x10c]
mov edx, 2
call fcn.00403e9c
lea eax, [ebp - 4]
call fcn.00403e78
ret
Function at 0x40a88c
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
mov dword [esp], 7
push 0
lea eax, [esp + 4]
push eax
call sub.wininet.dll_InternetGetConnectedState
cmp eax, 1
sbb eax, eax
inc eax
pop edx
ret

Function at 0x40aa18
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x40a978
call fcn.00404e44
call fcn.0040a208
call fcn.0040a88c
test al, al
jne 0x40aa40
push 0x493e0
call sub.kernel32.dll_Sleep
call fcn.0040a5a8
call fcn.0040a448
push 0x3e8
call sub.kernel32.dll_Sleep
mov edx, 0x40aaa0
mov eax, 0x40c8ac
call fcn.00402ac0
mov eax, 0x40c8ac
call fcn.00402850
mov eax, 0x40c8ac
call fcn.00402c30
push 0x40c8a8
push 0
push 0
push 0x40a8f4
push 0
push 0
call sub.kernel32.dll_CreateThread
call fcn.0040a8a8
call fcn.00403d88
Function at 0x401bc6
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
push edi
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
xor eax, eax
push 0x104
mov word [ebp - 8], ax
call fcn.00407c3b
mov ebx, dword [sym.imp.xul.dll_NS_StringGetData]
lea eax, [ebp - 0x10]
push 0
push eax
push esi
call ebx
add esp, 0xc
mov ecx, esi
push eax
push 0xffffffffffffffff
call fcn.00404a19
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov edi, eax
test edi, edi
jne 0x401c79
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x401c71
push 0
lea eax, [ebp - 0x14]
push eax
push esi
call ebx
add esp, 0xc
add eax, eax
mov ecx, esi
push eax
call fcn.00407c3b
push 0
lea eax, [ebp - 0x10]
push eax
push esi
call ebx
add esp, 0xc
mov ecx, esi
push eax
push 0xffffffffffffffff
call fcn.00404a19
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov edi, eax
test edi, edi
je 0x401c29
test edi, edi
jne 0x401c79
xor al, al
jmp 0x401c91
mov ecx, esi
call fcn.00404991
push eax
call fcn.0040f46f
pop ecx
push eax
mov ecx, esi
call fcn.00407c3b
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411f6c
mov esp, ebp
pop ebp
ret
Function at 0x40fe51
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10010
call fcn.004123f0
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
lea eax, [ebp - 0x10010]
push esi
mov esi, dword [ebp + 8]
push edi
push 1
push eax
xor edi, edi
push edi
push edi
push esi
call ebx
test eax, eax
je 0x40fee7
cmp dword [ebp + 0xc], edi
je 0x40fe9a
push edi
push edi
push edi
push dword [ebp + 0xc]
push esi
call ebx
test eax, eax
je 0x40fee7
cmp dword [ebp + 0x10], edi
jbe 0x40fed4
mov ecx, 0x10000
push 0
lea eax, [ebp - 0x10008]
push eax
push ecx
lea eax, [ebp - 0x10004]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40fed4
mov ecx, 0x10000
cmp dword [ebp - 0x10008], ecx
jne 0x40fed4
add edi, ecx
cmp edi, dword [ebp + 0x10]
jb 0x40fea4
push 0
push 0
push dword [ebp - 0x1000c]
push dword [ebp - 0x10010]
push esi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411f6c
mov esp, ebp
pop ebp
ret

Function at 0x411c94
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x418088]
test eax, eax
je 0x411cab
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x411d05
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll__vscprintf]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x411d04
inc edi
lea eax, [ebp - 4]
push edi
push eax
call fcn.004034a9
mov esi, dword [ebp - 4]
pop ecx
pop ecx
test esi, esi
je 0x411d04
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.MSVCR120.dll__vsnprintf]
add esp, 0x10
mov byte [esi + edi - 1], 0
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.mozglue.dll_free]
pop ecx
pop edi
push 0x415f54
push 2
call dword [sym.imp.MSVCR120.dll__dup]
pop ecx
push eax
call dword [sym.imp.MSVCR120.dll__fdopen]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x411d39
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.MSVCR120.dll_vfprintf]
push esi
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 0x10
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10002026
Capabilities:
Encode data using xor

Disassembly:
jp 0x10002068
push esp
fadd qword [0x4c1af76e]
add eax, 0x4c1af76e
and esi, eax
js 0x1000204e
mov ah, 0x44
adc eax, 0x369bc059
scasb al, byte es:[edi]
adc eax, 0x1ee0ef96
les esp, [edx - 0x3ea936fc]
call [edi - 0x66]
xor dword [ebx - 0x2d4225c], ebx
aam 6
fcomp st(4)
and al, 0xc8
and al, 0xc8
invalid
js 0x1000202c
dec edi
mov cl, 0xbc
mov dh, 2
sbb ecx, dword [ebx - 0x7631a195]
stosd dword es:[edi], eax
xor dword [ebx - 0x7072df35], 0x2c969050
and esp, dword [ebx + 0x7b921ada]
add eax, dword [eax - 0x712b264b]
ficom dword [edx]
sub al, 0xe4
ret 0x6ecc
retf
Function at 0x4068a4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4068c5
jl 0x4068bc
test edi, edi
jne 0x4068c5
xor eax, eax
xor edx, edx
jmp 0x406986
cmp dword [ebx + 0x38], 0
je 0x4068da
push eax
push edi
push dword [ebp + 8]
call fcn.0040698c
jmp 0x406986
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x406921
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x406921
cmp eax, edi
jb 0x4068fb
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00408520
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x406927
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40697b
mov ecx, ebx
call fcn.004060f4
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x406966
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004107b6
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x40697b
jmp 0x406939
test edx, edx
je 0x40697b
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004107b6
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x407cb0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407cef
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407cef
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407cef
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407cef
cmp dword [ecx + 0x74], 0xe
jbe 0x407cef
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x415dda
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429364
push 0x42935c
push str.FlsAlloc
push 0x1e
call fcn.00415c07
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415e0e
push dword [ebp + 8]
mov ecx, esi
call dword [0x42515c]
call esi
jmp 0x415e14
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x415e58
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429374
push 0x42936c
push str.FlsGetValue
push 0x20
call fcn.00415c07
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415e8f
push dword [ebp + 8]
mov ecx, esi
call dword [0x42515c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41944f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004192c0

Function at 0x419849
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408030
mov eax, dword [0x484100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004172ab
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41988b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4199e7
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00407380
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x485cb8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041a840
mov ecx, dword [esi*4 + 0x485cb8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4199e0
cmp eax, dword [edi + ecx + 0x24]
jne 0x4199e0
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4199e0
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a840
add esp, 0x14
test edx, edx
jl 0x4199e0
jg 0x419956
test eax, eax
jb 0x4199e0
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4199e0
jl 0x419970
cmp dword [ebp - 0x1008], eax
ja 0x4199e0
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41998e
test ebx, ebx
je 0x4199c7
cmp ecx, edi
jae 0x4199c7
mov al, byte [ecx]
cmp al, 0xd
jne 0x4199a8
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4199b4
cmp byte [ecx + 1], 0xa
jne 0x4199b4
inc ecx
jmp 0x4199b4
movzx eax, al
movsx eax, byte [eax + 0x4843c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41998e
cmp edx, ebx
jne 0x41998e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4199e5
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040736f
leave
ret
Function at 0x419cde
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x485cb8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419d1e
cmp byte [ebx], 0xa
jne 0x419d1e
or byte [eax + edi + 0x28], 4
jmp 0x419d23
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x419e21
mov al, byte [edx]
cmp al, 0x1a
je 0x419e03
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x419d52
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x419d77
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x419d81
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x419d34
jmp 0x419e21
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419dfe
cmp dword [ebp - 0xc], 0
je 0x419dfe
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x485cb8]
test byte [eax + edi + 0x28], 0x48
je 0x419dd8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x419dc3
mov byte [esi], dl
jmp 0x419dd4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x485cb8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x419e21
cmp byte [ebp - 1], 0xa
jne 0x419de7
cmp esi, ebx
jne 0x419de7
mov byte [esi], 0xa
jmp 0x419e20
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041a85e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x419e21
mov byte [esi], 0xd
jmp 0x419e20
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x485cb8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419e1d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419e21
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x419e2a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x485cb8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419e6d
cmp word [esi], dx
jne 0x419e6d
or byte [edi + eax + 0x28], 4
jmp 0x419e72
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x419fc5
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x419fa5
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x419eb4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x419eea
cmp eax, edx
jae 0x419ef6
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x419e8c
jmp 0x419fc5
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419fa1
cmp dword [ebp - 0x14], 0
je 0x419fa1
mov eax, dword [ebx*4 + 0x485cb8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x419f79
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x419f42
mov word [esi], cx
jmp 0x419f75
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x485cb8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x485cb8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x485cb8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x419fc5
pop ebx
cmp word [ebp - 4], bx
jne 0x419f8a
cmp esi, dword [ebp + 0xc]
jne 0x419f8a
mov word [esi], bx
jmp 0x419fc2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041a85e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x419fc5
push 0xd
jmp 0x419fbe
mov ecx, dword [ebx*4 + 0x485cb8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419fbc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419fc5
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x424000
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x228
mov eax, dword [0x484100]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [esp + 0x22c]
push ebx
push ebp
push esi
push edi
push 0x2c
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], 0
call fcn.0040732c
mov esi, dword [esp + 0x24c]
mov ebx, eax
mov edi, dword [esp + 0x248]
add esp, 4
xor ecx, ecx
mov dword [ebx], ebx
mov dword [ebx + 4], ebx
mov dword [ebx + 8], ebx
mov word [ebx + 0xc], 0x101
mov dword [esp + 0x14], ebx
nop dword [eax]
mov eax, ecx
mov byte [esp + ecx + 0x34], cl
cdq
idiv esi
mov al, byte [edx + edi]
mov byte [esp + ecx + 0x134], al
inc ecx
cmp ecx, 0x100
jl 0x424060
xor esi, esi
xor edi, edi
mov dl, byte [esp + esi + 0x34]
movzx eax, byte [esp + esi + 0x134]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x4240a3
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x34]
mov byte [esp + esi + 0x34], al
inc esi
mov byte [esp + edi + 0x34], dl
cmp esi, 0x100
jl 0x424080
xor ecx, ecx
xor ebp, ebp
xor edi, edi
cmp dword [esp + 0x240], ecx
jle 0x4241c0
movsd xmm0, qword [0x425448]
movsd qword [esp + 0x2c], xmm0
nop dword [eax]
inc ebp
and ebp, 0x800000ff
jns 0x4240f1
dec ebp
or ebp, 0xffffff00
inc ebp
mov bl, byte [esp + ebp + 0x34]
movzx esi, bl
add ecx, esi
and ecx, 0x800000ff
jns 0x42410a
dec ecx
or ecx, 0xffffff00
inc ecx
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], ecx
push eax
push 0
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call fcn.00401640
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
movzx eax, byte [esp + ecx + 0x34]
mov byte [esp + ebp + 0x34], al
mov byte [esp + ecx + 0x34], bl
movzx eax, byte [esp + ebp + 0x34]
add eax, esi
movzx eax, al
movzx eax, byte [esp + eax + 0x34]
xor byte [edx + edi], al
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x4241ae
mov ecx, dword [esp + 0x24]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x424188
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4241f6
push ecx
push edx
call fcn.0040735c
mov ecx, dword [esp + 0x18]
add esp, 8
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
inc edi
cmp edi, dword [esp + 0x240]
jl 0x4240e0
mov ebx, dword [esp + 0x14]
push dword [ebx + 4]
lea eax, [esp + 0x18]
push eax
mov ecx, eax
call fcn.00401810
push 0x2c
push dword [esp + 0x18]
call fcn.0040735c
mov ecx, dword [esp + 0x23c]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040736f
add esp, 0x228
ret
call fcn.0040bcef
int3
Function at 0x424610
Capabilities:
Create thread

Disassembly:
sub esp, 0x18
push str.Madino_Mino_n
push 0x485328
call fcn.004010d0
add esp, 8
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 4
call fcn.0040732c
add esp, 4
test eax, eax
je 0x424641
mov dword [eax], 0x424320
jmp 0x424643
xor eax, eax
lea ecx, [esp + 8]
push ecx
push 0
push eax
push 0x401ca0
push 0
push 0
call fcn.0040f276
add esp, 0x18
mov dword [esp + 4], eax
test eax, eax
je 0x424739
cmp dword [esp + 8], 0
je 0x424748
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [esp + 8]
cmp ecx, eax
je 0x42474f
push 0
push ecx
push dword [esp + 0xc]
call fcn.00404fd9
add esp, 0xc
test eax, eax
jne 0x424756
push esi
xorps xmm0, xmm0
mov dword [esp + 0x10], eax
xor ecx, ecx
movlpd qword [esp + 8], xmm0
push edi
mov dword [esp + 0x18], eax
lea edi, [eax + 0x64]
mov dword [esp + 0x1c], ecx
mov dword [esp + 8], eax
nop dword [eax + eax]
mov esi, 2
cmp eax, ecx
je 0x4246d8
mov dword [eax], 0
add eax, 4
mov dword [esp + 0x18], eax
jmp 0x4246ef
lea ecx, [esp + 8]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00401480
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
sub esi, 1
jne 0x4246c5
sub edi, 1
jne 0x4246c0
mov edx, dword [esp + 0x14]
pop edi
pop esi
test edx, edx
je 0x42472c
sub ecx, edx
mov eax, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x424722
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42475d
push ecx
push edx
call fcn.0040735c
add esp, 8
cmp dword [esp + 8], 0
jne 0x424762
xor eax, eax
add esp, 0x18
ret
push 6
mov dword [esp + 0xc], 0
call fcn.004051c9
push 1
call fcn.004051c9
push 5
call fcn.004051c9
push 2
call fcn.004051c9
call fcn.0040bcef
call fcn.0040f0b6
int3

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx