joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4139f5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push ecx
push edi
push esi
mov dword [0x4452f6], 0
call sub.USER32.dll_GetActiveWindow
mov edi, 0x44575c
cmp eax, dword [edi + 4]
je 0x413a20
cmp eax, dword [edi]
jne 0x413af7
lea esi, [0x4452f6]
lea ebx, [edi + 0x118]
mov ecx, 4
movzx eax, word [ebx]
and ax, ax
je 0x413aec
cmp ax, 3
jae 0x413aa9
dec eax
push eax
push ebx
push ecx
add ax, 0
mov edx, eax
lea eax, [ebp - 0x10]
push eax
push edx
call sub.WINMM.dll_joyGetPos
cmp eax, 0
pop ecx
pop ebx
pop eax
jne 0x413aec
push edi
shl eax, 2
add edi, eax
xor edx, edx
mov eax, dword [ebp - 0x10]
shr eax, 0xb
mov dl, 4
cmp eax, 8
jbe 0x413a81
mov dl, 8
cmp eax, 0x18
jae 0x413a81
xor dl, dl
mov eax, dword [ebp - 0xc]
shr eax, 0xb
mov dh, 1
cmp eax, 8
jbe 0x413a97
mov dh, 2
cmp eax, 0x18
jae 0x413a97
xor dh, dh
mov eax, dword [ebp - 4]
shl al, 4
test al, 0x30
je 0x413aa2
nop
or al, dl
or al, dh
pop edi
jmp 0x413aea
push ebx
push ecx
push edi
push esi
mov eax, 4
sub eax, ecx
lea eax, [eax + eax*2]
shl eax, 2
lea esi, [edi + 0x120]
add esi, eax
add esi, 0xa
xor di, di
mov ecx, 6
push ecx
movzx eax, word [esi]
push eax
call sub.USER32.dll_GetAsyncKeyState
shl ax, 1
rcl di, 1
pop ecx
sub esi, 2
loop 0x413acd
mov ax, di
pop esi
pop edi
pop ecx
pop ebx
mov byte [esi], al
inc esi
add ebx, 2
dec ecx
jne 0x413a31
pop esi
pop edi
pop ecx
pop ebx
leave
ret
Function at 0x417370
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
cmp dword [0x445198], 0
push ebx
push esi
push edi
push ebp
je 0x41754c
push 0xc0
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [0x445f9e]
mov dword [esp + 0x20], eax
cmp word [ecx], 0xffff
mov dword [esp + 0x14], ecx
je 0x417541
mov ecx, dword [esp + 0x14]
mov ax, word [ecx]
cmp ax, 0x7fff
je 0x41752e
mov di, word [ecx + 6]
test di, 0x8000
jne 0x41752e
movsx eax, ax
push eax
call fcn.00407a00
add esp, 4
test byte [eax + 4], 4
je 0x41752e
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
push ecx
push eax
xor ebx, ebx
call fcn.00416f80
add esp, 8
mov ecx, dword [0x445198]
lea ebp, [ecx + 8]
mov dword [esp + 0x18], ecx
cmp dword [ecx], ebx
jle 0x41752e
mov esi, dword [ebp]
test esi, esi
je 0x417424
lea eax, [esi + 8]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call fcn.00410090
add esp, 8
test eax, eax
je 0x417435
mov eax, dword [esp + 0x18]
add ebp, 4
inc ebx
cmp dword [eax], ebx
jg 0x417408
jmp 0x41752e
mov dword [esp + 0x1c], 0
lea eax, [esi + 8]
push eax
call fcn.0040ff10
add esp, 4
mov ecx, dword [esi + 4]
imul ecx, dword [esp + 0x1c]
add eax, ecx
push edi
lea ebx, [eax + esi + 9]
call fcn.00417eb0
mov ecx, dword [esp + 0x18]
add esp, 4
mov edi, eax
mov ax, word [ecx + 4]
cmp ax, 3
jne 0x4174ef
mov eax, dword [ebx]
mov dword [esp + 0x18], eax
test eax, eax
je 0x417513
mov ebp, dword [ebx + 4]
mov eax, dword [edi + 0x166]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x41749f
lea eax, [esp + 0x10]
push eax
push ebp
call fcn.0040fda0
add esp, 8
jmp 0x4174bb
mov eax, dword [edi + 0x16a]
cmp eax, ebp
jae 0x4174b9
lea eax, [esp + 0x10]
push eax
push ebp
call fcn.0040fe10
add esp, 8
jmp 0x4174bb
mov ebp, eax
cmp dword [esp + 0x10], 0
je 0x417513
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ecx
mov dword [edi + 0x166], eax
mov dword [edi + 0x16a], ebp
mov eax, dword [esp + 0x14]
push eax
call fcn.0040ff50
add esp, 8
mov ecx, dword [ebx + 8]
mov dword [edi + 0x14e], ecx
jmp 0x417513
cmp ax, 7
jne 0x4174ff
mov eax, dword [ebx]
mov dword [edi + 0x14a], eax
jmp 0x417513
mov eax, dword [edi + 0x5e]
push 0x86
add eax, edi
push ebx
push eax
call fcn.0040fe90
add esp, 0xc
mov di, word [edi + 0x14]
test di, 0x8000
jne 0x41752e
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cmp dword [esi], eax
jg 0x41743d
add dword [esp + 0x14], 0x5e
mov ecx, dword [esp + 0x14]
cmp word [ecx], 0xffff
jne 0x4173a9
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x426380
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
mov eax, 0
jne 0x42639a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4263ad
push eax
call fcn.00428ef0
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x4265e0
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10c
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x426669
lea eax, [esp + 4]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x426669
cmp byte [esp + 4], 0x5c
je 0x426617
cmp byte [esp + 4], 0x2f
jne 0x42662a
mov al, byte [esp + 5]
cmp byte [esp + 4], al
jne 0x42662a
xor eax, eax
add esp, 0x10c
ret
mov byte [esp], 0x3d
xor eax, eax
mov al, byte [esp + 4]
push eax
call fcn.00429090
lea ecx, [esp + 8]
mov byte [esp + 5], al
mov byte [esp + 6], 0x3a
mov byte [esp + 7], 0
lea edx, [esp + 4]
add esp, 4
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x426669
xor eax, eax
add esp, 0x10c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00428ef0
add esp, 4
mov eax, 0xffffffff
add esp, 0x10c
ret

Function at 0x426690
Capabilities:
Set current directory

Disassembly:
mov eax, dword [esp + 4]
sub esp, 4
cmp eax, 1
jl 0x4266de
cmp eax, 0x1f
jg 0x4266de
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
add al, 0x40
mov byte [esp], al
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x4266c6
xor eax, eax
add esp, 4
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00428ef0
add esp, 4
mov eax, 0xffffffff
add esp, 4
ret
mov eax, 0xffffffff
add esp, 4
mov dword [0x443374], 0xd
mov dword [0x443378], 0xf
ret

Function at 0x426a50
Capabilities:
Delete directory

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
mov eax, 0
jne 0x426a6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x426a7d
push eax
call fcn.00428ef0
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x427370
Capabilities:
Terminate process

Disassembly:
cmp dword [0x4433bc], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x42738e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4433b8], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x4433b4], bl
jne 0x4273e8
cmp dword [0x447ca0], 0
je 0x4273d6
mov edi, dword [0x447c9c]
sub edi, 4
cmp edi, dword [0x447ca0]
jb 0x4273d6
mov eax, dword [edi]
test eax, eax
je 0x4273cb
call eax
sub edi, 4
cmp edi, dword [0x447ca0]
jae 0x4273c3
push 0x441028
push 0x441020
call fcn.00427420
add esp, 8
push 0x441030
push 0x44102c
call fcn.00427420
add esp, 8
test ebx, ebx
jne 0x42740f
mov dword [0x4433bc], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret
Function at 0x42bb20
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x444548], ebx
jne 0x42bb6f
call esi
cmp eax, ebx
mov edi, eax
je 0x42bb4d
mov dword [0x444548], 1
jmp 0x42bb6f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x42bb65
mov dword [0x444548], 2
jmp 0x42bb6f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x444548], 1
jne 0x42bc1e
test edi, edi
jne 0x42bb92
call esi
mov edi, eax
test edi, edi
jne 0x42bb92
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x42bbac
add esi, 2
cmp word [esi], 0
jne 0x42bb9a
add esi, 2
cmp word [esi], 0
jne 0x42bb9a
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 0x42bc0d
push ebp
call fcn.00425ab0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x42bc0d
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 0x42bbfc
push ebx
call fcn.00425a60
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 [0x444548], 2
jne 0x42bca2
test ebx, ebx
jne 0x42bc41
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x42bc41
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x42bc56
inc ebp
cmp byte [ebp], 0
jne 0x42bc48
inc ebp
cmp byte [ebp], 0
jne 0x42bc48
sub ebp, ebx
inc ebp
push ebp
call fcn.00425ab0
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x42bc7b
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 0x42bfb0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x444558
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x42bfd7
add eax, 8
inc ecx
cmp eax, 0x4445e8
jb 0x42bfc8
cmp dword [ecx*8 + 0x444558], edx
lea ebx, [ecx*8]
jne 0x42c19b
cmp dword [0x44334c], 1
je 0x42c157
cmp dword [0x44334c], 0
jne 0x42c00e
cmp dword [0x443350], 1
je 0x42c157
cmp edx, 0xfc
je 0x42c19b
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x42c04b
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 0x42c08f
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 0x4405f4
push ebp
call fcn.00425960
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, 0x4405d4
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 + 0x44455c]
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.0042f320
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x447b90], 0
je 0x42c16d
mov eax, dword [0x447b90]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x42c177
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x44455c]
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 0x42d360
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp dword [0x447c90], edx
push ebx
push esi
push edi
push ebp
jbe 0x42d567
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x447b90
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x42d567
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x42d3c9
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x42d3da
push 2
push 0
push edx
call fcn.0042d590
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x42d476
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x42d4af
lea edi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x42d43d
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x42d42b
mov byte [edi], 0xd
inc esi
inc edi
mov byte [edi], al
inc edi
mov eax, edi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x42d412
lea eax, [esp + 0x24]
push 0
sub edi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push edi
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 0x42d4a5
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, edi
jge 0x42d3fd
jmp 0x42d4af
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 0x42d4a5
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x42d4af
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x42d556
cmp dword [esp + 0x10], 0
je 0x42d508
cmp dword [esp + 0x10], 5
jne 0x42d4eb
mov dword [0x443374], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x443378], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.00428ef0
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 0x42d532
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x42d532
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x443374], 0x1c
mov dword [0x443378], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x443374], 9
mov dword [0x443378], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x430ac0
Capabilities:
Set environment variable

Disassembly:
sub esp, 4
cmp dword [esp + 8], 0
push ebx
push esi
push edi
push ebp
je 0x430cfe
mov edx, dword [esp + 0x18]
push 0x3d
push edx
call fcn.00430f00
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x430cfe
cmp ebp, dword [esp + 0x18]
je 0x430cfe
cmp byte [ebp + 1], 1
sbb eax, eax
mov ecx, dword [0x44339c]
neg eax
mov dword [esp + 0x10], eax
cmp dword [0x4433a0], ecx
jne 0x430b1d
push ecx
call fcn.00430d70
add esp, 4
mov dword [0x44339c], eax
cmp dword [0x44339c], 0
jne 0x430bcd
cmp dword [esp + 0x1c], 0
je 0x430b54
cmp dword [0x4433a4], 0
je 0x430b54
call fcn.00430630
test eax, eax
je 0x430bcd
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [esp + 0x10], 0
je 0x430b65
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x44339c], 0
jne 0x430b99
push 4
call fcn.00425ab0
add esp, 4
mov dword [0x44339c], eax
test eax, eax
jne 0x430b8e
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x44339c]
mov dword [eax], 0
cmp dword [0x4433a4], 0
jne 0x430bcd
push 4
call fcn.00425ab0
add esp, 4
mov dword [0x4433a4], eax
test eax, eax
jne 0x430bc2
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x4433a4]
mov dword [eax], 0
mov esi, dword [0x44339c]
sub ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x18]
push ebp
push edx
call fcn.00430d10
add esp, 8
mov edi, eax
test edi, edi
jl 0x430c35
cmp dword [esi], 0
je 0x430c35
cmp dword [esp + 0x10], 0
je 0x430c2c
lea ebx, [esi + edi*4]
mov eax, dword [ebx]
push eax
call fcn.00425a60
add esp, 4
cmp dword [ebx], 0
je 0x430c19
mov eax, dword [ebx + 4]
add ebx, 4
inc edi
mov dword [ebx - 4], eax
cmp dword [ebx], 0
jne 0x430c0a
shl edi, 2
push edi
push esi
call fcn.00425c50
add esp, 8
test eax, eax
je 0x430c7d
jmp 0x430c78
mov edx, dword [esp + 0x18]
mov dword [esi + edi*4], edx
jmp 0x430c7d
cmp dword [esp + 0x10], 0
jne 0x430cf4
test edi, edi
jge 0x430c46
neg edi
lea eax, [edi*4 + 8]
push eax
push esi
call fcn.00425c50
add esp, 8
test eax, eax
jne 0x430c68
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 [0x44339c], eax
cmp dword [esp + 0x1c], 0
je 0x430cea
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.00425ab0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x430cea
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.00425a60
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 0x4327f0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00432960
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [esp + 0x1014]
push ebp
cmp dword [0x447c90], esi
jbe 0x43293d
mov eax, esi
mov ecx, esi
and eax, 0xffffffe7
and ecx, 0x1f
sar eax, 3
mov edx, dword [eax + 0x447b90]
test byte [edx + ecx*8 + 4], 1
je 0x43293d
push 1
push ebx
push esi
call fcn.0042d590
mov dword [esp + 0x1c], eax
add esp, 0xc
cmp eax, 0xffffffff
je 0x43292d
push 2
push ebx
push esi
call fcn.0042d590
add esp, 0xc
cmp eax, 0xffffffff
je 0x43292d
mov ecx, dword [esp + 0x101c]
mov ebp, ecx
sub ebp, eax
test ebp, ebp
jle 0x4328d3
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.00432770
add esp, 8
mov edi, eax
mov eax, 0x1000
cmp ebp, eax
jge 0x432896
mov eax, ebp
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.0042d360
add esp, 0xc
cmp eax, 0xffffffff
je 0x4328b2
sub ebp, eax
test ebp, ebp
jg 0x43288b
jmp 0x4328c7
cmp dword [0x443378], 5
jne 0x4328c5
mov dword [0x443374], 0xd
mov ebx, eax
push edi
push esi
call fcn.00432770
add esp, 8
jmp 0x432910
jge 0x432910
push 0
push ecx
push esi
call fcn.0042d590
add esp, 0xc
push esi
call fcn.00430090
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sbb ebx, ebx
cmp ebx, 0xffffffff
jne 0x432910
mov dword [0x443374], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x443378], eax
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call fcn.0042d590
add esp, 0xc
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x443374], 9
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
Function at 0x402aa7
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.004534f0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push 1
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x402b14
push 0x2a
push 0x4054d50
push 6
call fcn.00451c08
add esp, 0xc
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x402b24
push ebx
call fcn.00451bf6
add esp, 4
cmp dword [ebp - 4], 0
jg 0x402b35
mov dword [ebp - 4], 0x100
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.00453510
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402b68
push ebx
call fcn.00451bf6
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push 1
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x402ba1
push 0x125
push 0x4054d50
push 6
call fcn.00451c08
add esp, 0xc
push VariantClear
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x402bb4
mov eax, 0x47650f
push eax
push 1
mov ebx, 0x174
call fcn.00453550
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402bde
push ebx
call fcn.00451bf6
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x47650f
push dword [ebp - 8]
call fcn.00401a89
add esp, 8
cmp eax, 0
jne 0x402c1b
call fcn.00402c52
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402c17
push ebx
call fcn.00451bf6
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x402c37
push eax
mov ebx, eax
call fcn.0040101d
inc eax
push eax
call fcn.00451bfc
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x402c3c
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402c4d
push ebx
call fcn.00451bf6
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x404a82
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push VariantCopyInd
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x9dc
call fcn.00455730
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x404acc
mov eax, 0
jmp 0x404b35
mov dword [ebp - 0xc], esp
push dword [ebp + 0x24]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push dword [ebp - 4]
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x404b0b
push 0x100
push 0x4054ae4
push 6
call fcn.00451c08
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp + 0x18], 0
jne 0x404b25
push dword [ebp - 8]
call fcn.00403af9
jmp 0x404b2d
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
mov eax, dword [ebp - 8]
jmp 0x404b35
mov esp, ebp
pop ebp
ret 0x24