joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44fe98
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x450043
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x450024
mov dl, 1
mov eax, dword [0x4177b0]
call fcn.004034b0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404298
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x450013
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043d918
test al, al
je 0x450006
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x450054
lea eax, [ebp - 0x254]
call fcn.004097f0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x450006
xor eax, eax
push ebp
push 0x44ffff
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45008c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44ffe8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404508
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44ffe8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404508
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450006
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44ff09
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041b2c8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45004a
lea eax, [ebp - 0x260]
call fcn.00404298
ret

Function at 0x45098c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x45ebd8]
cmp byte [eax + 0xa5], 0
jne 0x4509fd
cmp dword [0x45ebf0], 0
jne 0x4509be
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x450948
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45ebf0], eax
cmp dword [0x45ebec], 0
jne 0x4509d9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45ebec], eax
cmp dword [0x45ebf4], 0
jne 0x4509fd
push esp
push 0
push 0
push 0x4508ec
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45ebf4], eax
pop edx
ret
Function at 0x451090
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45ebd8]
cmp dword [eax + 0x30], 0
je 0x45113a
cmp dword [ebx + 0x94], 0
jne 0x451134
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x451020
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x451134
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4510fa
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x451134
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004196fc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x451109
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x451c98
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x451ccd
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404388
jmp 0x451cda
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004042ec
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x452d10
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x452d51
mov eax, esi
call fcn.00439120
test al, al
je 0x452d51
mov eax, dword [ebx + 0x84]
call fcn.00438ec0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x452d51
push 0
mov eax, dword [ebx + 0x84]
call fcn.00438ec0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45663c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, dword [0x45ce5c]
cmp byte [eax], 0
jne 0x45666a
mov ecx, 0xaf
mov edx, 0x4566b8
mov eax, 0x4566ec
call fcn.00404270
mov eax, ebx
call fcn.00404978
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x4566a9
push 0x200
lea edx, [ebp - 0x202]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00404b0c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x456700
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov eax, dword [0x45ce5c]
cmp byte [eax], 0
jne 0x456723
mov ecx, 0xbd
mov edx, 0x456764
mov eax, 0x456798
call fcn.00404270
push 2
movzx eax, bx
push eax
call sub.user32.dll_MapVirtualKeyW
mov edi, eax
mov eax, ebx
add eax, 0xffffffd0
sub ax, 0xa
jae 0x456756
mov esi, ebx
sub si, 0x30
add si, 0x30
cmp si, di
je 0x456756
push esi
call sub.user32.dll_VkKeyScanW
cmp al, bl
jne 0x456756
mov edi, esi
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x459018
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x45907c
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404508
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408ca0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459083
lea eax, [ebp - 0xc]
call fcn.00404298
ret

Function at 0x4590b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
lea edi, [esp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x45910c
push esp
push 0x40
push 6
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x4590db
call fcn.0040daf0
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov ecx, 6
call fcn.00402ca8
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push 6
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x45910c
call fcn.0040daf0
add esp, 0x14
pop edi
pop esi
pop ebx
ret

Function at 0x459624
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x45974c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
dec eax
sub eax, 2
jb 0x45966e
mov ecx, 0x7d
mov edx, 0x459764
mov eax, 0x45979c
call fcn.00404270
mov eax, dword [0x45ce5c]
cmp byte [eax], 0
jne 0x4596cc
cmp esi, 1
jne 0x4596a6
lea eax, [ebp - 8]
mov edx, edi
call fcn.00404520
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404520
mov edx, dword [ebp - 0xc]
mov eax, ebx
pop ecx
call fcn.0042baf4
jmp 0x459729
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.00404520
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.00404520
mov edx, dword [ebp - 0x14]
mov eax, ebx
pop ecx
call fcn.0042bb20
jmp 0x459729
mov eax, edi
call fcn.00404bb4
inc eax
add eax, eax
push eax
mov eax, edi
call fcn.00404ba4
push eax
push esi
push 0
mov eax, dword [ebp - 4]
call fcn.00404ba4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x459729
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xf
lea eax, [ebp - 0x1c]
push eax
push 0
lea edx, [ebp - 0x20]
mov eax, dword [0x45d004]
call fcn.00406438
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x42b5dc]
call fcn.0040c6f8
call fcn.00403c68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459753
lea eax, [ebp - 0x20]
call fcn.00404298
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.004042bc
ret
Function at 0x4597f8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, edx
push esp
push eax
mov eax, dword [0x45d080]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov edx, ebx
lea eax, [esp + 4]
call fcn.00409370
add esp, 0x104
pop ebx
ret
Function at 0x10001cfe
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, esp
mov dword [esi + 0x28], ebp
mov edi, ecx
lea eax, [esi + 0x30]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x10004330
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
lea ecx, [esi + 8]
push edi
call fcn.10003e94
mov eax, dword [edi]
mov ecx, dword [eax + 4]
test byte [edi + ecx + 0xc], 6
jne 0x10001d9f
mov edx, dword [ebp + 0xc]
mov ecx, dword [edi + ecx + 0x38]
mov dword [esi + 4], edi
mov edi, dword [ecx]
mov edi, dword [edi + 0x28]
mov dword [esi + 0x38], 0
mov ebx, dword [ebp + 0x10]
lea eax, [esi + 0x10]
push 2
push ebx
push edx
push dword [ebp + 8]
push eax
call edi
mov edi, dword [esi + 4]
mov eax, dword [esi + 0x18]
add eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x1c]
adc ecx, dword [esi + 0x14]
and ecx, eax
cmp ecx, 0xffffffff
jne 0x10001d9f
mov eax, dword [edi]
mov eax, dword [eax + 4]
lea ecx, [edi + eax]
mov eax, dword [edi + eax + 0xc]
or eax, 2
push 0
push eax
call fcn.10003dcc
mov edi, dword [esi + 4]
lea ecx, [esi + 8]
call fcn.10003f44
mov eax, dword [esi + 0x30]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x1000260e
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ebx, ecx
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
cmp esi, 1
mov eax, ecx
sbb eax, 0
jl 0x1000263d
cmp dword [ebx + 0x38], 0
je 0x10002646
mov ecx, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
jmp method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_32
xor eax, eax
xor edx, edx
jmp 0x100026d9
mov dword [esp], ecx
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 4], esi
je 0x10002681
mov ecx, dword [ebx + 0x2c]
mov edi, dword [ecx]
test edi, edi
je 0x10002681
cmp edi, esi
cmovae edi, esi
push edi
push eax
push ebp
call fcn.10004450
add esp, 0xc
add ebp, edi
sub esi, edi
mov eax, dword [ebx + 0x2c]
sub dword [eax], edi
mov eax, dword [ebx + 0x1c]
add dword [eax], edi
cmp dword [ebx + 0x4c], 0
je 0x100026cd
mov ecx, ebx
call fcn.10001fba
mov edi, 0xfff
cmp esi, 0x1000
jb 0x100026b4
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call fcn.100165ac
add esp, 0x10
add ebp, eax
sub esi, eax
cmp eax, edi
je 0x10002693
jmp 0x100026cd
test esi, esi
je 0x100026cb
push dword [ebx + 0x4c]
push esi
push 1
push ebp
call fcn.100165ac
add esp, 0x10
sub esi, eax
jmp 0x100026cd
xor esi, esi
mov eax, dword [esp + 4]
sub eax, esi
mov edx, dword [esp]
sbb edx, 0
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
cmp edi, 1
mov eax, esi
sbb eax, 0
jl 0x10002c72
mov ebx, ecx
mov ebp, dword [esp + 0x20]
mov dword [esp], ecx
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
test eax, eax
je 0x10002c4f
mov ecx, dword [ebx + 0x2c]
mov ecx, dword [ecx]
test ecx, ecx
jle 0x10002c4f
mov dword [esp + 8], ebp
cmp edi, ecx
mov edx, esi
sbb edx, 0
mov edx, esi
mov ebp, edi
jb 0x10002c21
xor edx, edx
mov ebp, ecx
mov dword [esp + 4], edx
push ebp
push eax
mov ebx, dword [esp + 0x10]
push ebx
call fcn.10004450
add esp, 0xc
add ebx, ebp
sub edi, ebp
sbb esi, dword [esp + 4]
mov ecx, dword [esp]
mov eax, dword [ecx + 0x2c]
sub dword [eax], ebp
mov eax, dword [ecx + 0x1c]
add dword [eax], ebp
mov ebp, ebx
mov ebx, ecx
jmp 0x10002c65
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, 0xffffffff
je 0x10002c72
mov byte [ebp], al
inc ebp
add edi, 0xffffffff
adc esi, 0xffffffff
mov eax, edi
neg eax
mov eax, 0
sbb eax, esi
jl 0x10002bfa
mov eax, dword [esp + 0x24]
sub eax, edi
mov edx, dword [esp + 0x28]
sbb edx, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x10003058
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x10004380
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
xor ebx, ebx
mov ecx, edi
push ebx
call fcn.1000b9d0
lea eax, [edi + 4]
mov dword [ebp - 0x38], eax
mov dword [edi + 4], ebx
mov byte [edi + 8], bl
lea eax, [edi + 0xc]
mov dword [ebp - 0x34], eax
mov dword [edi + 0xc], ebx
mov byte [edi + 0x10], bl
lea eax, [edi + 0x14]
mov dword [ebp - 0x30], eax
mov dword [edi + 0x14], ebx
mov word [edi + 0x18], bx
lea eax, [edi + 0x1c]
mov dword [ebp - 0x2c], eax
mov dword [edi + 0x1c], ebx
mov word [edi + 0x20], bx
mov dword [edi + 0x24], ebx
mov byte [edi + 0x28], bl
mov dword [edi + 0x2c], ebx
mov byte [edi + 0x30], bl
lea eax, [edi + 0x24]
mov dword [ebp - 0x28], eax
lea eax, [edi + 0x2c]
mov dword [ebp - 0x24], eax
test esi, esi
mov dword [ebp - 0x20], edi
je 0x1000310b
mov dword [ebp - 0x10], 0
push esi
push edi
call fcn.1000baf8
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x20]
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x10], 0
push str.bad_locale_name
call fcn.1000c052
add esp, 4
nop
push ebp
sub esp, 8
add ebp, 0xc
mov ecx, dword [ebp - 0x24]
call fcn.100031f8
mov ecx, dword [ebp - 0x28]
call fcn.100031f8
mov ecx, dword [ebp - 0x2c]
call fcn.100031f8
mov ecx, dword [ebp - 0x30]
call fcn.100031f8
mov ecx, dword [ebp - 0x34]
call fcn.100031f8
mov ecx, dword [ebp - 0x38]
call fcn.100031f8
mov ecx, dword [ebp - 0x20]
call fcn.1000ba01
add esp, 8
pop ebp
ret
Function at 0x1001b205
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10033e90
push 0x10033e88
push str.FlsAlloc
push 0x1e
call fcn.1001b61c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001b239
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003bf18]
call esi
jmp 0x1001b23f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001b283
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10033ea0
push 0x10033e98
push str.FlsGetValue
push 0x20
call fcn.1001b61c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001b2ba
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003bf18]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1001e8cb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1000de50
mov eax, dword [0x1003e4bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1001dcce
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1001e90d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1001ea69
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10027370
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x10043420]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1001e672
mov ecx, dword [esi*4 + 0x10043420]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x1001ea62
cmp eax, dword [edi + ecx + 0x24]
jne 0x1001ea62
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001ea62
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001e672
add esp, 0x14
test edx, edx
jl 0x1001ea62
jg 0x1001e9d8
test eax, eax
jb 0x1001ea62
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1001ea62
jl 0x1001e9f2
cmp dword [ebp - 0x1008], eax
ja 0x1001ea62
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1001ea10
test ebx, ebx
je 0x1001ea49
cmp ecx, edi
jae 0x1001ea49
mov al, byte [ecx]
cmp al, 0xd
jne 0x1001ea2a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001ea36
cmp byte [ecx + 1], 0xa
jne 0x1001ea36
inc ecx
jmp 0x1001ea36
movzx eax, al
movsx eax, byte [eax + 0x10041200]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1001ea10
cmp edx, ebx
jne 0x1001ea10
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1001ea67
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000c3ea
leave
ret
Function at 0x1001f397
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 0x1001f434
push ebx
push esi
call fcn.1001f437
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.1001907b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001f3e1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001f433
push edi
push eax
call fcn.10018fb1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001f401
call fcn.10018f77
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001f432
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001907b
add esp, 0x20
test eax, eax
jne 0x1001f420
push edi
call fcn.10018f77
jmp 0x1001f428
push ebx
call fcn.10018f77
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 0x10020606
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10020611
Function at 0x1002107d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10043420]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100210bd
cmp byte [ebx], 0xa
jne 0x100210bd
or byte [eax + edi + 0x28], 4
jmp 0x100210c2
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100211c0
mov al, byte [edx]
cmp al, 0x1a
je 0x100211a2
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x100210f1
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x10021116
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10021120
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x100210d3
jmp 0x100211c0
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002119d
cmp dword [ebp - 0xc], 0
je 0x1002119d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10043420]
test byte [eax + edi + 0x28], 0x48
je 0x10021177
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10021162
mov byte [esi], dl
jmp 0x10021173
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10043420]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100211c0
cmp byte [ebp - 1], 0xa
jne 0x10021186
cmp esi, ebx
jne 0x10021186
mov byte [esi], 0xa
jmp 0x100211bf
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001e614
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100211c0
mov byte [esi], 0xd
jmp 0x100211bf
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10043420]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100211bc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100211c0
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret