joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5004ed
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.DLL_exit]
add esp, 4
leave
ret 4

Function at 0x501911
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x18
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 0xf
je 0x50193f
cmp eax, 5
je 0x501976
mov dword [ebp - 0x20], 0
jmp 0x501a2b
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
push eax
call fcn.0044b276
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
push eax
call fcn.0044b276
pop edx
xchg edx, eax
cmp eax, edx
sete al
xor ah, ah
cwde
mov dword [ebp - 0x20], eax
jmp 0x501a2b
mov dword [ebp - 0x20], 0
push dword [ebp + 8]
call fcn.0043d9e6
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
call fcn.0043da1c
mov dword [ebp - 0x14], eax
jmp 0x501a01
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
and eax, 0xff
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, 0xf
je 0x5019ba
mov eax, dword [ebp - 0x1c]
cmp eax, 0x11
je 0x5019ba
xor eax, eax
jmp 0x5019bd
xor eax, eax
inc eax
cmp eax, 0
je 0x5019f6
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
push eax
call fcn.0044b276
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
push eax
call fcn.0044b276
pop edx
xchg edx, eax
cmp eax, edx
sete al
xor ah, ah
cwde
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
xor al, 1
cmp eax, 0
je 0x501a19
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
cmp eax, edx
jae 0x501a19
jmp 0x501a1d
xor eax, eax
jmp 0x501a20
xor eax, eax
inc eax
cmp eax, 0
jne 0x501995
mov eax, dword [0x53dcc4]
mov dword [ebp - 0x18], eax
mov eax, 4
xchg edx, eax
mov eax, dword [ebp - 0x18]
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
xchg edx, eax
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], edx
leave
ret 8

Function at 0x50241e
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x14
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 5
je 0x50244c
cmp eax, 0xf
je 0x50247a
mov eax, 0
jmp 0x5026c1
push dword [ebp + 8]
call fcn.0043d9e6
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
call fcn.0043d912
mov dword [ebp - 0x10], eax
mov eax, 0
mov edx, dword [ebp - 0x10]
cmp eax, edx
jne 0x502478
mov eax, 0
jmp 0x5026c1
jmp 0x50248c
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, 1
mov dword [ebp - 0x10], 1
mov eax, 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x10]
cmp eax, 0
jle 0x5026be
Function at 0x504762
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x28
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0xc], 0
mov eax, 1
mov dword [ebp - 0x28], 1
mov eax, 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [0x5489b0]
dec eax
mov edx, eax
mov eax, dword [0x5489ac]
add eax, edx
mov dword [ebp - 0x30], eax
jmp 0x504920
call fcn.005042c6
xor al, 1
cmp eax, 0
je 0x5047c2
jmp 0x504929
mov eax, dword [0x5489ac]
mov edi, dword [0x5489b0]
dec edi
mov al, byte [eax + edi]
mov byte [ebp - 0x2c], al
mov al, byte [ebp - 0x2c]
cmp al, 0x3c
jne 0x5047e7
mov dword [ebp - 0xc], 1
jmp 0x504920
mov al, byte [ebp - 0x2c]
cmp al, 0x30
jb 0x5047f7
mov al, byte [ebp - 0x2c]
cmp al, 0x39
ja 0x5047f7
jmp 0x5047fb
xor eax, eax
jmp 0x5047fe
xor eax, eax
inc eax
cmp eax, 0
je 0x504830
mov eax, dword [ebp - 0x10]
push edx
mov edx, 0xa
mov ecx, edx
imul ecx
pop edx
mov dword [ebp - 0x10], eax
mov al, byte [ebp - 0x2c]
sub al, 0x30
mov edx, eax
mov eax, dword [ebp - 0x10]
and edx, 0xff
add eax, edx
mov dword [ebp - 0x10], eax
jmp 0x504920
mov al, byte [ebp - 0x2c]
cmp al, 0x3b
jne 0x504858
mov eax, dword [ebp - 0x10]
xchg edx, eax
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
dec edi
mov dword [eax + edi*4], edx
mov eax, 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
mov al, byte [ebp - 0x2c]
cmp al, 0x40
jb 0x504876
mov al, byte [ebp - 0x2c]
cmp al, 0x7e
ja 0x504876
mov al, byte [ebp - 0x2c]
cmp al, 0x3c
je 0x504876
mov al, byte [ebp - 0x2c]
cmp al, 0x5b
je 0x504876
jmp 0x50487a
xor eax, eax
jmp 0x50487d
xor eax, eax
inc eax
cmp eax, 0
je 0x504914
mov eax, dword [ebp - 0x10]
xchg edx, eax
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
dec edi
mov dword [eax + edi*4], edx
mov eax, 0
mov dword [ebp - 0x10], 0
mov al, byte [ebp - 0x2c]
cmp al, 0x4d
je 0x5048cb
cmp al, 0x6d
je 0x5048e4
cmp al, 0x52
je 0x5048fd
mov eax, dword [0x5489b0]
dec eax
mov edx, eax
mov eax, dword [0x5489ac]
add eax, edx
push eax
push dword [ebp - 0x30]
call fcn.00504501
jmp 0x50490f
mov eax, dword [ebp - 0x28]
cmp eax, 3
jne 0x5048e2
push dword [ebp - 0x24]
push 0
push dword [ebp - 0xc]
call fcn.005042f7
jmp 0x50490f
mov eax, dword [ebp - 0x28]
cmp eax, 3
jne 0x5048fb
push dword [ebp - 0x24]
push 1
push dword [ebp - 0xc]
call fcn.005042f7
jmp 0x50490f
mov eax, dword [ebp - 0x28]
cmp eax, 2
jne 0x50490f
push dword [ebp - 0x24]
call fcn.005044dc
jmp 0x504929
mov al, byte [ebp - 0x2c]
cmp al, 0x1b
jne 0x504920
jmp 0x504929
xor eax, eax
inc eax
jne 0x5047af
leave
ret
Function at 0x507cfd
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x24
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add eax, edx
mov dword [ebp + 8], eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004429fd
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
and edx, 0xff
cmp eax, 0x5b
je 0x507d3a
mov eax, 0
jmp 0x50862d
mov eax, 1
mov dword [ebp - 0x10], 1
mov eax, 1
mov dword [ebp - 0x14], 1
mov eax, 0
mov dword [ebp - 0x18], 0
mov eax, 0
mov dword [ebp - 0x1c], 0
mov eax, 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add eax, edx
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
Function at 0x513110
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x10
mov eax, 0
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
push 1
push dword [0x548df0]
push dword [0x515008]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edx, eax
mov eax, 0
cmp eax, edx
jne 0x513155
mov eax, 0xffffffff
jmp 0x513297
mov eax, dword [0x548df0]
mov al, byte [eax]
and eax, 0xff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
and eax, 0x80
cmp eax, 0
jne 0x513181
mov eax, 1
mov dword [ebp - 0x14], 1
jmp 0x5131e6
mov eax, dword [ebp - 0x10]
and eax, 0xe0
cmp eax, 0xc0
jne 0x51319e
mov eax, 2
mov dword [ebp - 0x14], 2
jmp 0x5131e6
mov eax, dword [ebp - 0x10]
and eax, 0xf0
cmp eax, 0xe0
jne 0x5131bb
mov eax, 3
mov dword [ebp - 0x14], 3
jmp 0x5131e6
mov eax, dword [ebp - 0x10]
and eax, 0xf8
cmp eax, 0xf0
jne 0x5131d8
mov eax, 4
mov dword [ebp - 0x14], 4
jmp 0x5131e6
call fcn.005131dd
Function at 0x5136c1
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x18
push 0
call dword [sym.imp.MSVCRT.DLL_fflush]
add esp, 4
mov eax, dword [ebp + 0xc]
push edx
mov edx, dword [0x548e48]
mov ecx, edx
cdq
idiv ecx
pop edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push edx
mov edx, dword [0x548e48]
mov ecx, edx
cdq
idiv ecx
mov eax, edx
bt eax, 0x1f
jae 0x51370a
bt ecx, 0x1f
jae 0x513708
neg ecx
add eax, ecx
pop edx
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
call fcn.005139a0
cmp eax, 0
je 0x513730
mov eax, dword [0x548e48]
mov edx, dword [ebp - 0xc]
sub eax, edx
cmp eax, 1
jne 0x513730
jmp 0x513734
xor eax, eax
jmp 0x513737
xor eax, eax
inc eax
cmp eax, 0
je 0x513751
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, 0
mov dword [ebp - 0xc], 0
mov eax, 0
mov edx, dword [ebp - 0xc]
cmp eax, edx
jne 0x513769
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
cmp eax, edx
jne 0x513769
jmp 0x51376d
xor eax, eax
jmp 0x513770
xor eax, eax
inc eax
cmp eax, 0
je 0x51379c
mov eax, 0
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
push 1
push 0x54aeb0
push dword [0x515004]
call dword [sym.imp.KERNEL32.DLL_WriteConsoleW]
mov eax, dword [0x548e60]
and eax, 0xffff
mov dword [ebp - 0x1c], eax
mov eax, dword [0x548e60]
shr eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
add eax, edx
shl eax, 0x10
mov edx, dword [ebp - 0xc]
or eax, edx
push eax
push dword [0x515004]
call dword [sym.imp.KERNEL32.DLL_SetConsoleCursorPosition]
mov eax, dword [ebp + 0x10]
push edx
mov edx, dword [0x548e48]
mov ecx, edx
cdq
idiv ecx
pop edx
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [0x548e4c]
mov edx, dword [ebp - 0x18]
sub eax, edx
mov edx, eax
mov eax, dword [ebp - 0x20]
sub eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, 0
jle 0x513834
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
sub eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, 0
jge 0x513824
mov eax, 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
shl eax, 0x10
mov edx, dword [ebp - 0x1c]
or eax, edx
mov dword [0x548e60], eax
mov eax, dword [ebp + 0x10]
push edx
mov edx, dword [0x548e48]
mov ecx, edx
cdq
idiv ecx
pop edx
mov edx, eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [0x548df4], eax
leave
ret 0xc
Function at 0x513d1d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
and eax, 0x1f
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, 2
jge 0x513d58
mov eax, 2
mov dword [ebp - 0xc], 2
push dword [ebp + 8]
call fcn.004425f7
push eax
push dword [ebp + 0xc]
call fcn.004425f7
pop edx
xchg edx, eax
add eax, edx
push eax
push dword [ebp - 0xc]
pop eax
bsr eax, eax
pop edx
xchg edx, eax
mov cl, dl
shl eax, cl
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
shl eax, 2
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [0x548e44]
cmp eax, edx
jle 0x513dfa
mov eax, dword [ebp - 0x14]
shl eax, 1
mov dword [0x548e44], eax
push dword [0x548dfc]
call dword [sym.imp.MSVCRT.DLL_free]
add esp, 4
push dword [0x548e44]
call dword [sym.imp.MSVCRT.DLL_malloc]
add esp, 4
mov dword [0x548dfc], eax
mov eax, 0
mov edx, dword [0x548dfc]
cmp eax, edx
jne 0x513dfa
push 0
push dword [ebp - 0x14]
push 2
push 0
push str.Cannot_allocate_memory:_init_buffer:
push 6
push 0x18
lea esi, [esp + 4]
push esi
push 2
call fcn.004219c6
push 0
call dword [sym.imp.MSVCRT.DLL_exit]
add esp, 4
mov eax, dword [0x548dfc]
mov dword [0x548e00], eax
leave
ret 8

Function at 0x514cba
Capabilities:
Set console window title
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 8
push dword [ebp + 8]
call fcn.00442639
push eax
call dword [sym.imp.KERNEL32.DLL_SetConsoleTitleA]
mov dword [ebp - 0xc], eax
mov eax, 0
mov edx, dword [ebp - 0xc]
cmp eax, edx
jne 0x514d04
push 0
push str.SetConsoleTitle_failed_
push 6
push 0xc
lea esi, [esp + 4]
push esi
push 1
call fcn.004219c6
push 0
call dword [sym.imp.MSVCRT.DLL_exit]
add esp, 4
call fcn.005138bc
call fcn.0051397f
push 5
push dword [0x547944]
call fcn.0044c49f
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov edx, eax
mov eax, 0
cmp eax, edx
je 0x514d4a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov edx, eax
mov eax, 0
cmp eax, edx
je 0x514d4a
xor eax, eax
jmp 0x514d4d
xor eax, eax
inc eax
cmp eax, 0
je 0x514d72
mov eax, 0x50
xchg edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], edx
mov eax, 0x32
xchg edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], edx
leave
ret 4
Function at 0x401120
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [esp + 4]
test edx, edx
je 0x401164
mov ax, word [edx]
or ecx, 0xffffffff
cmp ax, 0x5a4d
jne 0x401136
xor ecx, ecx
test ax, ax
jne 0x401142
mov ecx, 1
jmp 0x401146
test ecx, ecx
jl 0x401164
mov eax, dword [edx + 0x3c]
add eax, edx
test ecx, ecx
jne 0x40115a
cmp dword [eax], 0x4550
je 0x401166
xor eax, eax
ret
cmp ecx, 1
jne 0x401166
cmp dword [eax], 0
je 0x401166
xor eax, eax
ret

Function at 0x401660
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10c
mov ecx, dword [esp + 0x110]
push ebx
push esi
mov esi, dword [esp + 0x11c]
push edi
lea eax, [esp + 0x14]
push 0x104
push eax
push ecx
call dword [esi + 0x14]
push 0
push 0x80
push 3
push 0
push 1
lea edx, [esp + 0x28]
push 0x80000000
push edx
call dword [esi + 0x18]
mov ebx, eax
xor eax, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x10], ebx
setne al
mov edi, eax
mov dword [esp + 0xc], 0
test edi, edi
je 0x4016d6
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [esi + 0x1c]
xor ecx, ecx
mov dword [esp + 0xc], eax
test eax, eax
setne cl
mov edi, ecx
test edi, edi
push ebp
je 0x40179b
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
push 4
push edx
call dword [esi + 0x20]
mov ebp, eax
xor eax, eax
test ebp, ebp
setne al
mov edi, eax
test edi, edi
je 0x401793
mov ecx, dword [esp + 0x120]
push ecx
call fcn.00401120
xor edx, edx
mov esi, dword [eax + 0x54]
mov dx, word [eax + 0x14]
xor ecx, ecx
mov cx, word [eax + 6]
add esp, 4
lea edi, [edx + eax + 0x18]
xor edx, edx
test ecx, ecx
jle 0x40173f
lea eax, [edi + 0x10]
cmp dword [eax + 4], esi
ja 0x40173f
mov ebx, dword [eax]
add eax, 0x28
add esi, ebx
inc edx
cmp edx, ecx
jl 0x40172e
mov eax, dword [esp + 0x12c]
mov ebx, dword [esp + 0x128]
shl eax, 5
add eax, esi
add eax, ebp
push eax
push ebx
call fcn.004017c0
mov edi, eax
add esp, 8
test edi, edi
je 0x401788
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
push ecx
mov ecx, dword [ebx + 0xc]
add eax, esi
mov esi, dword [esp + 0x124]
add eax, ebp
push edx
add ecx, esi
push eax
push ecx
call fcn.00401820
add esp, 0x10
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x124]
test ebp, ebp
je 0x40179b
push ebp
call dword [esi + 0x24]
mov eax, dword [esp + 0x10]
pop ebp
test eax, eax
je 0x4017a8
push eax
call dword [esi + 0x28]
cmp ebx, 0xffffffff
je 0x4017b1
push ebx
call dword [esi + 0x28]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x10c
ret

Function at 0x4017c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebx
push ebp
mov edx, dword [eax]
lea ebp, [ecx + 4]
push esi
mov dword [ecx], edx
lea esi, [eax + 4]
mov ebx, ebp
push edi
mov edi, dword [eax]
xor ecx, ecx
sub ebx, esi
mov eax, dword [esi]
add esi, 4
mov edx, eax
sub eax, ecx
xor edx, edi
add eax, edi
mov edi, ecx
mov dword [ebx + esi - 4], edx
imul edi, ecx
xor eax, edi
inc ecx
cmp ecx, 7
mov edi, eax
jl 0x4017de
mov ecx, dword [ebp]
xor eax, eax
pop edi
cmp ecx, 0x4e4e4f4b
pop esi
pop ebp
sete al
pop ebx
ret
Function at 0x401820
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push ebx
mov ebx, eax
not eax
shr ebx, 2
add edx, eax
xor eax, eax
push esi
mov esi, dword [esp + 0x10]
test ebx, ebx
jle 0x401864
push ebp
mov ebp, dword [esp + 0x10]
push edi
sub ebp, esi
mov edi, dword [esi]
add esi, 4
mov ecx, edi
add edi, eax
xor ecx, edx
add edi, edx
mov edx, eax
mov dword [esi + ebp - 4], ecx
imul edx, eax
xor edx, edi
inc eax
cmp eax, ebx
jl 0x401845
pop edi
pop ebp
pop esi
pop ebx
ret
Function at 0xf0097e9
Capabilities:
Create thread
Resume thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 8
call fcn.0f009d40
mov esi, eax
test esi, esi
pop ecx
je 0xf009844
mov eax, dword [ebp + 0x10]
push edi
push dword [ebp + 0x1c]
mov dword [esi], eax
mov eax, dword [ebp + 0x14]
push 4
push esi
push 0xf009793
push dword [ebp + 0xc]
mov dword [esi + 4], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0xf00983a
call fcn.0f05d1a4
test byte [ebp + 0x18], 4
jne 0xf009841
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0xf009841
push esi
call fcn.0f008a60
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x18

Function at 0xf00a2e2
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0xf0ad034]
push ebx
push esi
mov esi, dword [ebp + 8]
and dword [esi + 4], 0
and dword [esi], 0
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x440], eax
push edi
lea eax, [ebp - 0x444]
push eax
mov word [ebp - 0x442], 0x20c
call fcn.0f009f4a
push edi
call sym.ntvdm.exe_IsCdRomFile
mov ebx, dword [ebp + 0x10]
test bl, 8
mov dword [ebp - 0x43c], eax
je 0xf00a38b
push ebx
push esi
push edi
call fcn.0f08d07c
test eax, eax
je 0xf00a37d
cmp bx, 8
je 0xf00a3fc
push 0
push 0
push ebx
lea eax, [ebp - 0x210]
push eax
call fcn.0f009fab
test eax, eax
je 0xf00a3fc
mov ecx, dword [ebp - 0x43c]
mov dword [eax + 0x264], ecx
mov dword [esi], eax
mov eax, dword [eax + 8]
jmp 0xf00a3f9
cmp bx, 8
jne 0xf00a38b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0xf00a3fe
lea eax, [ebp - 0x438]
push eax
push 0
push ebx
lea eax, [ebp - 0x210]
push eax
call fcn.0f009fab
cmp byte [ebp - 0x21f], 0
mov edi, eax
jne 0xf00a3d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0xf00a3bb
push 0x12
jmp 0xf00a3cb
cmp eax, 0xa1
je 0xf00a3c9
cmp eax, 0x10b
jne 0xf00a3d1
push 3
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0xf00a3fe
mov ebx, dword [ebp - 0x43c]
push ebx
push esi
lea eax, [ebp - 0x438]
push eax
call fcn.0f08cbcf
test edi, edi
je 0xf00a3fc
mov dword [edi + 0x264], ebx
mov dword [esi], edi
mov eax, dword [edi + 8]
mov dword [esi + 4], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0f01dda0
leave
ret 0xc
Function at 0xf00b3d4
Capabilities:
Query environment variable

Disassembly:
push 0x38
push 0xf0070c0
call fcn.0f0213c8
xor esi, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
push dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.ntdll.dll_RtlInitString]
push 1
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ntdll.dll_RtlOemStringToUnicodeString]
mov dword [ebp - 0x20], eax
cmp eax, esi
jge 0xf00b445
cmp eax, 0x80000005
jne 0xf00b423
push 0xce
jmp 0xf00b42b
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call fcn.0f01e9c6
pop ecx
pop ecx
xor eax, eax
jmp 0xf00b52e
push 1
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToAnsiString]
mov dword [ebp - 0x20], eax
cmp eax, esi
jge 0xf00b45f
push eax
jmp 0xf00b48c
mov edi, dword [ebp + 0x10]
mov word [ebp - 0x36], di
mov eax, dword fs:[0x18]
mov dword [ebp - 0x24], eax
movzx ecx, di
push ecx
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x34], eax
cmp eax, esi
jne 0xf00b49e
push 0xc0000017
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0xf00b522
movzx ecx, word [ebp - 0x36]
push ecx
push eax
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0xf00b522
cmp eax, edi
jae 0xf00b522
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov dword [ebp - 0x2c], esi
push 1
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ntdll.dll_RtlAnsiStringToUnicodeString]
mov dword [ebp - 0x20], eax
cmp eax, esi
jge 0xf00b4f1
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov word [ebp - 0x3e], di
push esi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToOemString]
mov dword [ebp - 0x20], eax
cmp eax, esi
jge 0xf00b522
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x1c], esi
or dword [ebp - 4], 0xffffffff
call fcn.0f00b538
mov eax, dword [ebp - 0x1c]
call fcn.0f021403
ret 0xc
Function at 0xf00c8b9
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0xf0ad034]
push ebx
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push 1
xor ebx, ebx
push ebx
mov edi, 0xf0022ec
push edi
push 0x80000002
mov dword [ebp - 0x38], 0x20
mov dword [ebp - 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0xf00c904
push ebx
push edi
push 0x155
call fcn.0f03da35
jmp 0xf00c9fb
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x40]
push eax
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0xf00c958
push 0xf0022e8
push edi
push 0x155
call fcn.0f03da35
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0xf00c9fb
push esi
push dword [ebp - 0x2c]
call fcn.0f009d40
mov esi, eax
cmp esi, ebx
pop ecx
jne 0xf00c983
push 0xf0022e8
push edi
push 0x154
call fcn.0f03da35
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0xf00c9fa
lea eax, [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 0x34]
push eax
push ebx
mov ebx, 0xf0022e8
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xf00c9de
cmp dword [ebp - 0x34], 7
jne 0xf00c9de
mov edi, esi
jmp 0xf00c9cd
push esi
call fcn.0f01921f
test eax, eax
jne 0xf00c9c0
push eax
push esi
push 0x156
call fcn.0f03da35
push 0
push esi
call fcn.0f09a670
pop ecx
inc eax
pop ecx
mov esi, eax
cmp byte [esi], 0
jne 0xf00c9aa
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
jmp 0xf00c9f4
push ebx
push edi
push 0x155
call fcn.0f03da35
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0f008a60
pop ecx
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0f01dda0
leave
ret

Function at 0xf00fdb2
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov al, byte [esi]
xor ebx, ebx
and al, 0x1f
cmp al, 3
mov dword [ebp - 4], ebx
jne 0xf00fdf2
push edi
mov edi, 0xf229580
mov al, byte [esi + 1]
push dword [ebp + 0xc]
xor al, bl
and al, 3
xor byte [esi + 1], al
push esi
call dword [edi]
add edi, 0x1c
inc ebx
cmp edi, 0xf2295f0
jl 0xf00fdd0
mov eax, dword [ebp - 4]
pop edi
jmp 0xf00fe0a
push dword [ebp + 0xc]
xor eax, eax
mov al, byte [esi + 1]
push esi
and eax, 3
imul eax, eax, 0x1c
call dword [eax + 0xf229580]
movsx eax, ax
pop esi
pop ebx
leave
ret 8

Function at 0xf00fe15
Capabilities:
Resume thread

Disassembly:
cmp dword [0xf205fe0], 0
jne 0xf00fe2d
mov dword [0xf205fe0], 1
jmp fcn.0f00c3f2
ret
Function at 0xf010acb
Capabilities:
Create thread

Disassembly:
push 0xf232a4c
push 4
push 0
push 0xf014b32
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0xf232a48], eax
jne 0xf010b0f
push 0x105
push 0xf001b54
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x3e9
call fcn.0f03dc3f
call fcn.0f03e381
push 1
call fcn.0f00d18a
ret

Function at 0xf010c8b
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push esi
push 0xf232900
call dword [sym.imp.ntdll.dll_RtlInitializeCriticalSection]
xor esi, esi
cmp dword [0xf0bd814], esi
je 0xf010cd7
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, esi
mov dword [0xf0afec4], eax
jne 0xf010cd7
push 0x18c
push 0xf001b9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x3e9
call fcn.0f03dc3f
pop esi
jmp fcn.0f03e381
pop esi
ret