joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4698c3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4698ea
call fcn.0046e3a1
mov dword [eax], esi
call fcn.0046e38e
push 0x16
pop esi
mov dword [eax], esi
call fcn.0046e99c
mov eax, esi
jmp 0x46993f
test dword [ebp + 0xc], 0xfffffff9
jne 0x4698d0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x469917
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046e3b4
pop ecx
call fcn.0046e38e
mov eax, dword [eax]
jmp 0x46993f
test al, 0x10
jne 0x46993d
test al, 1
je 0x46993d
test byte [ebp + 0xc], 2
je 0x46993d
call fcn.0046e3a1
mov dword [eax], 5
call fcn.0046e38e
mov dword [eax], 0xd
jmp 0x46990e
xor eax, eax
pop esi
pop ebp
ret

Function at 0x47cc60
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4bfcf0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0046dd74
and dword [ebp - 0x14], 0
cmp dword [0x4c3760], 0
mov dword [ebp - 0x18], eax
jne 0x47cd13
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x47cdbb
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a93b8
push ebx
call edi
test eax, eax
je 0x47cdbb
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4a93a8
push ebx
mov dword [0x4c3760], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4c3764], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4c3768], eax
call edi
push eax
call esi
mov dword [0x4c3770], eax
test eax, eax
je 0x47cd13
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4c376c], eax
mov eax, dword [0x4c376c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x47cd6c
cmp dword [0x4c3770], ecx
je 0x47cd6c
push eax
call esi
push dword [0x4c3770]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x47cd6c
test ebx, ebx
je 0x47cd6c
call edi
test eax, eax
je 0x47cd63
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x47cd63
test byte [ebp - 8], 1
jne 0x47cd6c
or dword [ebp + 0x10], 0x200000
jmp 0x47cd9f
mov eax, dword [0x4c3764]
cmp eax, dword [ebp - 0x18]
je 0x47cd9f
push eax
call esi
test eax, eax
je 0x47cd9f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x47cd9f
mov eax, dword [0x4c3768]
cmp eax, dword [ebp - 0x18]
je 0x47cd9f
push eax
call esi
test eax, eax
je 0x47cd9f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4c3760]
call esi
test eax, eax
je 0x47cdbb
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x47cdbd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00466576
leave
ret
Function at 0x481383
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4c3804], 0
push esi
push edi
jne 0x4812f9
call fcn.00481265
test eax, eax
je 0x48133e
mov eax, dword [0x4c3804]
cmp eax, 1
jne 0x48131a
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x48133e
jmp 0x481380
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x481380
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x481342
xor eax, eax
jmp 0x481380
mov eax, dword [esi]
push dword [0x4c3804]
call edi
mov edi, eax
test edi, edi
je 0x481364
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x481380
lea edi, [esi + 0xff0]
push esi
push dword [0x4c3804]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x48136a
mov eax, esi
pop edi
pop esi
ret
jmp 0x4812e5
Function at 0x4228f3
Capabilities:
Encode data using xor

Disassembly:
aas
popfd
fsub dword [edi - 0x73055e78]
push edi
inc ebp
inc esi
cmp cl, 0x5c
enter 0xfffffffffffff9ff, 0x31
push ds
xor dword [esi], ebx
cmp ah, byte [ebx - 0x71]
inc edi
leave
pop edx
inc dword [ecx + 0x42]
das
lea ecx, [edi + edi*8]
pop esi
mov ecx, 0x641fda64
jnp 0x422904
push esi
sar byte [edi - 0x7d], cl
insd dword es:[edi], dx
adc dword [edi - 0x27], ecx
mov word [ecx], ss
or eax, 0xc2f9072e
popfd
int3

Function at 0x437dd3
Capabilities:
Encode data using xor

Disassembly:
add edx, dword [ebx - 0x19]
xor byte [ebx + 0x10], 0x66
xchg esp, eax
push ebx
out 0x80, eax
jae 0x437de9
xchg sp, ax
bound edx, qword [edi + eax*2 - 0x4f]
or dl, byte [ecx + 0x3c]
mov ebx, 0xe38f03b1
rcl byte [esi - 0x43], 0x3f
lds edx, [0x37d4c2fa]
inc edx
xchg ebx, eax
or al, 0x7c
test byte [esi], ch
sub ecx, edx
mov ebp, 0xfa15c53f
ret 0x37d4
sub ecx, edx
dec ebp
push edi
mov esp, 0x701c1412
sal ebp, 1
cmc
in al, 0x14
xor byte [edx + 0x718061c1], dh
stosd dword es:[edi], eax
daa
xor byte [ecx - 0x55], 0x27
jbe 0x437dd4
scasd eax, dword es:[edi]
adc dword [edi], esi
in al, dx
dec eax
cdq
mov ebp, cs
loope 0x437df6
push ebx
mov byte [0x58365034], al
push ecx
wait
movsb byte es:[edi], byte [esi]
or byte [esi], 0x39
loope 0x437e09
add dh, bl
xchg edi, eax
movsb byte es:[edi], byte [esi]
mov bh, 0xb4
inc ecx
xchg dword [edi], eax
je 0x437e64
mov ah, bl
push esi
sbb byte [ecx - 0x1c], al
sbb byte [eax + 0x24], bl
inc eax
xchg dword [edx + 5], esp
push eax
invalid
int1
push cs
pushal
push edi
mov eax, 0x9188b474
enter 0x4a95, 0xffffffffffffffcf
sbb eax, 0x46efb3cf
mov ah, 0x97
fcomp dword [edi + 0x7d]
fild word [edi + 0x32]
xor eax, edx
push ds
pop edx
salc
lodsb al, byte [esi]
retf 0x7331
Function at 0x450a33
Capabilities:
Encode data using xor

Disassembly:
bound ecx, qword [edi]
invalid
cmp byte [ecx], dh
xlatb
ret 0xa552
ret
jo 0x450a62
jne 0x450a5d
adc edx, ebx
xor al, 0x47
out dx, al
xchg byte [ecx + 0x25], bh
into
js 0x450aa8
imul ecx, ecx, 0x9a2d2128
fld xword [edi]
sub eax, 0xe02fdb9a
cmpsb byte [esi], byte es:[edi]
loopne 0x4509df
out 0x16, al
fyl2xp1
inc esi
xchg ebx, eax
loop 0x450ab2
jl 0x450aba
dec edi
bound eax, qword [ecx - 0x3dabfa13]
adc dword [ecx + 0x7f], edx
mov esi, 0xeff4be17
loop 0x450a09
mov esi, 0xa7e2eff4
daa
dec edi
jo 0x4509f4
paddsw mm4, mm3
daa
push ds
invalid
push ds
sub byte [ecx + ebp*2 - 0x68], 0xe6
mov eax, 0xd9dd981d
mov al, byte [0x301879b]
xchg bl, ah
xchg ecx, eax
jecxz 0x450a1f
daa
adc ah, ah
jne 0x450a58
pushfd
lahf
mov al, 0x66
mov dword [eax + eax*4 + 7], ebx
test byte [edx], al
sahf
or dword [ecx], esp
pop es
ljmp 0x5a54
pop edx
xor eax, 0x193740c8
push esi
invalid
mov ebx, 0x704b7520
dec ebp
mov dl, 0x58
and edi, dword [esi - 0x183b9b1f]
add dword [esi], esp
pop ds
je 0x450b2a
je 0x450a78
enter 0xffffffffffffad20, 0
inc esi
xchg edx, eax
out dx, al
adc byte [eax], al
fmulp st(3)
aas
jmp 0x450b52
mov esi, 0xae95e9db
ja 0x450b4b
loopne 0x450b7d
loopne 0x450b7f
ror dh, 1
rcl byte [ebx + 0x682f52c2]
inc byte [edi]
or byte [esi + 0x40], 0x51
lodsd eax, dword [esi]
scasb al, byte es:[edi]
push esp
loope 0x450b46
sub edi, dword [eax]
ret
xchg edi, eax
fcmovbe st(0), st(3)
and eax, 0xc3a5a4bb
fisttp word [0x65345f11]
cli
sub al, 0xd6
xchg ecx, eax
wait
pop edx
xchg edi, eax
cmp bh, byte [ebx]
cmp byte [eax + eax - 0x29], al
adc byte [0x1a9c7b43], cl
mov dh, 0x5d
mov ah, 0x94
aaa
nop
rcr byte [edi], cl
jne 0x450b89
ret
call 0xd0c06d70
out 0x90, eax
nop
dec eax
invalid
loopne 0x450bc7
invalid
xchg byte [0xeb558dd5], bl
pop ebp
inc eax
sahf
pop eax
xchg ecx, eax
dec ebx
xlatb
sbb eax, dword [0xc1a6d66b]
iretd
Function at 0x4bb4c1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c3420
cmp edx, dword [eax]
je 0x4bb4e3
add eax, 8
inc ecx
cmp eax, 0x4c34b0
jl 0x4bb4d4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c3420]
jne 0x4bb611
mov eax, dword [0x4c7dac]
cmp eax, 1
je 0x4bb5eb
test eax, eax
jne 0x4bb514
cmp dword [0x4c3348], 1
je 0x4bb5eb
cmp edx, 0xfc
je 0x4bb611
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb54b
lea eax, [ebp - 0x1a4]
push 0x4c0960
push eax
call fcn.004bbea0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bc330
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb58e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bc330
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c095c
push edi
call fcn.004be200
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c0940
push eax
call fcn.004bbea0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bbeb0
lea eax, [ebp - 0xa0]
push 0x4c093c
push eax
call fcn.004bbeb0
push dword [esi + 0x4c3424]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bbeb0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c0914
push eax
call fcn.004be174
add esp, 0x2c
pop edi
jmp 0x4bb611
lea eax, [ebp + 8]
lea esi, [esi + 0x4c3424]
push 0
push eax
push dword [esi]
call fcn.004bc330
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 0x419120
Capabilities:
Enumerate pe sections

