joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405090
Capabilities:
Send data
Send data on socket

Disassembly:
mov edx, dword [esp + 4]
push ebx
mov ecx, edx
push esi
shl ecx, 5
sub ecx, edx
push edi
shl ecx, 4
add ecx, edx
mov edx, dword [0x529a64]
xor eax, eax
lea esi, [ecx + ecx*8]
shl esi, 3
mov edi, dword [esi + edx + 0x6b5c]
mov ecx, dword [esi + edx + 0x6b58]
mov dword [esp + 0x10], edi
sub ecx, edi
cmp dword [esi + edx + 0x7b84], eax
je 0x405108
mov ebx, dword [esi + edx + 0x8b98]
mov edi, dword [0x41b904]
cmp ebx, edi
jne 0x4050fb
mov dword [esi + edx + 0x6b60], 1
mov ecx, dword [0x529a64]
pop edi
mov dword [esi + ecx + 0x8b98], eax
pop esi
pop ebx
ret
push ebp
lea ebp, [ebx + ecx]
cmp ebp, edi
pop ebp
jle 0x405108
sub edi, ebx
mov ecx, edi
cmp ecx, 0x400
jle 0x405117
mov ecx, 0x400
jmp 0x40511f
test ecx, ecx
je 0x4051a7
mov eax, dword [esi + edx + 0x2b54]
mov ebx, dword [esp + 0x10]
push 0
push ecx
mov ecx, dword [esi + edx + 0xc]
add eax, ebx
push eax
push ecx
call sub.WSOCK32.dll_send
test eax, eax
jge 0x40516c
call sub.WSOCK32.dll_WSAGetLastError
mov edi, eax
call fcn.0040dea0
cmp edi, 0x2733
jne 0x405158
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov edx, dword [0x529a64]
pop edi
or eax, 0xffffffff
mov dword [esi + edx], 0x13
pop esi
pop ebx
ret
jle 0x4051a7
mov ecx, dword [0x529a64]
mov ebx, dword [esi + ecx + 0x6b5c]
add ebx, eax
mov dword [esi + ecx + 0x6b5c], ebx
mov ecx, dword [0x529a64]
mov edi, dword [esi + ecx + 0x8b98]
add edi, eax
mov dword [esi + ecx + 0x8b98], edi
mov ecx, dword [0x529a64]
add dword [esi + ecx + 0x8bbc], eax
pop edi
pop esi
pop ebx
ret
Function at 0x40ceb0
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [0x428520]
mov edx, dword [0x42851c]
push esi
xor esi, esi
xor eax, eax
cmp ecx, edx
jge 0x40cf26
sub edx, ecx
push esi
lea eax, [ecx + 0x428540]
mov ecx, dword [0x428764]
push edx
push eax
push ecx
call sub.WSOCK32.dll_send
cmp eax, esi
jge 0x40cef9
call sub.WSOCK32.dll_WSAGetLastError
mov esi, eax
call fcn.0040dea0
mov eax, esi
pop esi
sub eax, 0x2733
neg eax
sbb eax, eax
ret
jle 0x40cf18
mov ecx, dword [0x428510]
inc ecx
mov dword [0x428510], ecx
mov ecx, dword [0x428520]
add ecx, eax
mov dword [0x428520], ecx
jmp 0x40cf1e
mov ecx, dword [0x428520]
mov edx, dword [0x42851c]
cmp ecx, edx
jne 0x40cf48
mov edx, dword [0x428528]
mov dword [0x428520], esi
mov dword [0x42851c], esi
mov dword [0x42850c], edx
mov dword [0x428528], esi
xor eax, eax
pop esi
ret

Function at 0x40d1d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, 0x2000
call fcn.004116a0
mov eax, dword [0x428518]
push esi
xor esi, esi
push edi
cmp eax, esi
mov ecx, 0x2000
je 0x40d225
mov edx, dword [0x42875c]
cmp edx, eax
jne 0x40d217
mov dword [0x42874c], 1
mov dword [0x42875c], esi
mov dword [0x428750], esi
pop edi
xor eax, eax
pop esi
add esp, 0x2000
ret
lea edi, [edx + 0x2000]
cmp edi, eax
jle 0x40d225
sub eax, edx
mov ecx, eax
push esi
push ecx
mov ecx, dword [0x428764]
lea eax, [esp + 0x10]
push eax
push ecx
call sub.WSOCK32.dll_recv
cmp eax, 1
jge 0x40d25d
call sub.WSOCK32.dll_WSAGetLastError
mov esi, eax
call fcn.0040dea0
mov eax, esi
pop edi
sub eax, 0x2733
pop esi
neg eax
sbb eax, eax
add esp, 0x2000
ret
cmp eax, esi
jle 0x40d20c
mov edx, dword [0x4289a0]
mov edi, dword [0x428748]
push ebx
mov ebx, dword [0x428510]
and edx, 0xfffff
inc ebx
mov dword [0x428514], esi
mov esi, dword [0x42875c]
mov dword [0x428510], ebx
lea ebx, [edx + eax]
add edi, eax
add esi, eax
cmp ebx, 0x100000
mov dword [0x428748], edi
mov dword [0x42875c], esi
jg 0x40d2da
mov ecx, eax
lea edi, [edx + 0x428e20]
mov edx, ecx
lea esi, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x4289a0]
pop edi
add ecx, eax
pop esi
mov dword [0x4289a0], ecx
add esp, 0x2000
ret
mov ecx, 0x100000
push ebp
sub ecx, edx
lea esi, [esp + 0x10]
mov ebp, ecx
lea edi, [edx + 0x428e20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [esp + 0x10000c]
lea ecx, [ebx - 0x100000]
sub esi, edx
mov edx, ecx
mov edi, 0x428e20
pop ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x4289a0]
pop edi
add ecx, eax
pop esi
mov dword [0x4289a0], ecx
add esp, 0x2000
ret
Function at 0x40d340
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
mov al, byte [0x423790]
push ebx
mov byte [esp + 4], al
mov eax, dword [0x428758]
xor ebx, ebx
push esi
cmp eax, ebx
mov byte [esp + 9], bl
jne 0x40d367
mov dword [0x428758], 1
jmp 0x40d36c
cmp eax, 1
jne 0x40d3e4
mov edx, dword [0x428764]
push ebx
lea ecx, [esp + 0xc]
push 1
push ecx
push edx
call sub.WSOCK32.dll_recv
cmp eax, 1
jge 0x40d3b1
call sub.WSOCK32.dll_WSAGetLastError
mov esi, eax
call fcn.0040dea0
cmp esi, 0x2733
je 0x40d445
push str._source__source_dropped_connection._disconnecting._n
call fcn.0040b170
add esp, 4
or eax, 0xffffffff
pop esi
pop ebx
pop ecx
ret
cmp eax, ebx
je 0x40d3df
mov eax, dword [esp + 8]
mov esi, dword [0x428510]
and eax, 0xff
inc esi
shl eax, 4
mov dword [0x428510], esi
mov dword [0x428750], eax
mov dword [0x428758], 2
jmp 0x40d3e9
mov eax, dword [0x428758]
cmp eax, 2
jne 0x40d420
call fcn.0040d700
test eax, eax
jge 0x40d41b
push str._source__source_dropped_connection._disconnecting._n
call fcn.0040b170
add esp, 4
mov dword [0x428758], ebx
mov dword [0x42874c], ebx
mov dword [0x42850c], 0xb
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [0x428758]
cmp eax, 3
jne 0x40d445
mov ecx, dword [0x428750]
push ecx
push 0x424dd4
call fcn.0040d450
add esp, 8
mov dword [0x428758], ebx
mov dword [0x42874c], ebx
pop esi
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x40d700
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [0x428744]
mov edx, dword [0x428750]
push esi
xor esi, esi
xor eax, eax
cmp ecx, edx
jge 0x40d78a
sub edx, ecx
push esi
lea eax, [ecx + 0x424dd4]
mov ecx, dword [0x428764]
push edx
push eax
push ecx
call sub.WSOCK32.dll_recv
cmp eax, esi
jge 0x40d749
call sub.WSOCK32.dll_WSAGetLastError
mov esi, eax
call fcn.0040dea0
mov eax, esi
pop esi
sub eax, 0x2733
neg eax
sbb eax, eax
ret
jle 0x40d77c
mov ecx, dword [0x428748]
mov edx, dword [0x428510]
add ecx, eax
inc edx
mov dword [0x428748], ecx
mov ecx, dword [0x428744]
add ecx, eax
mov dword [0x428514], esi
mov dword [0x428510], edx
mov dword [0x428744], ecx
jmp 0x40d782
mov ecx, dword [0x428744]
mov edx, dword [0x428750]
cmp ecx, edx
jne 0x40d79e
mov dword [0x428744], esi
mov dword [0x428758], 3
xor eax, eax
pop esi
ret
Function at 0x40d850
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x800
mov dl, byte [0x423790]
push ebx
push ebp
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x40d]
mov byte [esp + 0x40c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor ebx, ebx
call fcn.0040d7a0
push 0x41a2f8
push str.sc_serv.rip
mov dword [0x52a3e0], ebx
mov dword [0x428a08], ebx
call fcn.004118a7
mov ebp, eax
add esp, 8
cmp ebp, ebx
jne 0x40d8d4
push str.sc_serv.rip
push str._main__No_rip_file_found___s__n
call fcn.0040b170
add esp, 8
pop edi
pop ebp
pop ebx
add esp, 0x800
ret
push esi
push str.sc_serv.rip
push str._main__Loading_rip_list___s__n
call fcn.0040b170
add esp, 8
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x10]
push ebp
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0x414]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push 0x400
push eax
inc ebx
call fcn.004117cd
mov al, byte [ebp + 0xc]
add esp, 0xc
test al, 0x10
jne 0x40d9fb
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xf], 0xa
je 0x40d94b
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xf], 0xd
jne 0x40d95f
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0xf], al
jmp 0x40d921
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x410]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.004114b0
add esp, 0xc
lea eax, [esp + 0x410]
mov byte [esp + 0x420], 0
push eax
call sub.WSOCK32.dll_inet_addr
mov esi, eax
cmp esi, 0xffffffff
je 0x40d9f0
test esi, esi
je 0x40d9f0
call fcn.0040d7e0
mov edx, eax
lea edi, [esp + 0x410]
or ecx, 0xffffffff
xor eax, eax
mov dword [edx + 4], esi
add edx, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x414]
push ecx
push edx
call fcn.004114b0
mov ecx, dword [0x52a3e0]
mov eax, dword [0x428a08]
add esp, 0xc
inc ecx
inc eax
mov dword [0x52a3e0], ecx
mov dword [0x428a08], eax
jmp 0x40d8e7
push ebx
push str._rip__Line__d_of_rip_list_has_been_ignored_bad_IP__n
jmp 0x40d8df
mov eax, dword [0x52a3e0]
pop esi
test eax, eax
je 0x40da38
cmp eax, 1
jne 0x40da2a
push str._rip__Added_1_IP_to_Reserve_List_n
call fcn.0040b170
add esp, 4
push ebp
call fcn.00411750
add esp, 4
pop edi
pop ebp
pop ebx
add esp, 0x800
ret
push eax
push str._rip__Added__d_IPs_to_Reserve_List_n
call fcn.0040b170
add esp, 8
push ebp
call fcn.00411750
add esp, 4
pop edi
pop ebp
pop ebx
add esp, 0x800
ret

Function at 0x40dc50
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push 0
push ecx
call fcn.00412641
add esp, 0xc
ret
Function at 0x40dcb0
Capabilities:
Initialize winsock library

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x190
test eax, eax
je 0x40dcdb
lea eax, [esp]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x40dce0
or eax, 0xffffffff
add esp, 0x190
ret
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
add esp, 0x190
ret

Function at 0x40dd30
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
test eax, eax
push esi
push edi
mov esi, 0x423798
jne 0x40dd47
mov esi, 0x423818
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov edi, eax
test edi, edi
jge 0x40dd61
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
xor ecx, ecx
mov dword [esp + 8], ecx
mov word [esp + 8], 2
mov eax, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], ecx
mov word [esp + 0xa], cx
cmp byte [esi], 0
je 0x40dd9a
push esi
call sub.WSOCK32.dll_inet_addr
mov cl, byte [esi]
mov dword [esp + 0xc], eax
test cl, cl
je 0x40dd9a
test eax, eax
jne 0x40dda2
mov dword [esp + 0xc], 0
lea edx, [esp + 8]
push 0x10
push edx
push edi
call sub.WSOCK32.dll_bind
test eax, eax
je 0x40ddc5
push edi
call fcn.0040dd10
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
add esp, 0x10
ret
mov eax, edi
pop edi
pop esi
add esp, 0x10
ret

Function at 0x40ddd0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x10
test eax, eax
push esi
push edi
mov edi, 0x423798
jne 0x40dde7
mov edi, 0x423818
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov esi, eax
test esi, esi
jge 0x40de01
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 8], eax
push ecx
mov dword [esp + 0x10], eax
mov word [esp + 0xc], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call sub.WSOCK32.dll_htons
mov word [esp + 0xa], ax
mov al, byte [edi]
test al, al
je 0x40de47
push edi
call sub.WSOCK32.dll_inet_addr
mov dword [esp + 0xc], eax
mov al, byte [edi]
test al, al
je 0x40de47
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40de4f
mov dword [esp + 0xc], 0
lea edx, [esp + 8]
push 0x10
push edx
push esi
call sub.WSOCK32.dll_bind
test eax, eax
je 0x40de72
push esi
call fcn.0040dd10
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
add esp, 0x10
ret
mov eax, dword [esp + 0x20]
push eax
push esi
call sub.WSOCK32.dll_listen
cmp eax, 0xffffffff
jne 0x40de94
push esi
call fcn.0040dd10
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
add esp, 0x10
ret
mov eax, esi
pop edi
pop esi
add esp, 0x10
ret
Function at 0x40deb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
xor ebp, ebp
xor edi, edi
mov eax, dword [esp + 0x14]
push 0
push 1
push ebx
push eax
call sub.WSOCK32.dll_recv
mov esi, eax
cmp esi, 1
je 0x40def9
test esi, esi
je 0x40df27
jge 0x40dee4
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2749
je 0x40df27
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebp
inc ebp
cmp ecx, 0x64
jg 0x40df17
jmp 0x40defb
xor ebp, ebp
mov al, byte [ebx]
cmp al, 0xd
je 0x40debc
cmp esi, 1
jne 0x40debc
cmp al, 0xa
je 0x40df37
mov edx, dword [esp + 0x1c]
inc edi
inc ebx
dec edx
cmp edi, edx
jge 0x40df37
jmp 0x40debc
mov eax, dword [esp + 0x18]
mov byte [edi + eax], 0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov ecx, dword [esp + 0x18]
or eax, 0xffffffff
mov byte [edi + ecx], 0
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x18]
dec edi
mov byte [edi + eax + 1], 0
mov cl, byte [edi + eax]
cmp cl, 0xa
jne 0x40df5b
test edi, edi
jle 0x40df5d
mov byte [edi + eax], 0
mov cl, byte [edi + eax - 1]
dec edi
cmp cl, 0xa
je 0x40df49
test edi, edi
jge 0x40df61
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40df70
Capabilities:
Resolve dns

Disassembly:
push 0x529e80
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 4]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x40dfb9
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
push esi
mov eax, ecx
push edi
mov esi, dword [edx]
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x529e80
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, 1
pop esi
ret
push 0x529e80
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
ret
Function at 0x40e960
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
mov eax, dword [0x424650]
mov edx, dword [0x428524]
sub eax, edx
push esi
cmp eax, 0xa
mov byte [esp + 6], 0
jle 0x40e97f
or eax, 0xffffffff
pop esi
pop ecx
ret
mov esi, dword [0x4281a8]
cmp esi, 0xfa
jle 0x40e993
or eax, 0xffffffff
pop esi
pop ecx
ret
mov edx, dword [0x4281c0]
push 0
lea ecx, [esp + 0xa]
push 1
push ecx
push edx
call sub.WSOCK32.dll_recv
cmp eax, 1
jge 0x40e9b6
cmp eax, 0xffffffff
je 0x40ea0c
test eax, eax
je 0x40e98d
mov eax, dword [0x424650]
mov edx, dword [0x428508]
mov dword [0x428524], eax
mov al, byte [esp + 6]
inc edx
cmp al, 0xd
mov dword [0x428508], edx
je 0x40e9e0
cmp al, 0xa
je 0x40e9e0
mov byte [esi + 0x4281e0], al
inc esi
cmp esi, 0xfa
jg 0x40e98d
cmp al, 0xa
jne 0x40e993
mov byte [esi + 0x4281e0], 0
mov eax, esi
mov dword [0x4281a8], 0
mov dword [0x4281b8], 2
pop esi
pop ecx
ret
push edi
call sub.WSOCK32.dll_WSAGetLastError
mov edi, eax
call fcn.0040dea0
cmp edi, 0x2733
pop edi
jne 0x40e98d
mov dword [0x4281a8], esi
xor eax, eax
pop esi
pop ecx
ret

Function at 0x40ea40
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [0x4281a8]
mov edx, dword [0x4281b4]
push esi
xor esi, esi
xor eax, eax
cmp ecx, edx
jge 0x40eab6
sub edx, ecx
push esi
lea eax, [ecx + 0x428300]
mov ecx, dword [0x4281c0]
push edx
push eax
push ecx
call sub.WSOCK32.dll_send
cmp eax, esi
jge 0x40ea89
call sub.WSOCK32.dll_WSAGetLastError
mov esi, eax
call fcn.0040dea0
mov eax, esi
pop esi
sub eax, 0x2733
neg eax
sbb eax, eax
ret
jle 0x40eaa8
mov ecx, dword [0x428508]
inc ecx
mov dword [0x428508], ecx
mov ecx, dword [0x4281a8]
add ecx, eax
mov dword [0x4281a8], ecx
jmp 0x40eaae
mov ecx, dword [0x4281a8]
mov edx, dword [0x4281b4]
cmp ecx, edx
jne 0x40ead8
mov edx, dword [0x4281bc]
mov dword [0x4281a8], esi
mov dword [0x4281b4], esi
mov dword [0x4281b8], edx
mov dword [0x4281bc], esi
xor eax, eax
pop esi
ret
Function at 0x40ef30
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, 0x2000
call fcn.004116a0
mov ecx, dword [0x4281c0]
push ebx
push esi
push 0
lea eax, [esp + 0xc]
push 0x2000
push eax
push ecx
call sub.WSOCK32.dll_recv
mov ebx, eax
cmp ebx, 1
jge 0x40ef8c
call sub.WSOCK32.dll_WSAGetLastError
mov esi, eax
call fcn.0040dea0
cmp esi, 0x2749
je 0x40ef73
test ebx, ebx
jne 0x40ef8e
push str._source__source_dropped_connection._disconnecting._n
call fcn.0040b170
add esp, 4
or eax, 0xffffffff
pop esi
pop ebx
add esp, 0x2000
ret
test ebx, ebx
jle 0x40f05c
mov eax, dword [0x4289a0]
mov edx, dword [0x428748]
mov esi, dword [0x428508]
and eax, 0xfffff
add edx, ebx
inc esi
mov dword [0x428748], edx
lea edx, [eax + ebx]
cmp edx, 0x100000
push edi
mov dword [0x428514], 0
mov dword [0x428508], esi
jg 0x40f001
mov ecx, ebx
lea esi, [esp + 0xc]
mov edx, ecx
lea edi, [eax + 0x428e20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x4289a0]
mov ecx, edx
and ecx, 3
add eax, ebx
rep movsb byte es:[edi], byte [esi]
mov dword [0x4289a0], eax
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x2000
ret
mov ecx, 0x100000
push ebp
sub ecx, eax
lea esi, [esp + 0x10]
mov ebp, ecx
lea edi, [eax + 0x428e20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [esp + 0x10000c]
lea ecx, [edx - 0x100000]
sub esi, eax
mov eax, ecx
mov edi, 0x428e20
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [0x4289a0]
and ecx, 3
add eax, ebx
rep movsb byte es:[edi], byte [esi]
mov dword [0x4289a0], eax
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x2000
ret
pop esi
xor eax, eax
pop ebx
add esp, 0x2000
ret
Function at 0x4167b9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x423368
cmp edx, dword [eax]
je 0x4167db
add eax, 8
inc ecx
cmp eax, 0x4233f8
jl 0x4167cc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x423368]
jne 0x416909
mov eax, dword [0x427e70]
cmp eax, 1
je 0x4168e3
test eax, eax
jne 0x41680c
cmp dword [0x422d14], 1
je 0x4168e3
cmp edx, 0xfc
je 0x416909
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x416843
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004176f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004149e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x416886
lea eax, [ebp - 0x1a4]
push eax
call fcn.004149e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41955c
push edi
call fcn.004114b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004176f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00417700
lea eax, [ebp - 0xa0]
push 0x41953c
push eax
call fcn.00417700
push dword [esi + 0x42336c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00417700
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00417d17
add esp, 0x2c
pop edi
jmp 0x416909
lea eax, [ebp + 8]
lea esi, [esi + 0x42336c]
push 0
push eax
push dword [esi]
call fcn.004149e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x414e68
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040d4cc
xor ebx, ebx
cmp dword [0x42b598], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x414f3e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41501e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41f660
push edi
call esi
cmp eax, ebx
je 0x41501e
push eax
call fcn.0040d45e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42b598], eax
call esi
push eax
call fcn.0040d45e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42b59c], eax
call esi
push eax
call fcn.0040d45e
mov dword [0x42b5a0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00409553
test eax, eax
pop ecx
pop ecx
je 0x414f0c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040b865
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x414f3e
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040d45e
cmp eax, ebx
pop ecx
mov dword [0x42b5a8], eax
je 0x414f3e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040d45e
pop ecx
mov dword [0x42b5a4], eax
mov eax, dword [0x42b5a4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x414fc3
cmp dword [0x42b5a8], ecx
je 0x414fc3
push eax
call fcn.0040d4d5
push dword [0x42b5a8]
mov esi, eax
call fcn.0040d4d5
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x414fc3
cmp edi, ebx
je 0x414fc3
call esi
cmp eax, ebx
je 0x414f90
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x414f90
test byte [ebp - 0x18], 1
jne 0x414fc3
lea eax, [ebp - 0x10]
push eax
call fcn.0040958a
test eax, eax
pop ecx
je 0x414fab
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040b865
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x414fba
or dword [ebp + 0x10], 0x200000
jmp 0x414ffe
or dword [ebp + 0x10], 0x40000
jmp 0x414ffe
mov eax, dword [0x42b59c]
cmp eax, dword [ebp - 8]
je 0x414ffe
push eax
call fcn.0040d4d5
cmp eax, ebx
pop ecx
je 0x414ffe
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x414ffe
mov eax, dword [0x42b5a0]
cmp eax, dword [ebp - 8]
je 0x414ffe
push eax
call fcn.0040d4d5
cmp eax, ebx
pop ecx
je 0x414ffe
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42b598]
call fcn.0040d4d5
cmp eax, ebx
pop ecx
je 0x41501e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x415020
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, reloc.shlwapi.dll_AssocQueryStringW
nop
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x416720
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp dword [0x627d9c], 0
push esi
mov esi, 1
jne 0x41673d
call fcn.0055d770
mov dword [0x627d9c], eax
test eax, eax
je 0x41677a
call fcn.0055d770
mov ecx, eax
mov eax, dword [0x627d9c]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0xbb8
jl 0x416767
mov dword [0x627da0], esi
mov eax, esi
mov dword [0x627d9c], ecx
pop esi
ret
cmp dword [0x627da0], 3
jl 0x416774
xor eax, eax
pop esi
ret
add dword [0x627da0], esi
mov eax, esi
pop esi
ret