joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4183cc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add eax, dword [eax]
add byte [ebx - 0x6fb43], al
inc dword [ecx]
jne 0x418480
and byte [ebp - 0x78c], 0
and byte [ebp - 0x78b], 0
mov byte [ebp - 0x78a], 0xa0
and byte [ebp - 0x789], 0
mov byte [ebp - 0x788], 3
mov byte [ebp - 0x787], 0x3b
mov byte [ebp - 0x786], 0x33
mov byte [ebp - 0x785], 0x3c
mov byte [ebp - 0x784], 0x30
mov byte [ebp - 0x783], 0x3a
mov byte [ebp - 0x782], 0x2d
mov byte [ebp - 0x781], 0x71
mov byte [ebp - 0x780], 0x3b
mov byte [ebp - 0x77f], 0x33
mov byte [ebp - 0x77e], 0x33
mov byte [ebp - 0x77d], 0x5f
push 0xc
lea eax, [ebp - 0x78c]
push eax
call fcn.00416864
pop ecx
push eax
mov eax, dword [ebp - 0x28]
lea eax, [ebp + eax - 0x12c]
push eax
call fcn.004167c5
add esp, 0xc
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x3a0], eax
jmp 0x4187cc
cmp dword [ebp - 0x6fc], 2
jne 0x41853d
and byte [ebp - 0x79c], 0
and byte [ebp - 0x79b], 0
mov byte [ebp - 0x79a], 0x10
and byte [ebp - 0x799], 0
mov byte [ebp - 0x798], 0xb3
mov byte [ebp - 0x797], 0x8c
mov byte [ebp - 0x796], 0x80
mov byte [ebp - 0x795], 0x81
mov byte [ebp - 0x794], 0x9d
mov byte [ebp - 0x793], 0x8a
mov byte [ebp - 0x792], 0x9c
mov byte [ebp - 0x791], 0xc1
mov byte [ebp - 0x790], 0x8b
invalid
test dword [ecx - 8], esi
Function at 0x406488
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48d054], 0
je 0x4064e9
cmp word [0x48d330], 0xd7b2
jne 0x4064b1
cmp dword [0x48d338], 0
jbe 0x4064b1
mov eax, 0x48d32c
call dword [0x48d348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
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 0x406514
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48b02c], 0
jne 0x406505
push 0
push 0x48b7b4
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409854
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4099bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00407808
cmp si, word [0x48b7fc]
jb 0x4098ee
cmp si, word [0x48b9fc]
ja 0x4098ee
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4098ee
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x48b7fc]
jae 0x4098c8
mov edi, ebx
dec edi
jmp 0x4098e9
cmp si, word [ebx*8 + 0x48b7fc]
jbe 0x4098d8
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4098e9
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x48b800]
call fcn.00409764
jmp 0x4098ee
cmp edi, dword [ebp - 0xc]
jae 0x4098b2
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x40999d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40999d
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407a00
push dword [ebp - 0x164]
push 0x4099d8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00407a00
push dword [ebp - 0x168]
push 0x4099e8
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407a00
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407dac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4099c2
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00407800
ret
Function at 0x409b74
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409c79
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x48fb5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x48fb74]
jne 0x409bc0
mov eax, esi
mov edx, 0x48fb78
mov ecx, 0x55
call fcn.00407a00
push 0x48fb5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409c63
push 0x48fb5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00407808
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409c31
cmp byte [0x48fb58], 0
je 0x409bf6
mov edx, esi
mov eax, ebx
call fcn.00409a54
jmp 0x409c31
mov edx, esi
mov eax, ebx
call fcn.00409854
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409c31
cmp dword [esi], 0
je 0x409c1a
mov eax, esi
mov edx, 0x409c94
call fcn.00407c08
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409854
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407c08
push 0x48fb5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x48fb74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407894
push eax
push 0x48fb78
call sub.kernel32.dll_lstrcpynW
push 0x48fb5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409c80
lea eax, [ebp - 4]
call fcn.004077f8
ret
Function at 0x409eb8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004077f0
xor eax, eax
push ebp
push 0x40a09d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409ef8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409f12
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407894
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40a087
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a0ac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409fa1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a0ac
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409fa1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a0e0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409fa1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a114
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40a087
xor eax, eax
push ebp
push 0x40a080
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409cbc
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40a010
mov eax, dword [ebp - 0x10]
call fcn.004041d0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004079c4
jmp 0x40a05b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40a154
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40a05b
mov eax, dword [ebp - 0x10]
call fcn.004041d0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40a154
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004079c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a087
cmp dword [ebp - 8], 0
je 0x40a076
mov eax, dword [ebp - 8]
call fcn.004041ec
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a0a4
lea eax, [ebp - 4]
call fcn.004077f8
ret
Function at 0x40a368
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.004077f0
mov eax, dword [ebp - 0x21c]
call fcn.004077f0
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40a507
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00407808
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00407894
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x40a408
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x40a41a
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x40a405
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x40a4d3
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x40a443
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00409eb8
cmp dword [ebp - 0x220], 0
je 0x40a47b
push ebp
mov eax, dword [ebp - 0x220]
call fcn.0040a25c
pop ecx
mov ebx, eax
jmp 0x40a4d3
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00409b74
mov eax, dword [ebp - 0x224]
call fcn.0040a25c
pop ecx
mov ebx, eax
test bl, bl
jne 0x40a4c6
cmp byte [0x48fb58], 0
jne 0x40a4c6
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00409b74
mov eax, dword [ebp - 0x228]
call fcn.0040a25c
pop ecx
mov ebx, eax
test bl, bl
jne 0x40a4d3
push ebp
call fcn.0040a30c
pop ecx
mov ebx, eax
test bl, bl
je 0x40a4e9
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00407a00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a50e
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00407800
ret

Function at 0x40ad24
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x40bd58
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x48fc50
push 0xa
push 0x40bdec
mov eax, dword [0x48fc40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40bd7c
call fcn.00416684
push ebx
mov eax, dword [0x48fc40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40bd93
call fcn.00416684
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40bda5
call fcn.00416684
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x48fc54], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x48fc58], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x48fc5c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x48fc60], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x48fc64], ecx
add edx, dword [eax + 0x14]
mov dword [0x48fc68], edx
pop esi
pop ebx
ret

Function at 0x40f4bc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40f565
test eax, edx
je 0x40f568
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40f4e5
push edx
mov edx, eax
mov eax, esp
call fcn.00407a1c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40f4fb
push eax
lea eax, [esp + 8]
call fcn.00407a1c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40f50a
movzx eax, word [eax]
sub eax, ecx
jmp 0x40f531
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40f54b
add ecx, 4
js 0x40f522
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40f548
push eax
mov eax, ecx
mov edx, 2
call fcn.00406660
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40f52f
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40f531
xor eax, eax
ret
test eax, eax
je 0x40f578
test edx, edx
jne 0x40f4cc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x413c60
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x413c99
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407944
jmp 0x413ca2
mov eax, ebx
mov edx, esi
call fcn.00407808
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x413cac
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x413cce
movzx eax, word [esp]
jmp 0x413cd0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x414460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x414585
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00414270
mov esi, eax
mov eax, dword [0x48c5d8]
cmp byte [eax], 0
je 0x41452d
mov eax, dword [0x48c480]
call fcn.0040481c
call fcn.00404318
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x414438]
call fcn.00409280
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4145a0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x414569
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x48c450]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x48fc40]
call fcn.00409344
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41458c
lea eax, [ebp - 4]
mov edx, dword [0x414438]
call fcn.0040928c
ret

Function at 0x41652c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004069fc
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar
mov edi, eax
cmp edi, 0x104
jbe 0x4164d6
mov eax, edi
add eax, eax
call fcn.004041d0
mov esi, eax
jmp 0x4164d8
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x416511
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4164fb
mov eax, esp
cmp esi, eax
je 0x41651e
mov eax, esi
call fcn.004041ec
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x416558
cmp bl, 0
je 0x416554
cmp bl, 0x41
jl 0x41654f
cmp bl, 0x5a
jg 0x41654f
or bl, 0x20
xor al, bl
inc esi
jmp 0x416533
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x416498
Function at 0x45f904
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x45fa44
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [esi + 0x24], 0
jne 0x45f954
lea edx, [ebp - 0xc]
mov eax, 0x445f50
call fcn.0040acb0
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x43c770]
call fcn.004145a4
call fcn.00405f28
cmp dword [ebp - 8], 0
jne 0x45f988
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x14]
push eax
push 0
lea edx, [ebp - 0x18]
mov eax, 0x445f68
call fcn.0040acb0
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x43c770]
call fcn.004145e0
call fcn.00405f28
lea edx, [ebp - 4]
mov eax, edi
call fcn.0043b420
movzx ecx, byte [0x45fa54]
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0044ac2c
test al, al
je 0x45f9d5
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x14]
push eax
push 0
lea edx, [ebp - 0x1c]
mov eax, 0x445ff0
call fcn.0040acb0
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x43c770]
call fcn.004145e0
call fcn.00405f28
mov dl, 1
mov eax, dword [0x43f930]
call fcn.00405438
mov ebx, eax
lea eax, [ebx + 8]
mov edx, edi
call fcn.00406690
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00460f20
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00459ce8
mov dword [ebx + 0x10], eax
lea eax, [ebx + 0x18]
mov edx, dword [ebx + 0xc]
call fcn.00406690
mov edx, ebx
mov eax, dword [esi + 0x30]
call fcn.0043b0e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fa4b
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00407800
lea eax, [ebp - 0xc]
call fcn.004077f8
lea eax, [ebp - 4]
call fcn.0040663c
ret
Function at 0x46daf8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
lea edi, [ebp - 0xd]
mov bl, 1
mov eax, dword [ebp + 8]
mov esi, dword [eax - 0x18]
dec esi
test esi, esi
jl 0x46dca8
inc esi
mov eax, dword [ebp + 8]
push eax
mov eax, edi
mov edx, 5
call fcn.0046c5d0
pop ecx
test al, al
jne 0x46db3f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.0046de14
xor ebx, ebx
jmp 0x46dca8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x20]
cmp eax, dword [edi]
ja 0x46db5d
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 2
call fcn.0046de14
xor ebx, ebx
jmp 0x46dca8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x34]
mov eax, dword [eax + 4]
mov edx, dword [edi]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x3c]
call fcn.00486a0c
test eax, eax
jne 0x46db94
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 2
call fcn.0046de14
xor ebx, ebx
jmp 0x46dca8
test byte [edi + 4], 1
je 0x46dca1
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 4]
mov edx, 4
call fcn.0046c5d0
pop ecx
test al, al
jne 0x46dbc8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.0046de14
xor ebx, ebx
jmp 0x46dca8
mov edx, dword [0x46a738]
mov eax, 0xc
call fcn.004089d8
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x46dc73
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00407124
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 8]
call fcn.00406eb8
mov edx, dword [ebp - 4]
call fcn.0046c5d0
pop ecx
test al, al
jne 0x46dc36
mov edx, dword [0x46a738]
mov eax, dword [ebp - 8]
call fcn.004089ec
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.0046de14
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46dca8
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0043ac38
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 8]
call fcn.0043b0e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46dca1
dec esi
jne 0x46db16
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x479584
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x479601
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0043b420
mov eax, dword [ebp - 4]
call fcn.0043ac38
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x30]
mov ebx, dword [eax + 0xc]
dec ebx
cmp ebx, 0
jl 0x4795e8
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 4]
mov esi, dword [eax + ebx*4]
mov eax, dword [esi + 4]
cmp eax, dword [ebp - 8]
jne 0x4795e2
mov eax, dword [esi]
mov edx, dword [ebp - 4]
call fcn.00406dbc
je 0x4795eb
dec ebx
cmp ebx, 0xffffffff
jne 0x4795c5
or ebx, 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479608
lea eax, [ebp - 4]
call fcn.0040663c
ret
Function at 0x100010a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10001240
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10001164
cmp dword [ebp - 4], 0x50000000
jb 0x100010e1
cmp dword [ebp - 4], 0x80000000
ja 0x100010e1
mov dword [ebp - 4], 0x4fff0000
jmp 0x100010ba
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.100663f0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10001107
jmp 0x10001164
cmp dword [ebp - 0x14], 0x10000
jne 0x1000114a
cmp dword [ebp - 0x18], 0x10000
jb 0x1000114a
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000113d
mov eax, dword [ebp - 8]
jmp 0x10001166
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000115f
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10001240
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100010ba
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10001170
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10001270
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1000122c
cmp dword [ebp - 4], 0x50000000
jb 0x100011ac
cmp dword [ebp - 4], 0x80000000
ja 0x100011ac
mov dword [ebp - 4], 0x80010000
jmp 0x10001185
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.100663f0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x100011d2
jmp 0x1000122c
cmp dword [ebp - 0x14], 0x10000
jne 0x10001215
cmp dword [ebp - 0x18], 0x10000
jb 0x10001215
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10001208
mov eax, dword [ebp - 8]
jmp 0x1000122e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10001227
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10001270
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10001185
xor eax, eax
mov esp, ebp
pop ebp
ret