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

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0xc], str.octet
mov eax, dword [esi + 0xc]
mov ebx, dword [eax]
mov al, byte [ebx + 0x2bf]
test al, al
je 0x465697
mov dword [esp + 0xc], str.netascii
mov eax, dword [esp + 0x18]
cmp eax, 6
ja case.0x4656a4.1
jmp dword [eax*4 + 0x465854]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x1c]
inc edx
mov eax, edx
mov dword [esi + 0x14], edx
cmp eax, ecx
jle 0x4656cf
mov dword [esi + 8], 9
mov dword [esi], 3
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov al, byte [ebx + 0x2cd]
test al, al
lea eax, [esi + 0x348]
je 0x46571d
push 2
push eax
call fcn.00465870
mov edx, dword [esi + 0xc]
lea ecx, [esi + 0x34c]
add esp, 8
mov eax, dword [edx]
mov dword [eax + 0xdc], ecx
mov eax, dword [ebx + 0x1c8]
mov ecx, dword [ebx + 0x1cc]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x465728
push ecx
push eax
push ebx
call fcn.0045ff30
add esp, 0xc
jmp 0x465728
push 1
push eax
call fcn.00465870
add esp, 8
mov eax, dword [esi + 0xc]
push 0
push 0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
inc edx
push edx
push ebx
call fcn.0046ac00
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x46574f
pop esi
pop ebp
mov eax, 0x1b
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
push edi
push 0
push eax
push 0
push ebp
push str._s_c_s_c
lea ecx, [esi + 0x34a]
push 0x200
push ecx
call fcn.00452a70
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x10]
not ecx
dec ecx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0xc]
not ecx
mov eax, dword [eax + 0x14]
dec ecx
lea ecx, [edx + ecx + 4]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
push edx
push eax
push 0
push ecx
mov ecx, dword [esi + 0x10]
lea eax, [esi + 0x348]
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_sendto]
test eax, eax
pop edi
jge 0x4657d7
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov edx, dword [esi + 0xc]
push eax
push edx
call fcn.0045da60
push eax
push 0x4ab730
push ebx
call fcn.00452e00
add esp, 0x14
push ebp
call fcn.00455760
add esp, 4
xor eax, eax
pop esi
pop ebp
pop ebx
pop ecx
ret
push str.Connected_for_transmit
push 0x4ab730
push ebx
call fcn.00452d90
push esi
mov dword [esi], 2
call fcn.00465070
push 4
push esi
call fcn.00465a80
add esp, 0x18
pop esi
pop ebp
pop ebx
pop ecx
ret
push str.Connected_for_receive
push 0x4ab730
push ebx
call fcn.00452d90
push esi
mov dword [esi], 1
call fcn.00465070
push 3
push esi
call fcn.00465890
add esp, 0x18
pop esi
pop ebp
pop ebx
pop ecx
ret
push str.tftp_send_first:_internal_error_n
push ebx
call fcn.00452e00
add esp, 8
xor eax, eax
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x465890
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi + 0xc]
mov ebx, dword [eax]
mov eax, dword [esp + 0x14]
sub eax, 3
je 0x46594c
sub eax, 2
je 0x4658f2
dec eax
je 0x4658c9
push str.tftp_rx:_internal_error
push 0x4ab730
push ebx
call fcn.00452e00
add esp, 0xc
jmp 0x465a2c
mov edx, dword [esi + 0x14]
inc edx
mov eax, edx
mov dword [esi + 0x14], edx
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push ebx
call fcn.00452d90
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
add esp, 0xc
cmp ecx, eax
jle 0x4658fd
mov dword [esi + 8], 8
mov dword [esi], 3
jmp 0x465a2c
mov edx, dword [esi + 0x138]
lea eax, [esi + 0xb8]
push edx
mov edx, dword [esi + 0x10]
push eax
push 0
lea ecx, [esi + 0x348]
push 4
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_sendto]
test eax, eax
jge 0x465a2c
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
mov eax, dword [esi + 0xc]
push eax
call fcn.0045da60
push eax
push 0x4ab730
push ebx
call fcn.00452e00
add esp, 0x14
jmp 0x465a2c
lea ecx, [esi + 0x144]
push ecx
call fcn.004655d0
xor edx, edx
mov di, ax
mov dx, word [esi + 0x28]
add esp, 4
and edi, 0xffff
inc edx
cmp edx, edi
je 0x4659ad
push edi
push str.Received_unexpected_DATA_packet_block__d_n
push ebx
call fcn.00452d90
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x1c]
add esp, 0xc
inc edx
mov eax, edx
mov dword [esi + 0x14], edx
cmp eax, ecx
jle 0x4659ad
xor eax, eax
mov ax, word [esi + 0x28]
inc eax
push eax
push str.tftp_rx:_giving_up_waiting_for_block__d_n
push ebx
call fcn.00452e00
add esp, 0xc
mov eax, 0x47
pop edi
pop esi
pop ebx
ret
mov word [esi + 0x28], di
lea edi, [esi + 0x348]
push 4
push edi
mov dword [esi + 0x14], 0
call fcn.00465870
mov cx, word [esi + 0x28]
push ecx
push edi
call fcn.00465a60
mov edx, dword [esi + 0x138]
mov ecx, dword [esi + 0x10]
add esp, 0x10
lea eax, [esi + 0xb8]
push edx
push eax
push 0
push 4
push edi
push ecx
call dword [sym.imp.WSOCK32.dll_sendto]
test eax, eax
jge 0x465a14
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov edx, dword [esi + 0xc]
push eax
push edx
call fcn.0045da60
push eax
push 0x4ab730
push ebx
call fcn.00452e00
add esp, 0x14
mov ecx, dword [esi + 0x13c]
xor eax, eax
cmp ecx, 0x204
setge al
dec eax
and eax, 2
inc eax
mov dword [esi], eax
xor eax, eax
push 0
mov ax, word [esi + 0x28]
push 0x200
cdq
push edx
push eax
call fcn.00426700
push edx
push eax
push ebx
call fcn.0045feb0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x465a80
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
xor edi, edi
mov eax, dword [esi + 0xc]
mov ebp, dword [eax]
mov eax, dword [esp + 0x18]
sub eax, 4
je 0x465b25
dec eax
je 0x465ae3
dec eax
je 0x465aba
push str.tftp_tx:_internal_error
push 0x4ab730
push ebp
call fcn.00452e00
add esp, 0xc
jmp 0x465c8b
mov edx, dword [esi + 0x14]
inc edx
mov eax, edx
mov dword [esi + 0x14], edx
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push ebp
call fcn.00452d90
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
add esp, 0xc
cmp ecx, eax
jle 0x465aee
mov dword [esi + 8], 8
mov dword [esi], 3
jmp 0x465c8b
mov edx, dword [esi + 0x138]
mov ecx, dword [esi + 0x140]
lea eax, [esi + 0xb8]
push edx
push eax
mov eax, dword [esi + 0x10]
add ecx, 4
push edi
lea edx, [esi + 0x348]
push ecx
push edx
push eax
call dword [sym.imp.WSOCK32.dll_sendto]
test eax, eax
jge 0x465c8b
jmp 0x465c6c
lea edx, [esi + 0x144]
push edx
call fcn.004655d0
mov dx, word [esi + 0x28]
and eax, 0xffff
mov ecx, edx
add esp, 4
and ecx, 0xffff
cmp eax, ecx
je 0x465be7
push ecx
push eax
push str.Received_ACK_for_block__d__expecting__d_n
push ebp
call fcn.00452d90
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x1c]
add esp, 0x10
inc edx
mov eax, edx
mov dword [esi + 0x14], edx
cmp eax, ecx
jle 0x465b8e
xor eax, eax
mov ax, word [esi + 0x28]
push eax
push str.tftp_tx:_giving_up_waiting_for_block__d_ack
push ebp
call fcn.00452e00
add esp, 0xc
mov edi, 0x37
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esi + 0x138]
mov eax, dword [esi + 0x140]
lea edx, [esi + 0xb8]
push ecx
push edx
mov edx, dword [esi + 0x10]
add eax, 4
push edi
lea ecx, [esi + 0x348]
push eax
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_sendto]
test eax, eax
jge 0x465be0
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
mov eax, dword [esi + 0xc]
push eax
call fcn.0045da60
push eax
push 0x4ab730
push ebp
call fcn.00452e00
add esp, 0x14
mov edi, 0x37
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 0x14], edi
lea edi, [esi + 0x348]
inc edx
push 3
push edi
mov word [esi + 0x28], dx
call fcn.00465870
mov cx, word [esi + 0x28]
push ecx
push edi
call fcn.00465a60
add esp, 0x10
cmp word [esi + 0x28], 1
jbe 0x465c2b
cmp dword [esi + 0x140], 0x200
jge 0x465c2b
mov dword [esi], 3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov edx, dword [esi + 0xc]
lea ebx, [esi + 0x140]
push ebx
push 0x200
push edx
call fcn.004596d0
add esp, 0xc
test eax, eax
jne 0x465cad
mov eax, dword [esi + 0x138]
mov edx, dword [ebx]
lea ecx, [esi + 0xb8]
push eax
mov eax, dword [esi + 0x10]
push ecx
add edx, 4
push 0
push edx
push edi
push eax
call dword [sym.imp.WSOCK32.dll_sendto]
test eax, eax
jge 0x465c8b
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, dword [esi + 0xc]
push eax
push ecx
call fcn.0045da60
push eax
push 0x4ab730
push ebp
call fcn.00452e00
add esp, 0x14
xor eax, eax
push 0
mov ax, word [esi + 0x28]
push 0x200
cdq
push edx
push eax
call fcn.00426700
push edx
push eax
push ebp
call fcn.0045fed0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x467220
Capabilities:
Send data
Send data on socket

Disassembly:
mov al, byte [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push 0
lea ecx, [esp + 0x14]
mov edx, dword [esi + 0x7c]
mov edi, dword [esi]
push 3
push ecx
push edx
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], bl
mov byte [esp + 0x22], al
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
jge 0x46726a
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00452e00
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
push eax
push ebx
push str.SENT
push ecx
call fcn.00467290
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x46c0b0
Capabilities:
Set socket configuration

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
xor eax, eax
mov esi, dword [ebx]
push edi
push 0x4aeed8
mov edi, 6
mov al, byte [esi + 0x2ee]
mov dword [esp + 0x14], eax
call dword [sym.imp.WSOCK32.dll_getprotobyname]
test eax, eax
je 0x46c0dd
movsx edi, word [eax + 8]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push 4
push ecx
push 1
push edi
push edx
call dword [sym.imp.WSOCK32.dll_setsockopt]
test eax, eax
jge 0x46c116
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push ebx
call fcn.0045da60
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00452d90
add esp, 0x14
pop edi
pop esi
pop ebx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00452d90
add esp, 8
pop edi
pop esi
pop ebx
ret
Function at 0x470df0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00426320
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x470ebb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x470ebb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x470e6e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x470e79
or bh, 8
and edi, 0x8000000
je 0x470e94
mov eax, dword [0x4bbc3c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x470ebb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x471290
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4712bb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4712df
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4712fa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x474c2d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x474c4f
cmp dword [edi + 0x3c], 0
jne 0x474c4f
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0047e2b1
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00474c7c
pop edi
pop esi
pop ebx
ret 8

Function at 0x4762a1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4762d9
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00478dad
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00478d85
jmp 0x4762e5
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x477a76
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x477ab8
call fcn.0047e2b1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x477ab8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x477aaf
xor eax, eax
jmp 0x477ac0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00477ac6
pop edi
pop esi
pop ebx
ret 4

Function at 0x47e91a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47e948
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47e966
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047e880
jmp 0x47e966
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47e966
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047e880
test edi, edi
mov eax, edi
jne 0x47e950
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x6c27a8f
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x25d74a53
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x408f10
Capabilities:
Create directory

Disassembly:
push esi
push ebx
push eax
mov eax, 0x2010
call fcn.0040fdb8
sub esp, eax
mov eax, dword [esp + eax]
mov esi, eax
mov eax, dword [0x42a0a0]
test eax, eax
je 0x408fc8
xor ebx, ebx
test eax, eax
jg 0x408f4b
jmp 0x408f70
add ebx, 1
cmp dword [0x42a0a0], ebx
jle 0x408f70
mov eax, dword [ebx*4 + 0x4290a0]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x408f40
mov eax, 1
add esp, 0x2014
pop ebx
pop esi
ret
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
cmp eax, 2
jne 0x408f84
cmp word [esi + 2], 0x3a
je 0x408f62
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
je 0x409010
mov ebx, dword [0x42a0a0]
cmp ebx, 0x3ff
jg 0x408f62
mov dword [esp], esi
call sub.msvcrt.dll__wcsdup
add dword [0x42a0a0], 1
mov dword [ebx*4 + 0x4290a0], eax
jmp 0x408f62
mov ecx, 0x1000
mov edx, str._HOME_
lea eax, [esp + 0x10]
call fcn.004086e0
test al, al
je 0x409028
lea eax, [esp + 0x10]
mov ebx, dword [0x42a0a0]
mov dword [esp], eax
call sub.msvcrt.dll__wcsdup
mov dword [ebx*4 + 0x4290a0], eax
mov eax, dword [0x42a0a0]
add eax, 1
mov dword [0x42a0a0], eax
jmp 0x408f31
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x408f9c
xor eax, eax
jmp 0x408f67
mov eax, str._HOME_
call fcn.00408ee0
lea esi, [esi]
lea esi, [esi]

Function at 0x4091c0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [0x41c044]
test eax, eax
je 0x4091f9
mov dword [esp + 4], 0x1388
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
jne 0x409210
mov eax, dword [0x41c044]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
cmp byte [0x427080], 0
jne 0x409230
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x41c044]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
sub esp, 8
jmp 0x4091e8
mov edx, 0x414
lea edi, [esp + 0x12]
mov dword [esp + 0x12], 0
mov esi, dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [esp + 0x16], 3
mov ebx, 0x14
mov dword [esp + 0x1a], 0x4270a0
mov dword [esp + 0x1e], 0x4171b2
mov word [esp + 0x22], dx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0x4171b2
mov dword [esp], edi
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
jmp 0x409303
test al, 0x10
je 0x409202
mov dword [esp], 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 0x414
sub esp, 4
mov dword [esp + 0x12], 0
mov dword [esp + 0x16], 3
mov dword [esp + 0x1a], 0x4270a0
mov dword [esp + 0x1e], 0x4171b2
mov word [esp + 0x22], ax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0x4171b2
mov dword [esp], edi
call esi
sub esp, 4
sub ebx, 1
je 0x409202
mov dword [esp], 0x4270a0
call ebp
sub esp, 4
cmp eax, 0xffffffff
jne 0x409298
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40e970
Capabilities:
Accept command line arguments
Create process on windows
Extract resource via kernel32 functions
Set environment variable
Write and execute a file
Write file on windows

Disassembly:
push esi
mov ecx, 0x1000
mov edx, str._TEMP_onefile__PID___TIME_
mov eax, 0x4270a0
push ebx
sub esp, 0x14
call fcn.004086e0
test al, al
je 0x40eb88
mov dword [esp + 4], 1
mov dword [esp], 0x409320
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
sub esp, 8
test eax, eax
je 0x40eb9c
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0x1b
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
sub esp, 0xc
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
sub esp, 4
lea ecx, [eax + 3]
cmp byte [eax + 1], 0x41
mov dword [0x427060], eax
movzx edx, byte [eax]
movzx ebx, byte [eax + 2]
mov dword [0x427084], ecx
jne 0x40eb92
cmp dl, 0x4b
jne 0x40eb92
cmp bl, 0x59
jne 0x40eb92
mov dword [esp], 0x20000
mov dword [0x427074], 0
call sub.msvcrt.dll_malloc
mov dword [0x427068], eax
test eax, eax
je 0x40eb7a
mov dword [esp], 0x27420
call sub.msvcrt.dll_malloc
mov esi, eax
test eax, eax
je 0x40eb70
mov dword [eax + 0x736c], 0
mov dword [eax + 0x7370], 0
mov dword [eax + 0x7374], 0
mov dword [eax + 0x7380], 0
mov dword [eax + 0x738c], 0
mov dword [eax + 0x7388], 0
mov dword [eax + 0x72b8], 0
mov dword [eax + 0x7394], 0
mov dword [eax + 0x7398], 0
mov dword [eax + 0x73a0], 0
mov dword [eax + 0x73a4], 0
mov dword [eax + 0x73b4], 0
mov dword [eax + 0x739c], 0
mov dword [eax + 0x73c4], 0
mov dword [eax + 0x73c8], 0
mov dword [eax + 0x73d4], 0
mov dword [eax + 0x2741c], 0
xor eax, eax
cpuid
xor ecx, ecx
cmp eax, 6
jbe 0x40eb1f
mov eax, 7
cpuid
shr ebx, 8
mov ecx, ebx
and ecx, 1
mov dword [esi + 0x7384], ecx
mov dword [esi + 0x735c], 0
mov dword [esi + 0x73ac], 0x8000001
mov dword [esi + 0x73d8], 0
mov dword [esi + 0x7360], 0
mov dword [esi + 0x7364], 1
mov dword [0x427064], esi
mov byte [0x427080], 1
add esp, 0x14
pop ebx
pop esi
jmp fcn.0040e030
mov dword [0x427064], 0
mov eax, str.Error__couldnt_allocate_memory.
call fcn.00408eb0
lea esi, [esi]
mov eax, str._TEMP_onefile__PID___TIME_
call fcn.00408ee0
mov eax, str.Error__couldnt_find_attached_data_header.
call fcn.00408eb0
mov eax, str.Error__failed_to_register_signal_handler.
call fcn.00408eb0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
sub esp, 8
jmp 0x40ebce
mov eax, dword [0x416008]
mov eax, dword [eax]
call eax
mov eax, dword [0x416008]
add eax, 4
mov dword [0x416008], eax
mov eax, dword [0x416008]
mov eax, dword [eax]
test eax, eax
jne 0x40ebb8
nop
nop
leave
ret