joyce8/EMBER2024-capa huggingface dataset:
Function at 0x9de390
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x406000]
push edi
jmp 0x9de3aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x9de3b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9de3a0
mov eax, 1
add ebx, ebx
jne 0x9de3c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x9de3d4
jne 0x9de3f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9de3f3
dec eax
add ebx, ebx
jne 0x9de3e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x9de3b8
add ebx, ebx
jne 0x9de3ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x9de445
xor ecx, ecx
sub eax, 3
jb 0x9de40b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x9de47a
sar eax, 1
mov ebp, eax
jmp 0x9de416
add ebx, ebx
jne 0x9de416
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9de3e4
inc ecx
add ebx, ebx
jne 0x9de424
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9de3e4
add ebx, ebx
jne 0x9de431
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x9de426
jne 0x9de442
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x9de426
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x9de464
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x9de456
jmp 0x9de3a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x9de464
add edi, ecx
jmp 0x9de3a6
pop esi
mov edi, esi
mov ecx, 0x12b8c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x9de482
cmp byte [edi], 0x26
jne 0x9de482
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x9de487
lea edi, [esi + 0x5d9000]
mov eax, dword [edi]
or eax, eax
je 0x9de4ff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5e4060]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5e4204]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x9de4b4
mov ecx, edi
jns 0x9de4e3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5e4208]
or eax, eax
je 0x9de4f9
mov dword [ebx], eax
add ebx, 4
jmp 0x9de4d1
call dword [esi + 0x5e4218]
mov ebp, dword [esi + 0x5e420c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x9de533
sub esp, 0xffffff80
jmp 0x4015d8
Function at 0x4025b5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x406380
cmp edx, dword [eax]
je 0x4025d7
add eax, 8
inc ecx
cmp eax, 0x406410
jl 0x4025c8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x406380]
jne 0x402705
mov eax, dword [0x4068d8]
cmp eax, 1
je 0x4026df
test eax, eax
jne 0x402608
cmp dword [0x406048], 1
je 0x4026df
cmp edx, 0xfc
je 0x402705
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40263f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402ca0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004028b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402682
lea eax, [ebp - 0x1a4]
push eax
call fcn.004028b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4053fc
push edi
call fcn.00403d80
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402ca0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402cb0
lea eax, [ebp - 0xa0]
push 0x4053dc
push eax
call fcn.00402cb0
push dword [esi + 0x406384]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402cb0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00403cee
add esp, 0x2c
pop edi
jmp 0x402705
lea eax, [ebp + 8]
lea esi, [esi + 0x406384]
push 0
push eax
push dword [esi]
call fcn.004028b0
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 0x10008990
Capabilities:
Allocate or change rwx memory
Create process on windows
Encode data using base64
Encrypt data using chaskey
Encrypt data using speck
Execute anti-debugging instructions
Execute shellcode via indirect call
Hide graphical window
Parse pe header
Resume thread

Disassembly:
jmp 0x1000c589
push ebp
btr ax, di
mov ebp, esp
push ebx
btr ax, cx
rcr ah, cl
push edi
clc
and al, 0xb1
cwde
push esi
ror eax, cl
shr eax, cl
xor eax, 0x2711e882
sub esp, 0x118
sal ax, cl
stc
add eax, esp
mov eax, dword [0x10075800]
xor eax, ebp
clc
mov dword [ebp - 0x10], eax
add al, 0x3b
mov dword [ebp - 0x120], 0xdbb91426

Function at 0x1001b1b3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001b1f2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001b1f2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001b1f2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001b1f2
cmp dword [ecx + 0x74], 0xe
jbe 0x1001b1f2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001de6f
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 0x1001df0c
push ebx
push esi
call fcn.1001de38
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.1001ddcc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001deb9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001df0b
push edi
push eax
call fcn.1001ee2a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001ded9
call fcn.1001c914
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001df0a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001ddcc
add esp, 0x20
test eax, eax
jne 0x1001def8
push edi
call fcn.1001c914
jmp 0x1001df00
push ebx
call fcn.1001c914
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 0x1001e179
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025cc8
push 0x10025cc0
push str.FlsAlloc
push 0x1f
call fcn.1001e095
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e1ad
push dword [ebp + 8]
mov ecx, esi
call dword [0x10024150]
call esi
jmp 0x1001e1b3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001e1f7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025cd8
push 0x10025cd0
push str.FlsGetValue
push 0x21
call fcn.1001e095
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e22e
push dword [ebp + 8]
mov ecx, esi
call dword [0x10024150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001e236
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025ce0
push 0x10025cd8
push str.FlsSetValue
push 0x22
call fcn.1001e095
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e270
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10024150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10023900
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002392d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002392d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x417310
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.QCYiaatN
lea edi, [esi - 0xe000]
mov dword [edi + 0xe6f8], 0x58b40b67
push edi
or ebp, 0xffffffff
jmp 0x41733a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x417341
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x417330
mov eax, 1
add ebx, ebx
jne 0x417353
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x417348
jne 0x417364
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417348
xor ecx, ecx
sub eax, 3
jb 0x417378
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4173ea
mov ebp, eax
add ebx, ebx
jne 0x417383
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x417390
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4173b4
inc ecx
add ebx, ebx
jne 0x4173a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x417395
jne 0x4173b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417395
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4173d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4173c5
jmp 0x417336
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4173d4
add edi, ecx
jmp 0x417336
pop esi
mov edi, esi
mov ecx, 0x446
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4173f2
cmp byte [edi], 5
jne 0x4173f2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4173f7
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x417466
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x17704]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17784]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x417424
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1778c]
or eax, eax
je 0x417460
mov dword [ebx], eax
add ebx, 4
jmp 0x417441
call dword [esi + 0x17788]
mov ebp, dword [esi + 0x17790]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41749a
sub esp, 0xffffff80
jmp 0x40d86c
Function at 0x402ac7
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jg 0x402ae9
xor eax, eax
jmp 0x402bfc
mov ecx, dword [ebp - 8]
add ecx, 1
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx - 1]
cmp edx, 0x2f
jne 0x402b25
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax - 1], 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 4
test eax, eax
jne 0x402b4d
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, 1
jmp 0x402bfc
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, 1
test ecx, ecx
je 0x402bea
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
test eax, eax
je 0x402b8e
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0x5c
je 0x402b8e
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0x2f
je 0x402b8e
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x402b63
mov eax, dword [ebp - 4]
mov cl, byte [eax]
mov byte [ebp - 0x10], cl
mov edx, dword [ebp - 4]
mov byte [edx], 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 4
cmp eax, 0xffffffff
jne 0x402bca
call dword [sym.imp.MSVCRT.dll__errno]
cmp dword [eax], 2
jne 0x402bca
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
jmp 0x402bfc
movsx edx, byte [ebp - 0x10]
test edx, edx
jne 0x402bd4
jmp 0x402bea
mov eax, dword [ebp - 4]
mov cl, byte [ebp - 0x10]
mov byte [eax], cl
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x402b56
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x402c00
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea edx, [ebp - 0x28]
push edx
mov ax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0xc]
shr ecx, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x402e34
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
push 1
lea eax, [ebp + 8]
push 1
push eax
call sub.MSVCRT.dll_fread
add esp, 0x10
cmp eax, 1
jne 0x402e5e
movzx eax, byte [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
jmp 0x402e67
mov eax, dword [esi + 0xc]
and al, 0x20
neg al
sbb eax, eax
pop esi
pop ebp
ret

Function at 0x402edc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
and dword [ebp - 0xc], 0
push esi
push edi
push 2
push 0
push dword [ebp + 8]
mov esi, pe_overlay
mov dword [ebp - 4], esi
call sub.MSVCRT.dll_fseek
add esp, 0xc
test eax, eax
jne 0x402f29
push dword [ebp + 8]
call sub.MSVCRT.dll_ftell
cmp eax, esi
pop ecx
mov dword [ebp - 0x10], eax
jae 0x402f17
mov dword [ebp - 4], eax
mov edi, 0x404
push edi
call sub.MSVCRT.dll_malloc
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x402f30
xor eax, eax
jmp 0x402fd4
push 4
pop eax
cmp dword [ebp - 4], eax
jbe 0x402fca
jmp 0x402f46
mov eax, dword [ebp - 8]
mov edi, 0x404
mov ecx, dword [ebp - 4]
add eax, 0x400
cmp eax, ecx
mov dword [ebp - 8], ecx
ja 0x402f58
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov esi, eax
sub esi, dword [ebp - 8]
sub eax, esi
cmp eax, edi
ja 0x402f68
mov edi, eax
push 0
push esi
push dword [ebp + 8]
call sub.MSVCRT.dll_fseek
add esp, 0xc
test eax, eax
jne 0x402fca
push dword [ebp + 8]
push 1
push edi
push ebx
call sub.MSVCRT.dll_fread
add esp, 0x10
cmp eax, 1
jne 0x402fca
lea eax, [edi - 3]
mov ecx, eax
dec eax
test ecx, ecx
jle 0x402fb8
cmp byte [eax + ebx], 0x50
jne 0x402f91
cmp byte [eax + ebx + 1], 0x4b
jne 0x402f91
cmp byte [eax + ebx + 2], 5
jne 0x402f91
cmp byte [eax + ebx + 3], 6
jne 0x402f91
add eax, esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x402fca
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], eax
jb 0x402f3e
push ebx
call sub.MSVCRT.dll_free
mov eax, dword [ebp - 0xc]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4036c4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
je 0x4036e2
mov esi, dword [eax + 0x7c]
cmp esi, ebx
jne 0x4036e6
push 0xffffffffffffff9a
jmp 0x4036ec
cmp dword [esi], ebx
jne 0x4036f2
push 0xffffffffffffff9c
pop eax
jmp 0x403835
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
je 0x403820
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x5c]
cmp ecx, eax
jbe 0x403710
mov dword [esi + 0x14], eax
cmp dword [esi + 0x14], ebx
jbe 0x40382b
cmp dword [esi + 8], ebx
jne 0x40377a
mov eax, dword [esi + 0x58]
cmp eax, ebx
jbe 0x40377a
mov edi, 0x4000
cmp eax, edi
jae 0x403730
mov edi, eax
cmp edi, ebx
je 0x403820
mov eax, dword [esi + 0x68]
push ebx
add eax, dword [esi + 0x3c]
push eax
push dword [esi + 0x60]
call sub.MSVCRT.dll_fseek
add esp, 0xc
test eax, eax
jne 0x403824
push dword [esi + 0x60]
push 1
push edi
push dword [esi]
call sub.MSVCRT.dll_fread
add esp, 0x10
cmp eax, 1
jne 0x403824
mov eax, dword [esi]
add dword [esi + 0x3c], edi
sub dword [esi + 0x58], edi
mov dword [esi + 4], eax
mov dword [esi + 8], edi
cmp dword [esi + 0x64], ebx
jne 0x4037ce
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 8]
cmp eax, edi
jae 0x40378b
mov edi, eax
xor eax, eax
cmp edi, ebx
jbe 0x4037a2
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x10]
mov cl, byte [eax + ecx]
mov byte [eax + edx], cl
inc eax
cmp eax, edi
jb 0x403791
push edi
push dword [esi + 0x10]
push dword [esi + 0x50]
call fcn.00403d6e
sub dword [esi + 0x5c], edi
sub dword [esi + 8], edi
sub dword [esi + 0x14], edi
add dword [esi + 0x10], edi
add dword [esi + 4], edi
add dword [esi + 0x18], edi
add esp, 0xc
add dword [ebp - 4], edi
mov dword [esi + 0x50], eax
jmp 0x403710
mov eax, dword [esi + 0x18]
push 2
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x10]
mov dword [ebp + 0x10], eax
lea eax, [esi + 4]
push eax
call fcn.004039fc
mov edi, dword [esi + 0x18]
pop ecx
mov ebx, edi
pop ecx
sub ebx, dword [ebp + 8]
mov dword [ebp - 8], eax
push ebx
push dword [ebp + 0x10]
push dword [esi + 0x50]
call fcn.00403d6e
sub edi, dword [ebp + 8]
sub dword [esi + 0x5c], ebx
add esp, 0xc
mov dword [esi + 0x50], eax
add dword [ebp - 4], edi
cmp dword [ebp - 8], 1
je 0x403832
cmp dword [ebp - 8], 0
jne 0x403829
xor ebx, ebx
jmp 0x403710
xor eax, eax
jmp 0x403835
or eax, 0xffffffff
jmp 0x403835
xor ebx, ebx
mov eax, dword [ebp - 8]
cmp eax, ebx
jne 0x403835
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403d6e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x403d7c
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push edi
push esi
push ebx
mov ecx, 0xff
not eax
jb 0x403e5c
mov edi, dword [ebp + 0x10]
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x4064e8]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x4064e8]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x4064e8]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x4064e8]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x4064e8]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x4064e8]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x4064e8]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x4064e8]
xor eax, esi
inc edx
dec edi
jne 0x403d99
cmp dword [ebp + 0x10], 0
je 0x403e7d
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4064e8]
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x403e62
pop ebx
pop esi
not eax
pop edi
pop ebp
ret
Function at 0x405b70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406b58
push 0x405d90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x409650], 0xffffffff
mov dword [0x409654], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x409644]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x409640]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x40964c], ecx
call fcn.00405d80
mov eax, dword [0x409550]
test eax, eax
jne 0x405c01
push 0x405d70
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00405d50
push 0x408014
push 0x408010
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x40963c]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x409638]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x40800c
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [edx]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x405d0f
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x405c75
cmp al, 0x22
jne 0x405c67
cmp byte [esi], 0x22
jne 0x405c7e
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x405c8e
cmp al, 0x20
ja 0x405c8e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x405c7e
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x405caf
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x405cb4
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x405cf4
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x405c7e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x405d0f
Function at 0x403f8c
Capabilities:
Create process on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x444
mov esi, dword [esp + 0x45c]
mov ebp, dword [esp + 0x458]
push esi
mov edi, ebp
push ebp
push str.putfile__s__s_n
call sub.msvcrt.dll_printf
push 0x400
lea ebx, [esp + 0x54]
push ebx
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
mov dword [esp + 0x20], ebx
xor edx, edx
cld
mov al, dl
mov dword [esp + 0x10], 0x3c
or ecx, 0xffffffff
mov dword [esp + 0x14], 0x240
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0x43c7ab
repne scasb al, byte es:[edi]
not ecx
mov edi, esi
mov dword [esp + 0xc], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0xc]
not ecx
lea ecx, [ecx + eax + 0x28]
push ecx
call sub.msvcrt.dll_malloc
push esi
mov ebx, eax
push 0x43c7b0
push ebp
push str.pscp_s_s:_s
push eax
call sub.msvcrt.dll_sprintf
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 5
mov dword [esp + 0x48], 0x1d
add esp, 0x24
lea eax, [esp + 4]
push eax
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
jne 0x404061
call sub.KERNEL32.dll_GetLastError
push eax
push str.Last_error:__d_n
call sub.msvcrt.dll_printf
pop eax
pop edx
push ebx
call fcn.0043aa78
mov eax, dword [esp + 0x40]
add esp, 0x448
pop ebx
pop esi
pop edi
pop ebp
ret