joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000f570
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ecx]
mov dword [ebp - 0x28], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [ecx + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 0xc]
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x14]
push dword [ebp - 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x14], 0
push eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call fcn.1000f460
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov edi, dword [ebp - 0x14]
xor ebx, ebx
sub ecx, edi
add ecx, 3
shr ecx, 2
cmp edi, dword [ebp - 0x10]
cmova ecx, edx
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x1000f602
push esi
mov esi, dword [edi]
test esi, esi
je 0x1000f5f9
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
inc ebx
add edi, 4
cmp ebx, ecx
jne 0x1000f5e0
pop esi
push 0x28
push dword [ebp - 8]
call fcn.1002d0f4
add esp, 8
lea ecx, [ebp - 0x14]
call fcn.1000f940
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000f6f0
Capabilities:
Enumerate threads
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009c3b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov eax, dword [ecx + 0x14]
push dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ecx + 0x24]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x1c], 0
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.1000f3b0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x18]
je 0x1000f7cb
push esi
push edi
mov edi, dword [eax]
test edi, edi
je 0x1000f7ba
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x1000f7ba
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x1c
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x48], xmm0
movq qword [ebp - 0x38], xmm0
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1000f7b3
nop dword [eax]
cmp dword [ebp - 0x44], edi
je 0x1000f7e1
lea eax, [ebp - 0x4c]
push eax
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1000f7a0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x100a13a0
push 0x12
call fcn.1000ee10
add esp, 8
pop edi
pop esi
lea ecx, [ebp - 0x1c]
call fcn.1000f8d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x1000f810
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x1000f809
test eax, eax
jne 0x1000f7b3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x18]
jne 0x1000f765
jmp 0x1000f7c9

Function at 0x1000f830
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
mov edi, ecx
lea eax, [edi + 0x14]
push eax
push 0
push 0
push 0x10002320
push 0
push 0
call esi
mov dword [edi], eax
lea eax, [edi + 0x18]
push eax
push 0
push 0
push 0x100023d0
push 0
push 0
call esi
mov dword [edi + 4], eax
lea eax, [edi + 0x1c]
push eax
push 0
push 0
push 0x10001630
push 0
push 0
call esi
mov dword [edi + 8], eax
lea eax, [edi + 0x20]
push eax
push 0
push 0
push 0x10009580
push 0
push 0
call esi
mov dword [edi + 0xc], eax
lea eax, [edi + 0x24]
push eax
push 0
push 0
push 0x10006500
push 0
push 0
call esi
mov dword [edi + 0x10], eax
pop edi
pop esi
ret

Function at 0x10030cde
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x10053b3a
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x100a8b6c
push 0x100a8b64
push str.FlsAlloc
push 0
call fcn.100539e8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10053b6c
push dword [ebp + 8]
mov ecx, esi
call fcn.1002dd15
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x10053bae
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x100a8b7c
push 0x100a8b74
push str.FlsGetValue
push 2
call fcn.100539e8
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x10053bdf
mov ecx, esi
call fcn.1002dd15
call esi
jmp 0x10053be5
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x10053be8
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x100a8b84
push 0x100a8b7c
push str.FlsSetValue
push 3
call fcn.100539e8
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x10053c1c
mov ecx, esi
call fcn.1002dd15
call esi
jmp 0x10053c22
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret
Function at 0x10086301
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10085f01

Function at 0x10087a8f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x100c4438]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10087ad0
cmp byte [edx], 0xa
jne 0x10087ad0
or byte [eax + edi + 0x28], 4
jmp 0x10087ad5
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
mov ebx, edx
mov dword [ebp - 8], eax
mov esi, edx
cmp edx, eax
jae 0x10087bc6
mov al, byte [ebx]
cmp al, 0x1a
je 0x10087ba7
cmp al, 0xd
je 0x10087afe
mov byte [esi], al
inc esi
inc ebx
jmp 0x10087b9c
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x10087b1e
cmp byte [eax], 0xa
jne 0x10087b13
push 2
mov byte [esi], 0xa
pop eax
jmp 0x10087b19
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x10087b9c
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10087b95
cmp dword [ebp - 0x14], 0
je 0x10087b95
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100c4438]
test byte [eax + edi + 0x28], 0x48
je 0x10087b6c
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x10087b5c
mov byte [esi], dl
jmp 0x10087b98
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100c4438]
mov byte [eax + edi + 0x2a], dl
jmp 0x10087b98
cmp byte [ebp - 1], 0xa
jne 0x10087b7e
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x10087b7e
mov byte [esi], 0xa
jmp 0x10087b1b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100871b1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10087b99
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x10087ae7
jmp 0x10087bc6
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100c4438]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10087bc1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10087bc6
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10087bd1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x100c4438]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x10087c15
cmp word [edx], bx
jne 0x10087c15
or byte [edi + eax + 0x28], 4
jmp 0x10087c1a
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x10087d6e
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x10087d4e
cmp ax, word [ebp - 0x10]
je 0x10087c53
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x10087d43
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x10087c79
push 0xa
pop ecx
cmp word [eax], cx
jne 0x10087c69
push ecx
pop eax
push 4
jmp 0x10087c6e
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x10087d3d
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10087d34
cmp dword [ebp - 0x18], 0
je 0x10087d34
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x100c4438]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x10087d00
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x10087cc4
mov word [esi], ax
jmp 0x10087cf8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x100c4438]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x100c4438]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x100c4438]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x10087d43
cmp word [ebp - 4], ax
jne 0x10087d15
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x10087d15
mov word [esi], ax
add esi, 2
jmp 0x10087d43
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100871b1
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10087d40
jmp 0x10087d37
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x10087c33
jmp 0x10087d6e
mov ecx, dword [ecx*4 + 0x100c4438]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x10087d65
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x10087d6e
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1008d7f7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1008cf7b

