joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422e40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 0x38]
mov bl, byte [eax + 0x34]
test esi, esi
jle 0x422e7d
mov edx, dword [eax + 0x260]
push edi
movzx edi, bl
nop dword [eax]
mov ecx, edx
shl edx, 8
shr ecx, 0x18
xor ecx, edi
xor edx, dword [ecx*4 + 0x4682b8]
mov dword [eax + 0x260], edx
sub esi, 1
jne 0x422e60
pop edi
mov ecx, dword [eax + 0x34]
mov byte [eax + ecx + 0x58], 1
mov edx, dword [eax + 0x38]
mov ecx, edx
sub ecx, 1
je 0x422f2d
sub ecx, 1
je 0x422f11
sub ecx, 1
je 0x422ee9
mov byte [edx + eax + 0x54], 1
mov edx, dword [eax + 0x24]
mov ecx, dword [eax + 0x44]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
mov esi, dword [eax + 0x44]
inc esi
mov dword [eax + 0x44], esi
mov dl, byte [eax + 0x38]
mov ecx, dword [eax + 0x24]
sub dl, 4
mov byte [esi + ecx], dl
inc dword [eax + 0x44]
pop esi
pop ebx
pop ebp
ret
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
pop ebp
ret
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
pop ebp
ret
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
pop ebp
ret
Function at 0x4295c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push esi
mov dword [eax + 0x30], 0
lea esi, [eax + 0x70]
mov dword [eax + 0x4c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x2c], 0x20
mov dword [eax + 0x54], 1
mov dword [eax + 0x48], 4
mov dword [eax + 0x58], 0
nop dword [eax]
mov ecx, edx
lea esi, [esi + 4]
and ecx, 1
mov eax, edx
shr eax, 1
neg ecx
and ecx, 0xedb88320
inc edx
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [esi - 4], eax
cmp edx, 0x100
jb 0x429600
pop esi
pop ebp
ret
Function at 0x4386d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.0043f61f
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x4386fb
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x43bb41
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
push 0x105
call fcn.0043b6e4
mov edi, eax
test edi, edi
jne 0x43bb68
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, esi
jmp 0x43bbb1
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
je 0x43bbac
test al, 0x10
je 0x43bbac
test eax, 0x400
je 0x43bba8
push 0x2000000
push 0x80
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.0043bbb7
push dword [ebp - 4]
mov esi, eax
call fcn.0043b74f
test esi, esi
jne 0x43bbac
xor edx, edx
jmp 0x43bbae
mov edx, ebx
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x43bdaf
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x43bdd6
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x43bdd9
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0043bd8b
pop esi
leave
ret 8

