joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430180
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x68]
mov ecx, dword [ebx + 0x38]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x43022c
push ebp
push esi
push edi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx + 0x60]
lea edx, [esp + 0x14]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov esi, dword [esp + 0x30]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebx + 0x60]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
push ecx
push edi
call ebp
mov edx, dword [ebx + 0x64]
mov ebx, dword [sym.imp.GDI32.dll_SelectPalette]
push 0
push edx
push esi
mov dword [esp + 0x3c], eax
call ebx
push esi
mov dword [esp + 0x14], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0xcc0020
push 0
push 0
push edi
push eax
push ecx
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x30]
push edx
push edi
call ebp
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call ebx
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
Function at 0x433f00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xd0
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
push edi
mov ebx, 0x452f60
jmp 0x433f20
mov ecx, 0xa
mov esi, str.SoftwareSybaseAdaptive_Server_Anywhere
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x433f36
mov ax, word [0x4456f8]
mov word [edi], ax
mov eax, dword [esp + 0xe4]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x433f50
lea edi, [esp + 0x18]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x433f60
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebx]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x24]
push edx
push eax
call ebp
test eax, eax
jne 0x433fda
mov edx, dword [esp + 0xec]
lea ecx, [esp + 0xf0]
push ecx
mov ecx, dword [esp + 0xec]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x433fda
mov ecx, dword [esp + 0xf4]
cmp dword [esp + 0x14], ecx
je 0x433ff6
add ebx, 4
cmp ebx, str.none
jl 0x433f20
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xd0
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xd0
ret

Function at 0x434220
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x43423e
mov eax, esi
pop esi
ret
mov byte [esi], 0
xor eax, eax
pop esi
ret

Function at 0x436a47
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x436a67
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00436a9f
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x436a8a
test byte [esp + 8], 2
je 0x436a8a
call fcn.00436a8d
mov dword [eax], 0xd
call fcn.00436a96
mov dword [eax], 5
jmp 0x436a63
xor eax, eax
ret
Function at 0x43801f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4381e5
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x456200]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4381e5
test cl, 0x48
je 0x438085
mov al, byte [eax + 5]
cmp al, 0xa
je 0x438085
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4380d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4380bf
call fcn.00436a8d
mov dword [eax], 9
call fcn.00436a96
mov dword [eax], esi
jmp 0x4380cf
cmp eax, 0x6d
je 0x4381e5
push eax
call fcn.00436a9f
pop ecx
or eax, 0xffffffff
jmp 0x4381e7
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x4381e0
test edx, edx
je 0x4380fa
cmp byte [ebx], 0xa
jne 0x4380fa
or al, 4
jmp 0x4380fc
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4381da
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4381ca
cmp al, 0xd
je 0x438130
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4381bc
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x43814a
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x438145
add dword [ebp + 0x10], 2
jmp 0x43819e
mov dword [ebp + 0x10], eax
jmp 0x4381b8
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x438172
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4381b8
cmp dword [ebp - 0xc], 0
je 0x4381b8
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x438193
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x43819e
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4381bb
cmp ebx, dword [ebp + 0xc]
jne 0x4381a3
cmp byte [ebp - 1], 0xa
jne 0x4381a3
mov byte [ebx], 0xa
jmp 0x4381bb
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043bd4d
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4381bc
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x438114
jmp 0x4381da
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x4381da
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4381e7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x438297
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4516a0]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x4382c0
xor eax, eax
jmp 0x43842e
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x456200]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4382f3
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00437942
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4383c5
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x438400
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x43834e
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x43833f
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x438322
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43838e
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x438397
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x438313
jmp 0x438399
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x438429
cmp dword [ebp - 8], edi
je 0x438400
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x4383f2
call fcn.00436a8d
mov dword [eax], 9
call fcn.00436a96
mov dword [eax], esi
jmp 0x4383fb
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4383e7
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x438399
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x438399
push dword [ebp - 8]
call fcn.00436a9f
pop ecx
or eax, 0xffffffff
jmp 0x43842c
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x438415
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x438415
xor eax, eax
jmp 0x43842c
call fcn.00436a8d
mov dword [eax], 0x1c
call fcn.00436a96
mov dword [eax], edi
jmp 0x4383fb
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.004280ce
leave
ret
Function at 0x43892c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.0043958e
xor esi, esi
inc esi
cmp dword [0x455b68], esi
pop ecx
jne 0x438954
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x455b64], esi
mov byte [0x455b60], al
jne 0x4389ba
mov ecx, dword [0x45632c]
test ecx, ecx
je 0x43899b
mov eax, dword [0x456328]
sub eax, 4
cmp eax, ecx
jmp 0x438994
mov eax, dword [eax]
test eax, eax
je 0x438986
call eax
mov eax, dword [0x456328]
sub eax, 4
cmp eax, dword [0x45632c]
mov dword [0x456328], eax
jae 0x43897e
mov eax, 0x451038
mov esi, 0x451040
cmp eax, esi
mov edi, eax
jae 0x4389ba
mov eax, dword [edi]
test eax, eax
je 0x4389b3
call eax
add edi, 4
cmp edi, esi
jb 0x4389ab
mov eax, 0x451044
mov esi, 0x45104c
cmp eax, esi
mov edi, eax
jae 0x4389d9
mov eax, dword [edi]
test eax, eax
je 0x4389d2
call eax
add edi, 4
cmp edi, esi
jb 0x4389ca
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x4389ea
push 8
call fcn.004394fa
jmp 0x4389fc
push dword [ebp + 8]
mov dword [0x455b68], 1
call fcn.00438885
pop ecx
pop ebp
ret

Function at 0x43b327
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x455ce4], ebx
push esi
push edi
jne 0x43b3a7
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43b3e2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x449d94
push edi
call esi
test eax, eax
mov dword [0x455ce4], eax
je 0x43b3e2
push 0x449d84
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x455ce8], eax
call esi
cmp dword [0x455b28], 2
mov dword [0x455cec], eax
jne 0x43b3a7
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x455cf4], eax
je 0x43b3a7
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x455cf0], eax
mov eax, dword [0x455cf0]
test eax, eax
je 0x43b3ec
call eax
test eax, eax
je 0x43b3d3
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x455cf4]
test eax, eax
je 0x43b3d3
test byte [ebp - 8], 1
jne 0x43b3ec
cmp dword [0x455b34], 4
jb 0x43b3e6
or byte [ebp + 0x12], 0x20
jmp 0x43b40b
xor eax, eax
jmp 0x43b41b
or byte [ebp + 0x12], 4
jmp 0x43b40b
mov eax, dword [0x455ce8]
test eax, eax
je 0x43b40b
call eax
mov ebx, eax
test ebx, ebx
je 0x43b40b
mov eax, dword [0x455cec]
test eax, eax
je 0x43b40b
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x455ce4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43c183
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4516a0]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x454b40]
je 0x43c1b0
inc eax
cmp eax, 0x12
jb 0x43c1a1
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x454b40]
jne 0x43c2e4
mov eax, dword [0x455b18]
cmp eax, 1
je 0x43c2bf
cmp eax, edx
jne 0x43c1e0
cmp dword [0x45469c], 1
je 0x43c2bf
cmp ecx, 0xfc
je 0x43c2e4
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43c219
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.0043b4b0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.0043b420
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43c25b
lea eax, [ebp - 0x10c]
push eax
call fcn.0043b420
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x449530
push edi
call fcn.00435510
add esp, 0x10
push edi
call fcn.0043b420
push dword [esi + 0x454b44]
mov ebx, eax
call fcn.0043b420
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00435a80
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0043b4b0
push edi
push ebx
call fcn.0043b4c0
push 0x44952c
push ebx
call fcn.0043b4c0
push dword [esi + 0x454b44]
push ebx
call fcn.0043b4c0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0043b327
add esp, 0x2c
jmp 0x43c2e4
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x454b44]
push dword [esi]
call fcn.0043b420
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004280ce
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43cfa6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4516a0]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x43d021
push ebx
call fcn.0043cf6f
test eax, eax
pop ecx
jne 0x43cff3
call fcn.00436a96
mov dword [eax], 0xf
call fcn.00436a8d
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.004280ce
leave
ret
and byte [ebp + 0xb], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x43d033
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x43cfe3
inc eax
cmp eax, 0x104
ja 0x43cfe3
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x43d06b
cmp eax, dword [ebp + 0x10]
jg 0x43d04e
mov eax, dword [ebp + 0x10]
push eax
call fcn.00436475
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x43d080
call fcn.00436a8d
mov dword [eax], 0xc
jmp 0x43cfe3
cmp eax, dword [ebp + 0x10]
jle 0x43d080
call fcn.00436a8d
mov dword [eax], 0x22
jmp 0x43cfe3
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.0043b4b0
pop ecx
pop ecx
jmp 0x43cfe5

Function at 0x43da4c
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00435a80
mov eax, dword [0x4516a0]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0043bd4d
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x43db76
push 2
push esi
push dword [ebp + 8]
call fcn.0043bd4d
add esp, 0xc
cmp eax, ebx
je 0x43db76
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x43db19
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.0043e150
push 0x8000
push dword [ebp + 8]
call fcn.0043f3ce
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x43dad2
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.00438297
add esp, 0xc
cmp eax, 0xffffffff
je 0x43daf2
sub edi, eax
test edi, edi
jg 0x43daca
jmp 0x43db0a
call fcn.00436a96
cmp dword [eax], 5
jne 0x43db07
call fcn.00436a8d
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0043f3ce
pop ecx
pop ecx
jmp 0x43db61
jge 0x43db61
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043bd4d
push dword [ebp + 8]
call fcn.00437dfc
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x43db61
call fcn.00436a8d
mov dword [eax], 0xd
call fcn.00436a96
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0043bd4d
add esp, 0xc
mov eax, esi
pop edi
jmp 0x43db78
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.004280ce
leave
ret
Function at 0x43ecf4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00435a80
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43ed89
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x455b28]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x43ed89
cmp eax, 1
je 0x43eda1
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43ed89
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x43ed5e
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x43ed85
xor eax, eax
inc eax
jmp 0x43edbd
cmp esi, ebx
jae 0x43ed8d
xor eax, eax
jmp 0x43edbd
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x455b28]
jmp 0x43eda3
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43f219
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x43f284
push 0x3d
push dword [ebp + 8]
call fcn.0043fce7
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x43f284
cmp dword [ebp + 8], esi
je 0x43f284
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x455b48]
cmp eax, dword [0x455b4c]
jne 0x43f26a
mov edi, eax
call fcn.0043f1b8
mov dword [0x455b48], eax
cmp eax, ebx
jne 0x43f2c3
cmp dword [ebp + 0xc], ebx
je 0x43f28c
cmp dword [0x455b50], ebx
je 0x43f28c
call fcn.0043d9e1
test eax, eax
je 0x43f2c3
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x43f3c7
push 4
call fcn.00436475
cmp eax, ebx
pop ecx
mov dword [0x455b48], eax
je 0x43f284
mov dword [eax], ebx
cmp dword [0x455b50], ebx
jne 0x43f2c3
push 4
call fcn.00436475
cmp eax, ebx
pop ecx
mov dword [0x455b50], eax
je 0x43f284
mov dword [eax], ebx
mov ebx, dword [0x455b48]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.0043f16b
mov edi, eax
test edi, edi
pop ecx
jl 0x43f31c
cmp dword [ebx], 0
je 0x43f31c
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00435b14
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x43f304
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x43f352
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x43f2fb
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.00436487
test eax, eax
pop ecx
pop ecx
je 0x43f352
jmp 0x43f34d
cmp dword [ebp - 4], 0
jne 0x43f3c0
test edi, edi
jge 0x43f32c
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.00436487
test eax, eax
pop ecx
pop ecx
je 0x43f284
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x455b48], eax
cmp dword [ebp + 0xc], 0
je 0x43f3a9
push dword [ebp + 8]
call fcn.0043b420
inc eax
inc eax
push eax
call fcn.00436475
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x43f3a9
push dword [ebp + 8]
push esi
call fcn.0043b4b0
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x43f3a2
or dword [ebp - 8], 0xffffffff
push esi
call fcn.00435b14
pop ecx
cmp dword [ebp - 4], 0
je 0x43f3b8
push dword [ebp + 8]
call fcn.00435b14
pop ecx
mov eax, dword [ebp - 8]
jmp 0x43f287
push esi
call fcn.00435b14
pop ecx
xor eax, eax
jmp 0x43f287
Function at 0x4020e0
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x494900], 0
jne 0x4020f9
push 0
push 0x10001
call fcn.00404080
add esp, 8
ret
jmp fcn.00403e80

Function at 0x4025a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
xor ebx, ebx
call esi
cwde
test eax, eax
jns 0x4025b8
mov ebx, 1
push 0x11
call esi
test ax, ax
jns 0x4025c4
or ebx, 2
push 0x12
call esi
test ax, ax
jns 0x4025d0
or ebx, 4
push edi
push 0x5c
call esi
push 0x5b
movsx edi, ax
call esi
cwde
or eax, edi
pop edi
jns 0x4025e5
or ebx, 8
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x4025f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x10
xor ebx, ebx
call esi
cwde
test eax, eax
jns 0x402608
mov ebx, 1
push 0x11
call esi
test ax, ax
jns 0x402614
or ebx, 2
push 0x12
call esi
test ax, ax
jns 0x402620
or ebx, 4
push edi
push 0x5c
call esi
push 0x5b
movsx edi, ax
call esi
cwde
or eax, edi
pop edi
jns 0x402635
or ebx, 8
pop esi
mov eax, ebx
pop ebx
ret