joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f0a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x1016858e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ef
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f10e
mov ecx, edx
add ecx, ebx
jmp 0x41f10e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f10e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f180
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f169
test esi, esi
jbe 0x41f180
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f15b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f180
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f138
jmp 0x41f180
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f180
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10168595
ret
Function at 0x4202d8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x101698f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420313
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x42032c
lea eax, [ebp - 0x10]
mov edx, dword [0x1018654c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x42033f
lea eax, [ebp - 0x10]
mov edx, dword [0x1018654c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42034b
adc edx, 0
mov edx, dword [edx*4 + 0x10185378]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4204c5
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4204b8
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4204b8
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420456
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420456
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420456
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420456
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4204b8
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4204b8
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x4204dd
inc ebx
cmp ebx, 0x19
jne 0x420305
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x101698fa
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
nop
mov ecx, 0x42af1823
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x45f556af
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x426ad0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x12000]
push edi
or ebp, 0xffffffff
jmp 0x426af2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x426af9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x426ae8
mov eax, 1
add ebx, ebx
jne 0x426b0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x426b00
jne 0x426b1c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x426b00
xor ecx, ecx
sub eax, 3
jb 0x426b30
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x426ba2
mov ebp, eax
add ebx, ebx
jne 0x426b3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x426b48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x426b6c
inc ecx
add ebx, ebx
jne 0x426b58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x426b4d
jne 0x426b69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x426b4d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x426b8c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x426b7d
jmp 0x426aee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x426b8c
add edi, ecx
jmp 0x426aee
pop esi
mov edi, esi
mov ecx, 0x421
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x426baa
cmp byte [edi], 0xa
jne 0x426baa
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 0x426baf
lea edi, [esi + 0x24000]
mov eax, dword [edi]
or eax, eax
je 0x426c27
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x265e4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x26704]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x426bdc
mov ecx, edi
jns 0x426c0b
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 + 0x2670c]
or eax, eax
je 0x426c21
mov dword [ebx], eax
add ebx, 4
jmp 0x426bf9
call dword [esi + 0x26708]
mov ebp, dword [esi + 0x26710]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x426c5b
sub esp, 0xffffff80
jmp 0x404921

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4036c2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
lea edx, [0x4061e8]
mov ecx, edx
mov eax, dword [edx]
inc ecx
inc ecx
inc ecx
inc ecx
mov edi, dword [ecx]
mov ecx, eax
mov eax, dword [edi]
add edi, 4
mov esi, edi
mov ebx, esi
add edi, eax
mov edx, edi
dec edx
sub ecx, eax
dec ecx
dec ecx
dec ecx
dec ecx
lea eax, [0x4061e8]
mov dword [eax], ecx
inc eax
inc eax
inc eax
inc eax
mov dword [eax], edi
push ecx
mov ch, byte [edi]
mov al, byte [0x406139]
add al, byte [esi]
xor al, ch
mov byte [edi], al
mov eax, edx
cmp esi, eax
je 0x403712
inc esi
pop ecx
inc edi
dec ecx
jne 0x4036f6
jmp 0x403716
mov esi, ebx
jmp 0x40370b
mov edi, esi
push 0x39
push 0x4061e8
push 0x111
push dword [0x4061c4]
call dword [sym.imp.user32.dll_SendMessageA]
mov ecx, dword [0x4061e8]
mov edi, dword [0x4061ec]
mov esi, dword [0x4061dc]
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
dec ecx
jne 0x403742
mov esi, dword [0x406134]
mov ecx, dword [0x406130]
push ecx
add ecx, esi
mov dword [0x4061a8], ecx
pop ecx
mov eax, dword [esi]
inc esi
inc esi
nop
inc esi
inc esi
mov edi, dword [0x4061dc]
mov ebx, esi
add ebx, eax
mov dword [0x4061a4], ebx
mov edx, esi
add esi, eax
mov ecx, 0
movzx eax, byte [edx]
inc eax
cmp edx, ebx
jae 0x4037e9
cmp eax, ecx
jae 0x40378e
ret
sub eax, ecx
mov ecx, eax
test ecx, ecx
je 0x40379f
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
dec ecx
jne 0x403796
inc edx
mov al, byte [edx]
inc edx
movzx ecx, byte [edx]
test ecx, ecx
je 0x4037b2
push ecx
mov byte [edi], al
inc edi
dec ecx
jne 0x4037ab
pop ecx
inc edx
movzx eax, byte [edx]
inc cl
cmp cl, 0
jne 0x4037d3
inc al
cmp al, 0
jne 0x4037cb
inc edx
movzx eax, word [edx]
inc edx
inc edx
jmp 0x4037cf
mov al, 0
dec al
dec cl
jmp 0x4037e5
dec cl
inc al
cmp al, 0
jne 0x4037e3
inc edx
movzx eax, word [edx]
inc edx
inc edx
jmp 0x4037e5
dec al
jmp 0x403785
mov ecx, dword [0x4061a8]
sub ecx, esi
test ecx, ecx
je 0x4037fe
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
dec ecx
jne 0x4037f5
mov edi, dword [0x4061dc]
mov dword [0x4061dc], edi
ret

Function at 0x403d61
Capabilities:
Encode data using xor

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40a854
xor eax, eax
jmp 0x40a8d4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40a86b
xor eax, eax
jmp 0x40a8d4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x40a8b7
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x40a8b7
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x40a88e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x40a8c3
xor eax, eax
jmp 0x40a8d4
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x40a8d1
xor eax, eax
jmp 0x40a8d4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40ddc0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4aa0cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov byte [ebp - 0x130], 0
push 0x12b
lea eax, [ebp - 0x12f]
push 0
push eax
mov dword [esi], vtable.core_log::log_device_file.0
call sub.MSVCR120.dll_memset
add esp, 0xc
call fcn.00406e80
push eax
lea ecx, [ebp - 0x144]
call fcn.004067b0
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x493b9c
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40de2b
test al, 0x10
jne 0x40de38
push 0
push 0x493b9c
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebp - 0x13a]
push eax
movzx eax, word [ebp - 0x13e]
push eax
movzx eax, word [ebp - 0x140]
push eax
push str.c:MyLogMyLog__d__02d__02d.log
push 0xffffffffffffffff
lea eax, [ebp - 0x130]
push 0x12c
push eax
call dword [sym.imp.MSVCR120.dll__snprintf_s]
push 0x493bd0
lea eax, [ebp - 0x130]
push eax
lea ecx, [esi + 4]
push ecx
call dword [sym.imp.MSVCR120.dll_fopen_s]
add esp, 0x28
lea ecx, [ebp - 0x144]
call fcn.00405fa0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0047db8e
mov esp, ebp
pop ebp
ret

Function at 0x40dee0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x40df1a
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_fwrite]
push dword [edi + 4]
push 2
push 1
push 0x493bd4
call dword [sym.imp.MSVCR120.dll_fwrite]
push dword [edi + 4]
call dword [sym.imp.MSVCR120.dll_fflush]
add esp, 0x24
pop edi
pop ebp
ret 8

Function at 0x40e000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x20119
push 0
push str.SOFTWAREMyLogLog
push reloc.OLEAUT32.dll_SysReAllocString
mov word [0x4af32c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e0af
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 4
push eax
push 0
push 0
push str.EnableLogToView
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, 1
test eax, eax
jne 0x40e075
movzx eax, byte [0x4af32c]
cmp dword [ebp - 4], edi
cmove eax, edi
mov byte [0x4af32c], al
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push str.EnableLogToFile
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e0a5
movzx eax, byte [0x4af32d]
cmp dword [ebp - 4], edi
cmove eax, edi
mov byte [0x4af32d], al
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4154d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4154e6
test al, 0x10
jne 0x4154e6
mov eax, 1
ret
xor eax, eax
ret
Function at 0x415ad0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48321e
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4aa0cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x4af358]
mov dword [ebp - 0x21c], 0
test al, 1
jne 0x415b3e
or eax, 1
mov dword [0x4af358], eax
mov ecx, 0x4af340
mov dword [ebp - 4], 0
call fcn.00403380
push 0x488070
call fcn.0047dcd3
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, 0x4af340
call fcn.00403490
test al, al
je 0x415bb3
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
mov ecx, 0x4af340
push eax
call fcn.00403450
mov edx, 0x4af340
lea ecx, [ebp - 0x234]
call fcn.00415800
push eax
mov ecx, 0x4af340
call fcn.0040d5d0
lea ecx, [ebp - 0x234]
call fcn.004033b0
push 0x4af340
mov ecx, esi
call fcn.00403320
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047db8e
mov esp, ebp
pop ebp
ret
Function at 0x41f7c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x288
mov eax, dword [0x4aa0cc]
xor eax, esp
mov dword [esp + 0x284], eax
push esi
push edi
mov edi, edx
test ecx, ecx
je 0x41f97a
cmp word [ecx], 0
je 0x41f97a
push ecx
lea ecx, [esp + 0x6c]
call fcn.004058b0
xor eax, eax
push 0x206
push eax
mov word [esp + 0x88], ax
lea eax, [esp + 0x8a]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [esp + 0x80]
test edi, edi
mov esi, 0x493b50
mov eax, ecx
mov edx, 0x104
cmovne esi, edi
sub esi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x41f852
movzx eax, word [esi + ecx]
test ax, ax
je 0x41f852
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x41f834
jmp 0x41f856
test edx, edx
jne 0x41f859
sub ecx, 2
xor eax, eax
push 0x44
push eax
mov word [ecx], ax
lea eax, [esp + 0x28]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esp + 0x20], 0x44
xorps xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
push 0x20081
push 0
push 0
push 0x4943f4
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x41f8bf
lea ecx, [esp + 0x68]
mov edi, 0x80070005
call fcn.004033b0
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x284]
xor ecx, esp
call fcn.0047db8e
mov esp, ebp
pop ebp
ret
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ecx, ecx
lea eax, [esp + 0x10]
cmp word [esp + 0x80], cx
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x88]
cmove eax, ecx
push eax
push ecx
push 0x1000400
push ecx
push ecx
push ecx
lea ecx, [esp + 0x88]
call fcn.00403470
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41f945
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41f92e
push eax
call edi
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41f941
push eax
call edi
mov dword [esp + 0x14], 0
xor edi, edi
jmp 0x41f94a
mov edi, 0x80004005
push esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_CloseDesktop]
lea ecx, [esp + 0x68]
call fcn.004033b0
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x284]
xor ecx, esp
call fcn.0047db8e
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x28c]
mov eax, 0x80070057
pop edi
pop esi
xor ecx, esp
call fcn.0047db8e
mov esp, ebp
pop ebp
ret
Function at 0x41f9a0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4aa0cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x234], ecx
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x41fa3b
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x41fa3b
mov esi, dword [sym.imp.MSVCR120.dll__wcsicmp]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
push dword [ebp - 0x234]
lea eax, [ebp - 0x20c]
push eax
call esi
add esp, 8
test eax, eax
je 0x41fa53
lea eax, [ebp - 0x230]
push eax
push edi
call ebx
test eax, eax
jne 0x41fa11
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
push edi
call ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047db8e
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x228]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
mov esi, 1
jmp 0x41fa3d

Function at 0x420440
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4204b1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x42047f
cmp eax, 2
jne 0x42049b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x4204ab
test ecx, ecx
je 0x4204a6
test cl, 1
jne 0x42049b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4204ab
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4204c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4204d5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x4204e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4204e0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc