joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004650
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0x27
mov byte [ebp - 0x38], 0x4d
mov byte [ebp - 0x37], 0xb3
mov byte [ebp - 0x36], 0xa3
mov byte [ebp - 0x35], 0x13
mov byte [ebp - 0x34], 0x72
mov byte [ebp - 0x33], 0x3b
mov byte [ebp - 0x32], 0x2e
mov byte [ebp - 0x31], 0x2e
mov byte [ebp - 0x30], 0x4c
mov byte [ebp - 0x2f], 0xb4
mov byte [ebp - 0x2e], 0xb2
mov byte [ebp - 0x2d], 1
mov byte [ebp - 0x2c], 0x64
mov byte [ebp - 0x2b], 0x73
mov byte [ebp - 0x2a], 0x6a
mov byte [ebp - 0x29], 0x68
mov byte [ebp - 0x28], 0x56
mov byte [ebp - 0x27], 0xe9
mov byte [ebp - 0x26], 0xb4
mov byte [ebp - 0x25], 0xc
mov byte [ebp - 0x24], 0x6c
mov byte [ebp - 0x23], 0x2e
mov byte [ebp - 0x22], 0x74
mov byte [ebp - 0x21], 0x72
mov byte [ebp - 0x20], 0x40
mov byte [ebp - 0x1f], 0xb5
mov byte [ebp - 0x1e], 0xb6
mov byte [ebp - 0x1d], 0
mov byte [ebp - 0x1c], 0x62
mov byte [ebp - 0x1b], 0x6e
mov byte [ebp - 0x1a], 0x74
mov byte [ebp - 0x19], 0x6f
mov byte [ebp - 0x18], 0x51
mov byte [ebp - 0x17], 0xe9
mov byte [ebp - 0x16], 0xb6
mov byte [ebp - 0x15], 0x10
mov byte [ebp - 0x14], 0x71
mov byte [ebp - 0x13], 0x79
mov byte [ebp - 0x12], 1
mov eax, dword [0x1021b940]
and eax, 1
jne 0x10004794
mov ecx, dword [0x1021b940]
or ecx, 1
mov dword [0x1021b940], ecx
mov byte [0x1021b93f], 1
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
jmp 0x1000473e
mov edx, dword [ebp - 0x10]
add edx, 1
mov eax, dword [ebp - 0xc]
adc eax, 0
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
ja 0x10004787
jb 0x1000474c
cmp dword [ebp - 0x10], 0x27
jae 0x10004787
push 0
push 1
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.100409b0
mov esi, eax
mov eax, 1
imul ecx, eax, 0
lea edi, [ebp + ecx - 0x38]
push 0
push 1
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.100409b0
mov cl, byte [edi + esi]
mov byte [eax + 0x1021b918], cl
jmp 0x1000472c
push 0x10052680
call fcn.10040990
add esp, 4
mov eax, 0x1021b918
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000bc70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x1c], 0
xor eax, eax
mov word [ebp - 0xc], ax
cmp dword [ebp + 0xc], 0xffff
ja 0x1000bc94
mov cx, word [ebp + 0xc]
mov word [ebp - 0xc], cx
cmp dword [ebp + 8], 0
je 0x1000bda5
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3c]
add eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x78]
add edx, dword [ebp + 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20]
add ecx, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x24]
add eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1c]
add edx, dword [ebp + 8]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 0x18]
cmp edx, dword [ecx + 0x14]
jbe 0x1000bcf3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x18], ecx
jmp 0x1000bcfc
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x18], eax
xor ecx, ecx
mov word [ebp - 4], cx
jmp 0x1000bd10
mov dx, word [ebp - 4]
add dx, 1
mov word [ebp - 4], dx
movzx eax, word [ebp - 4]
cmp eax, dword [ebp - 0x18]
jae 0x1000bda5
movzx ecx, word [ebp - 4]
mov edx, dword [ebp - 0x10]
cmp ecx, dword [edx + 0x14]
jae 0x1000bd4a
movzx eax, word [ebp - 4]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + eax*4]
add edx, dword [ebp + 8]
mov dword [ebp - 0x14], edx
movzx eax, word [ebp - 4]
mov ecx, dword [ebp - 0x28]
mov dx, word [ecx + eax*2]
mov word [ebp - 8], dx
jmp 0x1000bd59
mov dword [ebp - 0x14], 0
mov ax, word [ebp - 4]
mov word [ebp - 8], ax
movzx ecx, word [ebp - 8]
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + ecx*4]
add eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
movzx ecx, word [ebp - 0xc]
movzx edx, word [ebp - 8]
mov eax, dword [ebp - 0x10]
add edx, dword [eax + 0x10]
cmp ecx, edx
je 0x1000bd98
cmp dword [ebp - 0x14], 0
je 0x1000bda0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0
push 0
call fcn.10001280
call eax
test eax, eax
jne 0x1000bda0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
jmp 0x1000bda5
jmp 0x1000bd04
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x1000bdb0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x1000bdd1
xor eax, eax
jmp 0x1000beef
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp dword [edx], 0x4550
je 0x1000bdef
xor eax, eax
jmp 0x1000beef
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0x14]
cmp ecx, 0x60
jl 0x1000be04
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x74], 0
jne 0x1000be0b
xor eax, eax
jmp 0x1000beef
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx + 0x78]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x1000be2a
xor eax, eax
jmp 0x1000beef
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x10], 0
jmp 0x1000be69
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 0x18]
jae 0x1000beed
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
push 0x811c9dc5
mov eax, dword [ebp - 0x2c]
push eax
call fcn.100357f0
cmp eax, dword [ebp + 0xc]
je 0x1000be9e
jmp 0x1000be60
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x30]
movzx eax, word [edx + ecx*2]
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 0x10]
add eax, edx
mov word [ebp - 4], ax
movzx eax, word [ebp - 4]
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 0x10]
sub eax, edx
mov word [ebp - 8], ax
mov dword [ebp - 0x20], 0
movzx eax, word [ebp - 8]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
jmp 0x1000beef
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10012a40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6d8
push esi
push edi
mov dword [ebp - 4], 0
mov ecx, 0x10
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
movzx eax, word [ebp - 0x50]
cmp eax, 0x5a4d
jne 0x10012c77
cmp dword [ebp - 0x14], 0x40
jbe 0x10012a9a
mov ecx, dword [ebp - 0x14]
sub ecx, 0x40
push ecx
mov edx, dword [ebp + 8]
add edx, 0x40
push edx
mov eax, 1
imul ecx, eax, 0
lea edx, [ebp + ecx - 0x6d8]
push edx
call fcn.10041a20
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov ecx, 0x3e
mov esi, dword [ebp - 0xc]
lea edi, [ebp - 0x148]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x148], 0x4550
jne 0x10012c77
movzx ecx, word [ebp - 0x142]
imul edx, ecx, 0x28
push edx
mov eax, dword [ebp - 0xc]
add eax, 0xf8
push eax
mov ecx, 0x28
imul edx, ecx, 0
lea eax, [ebp + edx - 0x2d8]
push eax
call fcn.10041a20
add esp, 0xc
push 0x40
push 0x103000
mov ecx, dword [ebp - 0xf8]
push ecx
push 0
push 0
push 0
call fcn.100012b0
call eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10012c77
mov ecx, 0x10
lea esi, [ebp - 0x50]
mov edi, dword [ebp - 4]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 4]
add edi, dword [ebp - 0x14]
mov ecx, 0x3e
lea esi, [ebp - 0x148]
rep movsd dword es:[edi], dword [esi]
movzx edx, word [ebp - 0x142]
imul eax, edx, 0x28
push eax
mov ecx, 0x28
imul edx, ecx, 0
lea eax, [ebp + edx - 0x2d8]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
lea eax, [edx + ecx + 0xf8]
push eax
call fcn.10041a20
add esp, 0xc
cmp dword [ebp - 0x14], 0x40
jbe 0x10012b94
mov ecx, dword [ebp - 0x14]
sub ecx, 0x40
push ecx
mov edx, 1
imul eax, edx, 0
lea ecx, [ebp + eax - 0x6d8]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x40
push edx
call fcn.10041a20
add esp, 0xc
mov dword [ebp - 8], 0
jmp 0x10012ba6
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
movzx ecx, word [ebp - 0x142]
cmp dword [ebp - 8], ecx
jge 0x10012bec
imul edx, dword [ebp - 8], 0x28
mov eax, dword [ebp + 8]
add eax, dword [ebp + edx - 0x2c4]
mov dword [ebp - 0x10], eax
imul ecx, dword [ebp - 8], 0x28
mov edx, dword [ebp + ecx - 0x2c8]
push edx
mov eax, dword [ebp - 0x10]
push eax
imul ecx, dword [ebp - 8], 0x28
mov edx, dword [ebp - 4]
add edx, dword [ebp + ecx - 0x2cc]
push edx
call fcn.10041a20
add esp, 0xc
jmp 0x10012b9d
mov eax, dword [ebp - 4]
push eax
call fcn.1001f4a0
test eax, eax
jne 0x10012c18
push 0x8000
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0
push 0
call fcn.100012e0
call eax
mov dword [ebp - 4], 0
jmp 0x10012c77
mov edx, dword [ebp - 4]
push edx
call fcn.10004930
test eax, eax
jne 0x10012c44
push 0x8000
push 0
mov eax, dword [ebp - 4]
push eax
push 0
push 0
call fcn.100012e0
call eax
mov dword [ebp - 4], 0
jmp 0x10012c77
movzx ecx, word [ebp - 0x132]
and ecx, 0x2000
jne 0x10012c5c
mov edx, dword [ebp - 4]
push edx
call fcn.1001f430
mov eax, dword [ebp - 4]
push eax
call fcn.1000bb80
mov eax, dword [ebp - 0x120]
add eax, dword [ebp - 4]
push 0
push 1
push dword [ebp - 4]
call eax
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10021e30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 0x4550
je 0x10021e60
xor eax, eax
jmp 0x10021eeb
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
add edx, dword [ecx + eax + 0x78]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 8], 0
jmp 0x10021eab
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
cmp edx, dword [ecx + 0x14]
jae 0x10021ee9
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
add eax, dword [edx + ecx*4]
push eax
call fcn.10035850
test eax, eax
jne 0x10021ee7
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx + ecx*2]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
add edx, dword [ecx + eax*4]
mov eax, edx
jmp 0x10021eeb
jmp 0x10021ea2
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x100357a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
pop ebp
ret

Function at 0x100357f0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movsx eax, byte [edx + ecx]
test eax, eax
jne 0x1003580f
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
jmp 0x1003583c
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx + eax]
xor edx, dword [ebp + 0xc]
imul eax, edx, 0x1000193
push eax
mov ecx, 1
shl ecx, 0
add ecx, dword [ebp + 8]
push ecx
call fcn.100357f0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x10049e60
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10049efd
push ebx
push esi
call fcn.10049e29
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10049d72
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10049eaa
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10049efc
push edi
push eax
call fcn.10046e5c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10049eca
call fcn.10046e22
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10049efb
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10049d72
add esp, 0x20
test eax, eax
jne 0x10049ee9
push edi
call fcn.10046e22
jmp 0x10049ef1
push ebx
call fcn.10046e22
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1004a0fb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10055140
push 0x10055138
push str.FlsAlloc
push 0x1e
call fcn.1004a019
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004a12f
push dword [ebp + 8]
mov ecx, esi
call dword [0x10053118]
call esi
jmp 0x1004a135
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1004a179
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10055150
push 0x10055148
push str.FlsGetValue
push 0x20
call fcn.1004a019
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004a1b0
push dword [ebp + 8]
mov ecx, esi
call dword [0x10053118]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10051710
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1005173d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1005173d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4032fb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40a310]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402256
and dword [ebp - 0x14], 0
cmp dword [0x40b43c], 0
mov dword [ebp - 0x18], eax
jne 0x4033ae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x403456
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x403456
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40b43c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40b440], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40b444], eax
call edi
push eax
call esi
mov dword [0x40b44c], eax
test eax, eax
je 0x4033ae
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40b448], eax
mov eax, dword [0x40b448]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x403407
cmp dword [0x40b44c], ecx
je 0x403407
push eax
call esi
push dword [0x40b44c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x403407
test ebx, ebx
je 0x403407
call edi
test eax, eax
je 0x4033fe
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4033fe
test byte [ebp - 8], 1
jne 0x403407
or dword [ebp + 0x10], 0x200000
jmp 0x40343a
mov eax, dword [0x40b440]
cmp eax, dword [ebp - 0x18]
je 0x40343a
push eax
call esi
test eax, eax
je 0x40343a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40343a
mov eax, dword [0x40b444]
cmp eax, dword [ebp - 0x18]
je 0x40343a
push eax
call esi
test eax, eax
je 0x40343a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40b43c]
call esi
test eax, eax
je 0x403456
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x403458
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403666
leave
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x6abf3283
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
xor dword [eax], ecx
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
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
nop
mov ecx, 0x7d655054
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4013d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, edx
test esi, esi
je 0x401486
movzx ecx, byte [edi]
lea edi, [edi + 1]
shl ecx, 8
xor eax, ecx
mov ecx, eax
add eax, eax
shr ecx, 0xf
neg ecx
and ecx, 0x11021
xor ecx, eax
mov edx, ecx
shr edx, 0xf
neg edx
lea eax, [ecx + ecx]
and edx, 0x11021
xor edx, eax
mov ecx, edx
shr ecx, 0xf
neg ecx
and ecx, 0x11021
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
shr edx, 0xf
neg edx
lea eax, [ecx + ecx]
and edx, 0x11021
xor edx, eax
mov ecx, edx
shr ecx, 0xf
neg ecx
and ecx, 0x11021
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
shr edx, 0xf
neg edx
lea eax, [ecx + ecx]
and edx, 0x11021
xor edx, eax
mov ecx, edx
shr ecx, 0xf
neg ecx
and ecx, 0x11021
lea eax, [edx + edx]
xor ecx, eax
mov eax, ecx
add ecx, ecx
shr eax, 0xf
neg eax
and eax, 0x11021
xor eax, ecx
sub esi, 1
jne 0x4013e5
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401550
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
cmp ebx, 0xffff
jbe 0x401588
push str.message_too_long_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401050
add esp, 8
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push ebx
cmp edx, 0x7e
jne 0x4015a4
push edx
push dword [edi + 4]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [edi + 0x24], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi]
mov eax, edx
push dword [ebp + 8]
sar eax, 8
mov byte [ecx + 3], bl
mov byte [ecx], al
lea esi, [ecx + 2]
mov eax, ebx
mov dword [ebp + 0xc], ecx
shr eax, 8
mov byte [esi], al
add esi, 2
push esi
mov byte [ecx + 1], dl
call sub.VCRUNTIME140.dll_memcpy
add esi, ebx
add esp, 0xc
mov ebx, dword [ebp + 0xc]
mov eax, esi
sub eax, ebx
mov edx, ebx
test byte [edi + 0x14], 1
mov dword [ebp + 0xc], eax
je 0x4015ee
push eax
call fcn.004013d0
add esp, 4
jmp 0x4015f9
push 1
push eax
call fcn.00401490
add esp, 8
mov edi, dword [ebp + 0xc]
mov ecx, eax
shr eax, 8
add edi, 2
mov byte [esi], al
mov eax, dword [ebp - 4]
mov byte [esi + 1], cl
mov esi, dword [eax + 4]
mov dword [eax + 0x20], edi
mov byte [esi], 0x7e
inc esi
test byte [eax + 0x14], 2
je 0x401661
xor eax, eax
xor edx, edx
test edi, edi
jle 0x40164b
movzx ecx, byte [edx + ebx]
cmp ecx, 0x7e
je 0x401632
cmp ecx, 0x7d
jne 0x40163e
test esi, esi
je 0x40163a
mov byte [eax + esi], 0x7d
inc eax
xor ecx, 0x20
test esi, esi
je 0x401645
mov byte [eax + esi], cl
inc edx
inc eax
cmp edx, edi
jl 0x401624
mov ecx, dword [ebp - 4]
mov edi, eax
lea eax, [edi + 2]
mov byte [esi + edi], 0x7e
mov dword [ecx + 0x24], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push ebx
push esi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 4]
lea eax, [edi + 2]
add esp, 0xc
mov byte [esi + edi], 0x7e
mov dword [ecx + 0x24], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401680
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x24]
test ecx, ecx
jne 0x4016ad
push str.empty_message_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401050
add esp, 8
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov eax, dword [esi + 0x28]
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp eax, 2
jl 0x4016ea
push ecx
push str.send___d_:_n
push 2
call edi
add esp, 4
push eax
call fcn.00401050
add esp, 0xc
push dword [esi + 0x24]
push 2
call edi
mov edx, dword [esi + 4]
add esp, 4
mov ecx, eax
call fcn.00401170
add esp, 4
jmp 0x40174c
cmp eax, 1
jl 0x40174c
mov edx, dword [esi]
mov bl, byte [edx]
cmp bl, 0x7e
jne 0x4016ff
push str.send:_check_baud_n
jmp 0x40173c
cmp dword [esi + 0x20], 4
jl 0x401737
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
push ecx
movzx ecx, bl
shl ecx, 8
or ecx, eax
push ecx
push str.send:_type__0x_02x__size___d_n
push 2
call edi
add esp, 4
push eax
call fcn.00401050
add esp, 0x10
jmp 0x40174c
push str.send:_unknown_message_n
push 2
call edi
add esp, 4
push eax
call fcn.00401050
add esp, 8
mov eax, dword [esi + 0x10]
push 0
push dword [esi + 0x24]
mov eax, dword [eax]
push dword [esi + 4]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [esi + 0x24]
cmp eax, ecx
je 0x401787
push ecx
push eax
push str.usb_send_failed___d____d__n
push 2
call edi
add esp, 4
push eax
call fcn.00401050
add esp, 0x10
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
pop edi
pop esi
pop ebx
ret
Function at 0x401b10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push ecx
push str.Answer__yes__to_confirm_the___s__command:
call fcn.00401080
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 0xc
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
lea eax, [ebp - 5]
push eax
lea eax, [ebp - 0xc]
push eax
push str._3s_c
call fcn.004010c0
add esp, 0xc
cmp eax, 2
jne 0x401bb9
cmp byte [ebp - 5], 0xa
jne 0x401bb9
mov eax, dword [ebp - 0xc]
test al, al
je 0x401b88
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
lea esi, [ebp - 0xc]
movsx eax, al
push eax
call edi
mov byte [esi], al
lea esi, [esi + 1]
mov cl, byte [esi]
add esp, 4
mov al, cl
test cl, cl
jne 0x401b72
mov ecx, 0x4064f0
lea eax, [ebp - 0xc]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401bb0
test dl, dl
je 0x401bac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401bb0
add eax, 2
add ecx, 2
test dl, dl
jne 0x401b90
xor eax, eax
jmp 0x401bb5
sbb eax, eax
or eax, 1
test eax, eax
je 0x401bda
push str.operation_is_not_confirmed_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401050
add esp, 8
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00404e5a
mov esp, ebp
pop ebp
ret