joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4042f7
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
mov dword [ebp - 7], 0
mov dword [ebp - 0xf], 0
mov dword [ebp - 0xb], 0
xor ebx, ebx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004056de
mov esi, eax
mov edi, dword [ebp + 0xc]
push 0
push 0x39
lea edx, [ebp - 0x48]
push edx
call fcn.0040171c
mov ecx, esi
lea edx, [ebp - 0x48]
call fcn.00401980
test eax, eax
je 0x40438c
cmp byte [ebp - 0x30], 0xcc
jne 0x40434d
inc dword [ebp - 0xf]
jmp 0x40437c
mov ecx, dword [ebp - 0xf]
jecxz 0x40437c
cmp ecx, dword [ebp + 0x14]
jb 0x404375
mov eax, edi
sub eax, ecx
push ecx
push eax
push dword [ebp + 0x18]
call fcn.004041e7
cmp eax, 1
jne 0x40438c
add dword [ebp - 0xb], ecx
mov eax, dword [ebp - 0xb]
cmp eax, dword [ebp + 0x28]
jae 0x40438c
mov dword [ebp - 0xf], 0
xor eax, eax
mov al, byte [ebp - 0x48]
add esi, eax
add edi, eax
add ebx, eax
cmp ebx, dword [ebp + 0x10]
jb 0x404334
popal
mov eax, dword [ebp - 0xb]
leave
ret 0x24

Function at 0x404394
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
mov dword [ebp - 7], 0
mov dword [ebp - 0xf], 0
mov dword [ebp - 0xb], 0
xor ebx, ebx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004056de
mov esi, eax
mov edi, dword [ebp + 0xc]
push 0
push 0x39
lea edx, [ebp - 0x48]
push edx
call fcn.0040171c
mov ecx, esi
lea edx, [ebp - 0x48]
call fcn.00401980
test eax, eax
jne 0x404404
mov edx, dword [ebp + 0xc]
add edx, ebx
push edx
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x24]
push dword [ebp + 8]
call fcn.0040561a
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp + 0x10]
cmp ecx, eax
jbe 0x40444e
sub eax, edx
jmp 0x404443
cmp byte [ebp - 0x30], 0xcc
jne 0x40440f
inc dword [ebp - 0xf]
jmp 0x40443e
mov ecx, dword [ebp - 0xf]
jecxz 0x40443e
cmp ecx, dword [ebp + 0x14]
jb 0x404437
mov eax, edi
sub eax, ecx
push ecx
push eax
push dword [ebp + 0x18]
call fcn.004041e7
cmp eax, 1
jne 0x40444e
add dword [ebp - 0xb], ecx
mov eax, dword [ebp - 0xb]
cmp eax, dword [ebp + 0x28]
jae 0x40444e
mov dword [ebp - 0xf], 0
xor eax, eax
mov al, byte [ebp - 0x48]
add esi, eax
add edi, eax
add ebx, eax
cmp ebx, dword [ebp + 0x10]
jb 0x4043d1
popal
mov eax, dword [ebp - 0xb]
leave
ret 0x24
Function at 0x40470b
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
pushal
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
push 0x41c23a
push 0x41c12c
push dword [ebp + 8]
call fcn.0040389f
cmp eax, 0
je 0x404963
push dword [ebp + 8]
call fcn.00404669
mov dword [ebp - 4], eax
push eax
call fcn.004046e4
push 0
push 0x41c12c
push 0x4066f7
call fcn.0040267f
push 0
push 0x41c23a
push 0x4066ed
call fcn.0040267f
lea edx, [ebp - 0x88]
push edx
push 0
push 0
push dword [ebp + 8]
call fcn.0040232a
test eax, eax
je 0x404963
mov dword [ebp - 0x8c], eax
push 0x10000
call fcn.0040206c
test eax, eax
je 0x404963
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x60]
push edx
lea edx, [ebp - 0x7c]
push edx
lea edx, [ebp - 0x80]
push edx
lea edx, [ebp - 0x84]
push edx
lea edx, [ebp - 0x6c]
push edx
lea edx, [ebp - 0x78]
push edx
push dword [ebp - 0x8c]
call fcn.00403826
cmp dword [ebp - 0x84], 0
je 0x404963
push dword [ebp - 4]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 0x10]
push edx
push 0xa6
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
push dword [ebp - 0x6c]
push dword [ebp - 0x84]
push dword [ebp - 0x8c]
call fcn.00403f89
push dword [ebp - 0xc]
push 0x419a70
call fcn.00404456
push dword [ebp - 0x10]
push 0x419a8e
call fcn.00404456
mov dword [ebp - 0x14], eax
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
push dword [ebp - 0x84]
push dword [ebp - 0x8c]
call fcn.0040447a
push eax
push 0x419aa2
call fcn.00404456
cmp eax, dword [ebp - 0xc]
jae 0x404868
jmp 0x404963
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
push dword [ebp - 0x84]
push dword [ebp - 0x8c]
call fcn.00404528
test eax, eax
je 0x404963
mov byte [0x439fe1], 0
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push 0xa6
push 0x419f24
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x8c]
call fcn.00403d61
push eax
push 0x419ab4
call fcn.00404456
cmp eax, 0
je 0x404963
push dword [ebp + 8]
push 0x4197c2
call fcn.00402029
push 0x41c12c
push 0x4197d2
call fcn.00402029
push dword [ebp - 0x14]
call fcn.00402089
push dword [ebp - 0x18]
call fcn.00402089
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 0x41c12c
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_MoveFileA]
push 0
push dword [ebp + 8]
push 0x41c12c
call dword [sym.imp.kernel32.dll_CopyFileA]
push 0
push 0x439fe1
push dword [ebp + 8]
push 0x41c12c
call fcn.0040316d
push 0
push dword [ebp - 0x88]
push dword [ebp - 0x8c]
push dword [ebp + 8]
call fcn.0040225c
test eax, eax
je 0x404963
push dword [ebp - 0x84]
push 0x41c23a
call fcn.00405075
mov dword [ebp - 0xa0], 1
cmp dword [ebp - 0x14], 0
je 0x404971
push dword [ebp - 0x14]
call fcn.00402089
cmp dword [ebp - 0x18], 0
je 0x40497f
push dword [ebp - 0x18]
call fcn.00402089
popal
mov eax, dword [ebp - 0xa0]
leave
ret 4
Function at 0x4049ce
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
pushal
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
push 1
push 6
call dword [sym.imp.kernel32.dll_OpenFileMappingA]
test eax, eax
jne 0x404a0a
push 0xc8
call dword [sym.imp.kernel32.dll_Sleep]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x14
jb 0x4049e3
jmp 0x404a7d
mov ebx, eax
mov dword [ebp - 4], 0
push dword [ebp + 0xc]
push 0
push 0
push 6
push ebx
call dword [sym.imp.kernel32.dll_MapViewOfFile]
test eax, eax
jne 0x404a3d
push 0xc8
call dword [sym.imp.kernel32.dll_Sleep]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x14
jb 0x404a13
jmp 0x404a76
mov esi, eax
mov edi, dword [ebp + 8]
push 0xc8
call dword [sym.imp.kernel32.dll_Sleep]
push dword [ebp + 0xc]
push esi
push edi
call fcn.00401731
mov dword [esi], 0x21444e45
push 0xc8
call dword [sym.imp.kernel32.dll_Sleep]
push esi
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov dword [ebp - 8], 1
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
popal
mov eax, dword [ebp - 8]
leave
ret 0xc
Function at 0x404fda
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x10], 1
pushal
lea esi, [ebp - 0x54]
lea edi, [ebp - 0x10]
push 0
push 0x44
push esi
call fcn.0040171c
push 0
push 0x10
push edi
call fcn.0040171c
mov dword [ebp - 0x54], 0x44
mov eax, dword [ebp + 8]
cmp dword [ebp + 0xc], 0
je 0x405059
push dword [ebp + 8]
lea edx, [ebp - 0x25c]
push edx
call fcn.004015e9
lea edx, [ebp - 0x25c]
push edx
call fcn.00401769
lea ecx, [ebp - 0x25c]
mov dword [eax + ecx], 0x20
push dword [ebp + 0xc]
lea edx, [ebp - 0x25c]
push edx
call fcn.004016fd
lea eax, [ebp - 0x25c]
push edi
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.kernel32.dll_CreateProcessA]
popal
leave
ret 8
Function at 0x4050bd
Capabilities:
Get file attributes
Get file size
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], pe_nt_image_headers32
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
inc eax
je 0x4050fe
dec eax
mov dword [ebp - 0x18], eax
push pe_nt_image_headers32
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
push 0
push pe_nt_image_headers32
push 4
push 0
push 0
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
inc eax
je 0x40522e
push 0
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp + 0x14]
jae 0x405142
mov dword [ebp + 0x14], eax
mov dword [ebp - 8], 1
test eax, eax
je 0x4051b0
push eax
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
test eax, eax
je 0x40521c
mov edi, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_ReadFile]
dec eax
jne 0x40520d
add edi, dword [ebp - 4]
sub esi, dword [ebp - 4]
jne 0x40515c
push 0
push 0
push 0
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_SetFilePointer]
inc eax
je 0x40520d
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_WriteFile]
dec eax
jne 0x40520d
add edi, dword [ebp - 4]
sub esi, dword [ebp - 4]
jne 0x405194
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_WriteFile]
dec eax
jne 0x40520d
add edi, dword [ebp - 4]
sub esi, dword [ebp - 4]
jne 0x4051b6
cmp dword [ebp - 8], 1
je 0x40520d
cmp dword [ebp - 0xc], 0
je 0x40521c
mov edi, dword [ebp - 0xc]
add edi, dword [ebp + 0x14]
mov esi, dword [ebp - 0x10]
sub esi, dword [ebp + 0x14]
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_WriteFile]
dec eax
jne 0x40520d
add edi, dword [ebp - 4]
sub esi, dword [ebp - 4]
jne 0x4051ea
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0xc], 0
je 0x40521c
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_LocalFree]
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0
je 0x40522e
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
popal
mov eax, dword [ebp - 0x1c]
leave
ret 0x10
Function at 0x1004e70
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100913c]
and dword [ebp - 0x30], 0
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0x10
push dword [ebp + 0x14]
push esi
call sub.DNSAPI.dll_DnsQuery_W
test eax, eax
je 0x1004efa
cmp eax, 0x251d
jne 0x1004ece
push dword [ebp + 0x14]
lea eax, [ebp - 0x2c]
push eax
call fcn.01006c0e
lea eax, [ebp - 0x2c]
push eax
push esi
push 0x277a
push dword [ebp + 0xc]
push edi
call fcn.010057d0
add esp, 0x14
jmp 0x1004ef6
cmp eax, 0x232b
jne 0x1004edd
push esi
push 0x277b
jmp 0x1004eea
cmp eax, 0x25e5
je 0x1004ef6
push esi
push 0x277c
push dword [ebp + 0xc]
push edi
call fcn.010057d0
add esp, 0x10
xor eax, eax
jmp 0x1004f2b
cmp dword [ebp - 0x30], 0
je 0x1004f28
push esi
push 0x277d
push dword [ebp + 0xc]
push edi
call fcn.010057d0
add esp, 0x10
push dword [ebp - 0x30]
push dword [ebp + 0xc]
push edi
call fcn.01004e49
push 1
push dword [ebp - 0x30]
call sub.DNSAPI.dll_DnsRecordListFree
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0100646d
leave
ret 0x10

Function at 0x100516d
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov ecx, dword [ebp + 0x10]
xor eax, eax
cmp dword [ecx + 0x618], eax
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
jbe 0x1005289
mov edi, dword [ebp + 0x18]
push ebx
xor ebx, ebx
push esi
inc ebx
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x61c]
mov ecx, dword [ebp - 4]
push dword [ebp + 0x14]
mov esi, dword [eax + ecx*4]
push esi
call fcn.01004706
test eax, eax
je 0x100526c
test esi, esi
je 0x100526c
inc dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push 2
push ebx
push esi
call fcn.01002b0e
mov edi, eax
test edi, edi
je 0x10051e6
push edi
push 0xe
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0100589e
jmp 0x100526c
cmp dword [ebp + 0x18], 0
jne 0x10051f3
mov dword [ebp + 0x18], 0x100153c
push dword [ebp + 0x18]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x18]
push ebx
push 0
push 0x1001454
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xb
pop ecx
xor eax, eax
push eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
push esi
push ebx
push 0
mov dword [ebp - 0x28], ebx
call sub.DHCPCSVC.DLL_DhcpHandlePnPEvent
push dword [esi + 0x30c]
mov edi, eax
test edi, edi
je 0x1005259
push edi
push 0x2766
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0100581e
jmp 0x100526c
push 0x2767
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.010057d0
add esp, 0x10
inc dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x618]
jb 0x1005195
cmp dword [ebp - 8], 0
pop esi
pop ebx
jne 0x10052a1
push 0x275f
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.010057d0
add esp, 0xc
mov edi, 0x490
mov eax, edi
pop edi
leave
ret 0x14
Function at 0x1005960
Capabilities:
Initialize winsock library

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x198
cmp dword [0x1009f00], 0
mov eax, dword [0x100913c]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x198], 0x64
jne 0x10059a7
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [0x1009f00], 1
lea eax, [ebp - 0x198]
push eax
push esi
push 0
push 0x1c
push edi
call dword [sym.imp.WS2_32.dll_WSAAddressToStringW]
test eax, eax
je 0x10059d2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x10015c0
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
call fcn.0100646d
leave
ret 8

Function at 0x1006585
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x10015d0
call fcn.010067c8
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x10065c0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10065c0
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10065d8
cmp eax, 0x20b
je 0x10065c5
mov dword [ebp - 0x1c], edi
jmp 0x10065ec
cmp dword [ecx + 0x84], 0xe
jbe 0x10065c0
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x10065e6
cmp dword [ecx + 0x74], 0xe
jbe 0x10065c0
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1009f2c], 0xffffffff
or dword [0x1009f30], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1009f10]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1009f0c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1009f34], eax
call fcn.010067c0
cmp dword [0x1009140], edi
jne 0x1006647
push fcn.010067c0
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010067a9
push 0x1009010
push 0x100900c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1009f08]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1009f04]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x1009008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01005382
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x10066be
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10066f3
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01006803
ret
Function at 0x1006c7d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
jne 0x1006c93
or dword [ebp + 0x18], 0xffffffff
push ebx
mov ebx, dword [sym.imp.ntdll.dll_sprintf]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
lea eax, [edi + 0x13e]
cmp edi, eax
mov dword [ebp - 0x10], eax
jae 0x1006d57
mov cl, byte [esi]
mov al, cl
inc esi
and al, 0xc0
mov byte [ebp + 0xb], cl
jne 0x1006d03
movzx eax, cl
push eax
push 0x1001f10
push edi
mov dword [ebp - 0xc], eax
call ebx
add edi, eax
add esp, 0xc
cmp byte [ebp + 0xb], 0
mov dword [ebp - 8], edi
je 0x1006daa
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + esi]
cmp eax, dword [ebp + 0x18]
jae 0x1006d63
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
add dword [ebp - 8], ecx
mov edi, dword [ebp - 8]
jmp 0x1006d4c
cmp al, 0xc0
jne 0x1006d96
cmp esi, dword [ebp + 0x18]
jae 0x1006d76
xor eax, eax
mov ah, cl
mov al, byte [esi]
inc esi
movzx eax, ax
push eax
push 0x1001f08
push edi
mov dword [ebp + 8], eax
call ebx
add esp, 0xc
add edi, eax
cmp dword [ebp + 0x14], 0
je 0x1006d90
cmp dword [ebp - 4], 0
jne 0x1006d3a
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
xor eax, 0xc000
add eax, dword [ebp + 0x14]
lea ecx, [esi - 2]
cmp eax, ecx
jae 0x1006d7e
cmp edi, dword [ebp - 0x10]
mov esi, eax
jb 0x1006cb3
push 0x1001ed8
push edi
call ebx
pop ecx
pop ecx
jmp 0x1006da5
movzx eax, byte [ebp + 0xb]
push esi
push eax
push 0x1001e9c
push edi
call ebx
add esp, 0x10
jmp 0x1006da5
push esi
push 0x1001e68
jmp 0x1006d9f
push eax
lea eax, [esi - 2]
push eax
push 0x1001e34
push edi
call ebx
add esp, 0x10
jmp 0x1006da8
mov byte [edi], 0
inc edi
jmp 0x1006daa
movzx eax, cl
push eax
push 0x1001e18
push edi
call ebx
add esp, 0xc
mov esi, dword [ebp + 0x10]
add edi, eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1006db3
mov dword [eax], edi
cmp dword [ebp - 4], 0
je 0x1006dbc
mov esi, dword [ebp - 4]
pop edi
mov eax, esi
sub eax, dword [ebp + 0x10]
pop esi
pop ebx
leave
ret 0x14
Function at 0x4010e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x431004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
push pe_nt_image_headers32
push 0
push edi
mov ebx, ecx
call fcn.004090e0
add esp, 0xc
test esi, esi
jne 0x401115
push 0x57
jmp 0x40119f
push 0x1c
lea eax, [ebp - 0x24]
mov dword [ebp - 0xc], 0
push eax
xorps xmm0, xmm0
push esi
push ebx
movups xmmword [ebp - 0x24], xmm0
movq qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x4011a5
push 0
push 0x40
lea eax, [ebp - 0x64]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4011a5
mov eax, 0x5a4d
cmp word [ebp - 0x64], ax
jne 0x40119a
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x18]
ja 0x40119a
cmp eax, 0x40
jb 0x40119a
push 0
push pe_nt_image_headers32
push edi
add eax, esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4011a5
cmp dword [edi], 0x4550
jne 0x40119a
mov eax, dword [ebp - 0x28]
add eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00405785
mov esp, ebp
pop ebp
ret
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405785
mov esp, ebp
pop ebp
ret
Function at 0x401dd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
mov eax, dword [0x431004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x1c4], eax
test edi, edi
jne 0x401e12
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405785
mov esp, ebp
pop ebp
ret 8
push 4
push 0x1000
push 0x830
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x401dfd
push 0x40
lea eax, [ebp - 0xc8]
mov dword [ebp - 8], 0
push 0
push eax
call fcn.004090e0
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
add esp, 0xc
mov eax, 0x5a4d
mov dword [ebp - 0x8c], 0x40
mov word [ebp - 0xc8], ax
lea eax, [ebp - 8]
push eax
push 0x40
lea eax, [ebp - 0xc8]
push eax
push esi
push edi
call ebx
test eax, eax
je 0x401dfd
cmp dword [ebp - 8], 0x40
jne 0x401dfd
push pe_nt_image_headers32
lea eax, [ebp - 0x1c0]
add esi, 0x40
push 0
push eax
call fcn.004090e0
add esp, 0xc
mov dword [ebp - 0x1c0], 0x4550
mov eax, 1
mov dword [ebp - 0x1ac], 0x200000e0
mov word [ebp - 0x1ba], ax
mov eax, 0x10b
mov word [ebp - 0x1a8], ax
lea eax, [ebp - 8]
push eax
push pe_nt_image_headers32
lea eax, [ebp - 0x1c0]
push eax
push esi
push edi
call ebx
test eax, eax
je 0x401dfd
cmp dword [ebp - 8], 0xf8
jne 0x401dfd
lea eax, [ebp - 8]
mov dword [ebp - 0x28], 0
push eax
push 0x28
lea eax, [ebp - 0x30]
mov dword [ebp - 0xc], 0
push eax
add esi, 0xf8
mov dword [ebp - 0x30], 0x7465642e
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0x72756f
push esi
push edi
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
mov dword [ebp - 0x24], 0x160
mov dword [ebp - 0x20], 0x6d0
call ebx
test eax, eax
je 0x401dfd
cmp dword [ebp - 8], 0x28
jne 0x401dfd
lea eax, [ebp - 8]
mov dword [ebp - 0x70], 0x40
push eax
push 0x40
xorps xmm0, xmm0
mov dword [ebp - 0x6c], 0x727444
lea eax, [ebp - 0x70]
movlpd qword [ebp - 0x60], xmm0
push eax
add esi, 0x28
movlpd qword [ebp - 0x58], xmm0
push esi
push edi
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
mov dword [ebp - 0x68], 0x40
mov dword [ebp - 0x64], 0x6d0
call ebx
test eax, eax
je 0x401dfd
cmp dword [ebp - 8], 0x40
jne 0x401dfd
movups xmm0, xmmword [0x42e750]
lea eax, [ebp - 8]
mov dword [ebp - 0x88], 0x690
push eax
push 0x18
lea eax, [ebp - 0x88]
mov dword [ebp - 0x84], 0
push eax
add esi, 0x40
push esi
push edi
movups xmmword [ebp - 0x80], xmm0
call ebx
test eax, eax
je 0x401dfd
cmp dword [ebp - 8], 0x18
jne 0x401dfd
lea eax, [ebp - 8]
add esi, 0x18
push eax
push 0x678
push dword [ebp - 0x1c4]
push esi
push edi
call ebx
test eax, eax
je 0x401dfd
cmp dword [ebp - 8], 0x678
jne 0x401dfd
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405785
mov esp, ebp
pop ebp
ret 8

Function at 0x41a614
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a48a