joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ee28
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x48ee44
call fcn.0048fc70
jmp 0x48eeb3
lea edx, [ebp - 0x108]
push edx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
jne 0x48ee60
call fcn.0048fc70
jmp 0x48eeb3
cmp dword [0x4dfb20], 1
je 0x48eeb1
movsx ecx, byte [ebp - 0x108]
push ecx
call fcn.00493b28
pop ecx
cmp al, 0x41
jl 0x48eeb1
cmp al, 0x5a
jg 0x48eeb1
cmp byte [ebp - 0x107], 0x3a
jne 0x48eeb1
mov byte [ebp - 4], 0x3d
mov byte [ebp - 3], al
lea eax, [ebp - 0x108]
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push eax
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x48eeb1
call fcn.0048fc70
jmp 0x48eeb3
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x493bec
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x493c4e
call fcn.00493b9c
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0048d454
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0048d454
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x493ccc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4a4a18], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x493da6
cmp dword [0x4a4a14], 0
jne 0x493da6
cmp dword [0x4a4c40], 0
je 0x493d60
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00493ad0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x493d46
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00493ad0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x493d46
lea ebx, [ebp - 0x84]
jmp 0x493d47
inc ebx
call fcn.00493c88
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x493de1
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4a4a1c
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0048d454
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4a4a1f
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x493de1
cmp dword [0x4a4a14], 0
je 0x493dc0
cmp dword [0x4a4a14], 0xffffffff
je 0x493de1
push esi
call dword [0x4a4a14]
pop ecx
mov eax, dword [0x4a4a18]
test eax, eax
je 0x493de1
cmp dword [0x4a4a18], 0xffffffff
je 0x493de1
cmp byte [eax], 0
je 0x493de1
push esi
push eax
call fcn.00493bec
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x495570
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0xc]
cmp esi, 0x10
jge 0x495596
test esi, esi
je 0x495596
call fcn.00493c54
mov dword [eax], 0x13
or eax, 0xffffffff
jmp 0x495608
call fcn.00495288
mov ebx, eax
test eax, eax
jne 0x4955b1
call fcn.00493c54
mov dword [eax], 8
or eax, 0xffffffff
jmp 0x495608
mov edx, dword [ebp + 0x10]
mov dword [ebx + 4], edx
lea edx, [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x14], ecx
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x54], eax
push edx
mov ecx, dword [ebp + 0x18]
push ecx
push ebx
push 0x4954cc
push esi
mov eax, dword [ebp + 0x14]
push eax
call sub.KERNEL32.DLL_CreateThread
test eax, eax
jne 0x4955fc
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x718
jne 0x4955f5
push 0x59
call fcn.0048fc04
pop ecx
jmp 0x495608
call fcn.0048fc70
jmp 0x495608
mov dword [ebx + 8], eax
test edi, edi
je 0x495608
mov edx, dword [ebp - 4]
mov dword [edi], edx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x401696
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x40176b
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x40176b
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
je 0x40176b
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, ebx
mov esi, dword [eax + 0x1c]
sub ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
add esi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
cmp ecx, edx
ja 0x4016f1
mov eax, dword [esi + ecx*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
mov ebp, dword [eax + 0x18]
add edx, edi
add ecx, edi
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x40176b
mov eax, dword [edx + esi*4]
add eax, edi
mov ecx, ebx
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x401736
test dl, dl
je 0x401732
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x401736
add ecx, 2
add eax, 2
test dl, dl
jne 0x401716
xor eax, eax
jmp 0x40173b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40174d
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + esi*2]
cmp eax, dword [esp + 0x20]
jbe 0x401758
inc esi
cmp esi, ebp
jae 0x40176b
mov edx, dword [esp + 0x10]
jmp 0x40170c
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8

Function at 0x4019cf
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x4019da
xor eax, eax
ret
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0x40
jb 0x4019ee
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x4019f2
xor eax, eax
pop esi
ret
push edi
mov edi, dword [ecx + 0x3c]
lea eax, [edi + 0xf8]
cmp esi, eax
jb 0x401a2b
cmp dword [edi + ecx], 0x4550
jne 0x401a2b
mov eax, 0x14c
cmp word [edi + ecx + 4], ax
jne 0x401a2b
test byte [edi + ecx + 0x16], 2
je 0x401a2b
movzx eax, word [edi + ecx + 0x14]
mov edx, 0xe0
cmp ax, dx
jae 0x401a30
pop edi
xor eax, eax
pop esi
ret
push ebx
add eax, 0xffffff20
movzx ebx, ax
add ebx, edi
movzx edi, word [edi + ecx + 6]
add ebx, ecx
xor edx, edx
test edi, edi
jle 0x401a6c
xor eax, eax
jmp 0x401a4f
lea eax, [eax + eax*4]
mov ecx, dword [ebx + eax*8 + 0x10c]
add ecx, dword [ebx + eax*8 + 0x108]
cmp ecx, esi
ja 0x401a75
inc edx
movzx eax, dx
cmp eax, edi
jl 0x401a4f
pop ebx
pop edi
mov eax, 1
pop esi
ret
pop ebx
pop edi
xor eax, eax
pop esi
ret
Function at 0x401a7b
Capabilities:
Access peb ldr_data

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x10]
mov edi, dword [ebp + 0x30]
mov esi, dword [esp + 0x18]
movzx ebx, word [esi]
mov eax, ebx
lea ecx, [eax - 0x41]
cmp ecx, 0x19
ja 0x401ab3
add eax, 0x20
movzx edx, word [edi]
lea ecx, [edx - 0x41]
cmp ecx, 0x19
ja 0x401ac1
add edx, 0x20
cmp eax, edx
jne 0x401ad2
test bx, bx
je 0x401b07
add esi, 2
add edi, 2
jmp 0x401aa3
movzx ecx, word [esi]
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x401ae0
add ecx, 0x20
movzx edx, word [edi]
lea eax, [edx - 0x41]
cmp eax, 0x19
ja 0x401aee
add edx, 0x20
sub ecx, edx
je 0x401b07
mov ebp, dword [ebp]
mov dword [esp + 0x10], ebp
cmp dword [ebp + 0x18], 0
jne 0x401a9c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x402580
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx]
test eax, eax
je 0x402641
test ecx, ecx
je 0x402641
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x402641
test ebx, ebx
je 0x402641
mov ebx, eax
add ebx, edx
je 0x402641
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x402641
cmp dword [edx + eax + 0x14], 0
je 0x402641
mov edi, dword [edx + eax + 0x20]
mov ebx, dword [edx + eax + 0x24]
add edi, eax
mov edx, dword [edx + eax + 0x1c]
add ebx, eax
add edx, eax
test esi, esi
jbe 0x402641
mov dword [esp], edx
xor ebp, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
movzx ecx, word [ebx + ebp*2]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x24]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x402631
test dl, dl
je 0x40262d
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x402631
add edi, 2
add esi, 2
test dl, dl
jne 0x402611
xor eax, eax
jmp 0x402636
sbb eax, eax
or eax, 1
test eax, eax
je 0x40264d
inc ebp
cmp ebp, dword [esp + 4]
jb 0x4025fe
xor eax, eax
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esp]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
add eax, edx
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x406992
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push 0
push 0x537079
push str.ComSpec
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4069e1
push 0x19
push 0x416355b
push 6
call fcn.004d5785
add esp, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
inc ecx
push ecx
push eax
cmp ecx, eax
jg 0x406a28
push 0x5370a2
push dword [ebp - 8]
mov ecx, 2
call fcn.00403f2d
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x406a20
push ebx
call fcn.004d5797
add esp, 4
pop eax
mov dword [ebp - 8], eax
pop eax
pop ecx
jmp 0x4069e9
add esp, 8
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
push dword [ebp - 8]
push str.ComSpec
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x406a5f
push 0xb3
push 0x416355b
push 6
call fcn.004d5785
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x406a7b
push eax
mov ebx, eax
call fcn.00403e25
inc eax
push eax
call fcn.004d577f
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x406a80
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x406a91
push ebx
call fcn.004d5797
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x406a96
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esp
push 0
mov ebx, dword [ebp - 4]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
cmp dword [ebp - 8], esp
je 0x406ada
push 0
push 0x416355c
push 6
call fcn.004d5785
add esp, 0xc
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esp
mov ebx, dword [ebp - 4]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 8], esp
je 0x406b13
push 0x2c
push 0x416355c
push 6
call fcn.004d5785
add esp, 0xc
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esp
mov ebx, dword [ebp - 4]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 8], esp
je 0x406b49
push 0x4f
push 0x416355c
push 6
call fcn.004d5785
add esp, 0xc
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0xc
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 4]
mov dword [ebx], 0
mov ebx, dword [ebp - 8]
mov dword [ebx], 0
mov ebx, dword [ebp - 0xc]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x10]
mov dword [ebx], 0
mov esp, ebp
pop ebp
ret 4
Function at 0x409940
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push 0
push 0x537079
push str.ComSpec
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40998f
push 0x19
push 0x4162304
push 6
call fcn.004d5785
add esp, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
inc ecx
push ecx
push eax
cmp ecx, eax
jg 0x4099d6
push 0x5370a2
push dword [ebp - 8]
mov ecx, 2
call fcn.00403f2d
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4099ce
push ebx
call fcn.004d5797
add esp, 4
pop eax
mov dword [ebp - 8], eax
pop eax
pop ecx
jmp 0x409997
add esp, 8
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
push dword [ebp - 8]
push str.ComSpec
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x409a0d
push 0xb3
push 0x4162304
push 6
call fcn.004d5785
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x409a29
push eax
mov ebx, eax
call fcn.00403e25
inc eax
push eax
call fcn.004d577f
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x409a2e
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x409a3f
push ebx
call fcn.004d5797
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x409a44
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esp
push 0
mov ebx, dword [ebp - 4]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
cmp dword [ebp - 8], esp
je 0x409a88
push 0
push 0x4162305
push 6
call fcn.004d5785
add esp, 0xc
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esp
mov ebx, dword [ebp - 4]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 8], esp
je 0x409ac1
push 0x2c
push 0x4162305
push 6
call fcn.004d5785
add esp, 0xc
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esp
mov ebx, dword [ebp - 4]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 8], esp
je 0x409af7
push 0x4f
push 0x4162305
push 6
call fcn.004d5785
add esp, 0xc
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0xc
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 4]
mov dword [ebx], 0
mov ebx, dword [ebp - 8]
mov dword [ebx], 0
mov ebx, dword [ebp - 0xc]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x10]
mov dword [ebx], 0
mov esp, ebp
pop ebp
ret 4
Function at 0x412057
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push 0
push 0x537079
push str.ComSpec
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4120a6
push 0x19
push 0x415d040
push 6
call fcn.004d5785
add esp, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
inc ecx
push ecx
push eax
cmp ecx, eax
jg 0x4120ed
push 0x5370a2
push dword [ebp - 8]
mov ecx, 2
call fcn.00403f2d
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4120e5
push ebx
call fcn.004d5797
add esp, 4
pop eax
mov dword [ebp - 8], eax
pop eax
pop ecx
jmp 0x4120ae
add esp, 8
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
push dword [ebp - 8]
push str.ComSpec
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x412124
push 0xb3
push 0x415d040
push 6
call fcn.004d5785
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x412140
push eax
mov ebx, eax
call fcn.00403e25
inc eax
push eax
call fcn.004d577f
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x412145
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x412156
push ebx
call fcn.004d5797
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x41215b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esp
push 0
mov ebx, dword [ebp - 4]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
cmp dword [ebp - 8], esp
je 0x41219f
push 0
push 0x415d042
push 6
call fcn.004d5785
add esp, 0xc
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esp
mov ebx, dword [ebp - 4]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 8], esp
je 0x4121d8
push 0x2c
push 0x415d042
push 6
call fcn.004d5785
add esp, 0xc
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esp
mov ebx, dword [ebp - 4]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 8], esp
je 0x41220e
push 0x4f
push 0x415d042
push 6
call fcn.004d5785
add esp, 0xc
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0xc
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 4]
mov dword [ebx], 0
mov ebx, dword [ebp - 8]
mov dword [ebx], 0
mov ebx, dword [ebp - 0xc]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x10]
mov dword [ebx], 0
mov esp, ebp
pop ebp
ret 4
Function at 0x41388d
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x4138ac
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
nop
cmp dword [ebp - 8], esp
je 0x4138d3
push 0x19
push 0x4162312
push 6
call fcn.004d5785
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4138ea
mov eax, 0
jmp 0x413926
push 0x80000301
push 0
push 0x10
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc4
call fcn.004d81f0
add esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
mov eax, 0
setne al
jmp 0x413926
mov esp, ebp
pop ebp
ret 4
Function at 0x41901c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
jmp 0x419045
cmp dword [0x9b8993], 0
jne 0x419106
mov dword [ebp - 0xc], esp
push 0x40
push 0x3000
push 0x1e
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x41908f
push 0x106
push 0x4159ac2
push 6
call fcn.004d5785
add esp, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [0x9b8993], eax
mov eax, 0x9a2e1c
test eax, eax
je 0x4190b6
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004d577f
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4190c7
push ebx
call fcn.004d5797
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0x80000301
push 0
push dword [ebp - 4]
push SysStringLen
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4190ee
mov eax, 0x53707a
push eax
push 3
mov ebx, 0x914
call fcn.004d91c0
add esp, 0x28
jmp 0x41910e
mov eax, dword [0x9b8993]
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [ebp - 4]
call eax
leave
ret 0xc
Function at 0x42c91b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x2000
push 0x80000301
push 0
push 0x1000
push 2
mov ebx, 0xc8
call fcn.004d8e60
add esp, 0x1c
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0x40
push dword [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x42c98f
push 0x39
push 0x41495db
push 6
call fcn.004d5785
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x42ca0c
push 0x80000301
push 0
push 0x2000
push 0x80000301
push 0
push 0x1000
push 2
mov ebx, 0xc8
call fcn.004d8e60
add esp, 0x1c
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0x40
push dword [ebp - 8]
push dword [ebp + 0xc]
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x42ca02
push 0xcf
push 0x41495db
push 6
call fcn.004d5785
add esp, 0xc
jmp 0x42ca14
mov eax, dword [ebp - 4]
jmp 0x42ca14
mov esp, ebp
pop ebp
ret 8
Function at 0x430b46
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push SysStringLen
push 0
push 0x9a4179
push 1
mov ebx, 4
mov eax, 0x4e33f0
call fcn.004d72c0
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x9a419c
push dword [ebp - 0x14]
mov ecx, 2
call fcn.0040c652
add esp, 8
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x430bb9
push ebx
call fcn.004d5797
add esp, 4
push SysStringLen
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x430bcc
mov eax, 0x53707a
push eax
push 1
mov ebx, 0x168
call fcn.004d79c0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x430bf2
push ebx
call fcn.004d5797
add esp, 4
push SysStringLen
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x430c05
mov eax, 0x537079
push eax
push 1
mov ebx, 0x10c
call fcn.004d9950
add esp, 0x10
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x430c2b
push ebx
call fcn.004d5797
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x430c3f
push ebx
call fcn.004d5797
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.004d92a0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x430c78
push ebx
call fcn.004d5797
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.004d92a0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x430cb1
push ebx
call fcn.004d5797
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], esp
push 0xff
push dword [ebp - 0xc]
mov eax, 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, 0xff
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0xff
push dword [ebp - 8]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x430d0d
push 0x27b
push 0x41523d5
push 6
call fcn.004d5785
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x430d22
mov eax, dword [ebp - 0x10]
jmp 0x430d2c
mov eax, 0
jmp 0x430d2c
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x430d3d
push ebx
call fcn.004d5797
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x430d4d
push ebx
call fcn.004d5797
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x430d5d
push ebx
call fcn.004d5797
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret