joyce8/EMBER2024-capa huggingface dataset:
Function at 0x340d1950
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x340d1a10
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.340bda39
add esp, 8
test eax, eax
je 0x340d199f
mov word [eax], 0
mov edi, dword [esp + 0x218]
test edi, edi
je 0x340d1a09
mov ebx, dword [esp + 0x21c]
test ebx, ebx
je 0x340d1a09
lea edx, [esp + 0xc]
test edx, edx
je 0x340d1a09
mov eax, dword [esp + 0x220]
mov esi, 0x7a
test eax, eax
je 0x340d19e6
push eax
lea eax, [esp + 0x10]
push eax
push 0x341920e8
push ebx
push edi
call fcn.340be718
add esp, 0x14
xor esi, esi
jmp 0x340d1a18
lea ecx, [esp + 0xc]
push ecx
call fcn.340bd4b7
add esp, 4
cmp ebx, eax
jbe 0x340d1a18
lea edx, [esp + 0xc]
push edx
push edi
call fcn.340bd8f4
add esp, 8
xor esi, esi
jmp 0x340d1a18
mov esi, 0x57
jmp 0x340d1a18
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x341ac984], esi
je 0x340d1a29
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x208
ret

Function at 0x340d1a40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x340d1b13
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.340be470
add esp, 8
test eax, eax
je 0x340d1a8c
mov byte [eax], 0
mov ebx, dword [esp + 0x114]
test ebx, ebx
je 0x340d1b0c
mov esi, dword [esp + 0x118]
test esi, esi
je 0x340d1b0c
lea edx, [esp + 0xc]
test edx, edx
je 0x340d1b0c
mov eax, dword [esp + 0x11c]
mov edx, 0x7a
test eax, eax
je 0x340d1ad5
push eax
lea eax, [esp + 0x10]
push eax
push 0x341960cc
push esi
push ebx
call fcn.34130a70
add esp, 0x14
xor edx, edx
mov esi, edx
jmp 0x340d1b1b
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jbe 0x340d1b08
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
xor edx, edx
rep movsb byte es:[edi], byte [esi]
mov esi, edx
jmp 0x340d1b1b
mov esi, 0x57
jmp 0x340d1b1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x341ac984], esi
je 0x340d1b2c
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x104
ret
Function at 0x340d1b40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x340d1c00
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.340bda39
add esp, 8
test eax, eax
je 0x340d1b8f
mov word [eax], 0
mov edi, dword [esp + 0x218]
test edi, edi
je 0x340d1bf9
mov ebx, dword [esp + 0x21c]
test ebx, ebx
je 0x340d1bf9
lea edx, [esp + 0xc]
test edx, edx
je 0x340d1bf9
mov eax, dword [esp + 0x220]
mov esi, 0x7a
test eax, eax
je 0x340d1bd6
push eax
lea eax, [esp + 0x10]
push eax
push 0x341920e8
push ebx
push edi
call fcn.340be718
add esp, 0x14
xor esi, esi
jmp 0x340d1c08
lea ecx, [esp + 0xc]
push ecx
call fcn.340bd4b7
add esp, 4
cmp ebx, eax
jbe 0x340d1c08
lea edx, [esp + 0xc]
push edx
push edi
call fcn.340bd8f4
add esp, 8
xor esi, esi
jmp 0x340d1c08
mov esi, 0x57
jmp 0x340d1c08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x341ac984], esi
je 0x340d1c19
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x208
ret

Function at 0x340d6a30
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x410
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jbe 0x340d6b6a
cmp eax, 0x104
jae 0x340d6b6a
lea ecx, [esp + 4]
push esi
push ecx
call fcn.340d0d00
add esp, 4
test eax, eax
je 0x340d6af1
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x212]
mov word [esp + 0x210], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x210]
push 0x104
lea eax, [esp + 0xc]
push edx
push eax
call fcn.340d09c0
lea ecx, [esp + 0x21c]
push ecx
call fcn.340bd4b7
mov esi, eax
add esp, 0x10
cmp esi, 0x104
jge 0x340d6af1
lea edx, [esp + 0x210]
push esi
lea eax, [esp + 0xc]
push edx
push eax
call fcn.340bd451
add esp, 0xc
mov word [esp + esi*2 + 8], 0
mov edi, dword [esp + 0x41c]
test edi, edi
je 0x340d6b5c
mov esi, dword [esp + 0x420]
test esi, esi
je 0x340d6b5c
lea ecx, [esp + 8]
test ecx, ecx
je 0x340d6b5c
mov eax, dword [esp + 0x424]
test eax, eax
je 0x340d6b3d
lea edx, [esp + 8]
push eax
push edx
push 0x341920e8
push esi
push edi
call fcn.340be718
add esp, 0x14
mov eax, 1
pop esi
pop edi
add esp, 0x410
ret
lea eax, [esp + 8]
push eax
call fcn.340bd4b7
add esp, 4
cmp esi, eax
jbe 0x340d6b5c
lea ecx, [esp + 8]
push ecx
push edi
call fcn.340bd8f4
add esp, 8
pop esi
mov eax, 1
pop edi
add esp, 0x410
ret
xor eax, eax
pop edi
add esp, 0x410
ret
Function at 0x340d9d40
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
test ebx, ebx
jne 0x340d9d5c
xor eax, eax
pop ebx
add esp, 0x104
ret
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.340beab0
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.340bef80
mov esi, eax
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jbe 0x340d9de0
cmp byte [esp + 0x10], 0x5c
jne 0x340d9de0
cmp byte [esp + 0x11], 0x5c
jne 0x340d9de0
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.340bef80
add esp, 8
test eax, eax
je 0x340d9e5e
inc eax
push 0x5c
push eax
call fcn.340bef80
add esp, 8
mov esi, eax
test esi, esi
je 0x340d9e5e
lea eax, [esp + 0x10]
mov byte [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x340d9e22
test bl, 1
je 0x340d9e11
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 0xfffffffe
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x340d9e94
cmp ebx, 0xffffffff
je 0x340d9e2b
test edi, edi
jne 0x340d9e3a
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x340d9e94
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.340bef80
mov esi, eax
add esp, 8
test esi, esi
jne 0x340d9de4
test ebp, ebp
je 0x340d9e94
mov ebx, dword [esp + 0x118]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x340d9e89
test al, 0x10
jne 0x340d9e94
test al, 1
je 0x340d9e7c
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x340d9e94
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x340d9eb0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
test ebx, ebx
jne 0x340d9ecc
xor eax, eax
pop ebx
add esp, 0x208
ret
push ebp
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.340bd451
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.340bd48e
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.340bd4b7
add esp, 0x18
cmp eax, 2
jbe 0x340d9f51
cmp word [esp + 0x10], di
jne 0x340d9f51
cmp word [esp + 0x12], di
jne 0x340d9f51
lea eax, [esp + 0x14]
push edi
push eax
call fcn.340bd48e
add esp, 8
test eax, eax
je 0x340d9fd9
add eax, 2
push edi
push eax
call fcn.340bd48e
add esp, 8
mov esi, eax
test esi, esi
je 0x340d9fd9
lea ecx, [esp + 0x10]
mov word [esi], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x340d9f99
test bl, 1
je 0x340d9f88
mov edx, ebx
lea eax, [esp + 0x10]
and edx, 0xfffffffe
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x340da00f
cmp ebx, 0xffffffff
je 0x340d9fa2
test edi, edi
jne 0x340d9fb1
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x340da00f
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.340bd48e
mov esi, eax
add esp, 8
test esi, esi
jne 0x340d9f59
test ebp, ebp
je 0x340da00f
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x340da004
test al, 0x10
jne 0x340da00f
test al, 1
je 0x340d9ff7
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x340da00f
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x340da400
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
push ebp
push esi
test ebx, ebx
push edi
jne 0x340da434
push 0x57
mov dword [0x341ac984], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x340da45b
test al, 0x10
jne 0x340da5cd
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x340da5cd
mov ecx, 0x81
lea edi, [esp + 0x12]
mov word [esp + 0x10], ax
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.340bd451
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.340bd48e
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.340bd4b7
add esp, 0x18
cmp eax, 2
jbe 0x340da4ea
cmp word [esp + 0x10], di
jne 0x340da4ea
cmp word [esp + 0x12], di
jne 0x340da4ea
lea eax, [esp + 0x14]
push edi
push eax
call fcn.340bd48e
add esp, 8
test eax, eax
je 0x340da572
add eax, 2
push edi
push eax
call fcn.340bd48e
add esp, 8
mov esi, eax
test esi, esi
je 0x340da572
lea ecx, [esp + 0x10]
mov word [esi], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x340da532
test bl, 1
je 0x340da521
mov edx, ebx
lea eax, [esp + 0x10]
and edx, 0xfffffffe
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x340da5aa
cmp ebx, 0xffffffff
je 0x340da53b
test edi, edi
jne 0x340da54a
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x340da5aa
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.340bd48e
mov esi, eax
add esp, 8
test esi, esi
jne 0x340da4f2
test ebp, ebp
je 0x340da5aa
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x340da59b
test al, 0x10
jne 0x340da5a6
test al, 1
je 0x340da590
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x340da5aa
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
jne 0x340da5cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x341ac984], eax
je 0x340da5c0
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret
mov eax, dword [esp + 0x220]
test eax, eax
je 0x340da5e0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x208
ret
Function at 0x340df6a0
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x34142458
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov eax, dword [esi + 0x20]
xor edi, edi
xor ebp, ebp
cmp eax, ebx
je 0x340df6d2
call fcn.340bb0d0
mov ebp, eax
mov eax, dword [esi + 0x18]
mov ecx, 0xc0000000
cmp eax, ebx
je 0x340df6e3
mov ecx, accept
mov eax, dword [esi + 0x24]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
cmp dword [eax - 8], ebx
je 0x340df738
push ebx
push 0x80
push 3
push ebp
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x340df71e
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
cmp dword [esi + 4], 0xffffffff
je 0x340df864
cmp dword [esp + 0x18], ebx
jne 0x340df738
cmp dword [esp + 0x14], ebx
je 0x340df864
mov eax, dword [esi + 0x18]
mov edi, 4
cmp eax, ebx
je 0x340df749
mov edi, 2
lea ebx, [esi + 0x28]
lea ecx, [esp + 0x10]
push ebx
call fcn.340a6930
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], 0
test eax, eax
je 0x340df78f
mov edx, dword [ebx]
mov eax, dword [edx - 8]
test eax, eax
je 0x340df78f
call fcn.340f2a70
test eax, eax
je 0x340df78f
push str.Global_
lea ecx, [esp + 0x14]
call fcn.340a75b0
push ebx
lea ecx, [esp + 0x14]
call fcn.340a7fe0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esi + 0x10]
push eax
push 0
push edi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [esi + 8], eax
je 0x340df83e
mov edx, dword [esi + 0x18]
mov ecx, 6
test edx, edx
je 0x340df7cb
mov ecx, 4
mov edx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x14]
push edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0xc], eax
je 0x340df83e
mov eax, dword [esi + 0x10]
mov ebp, 1
test eax, eax
jne 0x340df819
mov eax, dword [esi + 4]
or ebx, 0xffffffff
cmp eax, ebx
je 0x340df81c
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x18]
xor edi, edi
sub ecx, edx
sbb eax, edi
test eax, eax
jle 0x340df814
mov dword [esi + 0x10], ebx
jmp 0x340df81c
mov dword [esi + 0x10], ecx
jmp 0x340df81c
or ebx, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebx
call fcn.340a7330
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.340a7330
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x340e7fd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x34147c98
push 0x340bebb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov ecx, dword [ebp + 8]
xor edx, edx
cmp ecx, edx
je 0x340e8062
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
cmp word [ecx], 0x5a4d
jne 0x340e805b
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [eax], 0x4550
jne 0x340e805b
cmp word [eax + 0x14], dx
je 0x340e805b
cmp dword [ebp + 0xc], edx
je 0x340e8035
cmp word [eax + 4], 0x14c
jne 0x340e805b
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x340e8150
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
test ebx, ebx
push edi
je 0x340e819d
mov edi, dword [esp + 0x18]
test edi, edi
je 0x340e819d
mov eax, dword [ebx + 0x3c]
xor ecx, ecx
add eax, ebx
xor edx, edx
mov cx, word [eax + 0x14]
mov dx, word [eax + 6]
lea esi, [ecx + eax + 0x18]
xor ecx, ecx
test edx, edx
mov dword [esp + 0x14], esi
jbe 0x340e819d
lea eax, [esi + 0x10]
mov esi, dword [eax - 4]
cmp edi, esi
jb 0x340e8195
mov ebp, dword [eax]
add ebp, esi
cmp edi, ebp
jb 0x340e81a4
inc ecx
add eax, 0x28
cmp ecx, edx
jb 0x340e8186
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [esp + 0x14]
lea edx, [ecx + ecx*4]
mov esi, dword [eax + edx*8 + 0xc]
lea ecx, [eax + edx*8]
mov eax, dword [eax + edx*8 + 0x14]
sub eax, esi
add eax, ebx
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x340e8a70
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x34147ca8
push 0x340bebb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x20]
push eax
mov edi, dword [ebp + 0x14]
push edi
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.340e81f0
add esp, 0x10
mov esi, eax
cmp esi, ebx
je 0x340e8b23
mov eax, dword [esi]
push eax
mov eax, dword [ebp - 0x20]
push eax
call edi
add esp, 8
mov dword [ebp - 0x24], eax
mov edi, dword [ebp + 0x10]
sub edi, dword [ebp - 0x20]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
lea ecx, [ebp - 0x30]
push ecx
push 0x40
push 4
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebx
test eax, eax
je 0x340e8b1c
mov dword [esi], edi
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x30]
push eax
push 4
push esi
call ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x340e92b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x34142f0c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x34146a5c]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 8]
mov dword [edi], eax
mov ecx, dword [0x34146a5c]
lea ebp, [esi + 0x18]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [ebp], ecx
mov edx, dword [0x34146a5c]
mov dword [esi + 0x20], edx
lea ecx, [esi + 0x28]
mov byte [esp + 0x1c], 2
call fcn.3412dbd0
mov eax, dword [esp + 0x24]
mov ecx, edi
push eax
mov byte [esp + 0x20], 3
mov dword [esi], 0x34147cc4
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
mov word [esi + 0x24], 0xffff
call fcn.340a75b0
mov eax, dword [esp + 0x28]
mov cx, word [esp + 0x30]
test eax, 0xffff0000
mov word [esi + 0x24], cx
mov dword [esi + 0x14], eax
je 0x340e9353
push eax
mov ecx, ebp
call fcn.340a75b0
mov edx, dword [ebp]
mov dword [esi + 0x14], edx
mov eax, dword [esp + 0x2c]
test eax, 0xffff0000
mov dword [esi + 0x1c], eax
je 0x340e9371
lea edi, [esi + 0x20]
push eax
mov ecx, edi
call fcn.340a75b0
mov eax, dword [edi]
mov dword [esi + 0x1c], eax
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x340ed590
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x341434ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x34147d6c
mov eax, dword [esi + 0x38]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x14], 2
je 0x340ed5d4
push eax
call fcn.340bd446
add esp, 4
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
lea ecx, [esi + 0x30]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov byte [esp + 0x14], 1
call fcn.340a1fb0
lea ecx, [esi + 0x2c]
mov byte [esp + 0x14], bl
call fcn.340a1fb0
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.340f01d0
mov ecx, dword [esp + 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x340f0d40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x341439ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.340b8520
xor edi, edi
lea ecx, [esi + 0x34]
mov dword [esp + 0x14], edi
call fcn.340f4760
push 0xa
lea ecx, [esi + 0x68]
mov byte [esp + 0x18], 1
call fcn.34130350
lea ecx, [esi + 0x80]
mov byte [esp + 0x14], 2
call fcn.340b4c70
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x28], edi
mov word [esi + 0x2c], di
mov dword [esi + 0x30], edi
mov dword [esi + 0xa0], edi
mov dword [esi], 0x34147e20
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret