joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a750
Capabilities:
Get geographical location

Disassembly:
push ebx
mov eax, dword [0x4667c0]
push esi
test eax, eax
push edi
push ebp
jne 0x43a798
push 0
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
push 1
push 0
call esi
test eax, eax
je 0x43a778
mov eax, 2
jmp 0x43a79e
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43a791
mov eax, 1
jmp 0x43a79e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [0x4667c0], eax
cmp eax, 2
jne 0x43a7c3
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov ebx, dword [esp + 0x18]
push ecx
push edx
push ebx
call esi
pop ebp
pop edi
pop esi
pop ebx
ret
mov dword [0x4667c0], eax
cmp eax, 1
jne 0x43a85f
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x43a7df
mov edi, dword [0x4658a8]
mov eax, dword [esp + 0x18]
push 0
mov ebx, dword [esp + 0x18]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebp, eax
test ebp, ebp
jne 0x43a800
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
lea eax, [ebp*2]
push eax
call fcn.00430eb0
add esp, 4
mov esi, eax
test esi, esi
jne 0x43a81d
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x18]
push ebp
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43a854
mov eax, dword [esp + 0x20]
push 0
push 0
test eax, eax
jne 0x43a864
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x43a87f
push esi
call fcn.00430e90
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push eax
mov eax, dword [esp + 0x28]
push eax
push 0xffffffffffffffff
push esi
push 0x220
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x43a854
push esi
call fcn.00430e90
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x43b1c0
Capabilities:
Set environment variable

Disassembly:
sub esp, 4
cmp dword [esp + 8], 0
push ebx
push esi
push edi
push ebp
je 0x43b3fd
mov edx, dword [esp + 0x18]
push 0x3d
push edx
call fcn.00431500
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x43b3fd
cmp dword [esp + 0x18], ebp
je 0x43b3fd
cmp byte [ebp + 1], 1
sbb eax, eax
mov ecx, dword [0x4654e0]
neg eax
mov dword [esp + 0x10], eax
cmp dword [0x4654e4], ecx
jne 0x43b21d
push ecx
call fcn.0043b470
add esp, 4
mov dword [0x4654e0], eax
cmp dword [0x4654e0], 0
jne 0x43b2cd
cmp dword [esp + 0x1c], 0
je 0x43b254
cmp dword [0x4654e8], 0
je 0x43b254
call fcn.0043a3d0
test eax, eax
je 0x43b2cd
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [esp + 0x10], 0
je 0x43b265
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x4654e0], 0
jne 0x43b299
push 4
call fcn.00430eb0
add esp, 4
mov dword [0x4654e0], eax
test eax, eax
jne 0x43b28e
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x4654e0]
mov dword [eax], 0
cmp dword [0x4654e8], 0
jne 0x43b2cd
push 4
call fcn.00430eb0
add esp, 4
mov dword [0x4654e8], eax
test eax, eax
jne 0x43b2c2
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x4654e8]
mov dword [eax], 0
mov esi, dword [0x4654e0]
sub ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x18]
push ebp
push edx
call fcn.0043b410
add esp, 8
mov edi, eax
test edi, edi
jl 0x43b335
cmp dword [esi], 0
je 0x43b335
cmp dword [esp + 0x10], 0
je 0x43b32c
lea ebx, [esi + edi*4]
mov eax, dword [ebx]
push eax
call fcn.00430e90
add esp, 4
cmp dword [ebx], 0
je 0x43b319
mov eax, dword [ebx + 4]
add ebx, 4
inc edi
mov dword [ebx - 4], eax
cmp dword [ebx], 0
jne 0x43b30a
shl edi, 2
push edi
push esi
call fcn.00434030
add esp, 8
test eax, eax
je 0x43b37d
jmp 0x43b378
mov edx, dword [esp + 0x18]
mov dword [esi + edi*4], edx
jmp 0x43b37d
cmp dword [esp + 0x10], 0
jne 0x43b3f3
test edi, edi
jge 0x43b346
neg edi
lea eax, [edi*4 + 8]
push eax
push esi
call fcn.00434030
add esp, 8
test eax, eax
jne 0x43b368
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
lea ecx, [eax + edi*4]
mov edx, dword [esp + 0x18]
mov dword [ecx], edx
mov dword [ecx + 4], 0
mov dword [0x4654e0], eax
cmp dword [esp + 0x1c], 0
je 0x43b3e9
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.00430eb0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x43b3e9
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x10], 1
sbb ecx, ecx
lea eax, [ebx + ebp]
mov byte [eax], 0
lea eax, [eax + 1]
and ecx, eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.00430e90
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x43e7a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00431010
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x43e86b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x43e86b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x43e81e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x43e829
or bh, 8
and edi, 0x8000000
je 0x43e844
mov eax, dword [0x46a44c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x43e86b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43ec40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x43ec6b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x43ec8f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x43ecaa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x440d44
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, dword [esp + 0x10]
mov eax, edi
mov dword [esi + 0x40], edi
shr eax, 0x10
test ax, ax
jne 0x440d66
cmp dword [esi + 0x3c], 0
jne 0x440d66
movzx eax, di
mov dword [esi + 0x3c], eax
call fcn.004500ae
mov ebx, dword [eax + 0xc]
push 5
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
mov ecx, esi
push dword [esp + 0x18]
push eax
call fcn.00440d93
pop edi
pop esi
pop ebx
ret 8

Function at 0x44110f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 4
push ebx
push esi
mov eax, dword [ecx + 0x48]
push edi
mov edi, dword [ecx + 0x44]
push ebp
mov esi, ecx
mov dword [esp + 0x10], eax
call fcn.004500ae
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x44114e
call fcn.004500ae
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x44115d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
jne 0x44116e
mov eax, 0xffffffff
jmp 0x441228
mov ecx, esi
xor ebp, ebp
call fcn.0044109a
mov edi, eax
call fcn.00442025
push edi
call fcn.004419f2
test edi, edi
je 0x4411a0
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4411a0
push ebp
push edi
mov ebp, 1
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call fcn.00441fe0
push ebx
push edi
call fcn.004419f2
push eax
mov ecx, esi
push dword [esp + 0x18]
call fcn.00440df7
test eax, eax
je 0x4411f4
test byte [esi + 0x24], 0x10
je 0x4411e1
mov ebx, 4
mov ecx, esi
call fcn.004446df
test ah, 1
je 0x4411d9
mov ebx, 5
push ebx
mov ecx, esi
call fcn.00444323
push 0x97
xor eax, eax
push eax
mov ecx, esi
push eax
push eax
push eax
push eax
call fcn.0044478d
test ebp, ebp
je 0x441201
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
test edi, edi
je 0x441217
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x441217
push edi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x5c]
mov ecx, esi
call fcn.004410d0
mov eax, dword [esi + 0x2c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret

Function at 0x44633b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push esi
push edi
mov edi, ecx
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x446383
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x446372
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00445949
cmp dword [ebp - 4], esi
je 0x446383
push dword [edi + 0xc]
push 0xffffffffffffffff
push 0xd
call fcn.00445a24
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x44674b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 4]
push edi
xor esi, esi
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push str.CLSID
mov dword [ebp - 4], esi
push 0x80000000
call edi
test eax, eax
jne 0x4467f1
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push dword [ebp + 8]
push dword [ebp - 4]
call edi
test eax, eax
jne 0x4467e8
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
push str.InProcServer32
push dword [ebp - 8]
call edi
test eax, eax
jne 0x4467df
mov edi, 0x104
mov ecx, dword [ebp + 0xc]
push edi
call fcn.00445385
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], edi
lea edi, [ebp - 0x10]
push edi
push eax
push ecx
push esi
push 0x463720
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
call fcn.004453da
push dword [ebp - 0xc]
cmp esi, 1
sbb esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4467fb
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x44694e
call fcn.0043147c
sub esp, 0x16c
xor eax, eax
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
mov byte [esi], al
cmp dword [0x469014], eax
je 0x44684a
mov dword [ebp - 4], 0xffffffff
call fcn.00446958
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x184]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x800
lea eax, [ebp - 0x178]
push 0x160
mov edi, dword [ebp + 0xc]
push eax
push 0
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x446823
test byte [ebp - 0x16e], 1
je 0x446823
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
push 0x4569e0
push 0
push 0x4569d0
call fcn.00446571
test eax, eax
jl 0x446823
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
push eax
push 0x4569c0
mov eax, dword [ecx]
push dword [ebp - 0x10]
call dword [eax]
test eax, eax
jl 0x44693e
mov eax, 0
test edi, edi
je 0x4468d8
push edi
call fcn.004327b0
add esp, 4
lea ebx, [eax + 1]
lea eax, [eax*2 + 5]
and al, 0xfc
call fcn.00431010
mov eax, esp
push ebx
push edi
push eax
call fcn.004454b7
push 0
mov ecx, dword [ebp - 0x14]
push eax
mov eax, dword [ecx]
push dword [ebp - 0x14]
call dword [eax + 0x14]
test eax, eax
jl 0x446933
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4468f5
xor eax, eax
jmp 0x4468f8
mov eax, dword [eax + 0x1c]
push 2
mov ecx, dword [ebp - 0x10]
push eax
mov eax, dword [ecx]
push dword [ebp - 0x10]
call dword [eax + 0x4c]
test eax, eax
jl 0x446933
push 0
mov ecx, dword [ebp - 0x10]
push 0
mov eax, dword [ecx]
push dword [ebp + 0x14]
push esi
push dword [ebp - 0x10]
call dword [eax + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.00446958
mov eax, 1
jmp 0x446831
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 8]
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 8]
jmp 0x446823
Function at 0x446960
Capabilities:
Get disk information

