joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444cd4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x47ec30]
cmp byte [eax + 0xc], 0
je 0x444e41
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x444e3a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x47fb94], 0
jne 0x444d28
push 0x444e48
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x444e50
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fb94], eax
cmp dword [0x47dbb8], 0
jne 0x444e23
push 0x444e60
call sub.kernel32.dll_LoadLibraryA
mov dword [0x47dbb8], eax
cmp dword [0x47dbb8], 0
je 0x444e23
push 0x444e6c
mov eax, dword [0x47dbb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fb98], eax
push 0x444e7c
mov eax, dword [0x47dbb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fb9c], eax
push 0x444e90
mov eax, dword [0x47dbb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fba0], eax
push 0x444ea8
mov eax, dword [0x47dbb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fba4], eax
push 0x444ec0
mov eax, dword [0x47dbb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fba8], eax
push 0x444ed4
mov eax, dword [0x47dbb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fbac], eax
push 0x444eec
mov eax, dword [0x47dbb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fbb0], eax
push 0x444f04
mov eax, dword [0x47dbb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fbb4], eax
push 0x444f20
mov eax, dword [0x47dbb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fbb8], eax
push 0x444f2c
mov eax, dword [0x47dbb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fbbc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x444e41
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403f00
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x448d1b
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404170
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x450500
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x450550]
test si, 4
je 0x450514
or bl, 1
test si, 8
je 0x45051e
or bl, 4
test si, 1
je 0x450528
or bl, 8
test si, 2
je 0x450532
or bl, 0x10
test si, 0x10
je 0x45053c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45054b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x450554
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45058c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45056d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45057c
or bl, 4
test esi, 0x20000000
je 0x450587
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x456c34
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x456c46
add esp, 0xfffffff0
call fcn.004034d4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041cf2c
mov eax, dword [0x47e8b4]
mov dword [eax + 4], ebx
mov dword [eax], 0x456fd8
mov eax, dword [0x47e8c0]
mov dword [eax + 4], ebx
mov dword [eax], 0x456fe4
mov eax, ebx
call fcn.00456ff0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4151f0]
call fcn.00403180
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4151f0]
call fcn.00403180
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4151f0]
call fcn.00403180
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4151f0]
call fcn.00403180
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4151f0]
call fcn.00403180
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x45340c
push eax
push 0
push 0
mov eax, dword [0x47ea1c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41e9a0]
call fcn.004201b4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41e9a0]
call fcn.004201b4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41e9a0]
call fcn.004201b4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004574a0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457334
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457334
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457334
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x456d83
call fcn.0040352c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x457118
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 0x4572c3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4572a4
mov dl, 1
mov eax, dword [0x41560c]
call fcn.00403180
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403f00
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x457293
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.00445034
test al, al
je 0x457286
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, 0x4572d4
lea eax, [ebp - 0x254]
call fcn.00408f08
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x457286
xor eax, eax
push ebp
push 0x45727f
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 0x45730c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x457268
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404170
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 0x457268
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404170
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457286
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x457189
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041911c
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 0x4572ca
lea eax, [ebp - 0x260]
call fcn.00403f00
ret

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

Disassembly:
push ecx
mov eax, dword [0x47fbe0]
cmp byte [eax + 0xa5], 0
jne 0x457cb1
cmp dword [0x47fbf8], 0
jne 0x457c72
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x457bfc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x47fbf8], eax
cmp dword [0x47fbf4], 0
jne 0x457c8d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x47fbf4], eax
cmp dword [0x47fbfc], 0
jne 0x457cb1
push esp
push 0
push 0
push 0x457ba0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x47fbfc], eax
pop edx
ret
Function at 0x457da8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x457dbf
add esp, 0xfffffff0
call fcn.004034d4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041cf2c
mov eax, dword [0x47ea08]
cmp word [eax + 2], 0
jne 0x457de7
mov eax, dword [0x47ea08]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00459480
mov eax, dword [0x47eac0]
cmp word [eax + 2], 0
jne 0x457e01
mov eax, dword [0x47eac0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00459678
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4151f0]
call fcn.00403180
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4151f0]
call fcn.00403180
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41f520]
call fcn.004272e4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x457f88
mov eax, dword [0x47e91c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004276b4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x459c18
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x47e91c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c684
test eax, eax
je 0x457ef6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004088e8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c6ac
test eax, eax
je 0x457f0a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404170
mov eax, dword [0x47e7dc]
cmp byte [eax], 0
jne 0x457f3e
mov eax, ebx
call fcn.004580b0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00459df4
mov eax, ebx
call fcn.0045a7b8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x457f7e
call fcn.0040352c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x458330
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x47fbe0]
cmp dword [eax + 0x30], 0
je 0x4583da
cmp dword [ebx + 0x94], 0
jne 0x4583d4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4582c0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4583d4
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 0x45839a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4583d4
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.0041758c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4583a9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x458f3c
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 0x458f71
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.00403ff0
jmp 0x458f7e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403f54
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x459fd0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45a011
mov eax, esi
call fcn.0044061c
test al, al
je 0x45a011
mov eax, dword [ebx + 0x84]
call fcn.00440318
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45a011
push 0
mov eax, dword [ebx + 0x84]
call fcn.00440318
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45acd0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x4147a0]
call fcn.00404898
xor eax, eax
push ebp
push 0x45ae14
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x47ddec], 0
jne 0x45ad23
mov ecx, dword [0x47e7ec]
mov dl, 1
mov eax, dword [0x407174]
call fcn.0040b928
call fcn.0040393c
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402bc4
mov eax, ebx
call fcn.00404768
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x45ae24
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405850
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404778
test eax, eax
jle 0x45adbb
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x45adb4
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404188
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404170
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408008
test eax, eax
jne 0x45adb4
mov ebx, 0x15
jmp 0x45adc0
mov ebx, 0x10
jmp 0x45adc0
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x47ddec]
call fcn.0045ac28
mov eax, dword [ebp - 8]
call fcn.0045ac28
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405868
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ae1b
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00403f24
lea eax, [ebp - 0x10]
mov edx, dword [0x4147a0]
call fcn.00404968
ret

Function at 0x463f90
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x463fbe
mov eax, ebx
call fcn.00464a44
cmp dword [ebx + 0x40], 0
je 0x463fb7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x46402f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x464021
cmp dword [ebx + 8], 0
je 0x463fe0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x463ff2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x464021
cmp dword [ebx + 8], 0
je 0x463fd3
cmp eax, 3
je 0x464005
dec eax
jne 0x463fd3
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x463fd3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x463fd3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x46404d
cmp dword [ebx + 0x14], 0xcc
je 0x46404d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00464058
pop ebx
ret
Function at 0x4037a4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4037e3
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4037e3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4037e3
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4037e3
cmp dword [ecx + 0x74], 0xe
jbe 0x4037e3
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40a02d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41745c
push 0x417454
push str.FlsAlloc
push 0x1f
call fcn.00409f08
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a061
push dword [ebp + 8]
mov ecx, esi
call dword [0x415114]
call esi
jmp 0x40a067
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40a0ab
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41746c
push 0x417464
push str.FlsGetValue
push 0x21
call fcn.00409f08
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a0e2
push dword [ebp + 8]
mov ecx, esi
call dword [0x415114]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40a0ea
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x417474
push 0x41746c
push str.FlsSetValue
push 0x22
call fcn.00409f08
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a124
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x415114]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40bee3
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x40bf2e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040c07e
test al, al
jne 0x40bf28
sub edx, 2
cmp edx, edi
jne 0x40bf0e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40bf50
lea eax, [edi + 2]
cmp edx, eax
je 0x40bf50
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040be2f
add esp, 0x10
jmp 0x40c04a
push esi
lea ecx, [ebp - 0x255]
call fcn.0040c07e
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40bf93
push dword [ebp - 0x25c]
jmp 0x40bf40
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40bfd0
cmp word [ebp - 0x226], 0
je 0x40bff1
cmp word [ebp - 0x226], ax
jne 0x40bfd0
cmp word [ebp - 0x224], 0
je 0x40bff1
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040be2f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40c03d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40bfaa
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40c025
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40c04a
push 0x40bc5f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00411280
add esp, 0x10
jmp 0x40c01a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402f43
leave
ret

Function at 0x40cb86
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x40cb97
pop esi
ret
push ebx
push edi
push esi
call fcn.0040cb4f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040a7dc
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40cbbf
push ebx
push esi
push edi
call fcn.00403f80
add esp, 0xc
push 0
call fcn.00409db5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40cf8f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040cbd4
Function at 0x4146b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4146dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4146dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10003f3e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1006f090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.10003f97
mov dl, byte [ebp + 0x10]
pop ecx
mov cl, byte [ebp + 0xc]
push 0xf
pop eax
xor byte [ebp + eax - 0x14], cl
mov cl, byte [ebp + eax - 0x14]
add cl, dl
dec eax
jns 0x10003f65
push esi
lea eax, [ebp - 0x14]
push 0x10
push eax
call fcn.100040ac
mov ecx, dword [ebp - 4]
add esp, 0xc
xor eax, eax
xor ecx, ebp
mov word [esi + 0x40], ax
inc eax
pop esi
call fcn.10046356
mov esp, ebp
pop ebp
ret

Function at 0x10013f90
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x10013fac
cmp dword [esi + 0x48], 0
je 0x10013fac
push 2
push 3
push esi
call fcn.10028240
add esp, 0xc
push dword [esp + 0xc]
call fcn.10020450
add esp, 4
test esi, esi
je 0x10013fcd
cmp dword [esi + 0x48], 0
je 0x10013fcd
push 3
push esi
call fcn.10028280
add esp, 8
pop esi
ret

Function at 0x1001c600
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
lea ebx, [edi + 0x564]
push 0x4000
push ebx
call fcn.10027000
mov eax, dword [edi + 0x120]
add esp, 0x10
test eax, eax
je 0x1001c651
cmp byte [edi + 0x8590], 0
jne 0x1001c651
push ebx
push 0x1005e834
push 0x100
push eax
call fcn.10026f10
add esp, 0x10
mov byte [edi + 0x8590], 1
cmp byte [edi + 0x2d0], 0
je 0x1001c6c6
push esi
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1001c660
sub esi, ecx
cmp esi, 0x3fff
jae 0x1001c681
mov byte [edi + esi + 0x564], 0xa
inc esi
mov byte [edi + esi + 0x564], al
mov eax, dword [edi + 0x190]
test eax, eax
je 0x1001c69f
push dword [edi + 0x11c]
push esi
push ebx
push 0
push edi
call eax
add esp, 0x14
pop esi
pop edi
pop ebx
ret
push dword [edi + 0x118]
push 1
push 2
push 0x1005e81c
call fcn.100494c9
push dword [edi + 0x118]
push 1
push esi
push ebx
call fcn.100494c9
add esp, 0x20
pop esi
pop edi
pop ebx
ret

Function at 0x1001c6d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x1006f090]
xor eax, esp
mov dword [esp + 0x804], eax
push edi
mov edi, dword [esp + 0x810]
test edi, edi
je 0x1001c799
cmp byte [edi + 0x2d0], 0
je 0x1001c799
push esi
lea eax, [esp + 0x81c]
push eax
push dword [esp + 0x81c]
lea eax, [esp + 0x10]
push 0x801
push eax
call fcn.10027000
lea esi, [esp + 0x18]
add esp, 0x10
lea ecx, [esi + 1]
lea ebx, [ebx]
mov al, byte [esi]
inc esi
test al, al
jne 0x1001c730
mov eax, dword [edi + 0x190]
sub esi, ecx
test eax, eax
je 0x1001c76e
push dword [edi + 0x11c]
lea ecx, [esp + 0xc]
push esi
push ecx
push 0
push edi
call eax
add esp, 0x14
pop esi
pop edi
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.10046356
add esp, 0x808
ret
push dword [edi + 0x118]
push 1
push 2
push 0x1005e81c
call fcn.100494c9
push dword [edi + 0x118]
lea eax, [esp + 0x1c]
push 1
push esi
push eax
call fcn.100494c9
add esp, 0x20
pop esi
mov ecx, dword [esp + 0x808]
pop edi
xor ecx, esp
call fcn.10046356
add esp, 0x808
ret