Function at 0x43cf70
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43cfaf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43cfaf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43cfaf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43cfaf
cmp dword [ecx + 0x74], 0xe
jbe 0x43cfaf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4485bf
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45f04c
push 0x45f044
push str.FlsAlloc
push 0x1f
call fcn.0044849b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4485f3
push dword [ebp + 8]
mov ecx, esi
call dword [0x45423c]
call esi
jmp 0x4485f9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x44863d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45f05c
push 0x45f054
push str.FlsGetValue
push 0x21
call fcn.0044849b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x448674
push dword [ebp + 8]
mov ecx, esi
call dword [0x45423c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x44867c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45f064
push 0x45f05c
push str.FlsSetValue
push 0x22
call fcn.0044849b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4486b6
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x45423c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x44bbb8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x46c6a0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x44bbf8
cmp byte [ebx], 0xa
jne 0x44bbf8
or byte [edi + eax + 0x28], 4
jmp 0x44bbfd
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x44bcfc
mov dl, byte [eax]
cmp dl, 0x1a
je 0x44bcdf
inc eax
cmp dl, 0xd
je 0x44bc29
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x44bc4f
cmp eax, ecx
jae 0x44bc5d
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x44bc11
jmp 0x44bcfc
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44bcda
cmp dword [ebp - 0x10], 0
je 0x44bcda
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x46c6a0]
test byte [eax + edi + 0x28], 0x48
je 0x44bcb4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x44bc9f
mov byte [esi], dl
jmp 0x44bcb0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x46c6a0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x44bcfc
cmp byte [ebp - 1], 0xa
jne 0x44bcc3
cmp esi, ebx
jne 0x44bcc3
mov byte [esi], 0xa
jmp 0x44bcfb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00449052
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44bcfc
mov byte [esi], 0xd
jmp 0x44bcfb
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x46c6a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44bcf9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44bcfc
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44bd05
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x46c6a0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x44bd4b
cmp word [ebx], dx
jne 0x44bd4b
or byte [eax + edi + 0x28], 4
jmp 0x44bd50
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x44beb3
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x44be93
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x44bd91
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x44bdc7
cmp eax, edx
jae 0x44bdd5
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x44bd6c
jmp 0x44beb3
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44be8e
cmp dword [ebp - 0x18], 0
je 0x44be8e
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x46c6a0]
test byte [eax + edi + 0x28], 0x48
je 0x44be64
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x44be28
mov word [esi], cx
jmp 0x44be5f
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x46c6a0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x46c6a0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x46c6a0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x44beb3
pop eax
cmp word [ebp - 4], ax
jne 0x44be74
cmp esi, ebx
jne 0x44be74
mov word [esi], ax
jmp 0x44beb0
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00449052
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x44beb3
push 0xd
pop eax
jmp 0x44be6f
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x46c6a0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x44bead
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x44beb3
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44e0b0
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 0x44e14d
push ebx
push esi
call fcn.0044e079
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.0044c81e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x44e0fa
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44e14c
push edi
push eax
call fcn.0044a127
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x44e11a
call fcn.00447d1f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44e14b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0044c81e
add esp, 0x20
test eax, eax
jne 0x44e139
push edi
call fcn.00447d1f
jmp 0x44e141
push ebx
call fcn.00447d1f
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 0x451a7a
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004519f6
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x451be9
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x451be9
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x451b9e
jg 0x451ad6
test eax, eax
je 0x451b94
push 1
push 0x1000
call fcn.00447cc2
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x451af9
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x451b8b
push 0x8000
push ebx
call fcn.00445c26
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x451b22
jg 0x451b1d
cmp ecx, 0x1000
jb 0x451b22
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00449b8c
add esp, 0x10
cmp eax, 0xffffffff
je 0x451b67
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x451b1d
jl 0x451b4e
test ecx, ecx
jne 0x451b0f
push dword [ebp - 0xc]
push ebx
call fcn.00445c26
push esi
call fcn.00447d1f
add esp, 0xc
xor ebx, ebx
jmp 0x451bf7
cmp byte [edi + 0x24], 0
je 0x451b7e
cmp dword [edi + 0x20], 5
jne 0x451b7e
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x451b89
mov ebx, dword [edi + 0x18]
jmp 0x451b8b
xor ebx, ebx
push esi
call fcn.00447d1f
pop ecx
jmp 0x451bf7
test ecx, ecx
jg 0x451b60
jl 0x451b9e
test eax, eax
jae 0x451b60
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00449052
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x451bbe
cmp byte [edi + 0x1c], 0
je 0x451b60
jmp 0x451bef
push ebx
call fcn.0044ccbd
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x451b60
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x451bf7
cmp byte [edi + 0x1c], 0
je 0x451bf4
mov ebx, dword [edi + 0x18]
jmp 0x451bf7
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00449052
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x453010
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x45303d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45303d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401e20
Capabilities:
Execute command
Self delete

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push esi
mov esi, 0x401280
push ebx
lea edi, [ebp - 0x9a8]
sub esp, 0x99c
and esp, 0xfffffff0
mov ebx, dword [ebp + 0xc]
call fcn.004043d0
call fcn.00402e10
sub esp, 0xc
cld
mov ax, word [0x401c0c]
mov ecx, 0x263
rep movsd dword es:[edi], dword [esi]
mov word [0x407120], 0
mov word [edi], ax
push 0x401c0e
call sub.msvcrt.dll_system
mov dword [esp], 0x401c20
call sub.msvcrt.dll_system
mov dword [esp], 0x401c4d
call sub.msvcrt.dll_puts
lea edx, [ebp - 0x9a8]
mov dword [esp], edx
call sub.msvcrt.dll_puts
pop esi
mov eax, dword [ebx]
pop edi
push eax
push 0x4071b0
call sub.msvcrt.dll_strcpy
mov eax, dword [ebx]
pop edx
push eax
call fcn.00401f00
mov dword [esp], 0x4071b0
call fcn.004024a0
add esp, 0x10
dec eax
je 0x401ee2
call fcn.00402250
push 0
push 0x401c60
push 0x401ca0
push 0
call sub.USER32.dll_MessageBoxA
lea esp, [ebp - 0xc]
pop ebx
xor eax, eax
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
push 0x4071b0
call fcn.00402780
add esp, 0x10
jmp 0x401ec0
Function at 0x4022b0
Capabilities:
Contain obfuscated stackstrings
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x44
mov eax, dword [ebp + 8]
push 0x4022a0
push eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
call sub.msvcrt.dll_fopen
mov ebx, eax
pop eax
pop edx
mov eax, dword [ebp + 0xc]
push 0x4022a0
push eax
call sub.msvcrt.dll_fopen
add esp, 0x10
mov esi, eax
test eax, eax
je 0x402481
sub esp, 0xc
push 1
call sub.msvcrt.dll_malloc
mov edi, eax
mov dword [esp], ebx
call sub.msvcrt.dll_feof
add esp, 0x10
test eax, eax
jne 0x402323
push ebx
mov eax, dword [ebp - 0x48]
push 1
inc eax
push 1
mov dword [ebp - 0x48], eax
push edi
call sub.msvcrt.dll_fread
jmp 0x402300
sub esp, 0xc
push esi
call sub.msvcrt.dll_feof
add esp, 0x10
test eax, eax
jne 0x40234a
push esi
mov eax, dword [ebp - 0x44]
push 1
inc eax
push 1
mov dword [ebp - 0x44], eax
push edi
call sub.msvcrt.dll_fread
add esp, 0x10
jmp 0x402323
sub esp, 0xc
mov eax, dword [ebp - 0x48]
push eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x3c], eax
pop eax
mov eax, dword [ebp - 0x44]
push eax
call sub.msvcrt.dll_malloc
mov ecx, dword [ebp - 0x3c]
add esp, 0x10
test ecx, ecx
mov dword [ebp - 0x40], eax
je 0x40248d
test eax, eax
je 0x40248d
sub esp, 0xc
push ebx
call sub.msvcrt.dll_rewind
mov dword [esp], esi
call sub.msvcrt.dll_rewind
mov eax, dword [ebp - 0x48]
push ebx
push eax
mov eax, dword [ebp - 0x3c]
push 1
push eax
call sub.msvcrt.dll_fread
mov eax, dword [ebp - 0x44]
add esp, 0x20
push esi
push eax
mov eax, dword [ebp - 0x40]
push 1
push eax
call sub.msvcrt.dll_fread
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov dword [esp], esi
lea esi, [ebp - 0x38]
call sub.msvcrt.dll_fclose
pop eax
mov eax, dword [ebp + 8]
pop edx
push 0x4022a3
push eax
call sub.msvcrt.dll_fopen
mov ebx, eax
push eax
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x40]
push 1
push eax
call sub.msvcrt.dll_fwrite
add esp, 0x20
mov byte [ebp - 0x38], 0x21
push ebx
push 0x12
push 1
push esi
mov byte [ebp - 0x37], 0x21
mov byte [ebp - 0x36], 0x21
mov byte [ebp - 0x35], 0x21
mov byte [ebp - 0x34], 0x21
mov byte [ebp - 0x33], 0x66
mov byte [ebp - 0x32], 0x75
mov byte [ebp - 0x31], 0x6b
mov byte [ebp - 0x30], 0x2d
mov byte [ebp - 0x2f], 0x74
mov byte [ebp - 0x2e], 0x63
mov byte [ebp - 0x2d], 0x70
mov byte [ebp - 0x2c], 0x61
mov byte [ebp - 0x2b], 0x21
mov byte [ebp - 0x2a], 0x21
mov byte [ebp - 0x29], 0x21
mov byte [ebp - 0x28], 0x21
mov byte [ebp - 0x27], 0x21
mov byte [ebp - 0x26], 0
call sub.msvcrt.dll_fwrite
mov ecx, dword [ebp - 0x3c]
push ebx
mov eax, dword [ebp - 0x48]
push eax
push 1
push ecx
call sub.msvcrt.dll_fwrite
add esp, 0x14
push ebx
call sub.msvcrt.dll_fclose
mov dword [esp], edi
call sub.msvcrt.dll_free
mov edx, dword [ebp - 0x3c]
pop ebx
push edx
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x40]
pop edx
push eax
call sub.msvcrt.dll_free
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
test ebx, ebx
jne 0x4022f4
jmp 0x402479
sub esp, 0xc
push 0
call sub.msvcrt.dll_exit
nop
nop
lea esi, [esi]
Function at 0x402c30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x70
lea ebx, [ebp - 0x58]
push ebx
call sub.KERNEL32.dll_GetStartupInfoA
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x68]
mov dword [esp], edx
push ebx
push 0
push 0
push 0x10
push 0
push 0
push 0
push eax
push 0
call sub.KERNEL32.dll_CreateProcessA
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x402c80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14
mov eax, dword [ebp + 8]
push 0x402c70
push eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
call sub.msvcrt.dll_fopen
pop esi
pop edi
mov ebx, eax
mov eax, dword [ebp + 0xc]
push 0x402c70
push eax
call sub.msvcrt.dll_fopen
mov dword [esp], 1
mov edi, eax
call sub.msvcrt.dll_malloc
mov esi, eax
mov dword [esp], ebx
call sub.msvcrt.dll_feof
add esp, 0x10
test eax, eax
jne 0x402cf0
push ebx
mov eax, dword [ebp - 0x10]
push 1
inc eax
push 1
mov dword [ebp - 0x10], eax
push esi
call sub.msvcrt.dll_fread
jmp 0x402cc7
sub esp, 0xc
push edi
call sub.msvcrt.dll_feof
add esp, 0x10
test eax, eax
jne 0x402d17
push edi
mov eax, dword [ebp - 0x14]
push 1
inc eax
push 1
mov dword [ebp - 0x14], eax
push esi
call sub.msvcrt.dll_fread
add esp, 0x10
jmp 0x402cf0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x10], eax
sete al
lea esp, [ebp - 0xc]
and eax, 0xff
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x404210
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov eax, dword [0x405050]
test eax, eax
je 0x40422d
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0x61616161
push eax
mov dword [ebp - 0x44], 0x61616161
mov dword [ebp - 0x40], 0x61616161
mov dword [ebp - 0x3c], 0x61616161
mov dword [ebp - 0x38], 0x61616161
mov dword [ebp - 0x34], 0x61616161
mov dword [ebp - 0x30], 0x61616161
mov dword [ebp - 0x2c], 0x61616161
mov byte [ebp - 0x28], 0
call sub.KERNEL32.dll_FindAtomA
add esp, 0xc
test ax, ax
jne 0x404384
sub esp, 0xc
xor esi, esi
lea ebx, [ebp - 0x78]
push 0x14
call sub.msvcrt.dll_malloc
lea ecx, [ebp - 0xa8]
mov dword [0x405050], eax
add esp, 0x10
mov dword [eax], 0
mov edx, eax
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 4], sub.msvcrt.dll_abort
mov dword [eax + 8], sub.msvcrt.dll_abort
mov edi, ecx
test eax, eax
jne 0x404370
lea ecx, [ebp - 0xa7]
mov byte [ebp - 0xa8], 0x30
cmp ecx, edi
jbe 0x4042eb
lea esi, [esi]
dec ecx
inc esi
mov al, byte [ecx]
mov byte [ebx], al
inc ebx
cmp ecx, edi
ja 0x4042e0
mov eax, 0x20
mov byte [ebx], 0
sub eax, esi
push edi
lea edx, [ebp - 0x48]
push eax
push 0x61
push edx
call sub.msvcrt.dll_memset
add esp, 0x10
xor edx, edx
cmp edx, esi
jae 0x404326
nop
lea esi, [esi]
mov eax, edx
sub eax, esi
cmp byte [ebp + edx - 0x78], 0x30
je 0x404365
mov cl, 0x41
inc edx
mov byte [ebp + eax - 0x28], cl
cmp edx, esi
jb 0x404310
sub esp, 0xc
lea eax, [ebp - 0x48]
mov byte [ebp - 0x28], 0
push eax
call sub.KERNEL32.dll_AddAtomA
add esp, 0xc
mov edx, dword [0x405050]
lea eax, [edx + 4]
mov dword [0x405054], eax
lea eax, [edx + 8]
mov dword [0x405058], eax
lea eax, [edx + 0xc]
add edx, 0x10
mov dword [0x40505c], eax
mov dword [0x405060], edx
jmp 0x404225
mov cl, 0x61
jmp 0x40431d
mov eax, edx
and eax, 1
add eax, 0x30
mov byte [ecx], al
inc ecx
shr edx, 1
jne 0x404370
jmp 0x4042d9
lea edx, [ebp - 0x48]
push ebx
and eax, 0xffff
push 0x21
push edx
push eax
call sub.KERNEL32.dll_GetAtomNameA
xor edx, edx
pop ecx
lea esi, [esi]
cmp byte [ebp + edx - 0x48], 0x61
setne al
add eax, 0x30
mov byte [ebp + edx - 0x48], al
inc edx
cmp edx, 0x1f
jbe 0x4043a0
push eax
lea eax, [ebp - 0x48]
push 2
push 0
push eax
call sub.msvcrt.dll_strtoul
add esp, 0x10
mov dword [0x405050], eax
jmp 0x404339