Disassembly:
mov eax, 0x446a3f
call fcn.0043147c
sub esp, 0x150
lea eax, [ebp - 0x18]
push ebx
push esi
push edi
mov ebx, 0x104
push eax
mov edi, dword [ebp + 8]
push edi
mov esi, dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x4469ad
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x10]
xor ebx, ebx
call fcn.00444ea3
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
push eax
push edi
call fcn.00446a51
push ebx
lea eax, [ebp - 0x14]
push ebx
lea ecx, [ebp - 0x1c]
push eax
push ecx
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x4469ec
mov dword [ebp - 4], 0xffffffff
call fcn.00446a49
jmp 0x446998
test byte [ebp - 0x14], 2
jne 0x4469f9
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp - 0x14], 4
jne 0x446a29
lea eax, [ebp - 0x15c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x446a29
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 4], 0xffffffff
call fcn.00446a49
mov eax, 1
jmp 0x44699a

Function at 0x446e6d
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, ecx
push 0x118
push 0
mov esi, dword [ebp + 8]
push esi
call fcn.004314a0
add esp, 0xc
lea ecx, [esi + 0x12]
push 0x104
push dword [edi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [edi + 4]
cmp ecx, 0xffffffff
je 0x446f22
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x14]
push eax
push edx
lea eax, [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x446ebf
xor eax, eax
jmp 0x446f27
push 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
jne 0x446ed6
xor eax, eax
jmp 0x446f27
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 4]
mov byte [esi + 0x10], 0
call fcn.0043eeff
mov eax, dword [eax]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
lea edi, [esi + 8]
push ecx
mov dword [esi], eax
lea ecx, [ebp - 4]
call fcn.0043eeff
mov ecx, dword [eax]
push 0xffffffffffffffff
lea eax, [ebp - 0xc]
mov dword [edi], ecx
push eax
lea ecx, [ebp - 4]
call fcn.0043eeff
mov eax, dword [eax]
cmp dword [esi], 0
mov dword [esi + 4], eax
jne 0x446f1b
mov dword [esi], eax
cmp dword [edi], 0
jne 0x446f22
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x447840
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
cmp dword [eax + 4], 0x100
jne 0x447885
cmp dword [eax + 8], 0x70
jne 0x447885
mov eax, dword [eax + 0xc]
shr eax, 0x10
test ah, 0x40
jne 0x447885
push 0x10
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
call esi
test ax, ax
jl 0x447885
push 0x11
call esi
test ax, ax
jl 0x447885
push 0x12
call esi
test ax, ax
mov eax, 1
jge 0x447887
xor eax, eax
pop esi
ret 4

Function at 0x449e17
Capabilities:
Get file attributes

Disassembly:
push esi
mov esi, ecx
push dword [ecx + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 1
test al, 1
je 0x449e3d
push 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x9c]
test eax, eax
jne 0x449e53
xor eax, eax
jmp 0x449e58
mov eax, dword [esi]
mov ecx, esi
push dword [esi + 0x20]
call dword [eax + 0x9c]
test eax, eax
mov eax, 0
je 0x449e58
mov eax, 1
pop esi
ret

Function at 0x44b936
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
push edi
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
mov eax, 0x100
cmp edi, eax
ja 0x44b97d
push eax
lea eax, [ebp - 0x100]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, edi
jne 0x44b97d
push esi
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x44b987
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x44d1aa
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
cmp dword [ecx + 0x74], 0
mov esi, ecx
je 0x44d1f2
push dword [ebp + 8]
call fcn.004525eb
mov esi, eax
test esi, esi
jne 0x44d1cc
xor eax, eax
jmp 0x44d21d
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 1
sbb eax, eax
neg eax
jmp 0x44d21d
push dword [ebp + 0x10]
push 0x456850
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x10]
push dword [esi + 0x88]
push edx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44d873
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
push ebp
push 5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
je 0x44d909
mov ebp, 0x18000000
push edi
call fcn.00441a1c
mov ebx, eax
test ebx, ebx
je 0x44d8fa
mov eax, dword [esi + 0x1c]
cmp eax, edi
je 0x44d8fa
push edi
push eax
call fcn.0044d6c7
test eax, eax
je 0x44d8fa
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
cmp dword [esp + 0x14], 0
jne 0x44d8e3
mov ecx, eax
and ecx, ebp
cmp ecx, 0x10000000
jne 0x44d8dc
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
or byte [ebx + 0x24], 2
jmp 0x44d8fa
cmp dword [esp + 0x14], 0
je 0x44d8fa
test ebp, eax
jne 0x44d8fa
test byte [ebx + 0x24], 2
je 0x44d8fa
push 4
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [ebx + 0x24], 0xfd
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
jne 0x44d893
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x4512d2
Capabilities:
Allocate thread local storage

Disassembly:
push esi
xor eax, eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 4], eax
cmp dword [esp + 8], eax
mov dword [ecx + 0x1c], 4
mov dword [ecx + 0xc], 1
mov esi, ecx
je 0x45130e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x451314
call fcn.0043f014
jmp 0x451314
mov dword [esi], 0xffffffff
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret 4

Function at 0x45147f
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov eax, dword [ecx]
mov esi, ecx
cmp eax, 0xffffffff
jne 0x451499
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 4]
jmp 0x4514a0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4514b5
mov ecx, dword [esp + 0xc]
cmp dword [eax + 8], ecx
jle 0x4514b5
mov eax, dword [eax + 0xc]
mov edi, dword [eax + ecx*4]
jmp 0x4514b7
xor edi, edi
cmp dword [esi], 0xffffffff
jne 0x4514c6
add esi, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
ret 4