joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ddb78
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7e8
push ebx
xor ebx, ebx
mov dword [ebp - 0x818], ebx
mov dword [ebp - 0x14], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00405210
xor eax, eax
push ebp
push 0x4ddc82
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
push 0x4ddc90
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4ddc4f
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405220
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4ddc46
lea eax, [ebp - 0x10]
push eax
push 0x7ff
lea eax, [ebp - 0x814]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x4ddc3d
cmp dword [ebp - 0x10], 0
jbe 0x4ddc37
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x814], 0
lea edx, [ebp - 0x818]
lea eax, [ebp - 0x814]
call fcn.0040af50
mov edx, dword [ebp - 0x818]
lea eax, [ebp - 0x14]
call fcn.00405028
cmp dword [ebp - 0x10], 0
jne 0x4ddbea
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, ebx
mov edx, dword [ebp - 0x14]
call fcn.00404d88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ddc89
lea eax, [ebp - 0x818]
call fcn.00404d34
lea eax, [ebp - 0x14]
call fcn.00404d34
lea eax, [ebp - 4]
call fcn.00404d34
ret

Function at 0x4de4a4
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
lea eax, [ebp - 4]
call fcn.00405b24
xor eax, eax
push ebp
push 0x4de58a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00405538
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0046edb4
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
call fcn.00405598
push 0
push 0x8000000
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, 0x4de59c
call fcn.004057e0
mov eax, dword [ebp - 0x1c]
call fcn.00405764
push eax
call sub.KERNEL32.DLL_CreateFileW_1
cmp eax, 0xffffffff
je 0x4de567
push 0
lea edx, [ebp - 8]
push edx
push 0xc
lea edx, [ebp - 0x14]
push edx
push 0
push 0
push 0x2d1080
push eax
call sub.KERNEL32.DLL_DeviceIoControl_1
mov esi, dword [ebp - 0xc]
test esi, esi
jl 0x4de567
push ebx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x24], esi
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x2c]
mov ecx, 1
mov eax, 0x4de5ac
call fcn.0040ba74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4de591
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00405550
lea eax, [ebp - 4]
call fcn.00405538
ret
Function at 0x4de6c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x210], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4de7a1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20a]
mov edx, 0x20a
call fcn.0046c500
push 0x20a
lea eax, [ebp - 0x20a]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryW_1
mov eax, ebx
call fcn.004de684
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 8]
lea eax, [eax + edx*8 - 8]
mov edx, 0x4de7b4
call fcn.00405574
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 8]
lea eax, [eax + edx*8 - 4]
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.004056cc
mov eax, dword [ebx + 4]
mov esi, dword [ebx + 8]
lea eax, [eax + esi*8 - 4]
mov edx, 0x4de7d4
call fcn.00405780
mov eax, ebx
call fcn.004de684
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 8]
lea eax, [eax + edx*8 - 8]
mov edx, 0x4de7dc
call fcn.00405574
lea eax, [ebp - 0x210]
call fcn.0046e6e0
mov edx, dword [ebp - 0x210]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
lea eax, [eax + ecx*8 - 4]
call fcn.00405574
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4de7a8
lea eax, [ebp - 0x210]
call fcn.00405538
ret

Function at 0x4de82c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ecx
mov edi, edx
xor eax, eax
push ebp
push 0x4de8e6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x105
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x4de804]
call fcn.00406750
add esp, 4
mov eax, dword [ebp - 4]
call fcn.00405538
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
push edi
call sub.KERNEL32.DLL_GetVolumePathNamesForVolumeNameW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x4de89f
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.00405690
jmp 0x4de8ca
call sub.KERNEL32.DLL_GetLastError_2
mov esi, eax
cmp esi, 0xea
jne 0x4de8ca
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x4de804]
call fcn.00406750
add esp, 4
jmp 0x4de876
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4de8ed
lea eax, [ebp - 0xc]
mov edx, dword [0x4de804]
call fcn.0040687c
ret
Function at 0x4de8f4
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x4de8fd
mov eax, dword [ebp - 4]
add esp, 0xffffffe0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x4024], edx
mov dword [ebp - 0x401c], edx
mov dword [ebp - 0x4020], edx
mov dword [ebp - 0x14], edx
mov ebx, eax
lea edi, [ebp - 0x4018]
xor eax, eax
push ebp
push 0x4deabc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
xor ecx, ecx
mov edx, 0x2002
call fcn.00403638
lea eax, [ebp - 0x2016]
xor ecx, ecx
mov edx, 0x2002
call fcn.00403638
push 0x1001
push edi
call sub.KERNEL32.DLL_FindFirstVolumeW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4dea96
lea eax, [ebp - 0x14]
mov edx, edi
mov ecx, 0x1001
call fcn.004056cc
mov eax, dword [ebp - 0x14]
call fcn.00405774
mov esi, eax
dec esi
cmp word [edi], 0x5c
jne 0x4dea8d
cmp word [edi + 2], 0x5c
jne 0x4dea8d
cmp word [edi + 4], 0x3f
jne 0x4dea8d
cmp word [edi + 6], 0x5c
jne 0x4dea8d
cmp word [edi + esi*2], 0x5c
jne 0x4dea8d
mov word [edi + esi*2], 0
push 0x1001
lea eax, [ebp - 0x2016]
push eax
lea eax, [edi + 8]
push eax
call sub.KERNEL32.DLL_QueryDosDeviceW_1
mov dword [ebp - 4], eax
mov word [edi + esi*2], 0x5c
cmp dword [ebp - 4], 0
je 0x4dea8d
mov eax, ebx
call fcn.004de684
lea eax, [ebp - 0x4020]
lea edx, [ebp - 0x2016]
mov ecx, 0x1001
call fcn.004056cc
mov eax, dword [ebp - 0x4020]
lea edx, [ebp - 0x401c]
call fcn.00409dd8
mov edx, dword [ebp - 0x401c]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
lea eax, [eax + ecx*8 - 8]
mov ecx, 0x4dead0
call fcn.004057e0
lea ecx, [ebp - 0x4024]
mov edx, edi
mov eax, ebx
call fcn.004de82c
mov edx, dword [ebp - 0x4024]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
lea eax, [eax + ecx*8 - 4]
call fcn.00405574
push 0x1001
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_FindNextVolumeW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x4de975
call sub.KERNEL32.DLL_GetLastError_2
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x12
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_FindVolumeClose
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4deac3
lea eax, [ebp - 0x4024]
mov edx, 3
call fcn.00405550
lea eax, [ebp - 0x14]
call fcn.00405538
ret
Function at 0x4e7824
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4e78cb
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00405220
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jbe 0x4e78b5
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.004053ac
mov eax, dword [ebp - 0x10]
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
mov eax, esi
call fcn.00405220
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4e78b5
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4e78dc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4e78b5
cmp dword [ebp - 8], 0x34
jne 0x4e78b5
mov bl, 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e78d2
lea eax, [ebp - 0x10]
call fcn.00404d34
ret

Function at 0x4e7cc0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, eax
mov byte [ebp - 1], 0
push 0x4e7d3c
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4e7d2d
xor edx, edx
push ebp
push 0x4e7d26
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4e7d4c
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
test eax, eax
je 0x4e7d09
push ebx
call eax
mov byte [ebp - 1], 1
jmp 0x4e7d0f
push ebx
call sub.KERNEL32.DLL_GetSystemInfo
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e7d33
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FreeLibrary_1
ret
push ebx
call sub.KERNEL32.DLL_GetSystemInfo
mov al, byte [ebp - 1]
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4e8344
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e8504
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x24
call fcn.00403638
lea eax, [ebp - 0x28]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov eax, dword [ebp - 0x14]
mov dword [0x4f843c], eax
mov eax, dword [ebp - 0xc]
mov dword [0x4f8440], eax
mov eax, dword [ebp - 0x24]
mov dword [0x4f8444], eax
mov eax, dword [0x4f8dd8]
cmp dword [eax], 2
sete byte [0x4f800c]
push 0x4e8510
call sub.KERNEL32.DLL_GetModuleHandleA_2
lea edx, [ebp - 4]
call fcn.004e77f4
cmp byte [0x4f800c], 0
jne 0x4e83d0
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.004e7824
test al, al
je 0x4e83d0
mov eax, dword [ebp - 0x4c]
mov dword [0x4faf0c], eax
jmp 0x4e83d7
xor eax, eax
mov dword [0x4faf0c], eax
call fcn.004e7ad4
and eax, 0x7f
cmp eax, 0x10
ja case.0x4e83e8.0
jmp dword [eax*4 + 0x4e83ef]
mov byte [0x4f7ff8], 1
jmp case.0x4e83e8.0
mov byte [0x4f7ffc], 1
jmp case.0x4e83e8.0
mov byte [0x4f8000], 1
jmp case.0x4e83e8.0
mov byte [0x4f8004], 1
jmp case.0x4e83e8.0
mov byte [0x4f8008], 1
jmp case.0x4e83e8.0
mov byte [0x4f8010], 1
mov byte [0x4f8014], 1
jmp case.0x4e83e8.0
mov byte [0x4f8010], 1
mov byte [0x4f8018], 1
jmp case.0x4e83e8.0
mov byte [0x4f8010], 1
mov byte [0x4f8018], 1
mov byte [0x4f801c], 1
jmp case.0x4e83e8.0
mov byte [0x4f8020], 1
jmp case.0x4e83e8.0
mov byte [0x4f8024], 1
jmp case.0x4e83e8.0
mov byte [0x4f8028], 1
jmp case.0x4e83e8.0
mov byte [0x4f802c], 1
jmp case.0x4e83e8.0
mov byte [0x4f8030], 1
jmp case.0x4e83e8.0
mov byte [0x4f8034], 1
jmp case.0x4e83e8.0
mov byte [0x4f8038], 1
jmp case.0x4e83e8.0
mov byte [0x4f803c], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e850b
lea eax, [ebp - 4]
call fcn.00404d34
ret
Function at 0x4ea9b8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd5c
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x258]
mov ecx, 0x95
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], edx
mov ebx, eax
lea eax, [ebp - 4]
call fcn.00405b24
lea esi, [ebp - 0x2a4]
lea edi, [ebp - 0x258]
xor eax, eax
push ebp
push 0x4eaa92
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
push esi
push edi
lea eax, [edi + 0x10]
lea edi, [esi + 0x10]
mov esi, eax
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov al, byte [edi + 0x24c]
mov byte [esi + 0x44], al
mov al, byte [edi + 0x24d]
mov byte [esi + 0x45], al
mov al, byte [edi + 0x24e]
mov byte [esi + 0x46], al
mov al, byte [edi + 0x24f]
mov byte [esi + 0x47], al
mov eax, dword [edi + 0x250]
mov dword [esi + 0x48], eax
mov ecx, esi
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004eaaa4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4eaa99
lea eax, [ebp - 4]
call fcn.00405538
ret
Function at 0x4f3434
Capabilities:
Parse pe header

Disassembly:
push ebx
push ecx
mov ebx, eax
xor eax, eax
mov dword [esp], eax
push 0x40
push ebx
call sub.KERNEL32.DLL_IsBadReadPtr
test eax, eax
jne 0x4f3483
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x4f3483
cmp dword [eax + 0x3c], 0
je 0x4f3483
mov eax, dword [eax + 0x3c]
add eax, ebx
mov dword [esp], eax
push 0xf8
mov eax, dword [esp + 4]
push eax
call sub.KERNEL32.DLL_IsBadReadPtr
test eax, eax
jne 0x4f347e
mov eax, dword [esp]
cmp dword [eax], 0x4550
je 0x4f3483
xor eax, eax
mov dword [esp], eax
mov eax, dword [esp]
pop edx
pop ebx
ret

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x405c70
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4805fb
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.004625f4
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x405cf2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045d00e
mov eax, dword [eax]
push 0x4a0aa0
push eax
call fcn.0046ad7f
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046287f
test bl, bl
je 0x405cf2
push 0x4a0aa0
lea ecx, [esp + 0xc]
call fcn.00462c0f
push 0x4a0aac
lea ecx, [esp + 0xc]
call fcn.00462c0f
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 0x405d2e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046287f
jmp 0x405df9
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 0x405db2
lea edx, [esp + 0x7c]
push 0x4a0aa8
push edx
call fcn.0046ad7f
add esp, 8
test eax, eax
je 0x405db2
lea eax, [esp + 0x7c]
push 0x4a0aa4
push eax
call fcn.0046ad7f
add esp, 8
test eax, eax
je 0x405db2
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 0x405d42
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.0046287f
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 0x4065f0
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 0x406652
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 0x406660
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48067b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4aa870]
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 0x406798
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4066c6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046287f
xor eax, eax
jmp 0x40680f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004629bc
push esi
lea ecx, [esp + 0xc]
call fcn.00462c4b
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 0x4067ed
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.004065f0
test eax, eax
jne 0x4067ed
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.004065f0
test eax, eax
jne 0x4067ed
lea eax, [esp + 0x14]
push 0x4a0abc
push eax
call fcn.0046b283
mov esi, eax
add esp, 8
test esi, esi
jne 0x4067cc
lea ecx, [esp + 0x14]
push 0x4a0ab8
push ecx
call fcn.0046b020
mov esi, eax
add esp, 8
test esi, esi
jne 0x4067cc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4067cf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046296c
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4066de
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046287f
xor eax, eax
jmp 0x40680f
mov byte [esi], 0
push 0x4a0ab4
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.0046287f
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
Function at 0x419720
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4824d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x6c]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x74]
push edi
push eax
mov eax, dword [esp + 0x74]
push ecx
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.0041a2a0
lea edx, [esp + 0x18]
push eax
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x18]
xor edi, edi
xor ecx, ecx
cmp eax, edi
setl cl
dec ecx
xor edx, edx
and ecx, eax
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x18], ecx
setl dl
dec edx
and edx, eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], edx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x4197c9
mov eax, dword [esp + 0x6c]
push ebx
mov ebx, eax
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.004193b0
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push edi
lea ecx, [esp + 0x4c]
call fcn.00466392
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], edi
call fcn.00431d40
mov edx, dword [esp + 0x5c]
add esp, 0xc
lea ecx, [esp + 0x18]
push 2
push ecx
push edx
call dword [sym.imp.GDI32.dll_LPtoDP]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
lea edx, [esp + 0x38]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, esi
mov dword [esp + 0x64], 0xffffffff
mov dword [edx], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x48]
call fcn.00466404
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14