joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100671b7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10067254
push ebx
push esi
call fcn.10067180
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100661d5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10067201
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10067253
push edi
push eax
call fcn.1005c87c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10067221
call fcn.1005c842
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10067252
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100661d5
add esp, 0x20
test eax, eax
jne 0x10067240
push edi
call fcn.1005c842
jmp 0x10067248
push ebx
call fcn.1005c842
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10067257
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10067268
pop esi
ret
push ebx
push edi
push esi
call fcn.10067180
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1005c87c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10067290
push ebx
push esi
push edi
call fcn.1004c2e0
add esp, 0xc
push 0
call fcn.1005c842
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10067660
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100672a5

Function at 0x1006b223
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1005dcba
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1006b292
cmp esi, dword [ebp - 4]
je 0x1006b28d
cmp dword [ebp + 0xc], 0
je 0x1006b28d
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1006b26a
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1006ad75
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1006b294
xor eax, eax
inc eax
jmp 0x1006b294
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1006b2f9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100a9080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1005dcba
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1005dcba
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1006b370
cmp word [ecx], dx
je 0x1006b370
mov eax, dword [0x1009989c]
push edi
dec eax
push eax
push 0x10099788
call fcn.1006b298
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1006b3e3
cmp word [eax], dx
je 0x1006b3e3
mov eax, dword [edi]
test eax, eax
je 0x1006b394
cmp word [eax], dx
je 0x1006b394
lea eax, [ebp - 0x10]
push eax
call fcn.1006ac7b
jmp 0x1006b39d
lea eax, [ebp - 0x10]
push eax
call fcn.1006ad16
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1006b40d
mov eax, dword [0x10099784]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10099478
call fcn.1006b298
add esp, 0xc
test al, al
je 0x1006b40d
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1006b3d8
cmp word [eax], di
je 0x1006b3d8
lea eax, [ebp - 0x10]
push eax
call fcn.1006ac7b
pop ecx
jmp 0x1006b40f
lea eax, [ebp - 0x10]
push eax
call fcn.1006ad16
jmp 0x1006b3d5
mov eax, dword [edi]
test eax, eax
je 0x1006b3fa
cmp word [eax], dx
je 0x1006b3fa
lea eax, [ebp - 0x10]
push eax
call fcn.1006ac30
pop ecx
jmp 0x1006b40d
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1006b4d8
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1006b11d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1006b4d8
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1006b4d8
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1006b4d8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1006b465
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10062130
test ebx, ebx
je 0x1006b4d3
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10062130
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1006b4d8
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1006b4d8
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1006dc72
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1006b4da
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004a9fe
leave
ret
Function at 0x1006dfe1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1006df5d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1006e150
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1006e150
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1006e105
jg 0x1006e03d
test eax, eax
je 0x1006e0fb
push 1
push 0x1000
call fcn.1006024c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1006e060
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1006e0f2
push 0x8000
push ebx
call fcn.1006de8e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1006e089
jg 0x1006e084
cmp ecx, 0x1000
jb 0x1006e089
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100610e3
add esp, 0x10
cmp eax, 0xffffffff
je 0x1006e0ce
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1006e084
jl 0x1006e0b5
test ecx, ecx
jne 0x1006e076
push dword [ebp - 0xc]
push ebx
call fcn.1006de8e
push esi
call fcn.1005c842
add esp, 0xc
xor ebx, ebx
jmp 0x1006e15e
cmp byte [edi + 0x24], 0
je 0x1006e0e5
cmp dword [edi + 0x20], 5
jne 0x1006e0e5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1006e0f0
mov ebx, dword [edi + 0x18]
jmp 0x1006e0f2
xor ebx, ebx
push esi
call fcn.1005c842
pop ecx
jmp 0x1006e15e
test ecx, ecx
jg 0x1006e0c7
jl 0x1006e105
test eax, eax
jae 0x1006e0c7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100635b7
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1006e125
cmp byte [edi + 0x1c], 0
je 0x1006e0c7
jmp 0x1006e156
push ebx
call fcn.1006b8b3
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1006e0c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1006e15e
cmp byte [edi + 0x1c], 0
je 0x1006e15b
mov ebx, dword [edi + 0x18]
jmp 0x1006e15e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100635b7
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1006f480
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1006f4ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1006f4ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100772ac
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x100af03c], 0
je 0x1007730d
cmp word [0x100af210], 0xd7b2
jne 0x100772d5
cmp dword [0x100af218], 0
jbe 0x100772d5
mov eax, 0x100af20c
call dword [0x100af228]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x100ad05c
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x10077334
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
pop edx
ret
cmp byte [0x100ad020], 0
jne 0x10077329
push 0
push 0x100ad054
push 0x100ad05c
push 0
call sub.USER32.dll_MessageBoxA
pop edx
ret

Function at 0x1007870c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x10078772
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.10077650
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.10076710
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x1007875c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10078779
lea eax, [ebp - 0x10]
call fcn.10077428
ret

Function at 0x1007aaf8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.1007747c
mov eax, ebx
call fcn.100778cc
mov eax, dword [ebx]
call fcn.1007767c
test eax, eax
jle 0x1007ab29
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x1007ab1e
pop esi
pop ebx
ret

Function at 0x1007ae08
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x1007ae54
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 2
mov edi, esi
mov eax, edi
call fcn.1007be9c
test al, al
jne 0x1007ae4a
cmp word [edi], 0x5a4d
jne 0x1007ae4a
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x1007ae4a
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x1007ae60
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1007b000
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
cmp byte [0x100ad230], 0
jne 0x1007b0e1
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x1007b053
push 0x10000
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
push 0x8000
push ebx
push esi
call sub.KERNEL32.dll_GetModuleFileNameW
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileW
mov esi, eax
jmp 0x1007b084
push 0x105
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
push 0x104
push ebx
push esi
call sub.KERNEL32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
push ebx
call sub.KERNEL32.dll_LocalFree
cmp esi, 0xffffffff
je 0x1007b0e1
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x1007b0af
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x1007b0c1
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x1007b0db
push 0
push 0
push 0
push 4
push ebx
call sub.KERNEL32.dll_MapViewOfFile
mov edi, eax
push ebx
call sub.KERNEL32.dll_CloseHandle
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x1007b32c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x1007b427
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x1007b370
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileW
mov ebx, eax
jmp 0x1007b3a4
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.10077b24
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
call fcn.10077668
mov eax, dword [ebp - 8]
call fcn.1007787c
push eax
call sub.KERNEL32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1007b409
push 0
push 0
push 0
push 2
push 0
push ebx
call sub.KERNEL32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x1007b403
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1007b3fd
mov eax, dword [ebp - 4]
call fcn.1007ae08
test eax, eax
je 0x1007b3ea
cmp word [eax + 0x18], 0x20b
je 0x1007b3ee
xor eax, eax
jmp 0x1007b3f0
mov al, 1
neg al
sbb edi, edi
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
push esi
call sub.KERNEL32.dll_CloseHandle
push ebx
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1007b42e
lea eax, [ebp - 0xc]
call fcn.100779fc
lea eax, [ebp - 8]
call fcn.10077428
ret
Function at 0x1007b43c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_CreateFileW
mov edi, eax
cmp edi, 0xffffffff
je 0x1007b515
push 0
push 0
push 0
push 2
push 0
push edi
call sub.KERNEL32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x1007b50f
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1007b509
mov eax, dword [ebp - 4]
call fcn.1007ae08
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1007b500
mov eax, dword [ebp - 8]
cmp word [eax + 0x18], 0x20b
jne 0x1007b4c5
mov eax, dword [ebp - 8]
add eax, 0x18
mov eax, dword [eax + 0x70]
mov dword [ebp - 0xc], eax
jmp 0x1007b4ce
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x78]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1007b500
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.1007af88
add eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
jne 0x1007b4ee
cmp dword [eax + 0x14], 1
jg 0x1007b4fe
cmp dword [eax + 0x10], 1
jne 0x1007b4fa
cmp dword [eax + 0x14], 0
jg 0x1007b4fe
xor ebx, ebx
jmp 0x1007b500
mov bl, 1
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
push esi
call sub.KERNEL32.dll_CloseHandle
push edi
call sub.KERNEL32.dll_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1007ebb4
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffedc
mov ebp, ecx
mov esi, edx
mov edi, eax
xor ebx, ebx
push 0x1c
lea eax, [esp + 4]
push eax
push edi
call sub.KERNEL32.dll_VirtualQuery
cmp eax, 0x1c
jne 0x1007ec30
cmp dword [esp + 0x10], 0x1000
jne 0x1007ec30
cmp dword [esp + 4], 0
je 0x1007ec30
push 0x104
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
test eax, eax
je 0x1007ec30
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, dword [esi]
cmp word [eax], 0x5a4d
jne 0x1007ec30
mov eax, dword [esi]
mov edx, dword [esi]
add edx, 0x3c
add eax, dword [edx]
cmp dword [eax], 0x4550
jne 0x1007ec30
mov edx, dword [esi]
add edx, dword [eax + 0x78]
mov dword [ebp], edx
cmp dword [ebp], 0
setne bl
mov eax, ebx
add esp, 0x124
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x10080ae8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
cmp dword [0x100adba8], 0
je 0x10080b2d
push esp
push 0x40
push 4
mov eax, dword [0x100adba8]
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x10080b2d
mov eax, dword [0x100adba8]
mov edx, dword [0x100adbac]
mov dword [eax], edx
push esp
mov eax, dword [esp + 4]
push eax
push 4
mov eax, dword [0x100adba8]
push eax
call sub.KERNEL32.dll_VirtualProtect
xor eax, eax
mov dword [0x100adba8], eax
cmp dword [0x100adbb0], 0
je 0x10080b71
push esp
push 0x40
push 4
mov eax, dword [0x100adbb0]
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x10080b71
mov eax, dword [0x100adbb0]
mov edx, dword [0x100adbb4]
mov dword [eax], edx
push esp
mov eax, dword [esp + 4]
push eax
push 4
mov eax, dword [0x100adbb0]
push eax
call sub.KERNEL32.dll_VirtualProtect
xor eax, eax
mov dword [0x100adbb0], eax
xor eax, eax
mov dword [0x100af6b0], eax
pop edx
ret
Function at 0x10081c9c
Capabilities:
Hash data using sha1

Disassembly:
push 0xcc
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov edx, eax
mov eax, edx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov eax, edx
ret

Function at 0x10085c40
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x10085ce7
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 8]
mov eax, dword [0x100add40]
call fcn.1007aaf8
push dword [ebp - 8]
push 0x10085d00
lea ecx, [ebp - 0xc]
mov edx, dword [esi]
mov eax, dword [0x100add44]
call fcn.10085b48
push dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 3
call fcn.1007773c
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call fcn.1007787c
push eax
call fcn.100859b4
mov edi, eax
test edi, edi
je 0x10085ccc
push 0
push 0
push 0
push 4
push edi
call sub.KERNEL32.dll_MapViewOfFile
test eax, eax
je 0x10085cc6
mov edx, dword [eax]
mov dword [esi], edx
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
mov bl, 1
push edi
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10085cee
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.1007744c
ret

Function at 0x10085fac
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, eax
test esi, esi
sete byte [ebp - 5]
cmp byte [ebp - 5], 0
jne 0x10086004
xor ebx, ebx
jmp 0x10085ffd
cmp edx, edi
jne 0x10085ffc
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push edi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x10086004
mov eax, dword [ebp - 4]
mov dword [esi + ebx*4], eax
mov byte [ebp - 5], 1
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 0xc]
push edx
push 4
push eax
call sub.KERNEL32.dll_VirtualProtect
jmp 0x10086004
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x10085fca
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10086010
Capabilities:
Allocate or change rwx memory
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 0xd], 0
xor ecx, ecx
push ebp
push 0x10086131
push dword fs:[ecx]
mov dword fs:[ecx], esp
xor eax, eax
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x10086093
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 4], 0
je 0x10086089
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
jne 0x10086089
mov eax, dword [ebp - 4]
add eax, 0x3c
mov eax, dword [eax]
add eax, dword [ebp - 4]
cmp dword [eax], 0x4550
jne 0x10086089
cmp word [eax + 0x18], 0x20b
jne 0x10086080
add eax, 0x18
mov eax, dword [eax + 0x70]
add eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
jmp 0x10086089
mov eax, dword [eax + 0x78]
add eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x1008609d
cmp dword [ebp - 0x14], 0
je 0x10086127
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x14]
dec eax
test eax, eax
jl 0x10086127
inc eax
xor ebx, ebx
mov edx, dword [esi + 0x1c]
add edx, dword [ebp - 4]
mov edx, dword [edx + ebx*4]
add edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jne 0x10086123
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.10085fac
test al, al
je 0x10086127
mov eax, dword [esi + 0x1c]
add eax, dword [ebp - 4]
lea eax, [eax + ebx*4]
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push 0x40
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x10086113
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
mov dword [esi], eax
mov byte [ebp - 0xd], 1
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
jmp 0x10086127
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
call fcn.10085fac
jmp 0x10086127
inc ebx
dec eax
jne 0x100860b5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x1008613b
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10086148
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], ecx
mov ebp, edx
mov dword [esp], eax
mov eax, dword [esp]
call fcn.1007ae08
mov edi, eax
test edi, edi
je 0x100861df
cmp dword [edi + 0x80], 0
je 0x100861df
mov eax, dword [edi + 0x80]
cmp eax, dword [edi + 0x50]
jae 0x100861df
mov esi, dword [edi + 0x80]
add esi, dword [esp]
test esi, esi
je 0x100861df
jmp 0x100861cb
mov ebx, dword [esp]
add ebx, dword [esi + 0x10]
jmp 0x100861c3
cmp ebp, dword [ebx]
jne 0x100861c0
lea eax, [esp + 8]
push eax
push 0x40
push 4
push ebx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x100861c0
mov eax, dword [esp + 4]
mov dword [ebx], eax
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
push 4
push ebx
call sub.KERNEL32.dll_VirtualProtect
add ebx, 4
cmp dword [ebx], 0
jne 0x10086191
add esi, 0x14
cmp dword [esi + 0xc], 0
je 0x100861df
cmp dword [esi + 0x10], 0
je 0x100861df
mov eax, dword [edi + 0x50]
cmp eax, dword [esi + 0x10]
ja 0x10086189
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret