joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4027f4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ecx
xor eax, eax
push eax
push eax
push eax
push 0x402729
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
call fcn.00403d3d
push dword [esp + 4]
push ecx
push dword [esp + 0xc]
push ecx
push dword [esp + 0x14]
mov ecx, 0x4836d8
call fcn.0040285e
pop ecx
mov ecx, eax
call fcn.0040285e
pop ecx
mov ecx, eax
call fcn.0040285e
push eax
call fcn.00403c92
pop ecx
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x408657
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x408678
jl 0x40866f
test edi, edi
jne 0x408678
xor eax, eax
xor edx, edx
jmp 0x408739
cmp dword [ebx + 0x38], 0
je 0x40868d
push eax
push edi
push dword [ebp + 8]
call fcn.0040873f
jmp 0x408739
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4086d4
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4086d4
cmp eax, edi
jb 0x4086ae
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040b950
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4086da
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40872e
mov ecx, ebx
call fcn.00407eee
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x408719
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0041689b
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x40872e
jmp 0x4086ec
test edx, edx
je 0x40872e
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0041689b
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40b72e
Capabilities:
Parse pe header

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

Function at 0x41df31
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f398
push 0x42f390
push str.FlsAlloc
push 0x1e
call fcn.0041dd9e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41df65
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b144]
call esi
jmp 0x41df6b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x41f4b5
Capabilities:
Read file on windows

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

Function at 0x41f4c0
Capabilities:
Read file on windows

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

Function at 0x41f8ba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040b8a0
mov eax, dword [0x436040]
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.0041cb8f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41f8fc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41fa58
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042a250
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 + 0x484088]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00420a8a
mov ecx, dword [esi*4 + 0x484088]
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 0x41fa51
cmp eax, dword [edi + ecx + 0x24]
jne 0x41fa51
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 0x41fa51
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00420a8a
add esp, 0x14
test edx, edx
jl 0x41fa51
jg 0x41f9c7
test eax, eax
jb 0x41fa51
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41fa51
jl 0x41f9e1
cmp dword [ebp - 0x1008], eax
ja 0x41fa51
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41f9ff
test ebx, ebx
je 0x41fa38
cmp ecx, edi
jae 0x41fa38
mov al, byte [ecx]
cmp al, 0xd
jne 0x41fa19
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41fa25
cmp byte [ecx + 1], 0xa
jne 0x41fa25
inc ecx
jmp 0x41fa25
movzx eax, al
movsx eax, byte [eax + 0x436300]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41f9ff
cmp edx, ebx
jne 0x41f9ff
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41fa56
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040aa76
leave
ret
Function at 0x41ff28
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x484088]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ff68
cmp byte [ebx], 0xa
jne 0x41ff68
or byte [eax + edi + 0x28], 4
jmp 0x41ff6d
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x42006b
mov al, byte [edx]
cmp al, 0x1a
je 0x42004d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41ff9c
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41ffc1
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41ffcb
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41ff7e
jmp 0x42006b
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x420048
cmp dword [ebp - 0xc], 0
je 0x420048
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x484088]
test byte [eax + edi + 0x28], 0x48
je 0x420022
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42000d
mov byte [esi], dl
jmp 0x42001e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x484088]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42006b
cmp byte [ebp - 1], 0xa
jne 0x420031
cmp esi, ebx
jne 0x420031
mov byte [esi], 0xa
jmp 0x42006a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00420aa8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42006b
mov byte [esi], 0xd
jmp 0x42006a
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x484088]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420067
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42006b
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x420074
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x484088]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4200b7
cmp word [esi], dx
jne 0x4200b7
or byte [edi + eax + 0x28], 4
jmp 0x4200bc
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x42020f
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4201ef
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4200fe
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x420134
cmp eax, edx
jae 0x420140
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4200d6
jmp 0x42020f
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4201eb
cmp dword [ebp - 0x14], 0
je 0x4201eb
mov eax, dword [ebx*4 + 0x484088]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4201c3
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x42018c
mov word [esi], cx
jmp 0x4201bf
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x484088]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x484088]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x484088]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x42020f
pop ebx
cmp word [ebp - 4], bx
jne 0x4201d4
cmp esi, dword [ebp + 0xc]
jne 0x4201d4
mov word [esi], bx
jmp 0x42020c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00420aa8
add esp, 0x10
cmp word [ebp - 4], bx
je 0x42020f
push 0xd
jmp 0x420208
mov ecx, dword [ebx*4 + 0x484088]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420206
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42020f
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10035bb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x1008ba4c]
test eax, eax
jne 0x10035c19
push dword [0x1008a930]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
jne 0x10035c19
push esi
push 0x16c
call fcn.1005bb9b
add esp, 4
test eax, eax
je 0x10035be6
mov ecx, eax
call fcn.1005bb9b
mov esi, eax
jmp 0x10035be8
xor esi, esi
cmp byte [0x1008ba48], 0
jne 0x10035c02
mov ecx, esi
mov dword [0x1008ba4c], esi
call fcn.1001d780
mov eax, esi
pop esi
ret
push esi
push dword [0x1008a930]
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, esi
call fcn.1001d780
mov eax, esi
pop esi
ret

Function at 0x10035c20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x1008a930]
cmp eax, 0xffffffff
je 0x10035c76
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x10035c67
mov ecx, dword [0x1008ba4c]
xor eax, eax
cmp esi, ecx
cmove ecx, eax
mov dword [0x1008ba4c], ecx
mov ecx, esi
call fcn.1001d7b0
mov ecx, esi
call fcn.1001d750
push 0x16c
push esi
call fcn.1005bb9b
add esp, 8
push 0
push dword [0x1008a930]
call dword [sym.imp.kernel32.dll_TlsSetValue]
pop esi
ret
Function at 0x559a30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xfc000]
push edi
jmp 0x559a4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x559a51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x559a40
mov eax, 1
add ebx, ebx
jne 0x559a63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x559a74
jne 0x559a93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x559a93
dec eax
add ebx, ebx
jne 0x559a80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x559a58
add ebx, ebx
jne 0x559a8f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x559ae5
xor ecx, ecx
sub eax, 3
jb 0x559aab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x559b1a
sar eax, 1
mov ebp, eax
jmp 0x559ab6
add ebx, ebx
jne 0x559ab6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x559a84
inc ecx
add ebx, ebx
jne 0x559ac4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x559a84
add ebx, ebx
jne 0x559ad1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x559ac6
jne 0x559ae2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x559ac6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x559b04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x559af6
jmp 0x559a46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x559b04
add edi, ecx
jmp 0x559a46
pop esi
mov edi, esi
mov ecx, 0x40e1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x559b22
cmp byte [edi], 0x11
jne 0x559b22
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x559b27
lea edi, [esi + 0x152000]
mov eax, dword [edi]
or eax, eax
je 0x559b9f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1cd82c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1cd9d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x559b54
mov ecx, edi
jns 0x559b83
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1cd9d8]
or eax, eax
je 0x559b99
mov dword [ebx], eax
add ebx, 4
jmp 0x559b71
call dword [esi + 0x1cd9d4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x559bd0
cmp al, 0xef
ja 0x559bc3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x559ba5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x559bb2
mov ebp, dword [esi + 0x1cd9dc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x559c04
sub esp, 0xffffff80
jmp 0x420627
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x449004]
jne 0x401010
repz ret
jmp fcn.00401460

Function at 0x4082b5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004058a1
and dword [ebp - 4], 0
cmp dword [0x44b798], 0
mov ebx, eax
jne 0x408366
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408417
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408417
push eax
call fcn.0040582f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44b798], eax
call esi
push eax
call fcn.0040582f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44b79c], eax
call esi
push eax
call fcn.0040582f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44b7a0], eax
call esi
push eax
call fcn.0040582f
pop ecx
mov dword [0x44b7a8], eax
test eax, eax
je 0x408366
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040582f
pop ecx
mov dword [0x44b7a4], eax
mov eax, dword [0x44b7a4]
cmp eax, ebx
je 0x4083be
cmp dword [0x44b7a8], ebx
je 0x4083be
push eax
call fcn.004058aa
push dword [0x44b7a8]
mov esi, eax
call fcn.004058aa
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4083be
test edi, edi
je 0x4083be
call esi
test eax, eax
je 0x4083b5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4083b5
test byte [ebp - 0xc], 1
jne 0x4083be
or dword [ebp + 0x10], 0x200000
jmp 0x4083f7
mov eax, dword [0x44b79c]
cmp eax, ebx
je 0x4083f7
push eax
call fcn.004058aa
pop ecx
test eax, eax
je 0x4083f7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4083f7
mov eax, dword [0x44b7a0]
cmp eax, ebx
je 0x4083f7
push eax
call fcn.004058aa
pop ecx
test eax, eax
je 0x4083f7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44b798]
call fcn.004058aa
pop ecx
test eax, eax
je 0x408417
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408419
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43b637
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x43b3c1
mov eax, ebx
mov ebx, eax
call fcn.0043b677
push 0x9bf14dc5
pop ebx
xor dword [edi], ecx
and ebx, eax
sub ebx, 0x9d29157c
dec eax
inc edi
add eax, 0x91a5d46f
add eax, eax
cmp edi, esi
jne fcn.0043b637
add ebx, 0xd7b79e4
add ebx, 0xebf06778
inc eax
ret
Function at 0x4011e0
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
sub esp, 0xc0
push ebx
push ebp
push esi
push edi
mov ecx, 0x2e
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
push eax
mov dword [esp + 0x14], eax
call fcn.00433c5c
push eax
call fcn.00433c2d
mov ebp, dword [esp + 0xe0]
mov esi, dword [esp + 0xdc]
add esp, 8
mov dword [ebp], 0x436bacec
mov dword [ebp + 4], 0x766c5bce
push esi
mov dword [ebp + 0x540], 0x1e6ce73b
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401246
mov eax, 0x80
push 0
push eax
push 2
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40134c
xor esi, esi
call fcn.00433c3a
cdq
mov ecx, 0xff
idiv ecx
inc esi
cmp esi, 0xb8
mov byte [esp + esi + 0x13], dl
jl 0x401268
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x1c]
push 0xb9
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x10], 0xb9
jne 0x401345
test eax, eax
je 0x401345
add ebp, 0x2c
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
add esi, 2
cmp esi, 0x512
jge 0x4012e6
call fcn.00433c3a
cdq
mov ecx, 0xff
idiv ecx
inc esi
cmp esi, 0x512
mov byte [esi + ebp - 1], dl
jl 0x4012cc
push 0x514
push ebp
call section..text
mov eax, dword [esp + 0xe0]
add esp, 8
lea edx, [esp + 0x10]
push 0
push edx
push 0x544
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x514
push ebp
mov esi, eax
call fcn.004010f0
mov eax, dword [esp + 0x18]
add esp, 8
cmp eax, 0x544
jne 0x401345
test esi, esi
je 0x401345
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc0
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc0
ret
Function at 0x401660
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2ff4
call fcn.00433e10
push ebx
push ebp
push esi
xor ebx, ebx
xor esi, esi
push edi
mov dword [esp + 0x10], esi
push esi
lea eax, [esp + 0x28]
push str..PhysicalDrive_d
push eax
call fcn.00433d38
add esp, 0xc
lea ecx, [esp + 0x24]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40186f
xor edx, edx
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0x8f4]
mov dword [esp + 0x18], edx
push ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x20], edx
push eax
lea ecx, [esp + 0x8fc]
mov dword [esp + 0x28], edx
push 0x2710
push ecx
lea edx, [esp + 0x28]
push 0xc
push edx
push 0x2d1400
push ebp
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x401798
mov eax, dword [esp + 0x90c]
lea ecx, [esp + eax + 0x8f4]
push ecx
call fcn.004014a0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x50c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [0x45eeb0]
and ecx, 3
cmp al, bl
rep movsb byte es:[edi], byte [esi]
jne 0x40179e
movsx ecx, byte [esp + 0x50c]
push ecx
call fcn.00433ddf
add esp, 4
test eax, eax
jne 0x40176f
movsx edx, byte [esp + 0x51f]
push edx
call fcn.00433ddf
add esp, 4
test eax, eax
je 0x40179e
lea edi, [esp + 0x50c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x45eeb0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40179e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0x8f4]
push ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x8f8]
push ecx
push 0x2710
push edx
push ebx
push ebx
push 0x2d0c10
push ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40185e
lea edi, [esp + 0x904]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x124]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [0x45eeb0]
and ecx, 3
cmp al, bl
rep movsb byte es:[edi], byte [esi]
jne 0x401864
movsx ecx, byte [esp + 0x124]
push ecx
call fcn.00433ddf
add esp, 4
test eax, eax
jne 0x401835
movsx edx, byte [esp + 0x137]
push edx
call fcn.00433ddf
add esp, 4
test eax, eax
je 0x401864
lea edi, [esp + 0x124]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x45eeb0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x401864
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
inc esi
cmp esi, 4
mov dword [esp + 0x10], esi
jl 0x401676
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2ff4
ret
Function at 0x401d90
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0xd14
push edi
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x518]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0x118]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
lea eax, [esp + 0x14]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
pop edi
je 0x401e24
mov cx, word [esp + 0x10]
mov dl, byte [esp + 0x12]
mov word [esp], cx
lea eax, [esp + 0x114]
mov byte [esp + 2], dl
push 0x400
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x528]
push 0x800
lea edx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x401e24
mov eax, dword [esp + 4]
xor edx, edx
mov ecx, eax
or ecx, edx
jne 0x401e2b
mov eax, 0xb2445456
xor edx, edx
add esp, 0xd14
ret