joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4078d9
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x407a21
xor ecx, ecx
cmp word [eax], cx
je 0x407a21
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x407932
cmp eax, 3
jne 0x40796c
cmp word [esp + 0xa], 0x3a
jne 0x40796c
cmp eax, 2
jne 0x407950
lea eax, [esp + 8]
push 0x4152d8
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x407a21
push 0xfffffffffffffffe
pop edi
jmp 0x407a21
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x407981
cmp ax, bx
jne 0x40798b
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x407974
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x4079ca
test byte [esp + 0x21c], 0x10
je 0x4079b1
push 0xfffffffffffffffe
pop edi
jmp 0x4079c1
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x407a1f
cmp word [esp + 0x10], bp
jne 0x4079d8
cmp word [esp + 0x12], bp
je 0x4079f7
cmp word [esp + 0x10], bx
jne 0x4079e6
cmp word [esp + 0x12], bx
je 0x4079f7
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x407a1f
cmp word [esp + 0x12], ax
jne 0x407a1f
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x407a0c
test al, 0x10
je 0x407a1f
jmp 0x407a1c
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x407a1f
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x407b50
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x407bc8
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x407ba9
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x407ba6
cmp ecx, 0x5c
je 0x407ba6
cmp ecx, 0x2f
jne 0x407bb3
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x407b93
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x407bca
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x407f90
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x407fcc
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x4083e0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x408445
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x40843d
push dword [esp + 0x10]
push dword [0x4189e4]
call fcn.00412d27
test eax, eax
je 0x408433
cmp dword [eax + 4], 0
je 0x408422
push edi
push esi
push eax
call fcn.00408570
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc

Function at 0x408450
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0
jne 0x408471
push esi
call fcn.00407f90
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
cmp ebx, edi
jl 0x4084e5
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x4084d2
dec ecx
je 0x4084bd
sub ecx, 2
je 0x4084aa
push edi
push eax
push dword [esp + 0x1c]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x14]
mov word [eax], cx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esp + 0x14]
mov dl, byte [eax]
mov eax, edi
mov byte [ecx], dl
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
push ebp
mov ebp, dword [esp + 0x18]
sub eax, ebx
add eax, dword [esi + 4]
push ebx
push eax
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
push 0
cmp edi, eax
jl 0x40852a
lea eax, [esp + 0x18]
push eax
push edi
push ebp
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
add eax, ebx
pop esi
pop ebx
ret 0xc
lea ecx, [esp + 0x18]
push ecx
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp edi, eax
jle 0x40854b
mov edi, eax
push edi
push dword [esi + 4]
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
lea eax, [ebx + edi]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x408570
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 0
cmp dword [esi + 0x1c], 0
jne 0x408677
cmp dword [esi + 0x14], 1
jne 0x4085bb
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
push 1
neg eax
cdq
push ecx
push eax
push dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [esp + 0x20]
cmp eax, edi
jle 0x408638
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x408623
dec eax
je 0x40860c
sub eax, 2
je 0x4085f7
push edi
push dword [esp + 0x20]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov ax, word [eax]
mov word [ecx], ax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov al, byte [eax]
mov byte [ecx], al
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
push esi
call fcn.00407f90
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x408665
push 0
lea eax, [esp + 0xc]
push eax
push edi
push dword [esp + 0x28]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0xc
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
push edi
push dword [esp + 0x20]
add ecx, eax
jmp 0x4085e1
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
Function at 0x409362
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x14], edi
je 0x4093c0
add ebx, 2
lea eax, [ebx*2 + 2]
push eax
push edi
push dword [0x417e54]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x4093c0
cmp dword [ebp + 0xc], 0
je 0x4093af
push dword [ebp + 0xc]
push edi
call sub.MSVCRT.dll_wcscpy
push 0x4153ac
push edi
call sub.MSVCRT.dll_wcscat
add esp, 0x10
jmp 0x4093bc
push 0x4153ac
push edi
call sub.MSVCRT.dll_wcscpy
pop ecx
pop ecx
mov esi, edi
jmp 0x4093c3
mov esi, dword [ebp + 0xc]
push 0
lea eax, [ebp + 0x10]
push eax
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x40942a
mov eax, dword [0x416ad0]
dec eax
dec eax
je 0x409404
sub eax, 0x16
je 0x4093fc
push 0
lea eax, [ebp + 0x10]
push eax
lea eax, [ebx + ebx]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40942a
push esi
call fcn.00413ea0
jmp 0x40940a
push esi
call fcn.00413f30
mov esi, eax
lea eax, [ebp + 0x10]
push 0
push eax
push esi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.00413e90
test edi, edi
je 0x40943d
push edi
push 0
push dword [0x417e54]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x4095d4
Capabilities:
Hash data using sha384

