joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401470
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x48]
mov byte [esp + 0x1d], bl
test ebp, ebp
je 0x4015e1
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4015e1
mov eax, dword [esp + 0x40]
movzx esi, byte [eax]
mov eax, esi
test al, al
je 0x4015e1
mov edi, dword [esp + 0x4c]
test edi, edi
jne 0x4014bc
mov dword [esp], ebp
call sub.msvcrt.dll_strlen
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [esp + 0x14], eax
mov eax, esi
cmp al, 0x27
je 0x401688
test bl, bl
jne 0x401670
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x14]
test ecx, ecx
sete dl
test ebx, ebx
sete al
or dl, al
jne 0x401698
mov edx, dword [esp + 0x50]
mov dword [esp + 0x18], 0
mov edi, 1
test edx, edx
mov edx, esi
mov esi, ebp
setne byte [esp + 0x1e]
xor ebx, ebx
mov byte [esp + 0x1c], dl
jmp 0x40156c
cmp byte [esp + 0x1d], 0
jne 0x4015f0
cmp cl, 0x22
sete al
mov ebp, eax
add ebx, 1
cmp cl, dl
je 0x401586
cmp byte [esp + 0x1c], cl
je 0x401610
movzx edx, byte [esp + 0x1c]
xor ecx, ecx
mov edi, 1
cmp byte [esp + 0x1e], 0
je 0x401562
mov eax, ebp
test al, al
je 0x401562
xor dword [esp + 0x18], 1
cmp dword [esp + 0x4c], ebx
jbe 0x4015d0
test cl, cl
jne 0x4015d0
movsx ecx, byte [esi + ebx]
cmp cl, 0x27
jne 0x401520
mov ecx, 0x22
mov ebp, 1
add ebx, 1
cmp cl, dl
jne 0x40153a
mov eax, dword [esp + 0x50]
test eax, eax
je 0x40159a
test byte [esp + 0x18], 1
jne 0x40153a
cmp cl, 0x22
je 0x40153a
mov eax, dword [esp + 0x40]
movsx edx, byte [eax + edi]
cmp dl, 0x27
je 0x401650
cmp byte [esp + 0x1d], 0
je 0x4015bc
mov dword [esp], edx
call sub.msvcrt.dll_tolower
mov edx, eax
add edi, 1
cmp dword [esp + 0x14], edi
setb cl
jmp 0x401550
mov ebp, esi
mov eax, dword [esp + 0x14]
add ebp, ebx
add eax, 1
cmp eax, edi
je 0x4015e1
xor ebp, ebp
add esp, 0x2c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ecx
mov byte [esp + 0x1f], dl
call sub.msvcrt.dll_tolower
movzx edx, byte [esp + 0x1f]
cmp al, 0x22
mov ecx, eax
sete al
mov ebp, eax
jmp 0x401533
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x14], 1
setbe cl
movsx edx, byte [eax + 1]
cmp dl, 0x27
je 0x401660
cmp byte [esp + 0x1d], 0
mov edi, 2
je 0x401550
mov dword [esp], edx
mov byte [esp + 0x1f], cl
call sub.msvcrt.dll_tolower
movzx ecx, byte [esp + 0x1f]
mov edx, eax
jmp 0x401550
mov edx, 0x22
jmp 0x4015bc
mov edx, 0x22
mov edi, 2
jmp 0x401550
movsx esi, al
mov dword [esp], esi
call sub.msvcrt.dll_tolower
mov esi, eax
jmp 0x4014de
mov esi, 0x22
jmp 0x4014de
xor ebx, ebx
mov edi, 1
jmp 0x4015d2

Function at 0x401e60
Capabilities:
Resolve dns

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [esp + 0x20]
mov dword [esp], ebx
call sub.WS2_32.dll_inet_addr
mov edx, 0x510020
mov dword [0x510020], eax
sub esp, 4
cmp eax, 0xffffffff
je 0x401e90
add esp, 0x18
mov eax, edx
pop ebx
ret
mov dword [esp], ebx
call sub.WS2_32.dll_gethostbyname
sub esp, 4
mov edx, eax
test eax, eax
je 0x401e82
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
add esp, 0x18
pop ebx
mov eax, edx
ret
Function at 0x402030
Capabilities:
Get socket status

Disassembly:
push esi
push ebx
sub esp, 0x134
mov ebx, dword [esp + 0x140]
lea esi, [esp + 0x2c]
mov dword [esp + 0x2c], 0
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.WS2_32.dll___WSAFDIsSet
sub esp, 8
test eax, eax
jne 0x40206d
mov eax, dword [esp + 0x2c]
lea edx, [eax + 1]
mov dword [esp + eax*4 + 0x30], ebx
mov dword [esp + 0x2c], edx
lea eax, [esp + 0x24]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
lea eax, [ebx + 1]
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call sub.WS2_32.dll_select
sub esp, 0x14
test eax, eax
js 0x4020ea
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.WS2_32.dll___WSAFDIsSet
mov edx, eax
sub esp, 8
mov eax, 1
test edx, edx
je 0x4020d0
add esp, 0x134
pop ebx
pop esi
ret
mov dword [esp], 0xa
call sub.KERNEL32.dll_Sleep
xor eax, eax
sub esp, 4
add esp, 0x134
pop ebx
pop esi
ret
mov dword [esp], str.select
call fcn.00401fe0
lea esi, [esi]
lea esi, [esi]
Function at 0x402100
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
lea edi, [ecx + 0x1c]
push esi
push ebx
sub esp, 0x3c
mov dword [ecx], 0
mov esi, dword [esp + 0x50]
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], edi
test esi, esi
je 0x4022e0
mov dword [esp], esi
mov ebx, ecx
lea ebp, [ecx + 0x14]
call sub.msvcrt.dll_strlen
mov dword [esp + 0x2c], eax
mov edx, eax
cmp eax, 0xf
ja 0x402298
cmp eax, 1
jne 0x402288
movzx edx, byte [esi]
mov byte [ebx + 0x1c], dl
mov edx, edi
mov dword [ebx + 0x18], eax
lea ebp, [ebx + 0x58]
mov byte [edx + eax], 0
mov eax, dword [esp + 0x54]
mov dword [ebx + 0x30], 0xffffffff
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 0x40]
mov byte [ebx + 0x34], 0
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 0
mov byte [ebx + 0x40], 0
mov dword [ebx + 0x50], ebp
mov dword [ebx + 0x54], 0
mov byte [ebx + 0x58], 0
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x84], 0
mov dword [ebx + 0x88], 0
mov dword [ebx + 0x8c], 0
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x94], 0
mov dword [ebx + 0x98], 0
mov dword [ebx + 0x9c], 0
mov dword [ebx + 0x7c], 8
mov dword [esp], 0x20
mov dword [esp + 0x14], eax
call fcn.004b74b0
mov edx, dword [ebx + 0x7c]
mov dword [ebx + 0x78], eax
mov dword [esp], 0x200
lea esi, [edx + edx - 2]
and esi, 0xfffffffc
add esi, eax
call fcn.004b74b0
lea edx, [eax + 0x200]
mov dword [esi], eax
mov dword [ebx + 0x8c], esi
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x88], edx
mov dword [ebx + 0x9c], esi
mov dword [ebx + 0x94], eax
mov dword [ebx + 0x98], edx
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x90], eax
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret 8
test eax, eax
jne 0x4022ec
mov edx, edi
jmp 0x402168
mov dword [esp + 0x14], eax
lea eax, [esp + 0x2c]
mov ecx, ebp
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004a5980
sub esp, 8
mov dword [ebx + 0x14], eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
mov dword [ebx + 0x1c], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx + 0x14]
jmp 0x402168
mov dword [esp], 0x4c472c
call fcn.004b97f8
mov eax, edi
jmp 0x4022c3
Function at 0x402320
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push esi
push ebx
mov ebx, ecx
sub esp, 0x24
mov eax, dword [ecx + 0x14]
mov dword [esp], eax
call fcn.00401e60
test eax, eax
je 0x4b842c
mov esi, eax
mov eax, 2
mov dword [esp + 0x10], 0
mov word [esp + 0x10], ax
movzx eax, word [ebx + 0x2c]
mov dword [esp + 0x14], 0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call sub.WS2_32.dll_htons
sub esp, 4
mov word [esp + 0x12], ax
mov eax, dword [esi]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
mov dword [esp + 0x14], eax
call sub.WS2_32.dll_socket
mov dword [ebx + 0x30], eax
sub esp, 0xc
test eax, eax
js 0x4023cb
lea edx, [esp + 0x10]
mov dword [esp + 8], 0x10
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll_connect
sub esp, 0xc
test eax, eax
js 0x4023d7
add esp, 0x24
pop ebx
pop esi
ret
mov dword [esp], str.socket__
call fcn.00401fe0
mov dword [esp], str.connect__
call fcn.00401fe0
nop
lea esi, [esi]
lea esi, [esi]
nop
mov dword [esp], 0x100
call fcn.004b7550
mov dword [esp + 4], str.Invalid_network_address
mov dword [esp], eax
mov ebx, eax
call fcn.00401eb0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4cb4e0
mov dword [esp], ebx
call fcn.004b7b00
mov dword [esp], ebx
mov esi, eax
call fcn.004b7800
mov dword [esp], esi
call fcn.0042b3a0
mov dword [esp], 0x100
call fcn.004b7550
mov dword [esp + 4], str.Connection_closed_unexpectedly
mov dword [esp], eax
mov ebx, eax
call fcn.00401eb0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4cb4e0
mov dword [esp], ebx
call fcn.004b7b00
mov dword [esp], ebx
mov esi, eax
call fcn.004b7800
mov dword [esp], esi
call fcn.0042b3a0
mov dword [esp], 0x100
call fcn.004b7550
mov esi, eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x20]
mov dword [esp + 4], str.UnknownProtocol___s_
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.00401eb0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4cb4e0
mov dword [esp], esi
call fcn.004b7b00
mov dword [esp], 0x100
call fcn.004b7550
mov esi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 4], str.BadStatusLine___s_
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.00401eb0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4cb4e0
mov dword [esp], esi
call fcn.004b7b00
mov ebx, eax
mov eax, dword [ebp - 0x30]
lea edi, [ebp - 0x28]
cmp eax, edi
je 0x4b854f
mov dword [esp], eax
call fcn.004b7460
mov dword [esp], ebx
call fcn.0042b3a0
mov dword [esp], esi
mov ebx, eax
call fcn.004b7800
jmp 0x4b853d
Function at 0x4023f0
Capabilities:
Send data
Send data on socket

Disassembly:
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x10
mov eax, dword [ecx + 0x30]
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
test eax, eax
jns 0x402436
jmp 0x402448
mov eax, dword [edi + 0x30]
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
test eax, eax
js 0x40244f
sub ebx, eax
add esi, eax
test ebx, ebx
jg 0x402410
add esp, 0x10
pop ebx
pop esi
pop edi
ret 8
call fcn.00402320
jmp 0x402436
mov dword [esp], str.send__
call fcn.00401fe0
nop
lea esi, [esi]

Function at 0x4025a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
lea ebp, [ecx + 0x10]
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ecx + 4], 0
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
mov dword [ecx + 8], ebp
mov dword [ecx], eax
lea eax, [ecx + 8]
mov dword [esp + 0x1c], eax
test edi, edi
je 0x402708
mov dword [esp], edi
mov ebx, ecx
call sub.msvcrt.dll_strlen
mov dword [esp + 0x2c], eax
mov esi, eax
cmp eax, 0xf
ja 0x4026c0
cmp eax, 1
jne 0x4026b0
movzx ecx, byte [edi]
mov byte [ebx + 0x10], cl
mov dword [ebx + 0xc], eax
mov byte [ebp + eax], 0
lea eax, [ebx + 0x28]
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x48]
mov dword [ebx + 0x40], eax
lea eax, [ebx + 0x5c]
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x68], eax
lea eax, [ebx + 0x8c]
mov dword [ebx + 0x84], eax
lea eax, [ebx + 0xa4]
mov dword [ebx + 0x24], 0
mov byte [ebx + 0x28], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x44], 0
mov byte [ebx + 0x48], 0
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x70], 0
mov byte [ebx + 0x74], 0
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x7c], 0xffffffff
mov byte [ebx + 0x80], 0
mov dword [ebx + 0x88], 0
mov byte [ebx + 0x8c], 0
mov dword [ebx + 0x9c], eax
mov dword [ebx + 0xa0], 0
mov byte [ebx + 0xa4], 0
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret 8
test eax, eax
je 0x4025f5
jmp 0x4026e6
lea eax, [esp + 0x2c]
mov dword [esp + 4], 0
lea ecx, [ebx + 8]
mov dword [esp], eax
call fcn.004a5980
sub esp, 8
mov dword [ebx + 8], eax
mov ebp, eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x10], eax
mov dword [esp], ebp
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x2c]
mov ebp, dword [ebx + 8]
jmp 0x4025f5
mov dword [esp], 0x4c472c
call fcn.004b97f8
lea esi, [esi]
lea esi, [esi]
nop
Function at 0x4046d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x82c
call fcn.004024b0
test al, al
je 0x4047f0
mov eax, dword [ebx + 0x30]
test eax, eax
jle 0x404882
mov dword [esp], eax
call fcn.00402030
mov byte [esp + 0x1f], al
test al, al
jne 0x404720
mov ecx, ebx
call fcn.004024b0
mov edi, eax
add esp, 0x82c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x20]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x800
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.WS2_32.dll_recv
sub esp, 0x10
mov ebp, eax
test eax, eax
js 0x40489e
je 0x404808
movzx edi, byte [esp + 0x1f]
xor esi, esi
mov eax, edi
mov edi, esi
mov esi, ebx
mov byte [esp + 0x1e], al
jmp 0x404784
call sub.KERNEL32.dll_Sleep
sub esp, 4
add edi, dword [esp + 0x18]
cmp ebp, edi
jle 0x404840
mov eax, dword [esi + 0x80]
cmp dword [esi + 0x90], eax
je 0x404840
mov ebx, dword [esi + 0x68]
test ebx, ebx
je 0x404870
mov eax, ebp
mov ecx, ebx
sub eax, edi
mov dword [esp + 4], eax
lea eax, [esp + 0x20]
add eax, edi
mov dword [esp], eax
call 0x404480
sub esp, 8
cmp dword [ebx + 4], 6
mov dword [esp + 0x18], eax
mov dword [esp], 0xa
jne 0x404770
call sub.KERNEL32.dll_Sleep
mov ecx, esi
sub esp, 4
call fcn.004024b0
mov byte [esp + 0x1e], al
test al, al
je 0x404830
movzx eax, byte [esi + 0x34]
mov byte [esp + 0x1e], al
jmp 0x404778
movzx edi, byte [ebx + 0x34]
add esp, 0x82c
pop ebx
pop esi
mov eax, edi
pop edi
pop ebp
ret
mov ebx, dword [ebx + 0x68]
test ebx, ebx
je 0x404870
mov ecx, ebx
call fcn.00402960
cmp dword [ebx + 4], 6
jne 0x4048aa
add esp, 0x82c
xor edi, edi
pop ebx
mov eax, edi
pop esi
pop edi
pop ebp
ret
mov byte [esi + 0x34], 0
jmp 0x404778
mov esi, edi
movzx edi, byte [esp + 0x1e]
cmp ebp, esi
je 0x40470d
mov dword [esp + 8], 0x3d8
mov dword [esp + 4], str.D:projCBTSFhappyhttp.cpp
mov dword [esp], str.used__a
call sub.msvcrt.dll__assert
lea esi, [esi]
nop
movzx edi, byte [esp + 0x1f]
add esp, 0x82c
pop ebx
pop esi
mov eax, edi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x389
mov dword [esp + 4], str.D:projCBTSFhappyhttp.cpp
mov dword [esp], str.m_Sock__0
call sub.msvcrt.dll__assert
mov dword [esp], str.recv__
call fcn.00401fe0
mov dword [esp + 8], 0x3a2
mov dword [esp + 4], str.D:projCBTSFhappyhttp.cpp
mov dword [esp], str.r__completed__
call sub.msvcrt.dll__assert
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x404ce0
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x62ca00
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x404ce5
test eax, 0x8080
jne 0x404d08
shr eax, 0x10
add edx, 2
mov ecx, eax
add cl, al
sbb edx, 0x62ca03
xor eax, eax
test edx, edx
je 0x404d30
lea esi, [esi]
nop
xor byte [eax + 0x62ca00], 0xb1
add eax, 1
cmp edx, eax
jne 0x404d20
ret
ret
Function at 0x40c5c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov eax, 0x102c
push edi
push esi
push ebx
call fcn.00428920
sub esp, eax
mov eax, dword [0x62c9e4]
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0x62c9c0
mov dword [esp], eax
call sub.USER32.dll_GetWindowTextA
mov eax, dword [0x62c9e4]
sub esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x147
mov dword [esp], eax
call sub.USER32.dll_SendMessageA
mov dword [0x62c99c], eax
mov eax, dword [0x64cb20]
sub esp, 0x10
lea ebx, [esp + 0x20]
mov dword [esp + 4], str._d:
add eax, 1
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [0x64cb20], eax
call sub.msvcrt.dll_sprintf
mov dword [esp + 8], 0x62c9c0
mov esi, eax
mov eax, dword [0x62c99c]
mov dword [esp + 4], str.Selezionato_mese__s___d_
add eax, 1
mov dword [esp + 0xc], eax
lea eax, [ebx + esi]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
lea ebp, [esi + eax + 2]
add esi, eax
add esi, ebx
mov dword [esp], esi
call sub.msvcrt.dll_strlen
add esi, eax
mov eax, 0xa0d
mov word [esi], ax
mov eax, dword [0x62cb00]
mov byte [esi + 2], 0
lea edx, [eax + ebp]
cmp edx, 0x1ffff
jbe 0x40c6a0
mov eax, 0x1ffff
sub eax, ebp
mov dword [esp + 8], eax
lea eax, [ebp + 0x62cb20]
mov edi, 0x62cb20
mov esi, ebx
mov dword [esp + 4], 0x62cb20
mov dword [esp], eax
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memmove
mov ecx, ebp
mov edx, dword [esp + 0x1c]
shr ecx, 2
test ebp, 2
rep movsd dword es:[edi], dword [esi]
je 0x40c6e3
movzx eax, word [esi]
mov ecx, 2
mov word [edi], ax
and ebp, 1
je 0x40c6ef
movzx eax, byte [esi + ecx]
mov byte [edi + ecx], al
cmp edx, 0x20000
jbe 0x40c6fc
mov edx, 0x20000
mov eax, dword [0x62c9e0]
mov dword [esp + 4], 0x62cb20
mov dword [0x62cb00], edx
mov dword [esp], eax
call sub.USER32.dll_SetWindowTextA
sub esp, 8
mov dword [esp + 4], ebx
mov dword [esp], 0x4c4b5d
call sub.msvcrt.dll_printf
add esp, 0x102c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40c740
Capabilities:
Get graphical window text

Disassembly:
push edi
mov eax, 0x1010
push esi
push ebx
call fcn.00428920
sub esp, eax
mov eax, dword [0x62c9e8]
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0x62c9a0
mov dword [esp], eax
call sub.USER32.dll_GetWindowTextA
sub esp, 0xc
mov dword [esp], 0x62c9a0
lea esi, [esp + 0x10]
call fcn.00404e10
mov dword [esp + 4], str._d:
mov dword [0x62c998], eax
mov eax, dword [0x64cb20]
mov dword [esp], esi
add eax, 1
mov dword [esp + 8], eax
mov dword [0x64cb20], eax
call sub.msvcrt.dll_sprintf
mov dword [esp + 4], str.Selezionato_anno__d
mov ebx, eax
mov eax, dword [0x62c998]
mov dword [esp + 8], eax
lea eax, [esi + ebx]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
lea edi, [ebx + eax + 2]
add ebx, eax
add ebx, esi
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
add ebx, eax
mov eax, 0xa0d
mov word [ebx], ax
mov eax, dword [0x62cb00]
mov byte [ebx + 2], 0
lea ebx, [eax + edi]
cmp ebx, 0x1ffff
jbe 0x40c7f8
mov eax, 0x1ffff
sub eax, edi
mov dword [esp + 8], eax
lea eax, [edi + 0x62cb20]
mov dword [esp + 4], 0x62cb20
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov edx, edi
xor eax, eax
and edx, 0xfffffffc
mov ecx, dword [esi + eax]
add eax, 4
mov dword [eax + 0x62cb1c], ecx
cmp eax, edx
jb 0x40c819
lea edx, [eax + 0x62cb20]
xor ecx, ecx
add eax, esi
test edi, 2
jne 0x40c8a8
and edi, 1
jne 0x40c890
cmp ebx, 0x20000
ja 0x40c888
mov eax, dword [0x62c9e0]
mov dword [esp + 4], 0x62cb20
mov dword [0x62cb00], ebx
mov dword [esp], eax
call sub.USER32.dll_SetWindowTextA
sub esp, 8
mov dword [esp + 4], esi
mov dword [esp], 0x4c4b5d
call sub.msvcrt.dll_printf
add esp, 0x1010
mov eax, 1
pop ebx
pop esi
pop edi
ret
mov ebx, 0x20000
jmp 0x40c848
movzx eax, byte [eax + ecx]
mov byte [edx + ecx], al
cmp ebx, 0x20000
jbe 0x40c848
jmp 0x40c888
movzx ecx, word [eax]
and edi, 1
mov word [edx], cx
mov ecx, 2
je 0x40c840
jmp 0x40c890

Function at 0x40ccc0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x11c
mov byte [0x650b40], 0
mov eax, dword [esp + 0x120]
mov dword [esp + 4], 0x401
mov dword [0x750b40], 0
mov dword [esp], eax
call sub.USER32.dll_GetDlgItem
sub esp, 8
lea edx, [esp + 0x10]
mov dword [esp + 8], 0x100
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.USER32.dll_GetWindowTextA
sub esp, 0xc
cmp byte [esp + 0x10], 0
je 0x40cd23
cmp byte [0x64cb24], 0
jne 0x40cd23
mov byte [0x64cb24], 1
mov edx, dword [0x64cb28]
xor eax, eax
test edx, edx
sete al
add esp, 0x11c
ret
Function at 0x410960
Capabilities:
Create thread

Disassembly:
push esi
push ebx
sub esp, 0x24
mov eax, dword [0x62c988]
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
test eax, eax
je 0x4109a0
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], str.Information
mov dword [esp + 4], str.Thread_DoAction_already_in_use..._retry_later...
mov dword [esp], ebx
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
add esp, 0x24
pop ebx
pop esi
ret
mov dword [esp], 8
call sub.msvcrt.dll_malloc
mov dword [0x62c988], eax
test eax, eax
je 0x410a44
mov dword [eax], ebx
mov word [eax + 4], si
mov dword [esp + 0x14], 0x62c984
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40fc80
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateThread
mov dword [0x62c980], eax
sub esp, 0x18
test eax, eax
jne 0x410999
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Error...
mov dword [esp + 4], str.Cannot_create_DoAction_thread_
mov dword [esp], ebx
call sub.USER32.dll_MessageBoxA
mov eax, dword [0x62c988]
mov dword [0x572380], 0
sub esp, 0x10
mov dword [esp], eax
call fcn.004208b0
mov dword [0x62c988], 0
jmp 0x410999
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Error...
mov dword [esp + 4], str.Cannot_allocate_DoAction_memory_
mov dword [esp], ebx
call sub.USER32.dll_MessageBoxA
mov dword [0x572380], 0
sub esp, 0x10
jmp 0x410999
Function at 0x41cdf0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0xa50be8
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0xa50be0]
sub esp, 4
test ebx, ebx
je 0x41ce3b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x41ce34
test esi, esi
je 0x41ce34
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x41ce10
mov dword [esp], 0xa50be8
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x41d020
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x41d070
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x41d144
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x41d0ae
cmp eax, 4
jne 0x41d0d0
test esi, esi
je 0x41d0c2
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x41d0b4
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x41d10f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x41d101
cmp ecx, 0x40
je 0x41d0c2
cmp ecx, 4
je 0x41d0c2
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0041d020
lea esi, [esi]