Function at 0x1008d802
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1008d1ba

Function at 0x10099f2f
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10099dfc
Function at 0x401271
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x1c
push esi
push ecx
pop esi
sub ecx, ecx
mov edx, dword [esi + 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
add edx, esi
mov dword [eax], ecx
mov eax, 0x14c
push edi
push ecx
pop edi
cmp word [edx + 4], ax
jne 0x4013b8
push ebx
mov ebx, dword [edx + 0x88]
mov dword [ebp - 0x14], ebx
or ebx, ebx
je 0x4013b7
cmp dword [edx + 0x8c], ecx
je 0x4013b7
movzx eax, word [edx + 0x14]
add eax, 0x18
add eax, edx
movzx edx, word [edx + 6]
or edx, edx
je 0x4013b7
cmp dword [eax + 0xc], ebx
je 0x4012e2
inc ecx
add eax, 0x28
cmp ecx, edx
jb 0x4012d0
jmp 0x4013b7
mov edx, dword [eax + 0x14]
add edx, esi
push 0
movzx ecx, word [edx + 0xe]
movzx eax, word [edx + 0xc]
add ecx, eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], ecx
pop ebx
je 0x4013b7
xor eax, eax
mov esi, dword [edx + eax*8 + 0x14]
and esi, 0x7fffffff
add esi, edx
push 0
movzx ecx, word [esi + 0xe]
movzx eax, word [esi + 0xc]
add ecx, eax
mov dword [ebp - 0x18], ecx
pop ecx
mov dword [ebp - 0xc], ecx
je 0x4013aa
xor eax, eax
cmp word [esi + eax*8 + 0x10], 0x65
jne 0x40139a
mov ecx, dword [esi + eax*8 + 0x14]
and ecx, 0x7fffffff
add ecx, edx
mov dword [ebp - 8], 0
movzx eax, word [ecx + 0xe]
mov dword [ebp - 4], eax
movzx eax, word [ecx + 0xc]
add dword [ebp - 4], eax
je 0x401393
sub eax, eax
mov edx, 0x409
cmp word [ecx + eax*8 + 0x10], dx
mov edx, dword [ebp - 0x10]
je 0x401376
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
movzx eax, ax
cmp eax, dword [ebp - 4]
jb 0x401356
jmp 0x401393
mov ecx, dword [ecx + eax*8 + 0x14]
mov edi, dword [ebp + 0xc]
mov eax, dword [ecx + edx]
sub eax, dword [ebp - 0x14]
add eax, edx
mov dword [edi], eax
mov eax, dword [ecx + edx + 4]
mov ecx, dword [ebp + 0x10]
sub edi, edi
mov dword [ecx], eax
inc edi
or edi, edi
jne 0x4013b7
mov ecx, dword [ebp - 0xc]
inc ecx
movzx eax, cx
mov dword [ebp - 0xc], ecx
cmp eax, dword [ebp - 0x18]
jb 0x401329
or edi, edi
jne 0x4013b7
inc ebx
movzx eax, bx
cmp eax, dword [ebp - 0x1c]
jb 0x401302
pop ebx
mov eax, edi
pop edi
pop esi
leave
ret 0xc

Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esp
pop ebp
push ebx
push esi
push edi
mov edi, edx
mov ebx, edi
shr ebx, 2
and edi, 3
mov esi, ecx
test ebx, ebx
je 0x4013f3
mov al, byte [ebp + 0xc]
mov edx, dword [esi]
add al, bl
movzx ecx, al
mov eax, dword [ebp + 8]
ror edx, cl
xor edx, eax
sub edx, ebx
mov dword [esi], edx
add esi, 4
dec ebx
jne 0x4013d6
jmp 0x4013f6
mov eax, dword [ebp + 8]
test edi, edi
je 0x401400
xor byte [esi], al
inc esi
dec edi
jne 0x4013fa
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x401407
Capabilities:
Terminate process

Disassembly:
push ebx
mov eax, 0x10441
mov ebx, 0x12345678
mov ecx, 0x12345678
mov edx, 0x12345678
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [section..data], eax
jmp loc.0047950e
Function at 0x422c50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
or ebp, 0xffffffff
jmp 0x422c72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x422c79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x422c68
mov eax, 1
add ebx, ebx
jne 0x422c8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x422c80
jne 0x422c9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x422c80
xor ecx, ecx
sub eax, 3
jb 0x422cb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x422d22
mov ebp, eax
add ebx, ebx
jne 0x422cbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x422cc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x422cec
inc ecx
add ebx, ebx
jne 0x422cd8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x422ccd
jne 0x422ce9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x422ccd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x422d0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x422cfd
jmp 0x422c6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x422d0c
add edi, ecx
jmp 0x422c6e
pop esi
mov edi, esi
mov ecx, 0x138
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x422d2a
cmp byte [edi], 6
jne 0x422d2a
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 0x422d2f
lea edi, [esi + 0x20000]
mov eax, dword [edi]
or eax, eax
je 0x422d9e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x22000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x22028]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x422d5c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x22030]
or eax, eax
je 0x422d98
mov dword [ebx], eax
add ebx, 4
jmp 0x422d79
call dword [esi + 0x2202c]
mov ebp, dword [esi + 0x22034]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
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 0x422dd2
sub esp, 0xffffff80
jmp 0x4038fc
Function at 0x403992
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
jbe 0x4039e2
push ebx
mov ebx, dword [esp + 0x14]
and ebx, 1
mov al, byte [esi + ebp]
mov ecx, 0x47cd58
xor al, 0x73
sub al, 0x58
push ebx
mov byte [esi + ebp], al
call fcn.00402696
push eax
call fcn.00401e6b
mov al, byte [esi + ebp]
sub al, 0x14
xor al, 0x74
add al, 0x4e
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
xor al, 0x2a
mov byte [esi + ebp], al
inc esi
pop ecx
cmp esi, dword [esp + 0x14]
jb 0x4039a8
pop ebx
pop esi
pop ebp
ret

Function at 0x4046c6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x47bb00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x425390
lea ecx, [ebp - 0x1c]
call fcn.00402057
push 0xc
call fcn.00407dde
pop ecx
test eax, eax
je 0x4046fd
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.00402109
jmp 0x4046ff
xor eax, eax
mov eax, dword [eax + 4]
shl eax, 2
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0x40
push 0x4ac
push 0x47b640
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
call dword [sym.imp.KERNEL32.DLL_FreeConsole]
call fcn.00403969
mov edx, 0x47b640
add edx, 0x188
mov esi, 0x430040
push esi
call edx
lea ecx, [ebp - 0x1c]
call fcn.00403767
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00407e1c
leave
ret

Function at 0x408a22
Capabilities:
Parse pe header

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

Function at 0x417ced
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4292d0
push 0x4292c8
push 0x426e14
push 0x1e
call fcn.00417b5a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417d21
push dword [ebp + 8]
mov ecx, esi
call dword [0x425138]
call esi
jmp 0x417d27
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x419f56
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00419bf8

Function at 0x419f61
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00419d87

Function at 0x41a35b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408b90
mov eax, dword [0x47bb00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00417566
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41a39d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41a4f9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00424250
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x47d608]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041b52b
mov ecx, dword [esi*4 + 0x47d608]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41a4f2
cmp eax, dword [edi + ecx + 0x24]
jne 0x41a4f2
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x41a4f2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041b52b
add esp, 0x14
test edx, edx
jl 0x41a4f2
jg 0x41a468
test eax, eax
jb 0x41a4f2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41a4f2
jl 0x41a482
cmp dword [ebp - 0x1008], eax
ja 0x41a4f2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41a4a0
test ebx, ebx
je 0x41a4d9
cmp ecx, edi
jae 0x41a4d9
mov al, byte [ecx]
cmp al, 0xd
jne 0x41a4ba
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41a4c6
cmp byte [ecx + 1], 0xa
jne 0x41a4c6
inc ecx
jmp 0x41a4c6
movzx eax, al
movsx eax, byte [eax + 0x47bdc8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41a4a0
cmp edx, ebx
jne 0x41a4a0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41a4f7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407e1c
leave
ret
Function at 0x41a9c9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x47d608]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41aa09
cmp byte [ebx], 0xa
jne 0x41aa09
or byte [eax + edi + 0x28], 4
jmp 0x41aa0e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41ab0c
mov al, byte [edx]
cmp al, 0x1a
je 0x41aaee
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41aa3d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41aa62
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41aa6c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41aa1f
jmp 0x41ab0c
push 0
lea eax, [ebp - 0xc]
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 0x41aae9
cmp dword [ebp - 0xc], 0
je 0x41aae9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47d608]
test byte [eax + edi + 0x28], 0x48
je 0x41aac3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41aaae
mov byte [esi], dl
jmp 0x41aabf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47d608]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ab0c
cmp byte [ebp - 1], 0xa
jne 0x41aad2
cmp esi, ebx
jne 0x41aad2
mov byte [esi], 0xa
jmp 0x41ab0b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041b549
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ab0c
mov byte [esi], 0xd
jmp 0x41ab0b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47d608]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ab08
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ab0c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret