joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44fd6c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44fd83
add esp, 0xfffffff0
call fcn.00403c34
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a890
mov eax, dword [0x45a074]
cmp word [eax + 2], 0
jne 0x44fdab
mov eax, dword [0x45a074]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00451444
mov eax, dword [0x45a128]
cmp word [eax + 2], 0
jne 0x44fdc5
mov eax, dword [0x45a128]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045163c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x412b88]
call fcn.004038f8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x412b88]
call fcn.004038f8
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41ca8c]
call fcn.00422abc
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44ff4c
mov eax, dword [0x459f90]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00422e8c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x451bec
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x459f90]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d748
test eax, eax
je 0x44feba
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409adc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d770
test eax, eax
je 0x44fece
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004048d0
mov eax, dword [0x459e88]
cmp byte [eax], 0
jne 0x44ff02
mov eax, ebx
call fcn.00450074
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00451dc8
mov eax, ebx
call fcn.0045278c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44ff42
call fcn.00403c8c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4502f4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45bbb0]
cmp dword [eax + 0x30], 0
je 0x45039e
cmp dword [ebx + 0x94], 0
jne 0x450398
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x450284
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x450398
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45035e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x450398
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414ef0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45036d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x450f00
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x450f35
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404750
jmp 0x450f42
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004046b4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x451fa4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x451fe5
mov eax, esi
call fcn.00438888
test al, al
je 0x451fe5
mov eax, dword [ebx + 0x84]
call fcn.00438584
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x451fe5
push 0
mov eax, dword [ebx + 0x84]
call fcn.00438584
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45343c
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4534c5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x45bc20
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x4534af
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040c1e0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x4534dc
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x45a184]
mov dl, 1
mov eax, dword [0x452c40]
call fcn.0040cb04
call fcn.0040409c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4534cc
lea eax, [ebp - 0x1c]
call fcn.00404660
ret
Function at 0x453b6c
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.00453a90
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403b24
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x453bd0
call fcn.00453384
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x453bc2
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403b24
pop esi
pop ebx
ret

Function at 0x453bf4
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404b20
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00403018
test ebx, ebx
je 0x453c3f
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret

Function at 0x453d1c
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x453d4d
mov ecx, dword [0x45a0c4]
mov dl, 1
mov eax, dword [0x452c40]
call fcn.0040cac8
call fcn.0040409c
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x453d7a
mov ecx, dword [0x45a06c]
mov dl, 1
mov eax, dword [0x452c40]
call fcn.0040cac8
call fcn.0040409c
xor eax, eax
push ebp
push 0x453df6
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403b24
cmp byte [ebp + 8], 0
je 0x453dd2
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00453c84
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.00453b6c
jmp 0x453dec
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00453670
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x453e13
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x453ff4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0045392c
xor eax, eax
push ebp
push 0x454165
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x45414f
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x45403f
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x454049
call fcn.00404148
jmp 0x45416c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00416b30
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x454144
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x4540f7
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x4540e4
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403b24
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.00453fac
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x454178]
cmp dl, byte [eax + 0x28]
je 0x45414b
call fcn.0040c9ec
jmp 0x45414b
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00416b50
jmp 0x45414b
cmp ecx, ebx
jge 0x454113
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00416b50
jmp 0x454049
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00416b30
cmp edx, dword [esp + 4]
jne 0x454133
cmp eax, dword [esp]
pop edx
pop eax
jne 0x454049
push ebp
call fcn.00453fac
pop ecx
jmp 0x45414b
push ebp
call fcn.00453fac
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45416c
mov eax, dword [ebp - 4]
call fcn.00453938
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45417c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45429e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0045392c
xor eax, eax
push ebp
push 0x454281
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4541cc
call fcn.00404148
jmp 0x454288
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x45426b
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x45426b
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403b24
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x45426b
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c1e0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x4542b8
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x45a184]
mov dl, 1
mov eax, dword [0x452c40]
call fcn.0040cb04
call fcn.0040409c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454288
mov eax, dword [ebp - 4]
call fcn.00453938
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4542a5
lea eax, [ebp - 0x28]
call fcn.00404660
ret

Function at 0x4577d4
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0x457788
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 4]
pop ecx
pop ecx
pop ebp
ret
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 [0x660d00]
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 + 0x6628b8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041a840
mov ecx, dword [esi*4 + 0x6628b8]
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 + 0x660fc8]
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 + 0x6628b8]
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 + 0x6628b8]
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 + 0x6628b8]
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 + 0x6628b8]
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 + 0x6628b8]
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 + 0x6628b8]
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 + 0x6628b8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x6628b8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x6628b8]
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 + 0x6628b8]
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 [0x660d00]
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 0x661f28
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