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

Disassembly:
sub esp, 4
cmp dword [0x439d34], 0
push ebx
push esi
push edi
push ebp
jne 0x413450
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call esi
mov edi, eax
test edi, edi
je 0x41342e
mov dword [0x439d34], 1
mov ebx, dword [esp + 0x10]
jmp 0x41345e
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x413446
mov dword [0x439d34], 2
jmp 0x41345e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x439d34], 1
jne 0x41350d
test edi, edi
jne 0x413481
call esi
mov edi, eax
test edi, edi
jne 0x413481
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x41349b
add esi, 2
cmp word [esi], 0
jne 0x413489
add esi, 2
cmp word [esi], 0
jne 0x413489
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x4134fc
push ebp
call fcn.0040eae0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x4134fc
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4134eb
push ebx
call fcn.0040eac0
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x439d34], 2
jne 0x413591
test ebx, ebx
jne 0x413530
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x413530
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x413545
inc ebp
cmp byte [ebp], 0
jne 0x413537
inc ebp
cmp byte [ebp], 0
jne 0x413537
sub ebp, ebx
inc ebp
push ebp
call fcn.0040eae0
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x41356a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
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
Function at 0x4138a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor eax, eax
mov ecx, 0x439fc0
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [ecx], edx
je 0x4138c8
add ecx, 8
inc eax
cmp ecx, 0x43a048
jb 0x4138b8
cmp dword [eax*8 + 0x439fc0], edx
lea ebx, [eax*8]
jne 0x413a83
cmp dword [0x4395dc], 1
je 0x413a48
cmp dword [0x4395dc], 0
jne 0x4138ff
cmp dword [0x4395e0], 1
je 0x413a48
cmp edx, 0xfc
je 0x413a83
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x41393c
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x413980
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x43a090
push ebp
call fcn.00416060
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x43838c
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x439fc4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00415fc0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x43d950]
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x413a5f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x439fc4]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x415730
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
push ebx
push esi
push edi
push ebp
xor edi, edi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], edi
cmp ebp, edi
jne 0x415758
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov edx, dword [esp + 0x42c]
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x43d950
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ebx, dword [esp + 0x18]
shl eax, 2
lea ecx, [eax + eax*8]
mov eax, dword [ebx]
mov dword [esp + 0x1c], ecx
test byte [eax + ecx + 4], 0x20
je 0x415799
push 2
push 0
push edx
call fcn.00415a90
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x415835
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x41586e
lea esi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x4157fc
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x4157ea
mov byte [esi], 0xd
inc edi
inc esi
mov byte [esi], al
inc esi
mov eax, esi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x4157d1
lea eax, [esp + 0x24]
push 0
sub esi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push esi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x415864
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, esi
jge 0x4157bc
jmp 0x41586e
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x415864
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x41586e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x41591a
cmp dword [esp + 0x10], 0
je 0x4158ca
cmp dword [esp + 0x10], 5
jne 0x4158ad
call fcn.004111d0
mov dword [eax], 9
call fcn.004111e0
mov ecx, dword [esp + 0x10]
pop ebp
pop edi
mov dword [eax], ecx
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00411150
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x4158f4
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x4158f4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
call fcn.004111d0
mov dword [eax], 0x1c
call fcn.004111e0
pop ebp
mov dword [eax], 0
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, edi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x416de0
Capabilities:
Set environment variable

Disassembly:
sub esp, 4
cmp dword [esp + 8], 0
push ebx
push esi
push edi
push ebp
je 0x41701e
mov edx, dword [esp + 0x18]
push 0x3d
push edx
call fcn.0040f060
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x41701e
cmp ebp, dword [esp + 0x18]
je 0x41701e
cmp byte [ebp + 1], 1
sbb eax, eax
mov ecx, dword [0x439bb8]
neg eax
mov dword [esp + 0x10], eax
cmp dword [0x439bbc], ecx
jne 0x416e3d
push ecx
call fcn.00417090
add esp, 4
mov dword [0x439bb8], eax
cmp dword [0x439bb8], 0
jne 0x416eed
cmp dword [esp + 0x1c], 0
je 0x416e74
cmp dword [0x439bc0], 0
je 0x416e74
call fcn.00416a20
test eax, eax
je 0x416eed
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [esp + 0x10], 0
je 0x416e85
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x439bb8], 0
jne 0x416eb9
push 4
call fcn.0040eae0
add esp, 4
mov dword [0x439bb8], eax
test eax, eax
jne 0x416eae
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x439bb8]
mov dword [eax], 0
cmp dword [0x439bc0], 0
jne 0x416eed
push 4
call fcn.0040eae0
add esp, 4
mov dword [0x439bc0], eax
test eax, eax
jne 0x416ee2
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x439bc0]
mov dword [eax], 0
mov esi, dword [0x439bb8]
sub ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x18]
push ebp
push edx
call fcn.00417030
add esp, 8
mov edi, eax
test edi, edi
jl 0x416f55
cmp dword [esi], 0
je 0x416f55
cmp dword [esp + 0x10], 0
je 0x416f4c
lea ebx, [esi + edi*4]
mov eax, dword [ebx]
push eax
call fcn.0040eac0
add esp, 4
cmp dword [ebx], 0
je 0x416f39
mov eax, dword [ebx + 4]
add ebx, 4
inc edi
mov dword [ebx - 4], eax
cmp dword [ebx], 0
jne 0x416f2a
shl edi, 2
push edi
push esi
call fcn.00412e50
add esp, 8
test eax, eax
je 0x416f9d
jmp 0x416f98
mov edx, dword [esp + 0x18]
mov dword [esi + edi*4], edx
jmp 0x416f9d
cmp dword [esp + 0x10], 0
jne 0x417014
test edi, edi
jge 0x416f66
neg edi
lea eax, [edi*4 + 8]
push eax
push esi
call fcn.00412e50
add esp, 8
test eax, eax
jne 0x416f88
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 [0x439bb8], eax
cmp dword [esp + 0x1c], 0
je 0x41700a
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.0040eae0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x41700a
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 eax, eax
lea ecx, [ebp + ebx]
mov byte [ecx], 0
lea ecx, [ecx + 1]
and eax, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.0040eac0
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 0x41ab93
Capabilities:
Read file on windows

Disassembly:
push ebp
mov eax, dword [esp + 0xc]
mov ebp, esp
sub esp, 4
test eax, eax
push esi
jne 0x41aba6
xor eax, eax
jmp 0x41abce
push 0
lea edx, [ebp - 4]
push edx
push eax
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41abcb
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042072f
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x41abd5
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 0x41ac1d
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 0x41ac0c
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042072f
cmp esi, dword [ebp - 4]
je 0x41ac1d
push dword [edi + 0xc]
push 0xffffffffffffffff
push 0xd
call fcn.0042080a
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x41afe5
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 0x41b08b
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 0x41b082
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
push str.InProcServer32
push dword [ebp - 8]
call edi
test eax, eax
jne 0x41b079
mov edi, 0x104
mov ecx, dword [ebp + 0xc]
push edi
call fcn.0041a5a7
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], edi
lea edi, [ebp - 0x10]
push edi
push eax
push ecx
push esi
push 0x4381c0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
call fcn.0041a5fc
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 0x41b095
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x41b1de
call fcn.0040ee70
sub esp, 0x16c
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [ebp + 0x10]
push 0x800
push 0x160
lea eax, [ebp - 0x178]
push eax
mov edi, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x18], ebx
push edi
mov dword [ebp - 4], ebx
mov byte [esi], bl
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x41b0f9
test byte [ebp - 0x16e], 1
je 0x41b0f9
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
push 0x430170
push ebx
push 0x430160
call fcn.0041ae0b
test eax, eax
jge 0x41b120
mov dword [ebp - 4], 0xffffffff
call fcn.0041b1e8
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
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
push eax
push 0x430150
mov eax, dword [ecx]
push dword [ebp - 0x10]
call dword [eax]
test eax, eax
jl 0x41b1ce
mov eax, 0
test edi, edi
je 0x41b168
push edi
call fcn.004106f0
add esp, 4
lea ebx, [eax + 1]
lea eax, [eax*2 + 5]
and al, 0xfc
call fcn.004106c0
mov eax, esp
push ebx
push edi
push eax
call fcn.0041a6f7
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 0x41b1c3
mov eax, dword [ebp + 8]
test eax, eax
jne 0x41b185
xor eax, eax
jmp 0x41b188
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 0x41b1c3
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.0041b1e8
mov eax, 1
jmp 0x41b107
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 0x41b0f9
Function at 0x41b1f0
Capabilities:
Get disk information

Disassembly:
mov eax, 0x41b2cf
call fcn.0040ee70
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 0x41b23d
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.0041a074
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
push eax
push edi
call fcn.0041b2e1
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 0x41b27c
mov dword [ebp - 4], 0xffffffff
call fcn.0041b2d9
jmp 0x41b228
test byte [ebp - 0x14], 2
jne 0x41b289
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp - 0x14], 4
jne 0x41b2b9
lea eax, [ebp - 0x15c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x41b2b9
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.0041b2d9
mov eax, 1
jmp 0x41b22a

Function at 0x41b6d9
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.0040ee90
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 0x41b78e
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 0x41b72b
xor eax, eax
jmp 0x41b793
push 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
jne 0x41b742
xor eax, eax
jmp 0x41b793
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 4]
mov byte [esi + 0x10], 0
call fcn.00417268
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.00417268
mov ecx, dword [eax]
push 0xffffffffffffffff
lea eax, [ebp - 0xc]
mov dword [edi], ecx
push eax
lea ecx, [ebp - 4]
call fcn.00417268
mov eax, dword [eax]
cmp dword [esi], 0
mov dword [esi + 4], eax
jne 0x41b787
mov dword [esi], eax
cmp dword [edi], 0
jne 0x41b78e
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x41baef
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 0x41bb11
cmp dword [esi + 0x3c], 0
jne 0x41bb11
movzx eax, di
mov dword [esi + 0x3c], eax
call fcn.0042ab93
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 dword [esp + 0x14]
push eax
mov ecx, esi
call fcn.0041bb3d
pop edi
pop esi
pop ebx
ret 8

Function at 0x41bea4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, dword [ecx + 0x48]
mov eax, dword [ecx + 0x44]
cmp dword [ecx + 0x40], 0
mov edi, ecx
je 0x41bed2
call fcn.0042ab93
mov esi, dword [eax + 0xc]
push 5
push dword [edi + 0x40]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41bedf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x41beed
mov eax, 0xffffffff
jmp 0x41bfa3
mov ecx, edi
xor ebp, ebp
call fcn.0041be2f
mov esi, eax
call fcn.0041cd88
push esi
call fcn.0041c75b
test esi, esi
je 0x41bf1f
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41bf1f
push ebp
push esi
mov ebp, 1
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
call fcn.0041cd43
push esi
call fcn.0041c75b
push eax
mov ecx, edi
push ebx
call fcn.0041bb98
test eax, eax
je 0x41bf6f
test byte [edi + 0x24], 0x10
je 0x41bf5c
mov ebx, 4
mov ecx, edi
call fcn.0041f44c
test ah, 1
je 0x41bf54
mov ebx, 5
push ebx
mov ecx, edi
call fcn.0041f03b
push 0x97
xor eax, eax
push eax
mov ecx, edi
push eax
push eax
push eax
push eax
call fcn.0041f4fa
test ebp, ebp
je 0x41bf7c
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
test esi, esi
je 0x41bf92
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0x1c]
jne 0x41bf92
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x5c]
mov ecx, edi
call fcn.0041be65
mov eax, dword [edi + 0x2c]
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41c171
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov esi, dword [ecx + 0x48]
mov eax, dword [ecx + 0x44]
mov edi, ecx
cmp dword [ecx + 0x40], 0
je 0x41c19e
call fcn.0042ab93
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41c1ab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, 1
test esi, esi
je 0x41c1eb
cmp word [esi + 2], 0xffff
mov eax, dword [esi]
jne 0x41c1cb
mov cx, word [esi + 0x12]
mov eax, dword [esi + 0xc]
mov dx, word [esi + 0x14]
jmp 0x41c1d3
mov cx, word [esi + 0xa]
mov dx, word [esi + 0xc]
test eax, 0x1801
jne 0x41c1e9
test cx, cx
jne 0x41c1e9
test dx, dx
mov eax, 1
je 0x41c1eb
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x41ef0e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
push ebp
mov edi, ecx
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x41ef50
call fcn.0042ab93
mov ebp, dword [eax + 0xc]
push 0xf0
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41ef50
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41ef47
xor eax, eax
jmp 0x41ef58
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0041ef5f
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x420431
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
cmp dword [eax + 4], 0x100
jne 0x420476
cmp dword [eax + 8], 0x70
jne 0x420476
mov eax, dword [eax + 0xc]
shr eax, 0x10
test ah, 0x40
jne 0x420476
push 0x10
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
call esi
test ax, ax
jl 0x420476
push 0x11
call esi
test ax, ax
jl 0x420476
push 0x12
call esi
test ax, ax
mov eax, 1
jge 0x420478
xor eax, eax
pop esi
ret 4
Function at 0x422048
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 0x42206e
push 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x9c]
test eax, eax
jne 0x422084
xor eax, eax
jmp 0x422089
mov eax, dword [esi]
mov ecx, esi
push dword [esi + 0x20]
call dword [eax + 0x9c]
test eax, eax
mov eax, 0
je 0x422089
mov eax, 1
pop esi
ret