Disassembly:
mov eax, dword [esp + 4]
push 0x40
push 0x415678
and dword [eax + 0x80], 0
and dword [eax + 0x84], 0
mov dword [eax + 0xc8], 0x30
add eax, 0x88
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
ret

Function at 0x4096da
Capabilities:
Hash data using sha512

Disassembly:
mov eax, dword [esp + 4]
push 0x40
pop ecx
push ecx
and dword [eax + 0x80], 0
and dword [eax + 0x84], 0
mov dword [eax + 0xc8], ecx
add eax, 0x88
push 0x415638
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
ret
Function at 0x40cd96
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
push 0x20
pop ecx
push ecx
and dword [eax + 0x40], 0
and dword [eax + 0x44], 0
mov dword [eax + 0x68], ecx
add eax, 0x48
push 0x4157b8
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
ret
Function at 0x410330
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x410362
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41035d
cmp dword [esp + 0xc], esi
je 0x410379
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret
Function at 0x401f07
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
add ah, dl
enter 0x4e89, 0x7f
jmp 0x401f3a
ja 0x40b615
lahf
fmul dword [ebx + ecx*4 + 0x1d]
add eax, 0x8b0040d0
inc esi
add al, 0x8d
dec ebp
or byte [ebx], al
rcl dword [ecx + 0x52], cl
push eax
call 0x804cc0
test dword [ebp + 0x74], esp
xor ecx, dword [edi + 0x41]
or esi, dword [edi + edx*2 + 0x3d]
in eax, 0xfd
or al, byte [eax]
je 0x401eeb
cmp eax, 0xa3cd9
je 0x401f8a
cmp eax, 0xafd57
je 0x401f8a
cmp eax, 0x2fd24
je 0x401f8a
cmp eax, 0x94fc2a
je 0x401f34
mov bl, 4
and ecx, dword [ebx]
add byte [eax], bh
test dword [esi - 0x75000000], esp
inc ebp
or byte [ebx - 0x2afd5fe3], cl
add byte [ebx + 0x4102a43d], cl
add byte [ecx + 0x3183d8], ah
mov eax, dword [ebp + 8]
mov ebx, dword [0xd502a0]
mov edi, dword [0x4102a4]
mov eax, dword [0x3183d8]
leave
pop esp
mov al, byte [0x89008a02]
cmp eax, 0x4102a4
mov ebx, dword [ebx]
sbb byte [ebx - 0x4fcebb2], cl
sub edx, dword [ebx]
mov dword [esi + 0x60], edx
mov dword [esi + 0x14], ecx
scasd eax, dword es:[edi]
test dword [ebp - 0x2e], esi
invalid

Function at 0x40a2d0
Capabilities:
Encode data using xor

Disassembly:
nop
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x3b]
pop eax
dec eax
add al, 0x85
leave
jne 0x40a2ed
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
pop ds
xor al, 0xcc
nop
push edi
add byte [ebx + 0x40], cl
dec ebx
inc eax
or byte [edx - 0x26], ch
push eax
call dword [0xf04053f9]
test edi, ecx
je 0x40a2e7
test byte [eax + 0x7400005a], al
jecxz 0x40a342
add al, byte [ecx]
add byte [eax], al
push esi
jne 0x40a316
adc al, 0x83
adc dword [ecx], eax
das
pop esi
pop ebp
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
in eax, dx
salc
test dword [edx + ecx*4 + 5], edx
pop esi
pop ebp
ret 4
jg 0x40a2cf
movsd dword es:[edi], dword [esi]
dec eax
push esi
mov eax, dword [ecx + 4]
inc edi
ror byte [esi + 0x11], 0x83
ror dword [ecx + edx*2], 0xff
adc eax, 0x40c0ab
xor eax, eax
pop esi
pop ebp
ret 4

Function at 0x40ac51
Capabilities:
Encode data using xor

Disassembly:
add byte [eax], al
je 0x40ad75
test byte [ecx + eax], bl
add byte [eax], al
cwde
add byte [ebp + 0x74c30000], bl
mov eax, 0xfe0f02ff
inc byte [eax]
add byte [edi - 0x41], al
xor dword [esi], eax
mov edx, dword [ebp - 0x30bcb7f]
add byte [eax], al
or al, 0xfa
loop 0x40ac54
add byte [eax], al
ud0
pop edi
pop esi
mov eax, 0x16
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40b6e1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov esi, dword [edx + 0x28]
nop
jmp 0x40b652
xor edi, edi
movzx ecx, word [edx + 0x26]
nop
nop
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
nop
jl 0x40b692
nop
jmp 0x40b672
jmp 0x40b681
sub al, 0x20
nop
jmp 0x40b692
jmp 0x40b6a3
ror edi, 0xd
nop
add edi, eax
nop
jmp 0x40b6bb
dec ecx
jmp 0x40b6c7
jne 0x40b659
jmp 0x40b6dd
push edx
mov edx, dword [edx + 0x10]
jmp 0x40b6ef
push edi
jmp 0x40b6fc
mov eax, dword [edx + 0x3c]
add eax, edx
mov eax, dword [eax + 0x78]
jmp 0x40b70e
test eax, eax
nop
jmp 0x40b71f
je 0x40b8e6
nop
jmp 0x40b735
add eax, edx
mov ecx, dword [eax + 0x18]
nop
push eax
nop
mov ebx, dword [eax + 0x20]
nop
add ebx, edx
nop
jmp 0x40b755
nop
jmp 0x40b760
test ecx, ecx
je 0x40b8c6
jmp 0x40b775
jmp 0x40b780
xor edi, edi
nop
jmp 0x40b793
dec ecx
jmp 0x40b7a4
mov esi, dword [ebx + ecx*4]
jmp 0x40b7b4
add esi, edx
nop
jmp 0x40b7c4
xor eax, eax
nop
lodsb al, byte [esi]
ror edi, 0xd
jmp 0x40b7d7
add edi, eax
jmp 0x40b7e6
cmp al, ah
nop
jne 0x40b7b7
nop
jmp 0x40b7fa
add edi, dword [ebp - 8]
cmp edi, dword [ebp + 0x24]
nop
jmp 0x40b80d
invalid
invalid
inc edx
Function at 0x42a541
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46d624]
jne 0x42a54b
repz ret
jmp fcn.0042dbdf

Function at 0x4331c9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46d624]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0042d287
and dword [ebp - 0x14], 0
cmp dword [0x46f384], 0
mov dword [ebp - 0x18], eax
jne 0x43327c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x433324
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x433324
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x46f384], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x46f388], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x46f38c], eax
call edi
push eax
call esi
mov dword [0x46f394], eax
test eax, eax
je 0x43327c
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46f390], eax
mov eax, dword [0x46f390]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4332d5
cmp dword [0x46f394], ecx
je 0x4332d5
push eax
call esi
push dword [0x46f394]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4332d5
test ebx, ebx
je 0x4332d5
call edi
test eax, eax
je 0x4332cc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4332cc
test byte [ebp - 8], 1
jne 0x4332d5
or dword [ebp + 0x10], 0x200000
jmp 0x433308
mov eax, dword [0x46f388]
cmp eax, dword [ebp - 0x18]
je 0x433308
push eax
call esi
test eax, eax
je 0x433308
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x433308
mov eax, dword [0x46f38c]
cmp eax, dword [ebp - 0x18]
je 0x433308
push eax
call esi
test eax, eax
je 0x433308
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46f384]
call esi
test eax, eax
je 0x433324
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x433326
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a541
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x397139ce
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x1c8a3590
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x406530
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48f99b
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.004848ea
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4065b2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004827fc
mov eax, dword [eax]
push 0x512c48
push eax
call fcn.00474a44
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00484b75
test bl, bl
je 0x4065b2
push 0x512c48
lea ecx, [esp + 0xc]
call fcn.00484f05
push 0x512c54
lea ecx, [esp + 0xc]
call fcn.00484f05
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 0x4065ee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00484b75
jmp 0x4066b9
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 0x406672
lea edx, [esp + 0x7c]
push 0x512c50
push edx
call fcn.00474a44
add esp, 8
test eax, eax
je 0x406672
lea eax, [esp + 0x7c]
push 0x512c4c
push eax
call fcn.00474a44
add esp, 8
test eax, eax
je 0x406672
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 0x406602
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.00484b75
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 0x406ec0
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 0x406f22
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 0x406f30
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48fa1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x521fd8]
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 0x407068
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x406f96
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00484b75
xor eax, eax
jmp 0x4070df
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00484cb2
push esi
lea ecx, [esp + 0xc]
call fcn.00484f41
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4070bd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00406ec0
test eax, eax
jne 0x4070bd
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.00406ec0
test eax, eax
jne 0x4070bd
lea eax, [esp + 0x14]
push 0x512c64
push eax
call fcn.00475ae0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40709c
lea ecx, [esp + 0x14]
push 0x512c60
push ecx
call fcn.00475a60
mov esi, eax
add esp, 8
test esi, esi
jne 0x40709c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40709f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00484c62
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x406fae
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00484b75
xor eax, eax
jmp 0x4070df
mov byte [esi], 0
push 0x512c5c
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.00484b75
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