joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bc7e4
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov dword [esp], 0x10
push esp
lea eax, [esp + 8]
push eax
mov edx, dword [0x4d4900]
push edx
call sub.WSOCK32.dll_getsockname
test eax, eax
jne 0x4bc811
mov ecx, dword [esp + 8]
mov dword [0x4d1ba0], ecx
xor eax, eax
mov dword [0x4d4908], eax
mov dword [0x4d490c], 1
push 0
push 0x1772
call fcn.0040a8fc
push eax
call fcn.0047481c
mov byte [0x4d1944], 0
xor edx, edx
mov dword [0x4cbe94], edx
xor ecx, ecx
mov dword [0x4d4920], ecx
xor eax, eax
mov dword [0x4d4918], eax
xor edx, edx
mov dword [0x4d491c], edx
xor ecx, ecx
mov dword [0x4d4910], ecx
xor eax, eax
mov dword [0x4d4914], eax
xor edx, edx
mov dword [0x4ce124], edx
xor ecx, ecx
mov dword [0x4ce12c], ecx
xor eax, eax
mov dword [0x4ce128], eax
mov byte [0x4f1ab4], 0
xor edx, edx
mov dword [0x4d4948], edx
xor ecx, ecx
mov dword [0x4d0370], ecx
mov byte [0x4e41be], 0
mov eax, dword [0x4d03a4]
push eax
call fcn.0046f8e0
xor edx, edx
mov dword [0x4d03a4], edx
mov ecx, dword [0x4d0320]
push ecx
call fcn.0046f8e0
xor eax, eax
mov dword [0x4d0320], eax
call fcn.0047f65c
xor edx, edx
mov dword [0x4d15d0], edx
cmp dword [0x4ccd2c], 0
je 0x4bc949
cmp dword [0x4ccd30], 0
jne 0x4bc940
xor ecx, ecx
mov dword [0x4ccd3c], ecx
mov dword [0x4ccd38], ecx
mov dword [0x4ccd34], ecx
push 0
call fcn.004c92e8
pop ecx
mov ebx, eax
mov dword [0x4ccd28], ebx
push ebx
call fcn.0040aa10
mov ebx, eax
test ebx, ebx
je 0x4bc939
mov esi, 0x4dd5e4
mov edi, ebx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
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]
jmp 0x4bc940
mov byte [0x4dd5e4], 0
push 1
call fcn.0040aee4
jmp 0x4bc97d
push 0x4d1a70
push 0x4d16e8
push 0
push 0x1780
call fcn.0040a8fc
push eax
push 0x4e3d41
call sub.USER32.dll_wsprintfA
add esp, 0x10
push 0x4e3d41
mov eax, dword [0x4d42ac]
push eax
call sub.USER32.dll_SetWindowTextA
xor edx, edx
mov dword [0x4d0380], edx
xor ecx, ecx
mov dword [0x4d4944], ecx
push 1
call fcn.004ad164
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x4c0144
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0xff
mov eax, dword [ebp + 8]
push eax
push 0x4f2064
call fcn.004c2348
add esp, 0xc
lea edx, [ebp - 8]
push 0
push 0
push 0
push edx
push 0x4f2064
call fcn.004c0390
add esp, 0x14
push 0x4d5c34
lea ecx, [ebp - 8]
push ecx
call fcn.004bcdd0
add esp, 8
mov byte [0x4f2064], 0
push 0
push 0
push 0
push 0
push 0
push 0xff
push 0x4f2064
lea eax, [ebp - 8]
push eax
call sub.KERNEL32.dll_GetVolumeInformationA
test eax, eax
je 0x4c01b7
mov eax, 0x4f2064
jmp 0x4c01b9
xor eax, eax
pop ecx
pop ecx
pop ebp
ret

Function at 0x4c01c0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
test byte [ebx + 8], 8
je 0x4c01e5
cmp dword [ebx + 4], 0xfffffffe
jne 0x4c01e5
or eax, 0xffffffff
jmp 0x4c031d
test byte [ebx + 8], 8
je 0x4c0252
cmp dword [ebx + 4], 0xffffffff
jne 0x4c0252
mov dword [esi + 8], 8
mov edx, dword [ebx + 0xc]
push edx
call fcn.004c0144
pop ecx
mov edi, eax
test edi, edi
je 0x4c023a
add esi, 0x10
xor eax, eax
push esi
push edi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov dword [ebx + 4], 0xfffffffe
xor eax, eax
jmp 0x4c031d
call fcn.004c2844
test eax, eax
jne 0x4c024a
xor eax, eax
jmp 0x4c031d
or eax, 0xffffffff
jmp 0x4c031d
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x4c025f
cmp eax, 0xfffffffe
jne 0x4c0286
mov dword [ebx + 4], 0xffffffff
lea edx, [ebp - 0x148]
push edx
mov ecx, dword [ebx + 0xc]
push ecx
call sub.KERNEL32.dll_FindFirstFileA
mov edi, eax
mov dword [ebx + 4], edi
cmp edi, 0xffffffff
setne al
and eax, 1
jmp 0x4c0296
lea edx, [ebp - 0x148]
push edx
mov ecx, dword [ebx + 4]
push ecx
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x4c02ac
call fcn.004c2844
test eax, eax
jne 0x4c02a7
xor eax, eax
jmp 0x4c031d
or eax, 0xffffffff
jmp 0x4c031d
mov eax, dword [ebp - 0x148]
test al, 0x16
je 0x4c02c0
mov edx, dword [ebx + 8]
and edx, eax
test dl, 0x16
je 0x4c0252
mov ecx, dword [ebp - 0x148]
mov dword [esi + 8], ecx
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x134]
push edx
call sub.KERNEL32.dll_FileTimeToLocalFileTime
lea ecx, [esi + 0xc]
push ecx
lea eax, [esi + 0xe]
push eax
lea edx, [ebp - 8]
push edx
call sub.KERNEL32.dll_FileTimeToDosDateTime
mov ecx, dword [ebp - 0x128]
xor eax, eax
mov dword [esi + 4], ecx
add esi, 0x10
push esi
lea edi, [ebp - 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c2210
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 0x4c222c
call fcn.004c2864
jmp 0x4c229b
lea edx, [ebp - 0x108]
push edx
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryA
test eax, eax
jne 0x4c2248
call fcn.004c2864
jmp 0x4c229b
cmp dword [0x4f23a0], 1
je 0x4c2299
movsx ecx, byte [ebp - 0x108]
push ecx
call fcn.004c6e2c
pop ecx
cmp al, 0x41
jl 0x4c2299
cmp al, 0x5a
jg 0x4c2299
cmp byte [ebp - 0x107], 0x3a
jne 0x4c2299
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 0x4c2299
call fcn.004c2864
jmp 0x4c229b
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4c22a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
cmp esi, dword [0x4d5b68]
jb 0x4c22c1
push 6
call fcn.004c2800
pop ecx
jmp 0x4c2340
mov ebx, dword [esi*4 + 0x4f1f9c]
push 0x22
push 0
push edi
call fcn.004bcd2c
add esp, 0xc
push ebx
call sub.KERNEL32.dll_GetFileType
dec eax
je 0x4c22ee
dec eax
je 0x4c22e6
dec eax
je 0x4c2338
jmp 0x4c233e
mov word [edi + 4], 0x2000
jmp 0x4c233e
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x10]
push ecx
push ebx
call sub.KERNEL32.dll_GetFileTime
dec eax
je 0x4c230a
call fcn.004c2864
jmp 0x4c2340
push 0
push ebx
call sub.KERNEL32.dll_GetFileSize
push eax
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x10]
push ecx
xor eax, eax
test byte [esi*4 + 0x4d5b6d], 1
jne 0x4c232c
inc eax
push eax
push edi
call fcn.004c91f4
add esp, 0x18
jmp 0x4c233e
mov word [edi + 4], 0x1000
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c2348
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
call fcn.004c75a4
pop ecx
mov ebx, eax
test eax, eax
jne 0x4c236c
xor eax, eax
jmp 0x4c2415
lea edx, [ebp - 4]
push edx
push ebx
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call sub.KERNEL32.dll_GetFullPathNameA
mov esi, eax
test esi, esi
je 0x4c238d
cmp esi, 0x104
jb 0x4c2398
push ebx
call fcn.004c749c
pop ecx
xor eax, eax
jmp 0x4c2415
cmp byte [ebx + 1], 0x3a
jne 0x4c23c8
mov dl, byte [ebx]
lea ecx, [ebp - 8]
mov byte [ebp - 8], dl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0
push ecx
call sub.KERNEL32.dll_GetDriveTypeA
cmp eax, 2
jae 0x4c23c8
push ebx
call fcn.004c749c
pop ecx
xor eax, eax
jmp 0x4c2415
inc esi
test edi, edi
je 0x4c240b
cmp esi, dword [ebp + 0x10]
jbe 0x4c23dd
push ebx
call fcn.004c749c
pop ecx
xor eax, eax
jmp 0x4c2415
push edi
mov esi, edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
call fcn.004c749c
pop ecx
mov eax, edi
jmp 0x4c2415
push esi
push ebx
call fcn.004c7a38
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4c241c
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x4c2461
lea eax, [ebp - 0x10c]
push eax
push 0x103
call sub.KERNEL32.dll_GetCurrentDirectoryA
test eax, eax
je 0x4c2450
cmp eax, dword [ebp + 0x10]
jle 0x4c24ea
mov dword [0x4d6b40], 8
xor eax, eax
jmp 0x4c2555
cmp dword [0x4f23a0], 1
jne 0x4c24a6
mov eax, ebx
lea ecx, [ebp - 0x10c]
mov edx, eax
add dl, 0x40
add ecx, 3
mov byte [ebp - 0x10c], dl
mov dl, al
mov byte [ebp - 0x10b], 0x3a
mov byte [ebp - 0x10a], 0x5c
mov byte [ebp - 0x109], 0
mov ah, 0x47
mov esi, ecx
int 0x21
jae 0x4c24ea
xor eax, eax
jmp 0x4c2555
call sub.KERNEL32.dll_GetLogicalDrives
lea ecx, [ebx - 1]
mov edx, 1
shl edx, cl
test edx, eax
je 0x4c24e6
add bl, 0x40
lea eax, [ebp - 8]
mov byte [ebp - 4], bl
lea edx, [ebp - 0x10c]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x2e
mov byte [ebp - 1], 0
push eax
push edx
lea ecx, [ebp - 4]
push 0x103
push ecx
call sub.KERNEL32.dll_GetFullPathNameA
jmp 0x4c24ea
xor eax, eax
jmp 0x4c2555
lea edx, [ebp - 0x10c]
push edx
call fcn.004bceac
pop ecx
cmp eax, dword [ebp + 0x10]
jl 0x4c250a
mov dword [0x4d6b40], 0x22
xor eax, eax
jmp 0x4c2555
test edi, edi
jne 0x4c252c
mov edx, dword [ebp + 0x10]
push edx
call fcn.004c75a4
pop ecx
mov edi, eax
test eax, eax
jne 0x4c252c
mov dword [0x4d6b40], 8
xor eax, eax
jmp 0x4c2555
push edi
mov esi, edi
xor eax, eax
lea edi, [ebp - 0x10c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c2ca4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0xd], 0xc0
jne 0x4c2cc3
mov eax, dword [0x4d5c3c]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4c2cd0
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4c2cfd
je 0x4c2d0f
sub ecx, 0x100
je 0x4c2d1d
sub ecx, 0x100
je 0x4c2d24
sub ecx, 0x100
je 0x4c2d16
jmp 0x4c2d2b
sub ecx, 0x600
je 0x4c2d24
sub ecx, 0x100
je 0x4c2d0f
jmp 0x4c2d2b
mov edi, 1
jmp 0x4c2d30
mov edi, 2
jmp 0x4c2d30
mov edi, 4
jmp 0x4c2d30
mov edi, 5
jmp 0x4c2d30
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4c2d57
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x4d6144]
test al, 0x80
je 0x4c2d50
mov ebx, 0x80
jmp 0x4c2d69
mov ebx, 1
jmp 0x4c2d69
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4c2d69
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4c2d7b
je 0x4c2d84
dec eax
je 0x4c2d8d
jmp 0x4c2d96
mov dword [ebp - 4], 0x80000000
jmp 0x4c2da5
mov dword [ebp - 4], 0x40000000
jmp 0x4c2da5
mov dword [ebp - 4], 0xc0000000
jmp 0x4c2da5
push 1
call fcn.004c2800
pop ecx
mov ebx, eax
jmp 0x4c2e91
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4c2dc1
sub eax, 0x10
je 0x4c2dc8
sub eax, 0x10
je 0x4c2dd1
sub eax, 0x10
je 0x4c2dda
jmp 0x4c2dda
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4c2de1
mov dword [ebp - 8], 1
jmp 0x4c2de1
mov dword [ebp - 8], 2
jmp 0x4c2de1
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x4c2e4a
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4c2e3f
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x4c2e3f
add ebx, 0xffffffb2
push ebx
call fcn.004c2800
pop ecx
mov ebx, eax
jmp 0x4c2e91
mov edi, esi
push edi
call fcn.004c2c14
pop ecx
test eax, eax
je 0x4c2e5e
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4c2e6a
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004c255c
add esp, 8
mov ebx, eax
inc eax
jne 0x4c2e91
push 4
call fcn.004c2800
pop ecx
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c7880
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.dll_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret
Function at 0x4c7cdc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x4d6b44], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4c7d94
cmp byte [0x4ca0e6], 0
je 0x4c7d4e
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.004c6dd4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4c7d37
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.004c6dd4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4c7d37
lea ebx, [ebp - 0x54]
jmp 0x4c7d38
inc ebx
call fcn.004c7c94
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x4c7db5
push 0xfffffffffffffff4
call sub.KERNEL32.dll_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4d6b48
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004bceac
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4d6b4b
push ebx
call sub.KERNEL32.dll_WriteFile
jmp 0x4c7db5
cmp dword [0x4d6b44], 0xffffffff
je 0x4c7db5
mov eax, dword [0x4d6b44]
test eax, eax
je 0x4c7db5
cmp byte [eax], 0
je 0x4c7db5
push esi
push eax
call fcn.004c7e44
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c83bc
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4f2430], 0
jne 0x4c843d
cmp dword [0x4f244c], 0
jne 0x4c83ec
call sub.KERNEL32.dll_GetEnvironmentStrings
mov dword [0x4f244c], eax
test eax, eax
jne 0x4c83ec
push str.GetEnvironmentStrings_failed
call fcn.004c7dcc
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4f244c]
jmp 0x4c8400
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004bceac
pop ecx
mov edi, eax
test eax, eax
jne 0x4c83f8
lea edi, [ebp + 1]
push edi
call fcn.004c75a4
pop ecx
mov ebx, eax
mov dword [0x4f2434], ebx
test ebx, ebx
jne 0x4c842a
xor eax, eax
jmp 0x4c8500
push edi
mov edx, dword [0x4f244c]
push edx
push ebx
call fcn.004bccbc
add esp, 0xc
jmp 0x4c845d
xor esi, esi
mov ebx, dword [0x4f2430]
jmp 0x4c8457
push eax
call fcn.004bceac
pop ecx
test eax, eax
jne 0x4c8453
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4c8447
lea ebx, [esi + 4]
push 4
mov dword [0x4f2438], ebx
inc ebx
push ebx
call fcn.004c6e48
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4c8480
xor eax, eax
jmp 0x4c8500
cmp dword [0x4f2430], 0
jne 0x4c84b1
xor esi, esi
mov ebx, dword [0x4f2434]
mov eax, dword [esp]
mov ebp, eax
jmp 0x4c84a2
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004bceac
pop ecx
mov edi, eax
test eax, eax
jne 0x4c8498
jmp 0x4c84e2
xor esi, esi
mov ebx, dword [0x4f2430]
mov eax, dword [esp]
mov edi, eax
jmp 0x4c84dc
push eax
call fcn.004bceac
pop ecx
test eax, eax
je 0x4c84d1
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4c84d5
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4c84c0
mov eax, dword [0x4f2430]
test eax, eax
je 0x4c84f2
push eax
call fcn.004c749c
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4f2430], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x10001140
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100162b0
push 0x100143fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
je 0x100011a6
mov byte [ebp - 0x3d], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3d]
jmp 0x1000122f
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx], 0x4550
je 0x100011cd
mov byte [ebp - 0x3e], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3e]
jmp 0x1000122f
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
add eax, dword [edx + 0xd8]
cmp dword [ebp + 0xc], eax
jb 0x10001208
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
add edx, dword [ecx + 0xd8]
mov eax, dword [ebp - 0x3c]
add edx, dword [eax + 0xdc]
cmp dword [ebp + 0xc], edx
jae 0x10001208
mov byte [ebp - 0x3f], 1
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3f]
jmp 0x1000122f
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x40]
jmp 0x1000122f
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100012d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1001c3c0]
mov dword [ebp - 4], eax
jmp 0x100012e9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10001306
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x100012e0
mov esp, ebp
pop ebp
ret
Function at 0x10001310
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1001c3d0], eax
je 0x1000132e
mov eax, 0x10dd
jmp 0x10001410
mov eax, dword [0x1001c3e0]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100013ad
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
xor eax, eax
mov al, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x1000138b
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x10], 0
je 0x1000138b
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
push eax
call fcn.10001480
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.10013f00
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x10001336
mov dword [0x1001c3e0], 0
call fcn.10001420
mov ecx, dword [0x1001c3dc]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x100013fa
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.10013f00
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], edx
jmp 0x100013c5
mov dword [0x1001c3dc], 0
mov dword [0x1001c3d0], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10001980
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x10001995
xor eax, eax
jmp 0x10001a0a
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
add edx, 0x10000
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
jmp 0x100019c2
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x38d
jae 0x10001a05
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x48
mov eax, dword [ebp - 0x10]
cmp dword [eax + edx + 0x40], 0
je 0x10001a03
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x100019ff
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x10001a03
xor eax, eax
jmp 0x10001a0a
jmp 0x100019b9
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10001ac0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1001c3d4], 0
je 0x10001ad9
mov eax, dword [0x1001c3d4]
jmp 0x10001b79
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x10001aeb
xor eax, eax
jmp 0x10001b79
push 8
call fcn.1001350d
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10001b41
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x10001b2a
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.10013f00
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1001c3d4], eax
mov dword [0x1001c3d8], 0
mov eax, dword [ebp - 8]
jmp 0x10001b79
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10001b5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x10001b0b
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1001c3dc]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1001c3dc], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4