Disassembly:
inc esi
adc al, 0x83
inc ebp
invalid
add byte [eax], al
mov edi, dword [eax + 0x3c]
add edi, eax
movzx eax, word [edi + 0x14]
lea esi, [eax + edi + 0x18]
mov dword [ebp - 0x44], esi
call fcn.00418f26
jo 0x419186
nop
pop es
movzx eax, word [edi + 6]
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 8], eax
call fcn.00418f26
scasb al, byte es:[edi]
jne 0x4190e9
mov ax, word [edi + 6]
cmp ax, bx
jbe 0x419180
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x41917a
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x41916b
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.00418f26
xchg byte [0xffff8d82], dh
inc ebp
test al, 0x50
call fcn.00418f36
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.00418eeb
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x419214
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00418f26
xor eax, 0x8dccae12
inc ebp
rcl byte [eax - 0x18], 0xc5
cld
invalid
Function at 0x419610
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4195fd
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x41961b
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
add byte [ebp + 0xf8c784], cl
add byte [eax], al
add byte [ebp + 0xf8c784], cl
add byte [eax], al
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x419679
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x419660
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x419669
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x419673
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x419655
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4195df
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4196c6
dec eax
je 0x4196bd
sub eax, 3
je 0x4196b4
mov dword [ebp - 4], 0x40
jmp 0x4196e3
mov dword [ebp - 4], 4
jmp 0x4196c9
mov dword [ebp - 4], 0x20
jmp 0x4196c9
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
invalid
Function at 0x419800
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.00418f36
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00418eeb
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], pe_nt_image_headers32
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.00418f36
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00418eeb
add esp, 0xc
mov dword [ebp - 0x340], eax
invalid
Function at 0x42bd70
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
push edi
lea edi, [esi + eax]
cmp esi, edi
jae 0x42bda6
mov al, byte [esi]
push eax
call fcn.00439730
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x42bd88
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x4352d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x608], 0
je 0x43531f
push esi
push 1
push edi
call fcn.004281a0
mov esi, dword [edi + 0x608]
add esp, 8
mov ecx, esi
push dword [edi + 0x59c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [0x49b388]
call esi
push 0
push edi
mov esi, eax
call fcn.004281a0
add esp, 0x1c
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x435355
push dword [edi + 0x598]
lea eax, [eax + eax*2]
push 1
add eax, 0x49eac8
push 2
push eax
call fcn.00476df0
push dword [edi + 0x598]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00476df0
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

Function at 0x4356e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4bd0c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ecx + eax*4 + 0x420]
push edi
mov edi, dword [ebp + 0x10]
push eax
push ecx
mov dword [ebp - 0x108], ecx
call fcn.00435bb0
add esp, 8
push 0
push dword [ebp + 0x14]
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x43579a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x43575c
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e338
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x104]
push eax
push edi
call fcn.00422b90
push eax
mov eax, dword [ebp - 0x108]
push str.Send_failure:__s
push dword [eax]
call fcn.00435360
mov eax, dword [ebp - 0x108]
add esp, 0x18
mov eax, dword [eax]
mov dword [eax + 0xd34], edi
mov eax, esi
mov dword [ebx], 0x37
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046e338
mov esp, ebp
pop ebp
ret
Function at 0x44af60
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.0043f310
mov esi, dword [ebp + 0xc]
add esp, 4
mov edi, dword [ebp + 8]
movups xmm0, xmmword [eax]
push 1
push esi
push edi
movups xmmword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x44afdb
nop
lea eax, [ebp - 0x20]
push eax
call fcn.0043f310
movups xmm0, xmmword [ebp - 0x10]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.0043f3c0
add esp, 0x20
test edx, edx
ja 0x44afe3
jb 0x44afc5
cmp eax, 0x3e8
ja 0x44afe3
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x44af90
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x489d2a
Capabilities:
Read file on windows

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

Function at 0x489d35
Capabilities:
Read file on windows

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

Function at 0x48fe28
Capabilities:
Set environment variable

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

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x59b370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x59b38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x5c4074
push ecx
mov edi, eax
call fcn.005af198
mov esi, eax
add esp, 8
test esi, esi
jne 0x59b3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.005af02e
push esi
call fcn.005aefb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x59e850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x59e8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x5c9720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x59e8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.005af1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x59e8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x5c9720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x59e92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.005b0082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x59e957
mov word [eax], si
add eax, 2
push eax
call fcn.005b0030
add esp, 4
jmp 0x59e959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x59e8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x59e8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x59eff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret