joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405f8f
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x436034]
xor eax, ebp
mov dword [ebp + 0x90], eax
mov eax, dword [ebp + 0x9c]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xa0]
xor esi, esi
push 0x104
mov dword [ebp - 0x7c], eax
xor ebx, ebx
lea eax, [ebp - 0x74]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x40605c
mov eax, dword [ebp - 0x7c]
inc ebx
push dword [eax + 8]
lea eax, [ebp - 0x74]
push eax
call fcn.00406385
pop ecx
pop ecx
test eax, eax
je 0x406016
test esi, esi
je 0x40600a
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.004063f8
pop ecx
pop ecx
test eax, eax
jle 0x406016
push esi
call fcn.0040114d
pop ecx
lea eax, [ebp - 0x74]
push eax
call fcn.004011bb
pop ecx
mov esi, eax
push 0x104
lea eax, [ebp - 0x74]
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x405fd9
test esi, esi
je 0x40605c
lea eax, [ebp - 0x78]
xor ebx, ebx
push eax
push 0x20019
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
test eax, eax
je 0x406076
call fcn.0040114d
pop ecx
cmp dword [ebp - 0x78], ebx
je 0x40605c
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp + 0x90]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409743
add ebp, 0x94
leave
ret
call fcn.0040114d
pop ecx
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0x104
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push str.JavaHome
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40604e
cmp dword [ebp - 0x78], ebx
je 0x4060ad
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x74]
push eax
call fcn.004011bb
pop ecx
jmp 0x40605e
Function at 0x406aef
Capabilities:
Enumerate files on windows

Disassembly:
push ecx
push ecx
push ebx
push esi
push 0x10
call fcn.004069b8
mov esi, eax
push 8
mov dword [esp + 0x10], esi
call fcn.0040112b
pop ecx
pop ecx
push 0x436b90
push dword [esp + 0x18]
mov ebx, eax
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x406b38
push ebx
call fcn.0040114d
push esi
call fcn.0040690b
pop ecx
pop ecx
xor eax, eax
jmp 0x406c33
push ebp
mov dword [ebx], eax
mov dword [ebx + 4], 0x436bbc
push edi
mov ebp, dword [ebx + 4]
test ebp, ebp
je 0x406b50
and dword [ebx + 4], 0
jmp 0x406b6d
push 0x436b90
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
neg eax
sbb ebp, ebp
and ebp, 0x436bbc
je 0x406c17
push ebp
call fcn.004109e0
pop ecx
cmp eax, 4
jl 0x406b43
cmp byte [eax + ebp - 4], 0x2e
jne 0x406b43
lea edi, [eax - 3]
add edi, ebp
push 0x42aa88
push edi
call fcn.004160f0
pop ecx
pop ecx
test eax, eax
je 0x406ba7
push 0x42aa8c
push edi
call fcn.004160f0
pop ecx
pop ecx
test eax, eax
jne 0x406b43
push 0x3b
push ebp
call fcn.0040be20
pop ecx
pop ecx
test eax, eax
jne 0x406b43
push dword [esp + 0x1c]
call fcn.004109e0
push ebp
mov edi, eax
call fcn.004109e0
mov esi, eax
lea ecx, [esi + edi]
push ecx
call fcn.0040112b
lea ecx, [edi - 1]
mov ebx, eax
push ecx
push dword [esp + 0x2c]
push ebx
call fcn.0040a0c0
lea ecx, [esi + 1]
push ecx
lea eax, [edi - 1]
add eax, ebx
push ebp
push eax
call fcn.0040a0c0
mov esi, dword [esp + 0x34]
mov eax, dword [esi + 4]
inc eax
push eax
push esi
call fcn.004067d7
mov ecx, dword [esi + 4]
add esp, 0x2c
mov eax, dword [esi]
mov dword [eax + ecx*4], ebx
inc dword [esi + 4]
mov ebx, dword [esp + 0x14]
jmp 0x406b43
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebx + 4]
call fcn.0040114d
push ebx
call fcn.0040114d
pop ecx
pop ecx
pop edi
mov eax, esi
pop ebp
pop esi
pop ebx
pop ecx
pop ecx
ret
Function at 0x408a7e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
push 4
pop edx
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x42b5d8]
sub edx, 1
jne 0x408a85
ret

Function at 0x409d7d
Capabilities:
Parse pe header

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

Function at 0x417433
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x436034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x42fa38
push esi
call fcn.0041fa14
pop ecx
pop ecx
test eax, eax
jne 0x417461
xor al, al
jmp 0x4174de
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00417174
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x41749b
push dword [ebp - 0x210]
call fcn.00410ae8
xor al, al
jmp 0x4174dc
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4174a1
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x4174c1
push edx
call fcn.0041736a
pop ecx
test al, al
je 0x41748c
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4174cf
mov bl, 1
push dword [ebp - 0x210]
call fcn.00410ae8
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00409743
leave
ret
Function at 0x4195e4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x437350]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419624
cmp byte [ebx], 0xa
jne 0x419624
or byte [edi + eax + 0x28], 4
jmp 0x419629
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x419728
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41970b
inc eax
cmp dl, 0xd
je 0x419655
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41967b
cmp eax, ecx
jae 0x419689
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41963d
jmp 0x419728
push 0
lea eax, [ebp - 0x10]
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 0x419706
cmp dword [ebp - 0x10], 0
je 0x419706
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x437350]
test byte [eax + edi + 0x28], 0x48
je 0x4196e0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4196cb
mov byte [esi], dl
jmp 0x4196dc
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x437350]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x419728
cmp byte [ebp - 1], 0xa
jne 0x4196ef
cmp esi, ebx
jne 0x4196ef
mov byte [esi], 0xa
jmp 0x419727
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00416448
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x419728
mov byte [esi], 0xd
jmp 0x419727
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x437350]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419725
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419728
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x419731
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x437350]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419777
cmp word [ebx], dx
jne 0x419777
or byte [eax + edi + 0x28], 4
jmp 0x41977c
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4198df
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4198bf
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4197bd
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4197f3
cmp eax, edx
jae 0x419801
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x419798
jmp 0x4198df
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4198ba
cmp dword [ebp - 0x18], 0
je 0x4198ba
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x437350]
test byte [eax + edi + 0x28], 0x48
je 0x419890
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x419854
mov word [esi], cx
jmp 0x41988b
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x437350]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x437350]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x437350]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4198df
pop eax
cmp word [ebp - 4], ax
jne 0x4198a0
cmp esi, ebx
jne 0x4198a0
mov word [esi], ax
jmp 0x4198dc
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00416448
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4198df
push 0xd
pop eax
jmp 0x41989b
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x437350]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4198d9
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4198df
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41b009
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43015c
push 0x430154
push str.FlsAlloc
push 0x1f
call fcn.0041ae88
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41b03d
push dword [ebp + 8]
mov ecx, esi
call dword [0x4291a4]
call esi
jmp 0x41b043
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41b087
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43016c
push 0x430164
push str.FlsGetValue
push 0x21
call fcn.0041ae88
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41b0be
push dword [ebp + 8]
mov ecx, esi
call dword [0x4291a4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41b0c6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x430174
push 0x43016c
push str.FlsSetValue
push 0x22
call fcn.0041ae88
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41b100
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4291a4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41f2fe
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041ee19
Function at 0x420ef5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x420f92
push ebx
push esi
call fcn.00420ebe
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041eb4d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x420f3f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x420f91
push edi
push eax
call fcn.0041b571
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x420f5f
call fcn.0041ad1b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x420f90
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041eb4d
add esp, 0x20
test eax, eax
jne 0x420f7e
push edi
call fcn.0041ad1b
jmp 0x420f86
push ebx
call fcn.0041ad1b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x420f95
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x420fa6
pop esi
ret
push ebx
push edi
push esi
call fcn.00420ebe
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0041b571
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x420fce
push ebx
push esi
push edi
call fcn.0040a0c0
add esp, 0xc
push 0
call fcn.0041ad1b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x4221ad
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00422129
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42231c
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42231c
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4222d1
jg 0x422209
test eax, eax
je 0x4222c7
push 1
push 0x1000
call fcn.0041acbe
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x42222c
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4222be
push 0x8000
push ebx
call fcn.00418098
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x422255
jg 0x422250
cmp ecx, 0x1000
jb 0x422255
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041df80
add esp, 0x10
cmp eax, 0xffffffff
je 0x42229a
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x422250
jl 0x422281
test ecx, ecx
jne 0x422242
push dword [ebp - 0xc]
push ebx
call fcn.00418098
push esi
call fcn.0041ad1b
add esp, 0xc
xor ebx, ebx
jmp 0x42232a
cmp byte [edi + 0x24], 0
je 0x4222b1
cmp dword [edi + 0x20], 5
jne 0x4222b1
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4222bc
mov ebx, dword [edi + 0x18]
jmp 0x4222be
xor ebx, ebx
push esi
call fcn.0041ad1b
pop ecx
jmp 0x42232a
test ecx, ecx
jg 0x422293
jl 0x4222d1
test eax, eax
jae 0x422293
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00416448
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4222f1
cmp byte [edi + 0x1c], 0
je 0x422293
jmp 0x422322
push ebx
call fcn.0041d62c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x422293
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x42232a
cmp byte [edi + 0x1c], 0
je 0x422327
mov ebx, dword [edi + 0x18]
jmp 0x42232a
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00416448
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424dde
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x436034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x424e21
call fcn.00416530
mov dword [eax], 0xf
call fcn.00416543
mov dword [eax], 0xd
call fcn.0041ac7a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409743
leave
ret
test eax, eax
jne 0x424e28
inc eax
jmp 0x424e15
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x424e13
xor eax, eax
cmp ecx, 1
setne al
jmp 0x424e15

Function at 0x428190
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4281bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4281bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x42ee00
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4da5eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004ce0e5
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x42ee82
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004cafb4
mov eax, dword [eax]
push 0x521e88
push eax
call fcn.004bc0c4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004ce370
test bl, bl
je 0x42ee82
push 0x521e88
lea ecx, [esp + 0xc]
call fcn.004ce700
push 0x521e94
lea ecx, [esp + 0xc]
call fcn.004ce700
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x42eebe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004ce370
jmp 0x42ef89
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x42ef42
lea edx, [esp + 0x7c]
push 0x521e90
push edx
call fcn.004bc0c4
add esp, 8
test eax, eax
je 0x42ef42
lea eax, [esp + 0x7c]
push 0x521e8c
push eax
call fcn.004bc0c4
add esp, 8
test eax, eax
je 0x42ef42
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42eed2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004ce370
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x42f790
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x42f7f2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x42f800
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4da66b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x533f74]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x42f938
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x42f866
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004ce370
xor eax, eax
jmp 0x42f9af
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004ce4ad
push esi
lea ecx, [esp + 0xc]
call fcn.004ce73c
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x521ec8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x42f98d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0042f790
test eax, eax
jne 0x42f98d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.0042f790
test eax, eax
jne 0x42f98d
lea eax, [esp + 0x14]
push 0x521ea4
push eax
call fcn.004bd210
mov esi, eax
add esp, 8
test esi, esi
jne 0x42f96c
lea ecx, [esp + 0x14]
push 0x521ea0
push ecx
call fcn.004bd190
mov esi, eax
add esp, 8
test esi, esi
jne 0x42f96c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x42f96f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004ce45d
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x42f87e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004ce370
xor eax, eax
jmp 0x42f9af
mov byte [esi], 0
push 0x521e9c
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004ce370
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4