joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4462d5
Capabilities:
Create pipe
Create process on windows
Create reverse shell
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [ebp + 0x28]
cmp dword [eax + 0x628], 5
je 0x4462eb
xor eax, eax
leave
ret
push ebx
push esi
push edi
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040c4fa
push eax
push str.Starting_local_proxy_command:__s
mov dword [ebp - 8], eax
call fcn.0040aae5
mov esi, eax
push esi
xor edi, edi
push edi
call fcn.0043b5f0
push esi
call fcn.0040a770
xor ebx, ebx
push 0x20
inc ebx
push ebx
call fcn.0040a6b0
mov esi, eax
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x18], eax
add esp, 0x28
push edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
mov dword [esi], 0x46b170
mov dword [esi + 0x14], edi
push eax
lea eax, [ebp + 0x28]
mov dword [ebp - 0x14], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreatePipe]
push eax
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x18], edi
call ebx
test eax, eax
je 0x446381
push edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call ebx
test eax, eax
jne 0x446394
push dword [ebp + 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 4]
call edi
push str.Unable_to_create_pipes_for_proxy_command
call fcn.0040aae5
pop ecx
mov dword [esi + 0x14], eax
jmp 0x446448
mov ebx, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push edi
push 1
push dword [ebp - 0x10]
call ebx
push edi
push 1
push dword [ebp + 0x28]
call ebx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x70]
push eax
push edi
push edi
push 0x8000020
push 1
push edi
push edi
push dword [ebp - 8]
mov dword [ebp - 0x70], 0x44
push edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x44], pe_nt_image_headers32
mov word [ebp - 0x3e], di
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x30], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 8]
call fcn.0040a770
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
push dword [ebp - 0xc]
call ebx
push dword [ebp - 4]
call ebx
mov eax, dword [ebp - 0x10]
push edi
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x28]
push esi
mov dword [esi + 8], eax
push 0x446201
push dword [ebp + 0x28]
call fcn.00443185
push edi
push esi
push 0x44623d
push dword [esi + 4]
mov dword [esi + 0x10], eax
call fcn.00443222
push dword [ebp + 8]
mov dword [esi + 0xc], eax
call fcn.00444d7e
add esp, 0x24
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x446d80
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x46b440
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x446de4
push esi
push 1
push dword [ebp + 8]
call fcn.00449600
pop ecx
lea eax, [eax + eax*2 + 1]
push eax
call fcn.0040a6b0
pop ecx
mov esi, eax
pop ecx
mov ecx, dword [ebp + 8]
mov edx, esi
call fcn.00446936
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push esi
call fcn.0040a770
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 8]
call fcn.00443d8d
pop ecx
pop esi
leave
ret
Function at 0x446eca
Capabilities:
Encode data using xor
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push dword [ebp + 0x14]
call fcn.00449600
mov edi, eax
inc edi
push 1
push edi
call fcn.0040a6b0
add esp, 0xc
push 1
push dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 0x20], ebx
call fcn.00449600
push dword [ebp + 0x10]
mov esi, eax
call fcn.00449600
pop ecx
lea eax, [esi + eax + 5]
pop ecx
lea eax, [eax + eax*2]
push eax
call fcn.0040a6b0
push dword [ebp + 0x10]
mov esi, eax
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call fcn.00446e88
add esp, 0x14
lea eax, [ebp - 8]
push eax
push str.SoftwareSimonTathamPuTTYSshHostKeys
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x446f47
xor eax, eax
inc eax
jmp 0x4470d3
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0xc], edi
push dword [ebp - 8]
call esi
test eax, eax
mov dword [ebp - 0x10], eax
je 0x447086
cmp eax, 0xea
je 0x447086
push 0x45c2b0
push dword [ebp + 0x10]
call fcn.00449d20
test eax, eax
pop ecx
pop ecx
jne 0x447086
push 0x45eb8c
push dword [ebp - 4]
call fcn.0044bd20
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx + 1]
mov dword [ebp - 0x18], eax
lea eax, [edi + 0xa]
push 1
push eax
call fcn.0040a6b0
add esp, 0x10
lea ecx, [ebp - 0xc]
push ecx
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0xc], edi
push dword [ebp - 8]
call esi
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x447086
cmp dword [ebp - 0x14], 1
jne 0x447086
mov edi, dword [ebp - 0x1c]
mov esi, ebx
mov dword [ebp - 0x18], 2
mov byte [esi], 0x30
inc esi
push 0x45ba78
mov byte [esi], 0x78
push edi
inc esi
call fcn.0044bd20
pop ecx
pop ecx
mov ecx, eax
push 4
cdq
pop ebx
idiv ebx
lea edx, [ecx - 1]
mov dword [ebp - 0x1c], eax
jmp 0x44701b
cmp ecx, 1
jle 0x447026
dec ecx
dec edx
mov eax, edx
xor eax, 3
cmp byte [eax + edi], 0x30
je 0x447014
xor ebx, ebx
test ecx, ecx
jle 0x447040
lea edx, [ecx + esi - 1]
mov eax, ebx
xor eax, 3
mov al, byte [eax + edi]
inc ebx
mov byte [edx], al
dec edx
cmp ebx, ecx
jl 0x447030
mov eax, dword [ebp - 0x1c]
lea edi, [edi + eax*4]
add esi, ecx
cmp byte [edi], 0
je 0x447052
inc edi
mov byte [esi], 0x2c
inc esi
dec dword [ebp - 0x18]
mov byte [esi], 0
jne 0x446fef
push dword [ebp + 0x14]
mov ebx, dword [ebp - 0x20]
push ebx
call fcn.00449d20
test eax, eax
pop ecx
pop ecx
jne 0x447086
push ebx
call fcn.00449600
pop ecx
inc eax
push eax
push ebx
push 1
push 0
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x14]
push ebx
call fcn.00449d20
push ebx
mov esi, eax
call fcn.0040a770
push dword [ebp - 4]
call fcn.0040a770
add esp, 0x10
cmp dword [ebp - 0x10], 0xea
je 0x4470d0
cmp dword [ebp - 0x10], 0
jne 0x446f3f
cmp dword [ebp - 0x14], 1
jne 0x446f3f
test esi, esi
jne 0x4470d0
xor eax, eax
jmp 0x4470d3
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4470d8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 1
push dword [ebp + 8]
call fcn.00449600
push dword [ebp + 0x10]
mov esi, eax
call fcn.00449600
pop ecx
lea eax, [esi + eax + 5]
pop ecx
lea eax, [eax + eax*2]
push eax
call fcn.0040a6b0
push dword [ebp + 0x10]
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00446e88
add esp, 0x14
lea eax, [ebp - 4]
push eax
push str.SoftwareSimonTathamPuTTYSshHostKeys
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x447150
push dword [ebp + 0x14]
call fcn.00449600
pop ecx
inc eax
push eax
push dword [ebp + 0x14]
push 1
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0040a770
pop ecx
pop esi
leave
ret
Function at 0x4471c5
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
push esi
push edi
xor eax, eax
xor esi, esi
mov word [ebp - 0x224], si
mov ecx, 0x84
lea edi, [ebp - 0x222]
rep stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
push str.SoftwareSimonTathamPuTTY
mov ebx, 0x212
push 0x80000001
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
inc edi
test eax, eax
jne 0x447269
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push str.RandSeedFile
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x447233
cmp dword [ebp - 0x10], edi
je 0x44723a
mov byte [ebp - 0x224], 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x224], 0
je 0x447269
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x224]
push eax
lea esi, [ebp - 4]
call fcn.0044715a
test eax, eax
pop ecx
jne 0x4473b7
xor esi, esi
cmp dword [0x474a90], esi
jne 0x4472a4
push str.shell32.dll
call fcn.00443e55
cmp eax, esi
pop ecx
mov dword [0x474a94], eax
je 0x447298
push str.SHGetFolderPathA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x474a8c], eax
jmp 0x44729e
mov dword [0x474a8c], esi
mov dword [0x474a90], edi
mov eax, dword [0x474a8c]
cmp eax, esi
mov edi, str.PUTTY.RND
je 0x447330
lea ecx, [ebp - 0x224]
push ecx
push esi
push esi
push 0x1c
push esi
call eax
test eax, eax
jl 0x4472f0
lea eax, [ebp - 0x224]
push edi
push eax
call fcn.0044a1f0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x224]
push eax
lea esi, [ebp - 4]
call fcn.0044715a
add esp, 0xc
test eax, eax
jne 0x4473b7
xor esi, esi
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push 0x1a
push esi
call dword [0x474a8c]
test eax, eax
jl 0x447330
lea eax, [ebp - 0x224]
push edi
push eax
call fcn.0044a1f0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x224]
push eax
lea esi, [ebp - 4]
call fcn.0044715a
add esp, 0xc
test eax, eax
jne 0x4473b7
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push ebx
lea eax, [ebp - 0x224]
push eax
push str.HOMEDRIVE
call esi
mov ecx, ebx
sub ecx, eax
push ecx
lea eax, [ebp + eax - 0x224]
push eax
push str.HOMEPATH
call esi
test eax, eax
je 0x447383
lea eax, [ebp - 0x224]
push edi
push eax
call fcn.0044a1f0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x224]
push eax
lea esi, [ebp - 4]
call fcn.0044715a
add esp, 0xc
test eax, eax
jne 0x4473b7
push ebx
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x224]
push edi
push eax
call fcn.0044a1f0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x224]
push eax
lea esi, [ebp - 4]
call fcn.0044715a
add esp, 0xc
test eax, eax
je 0x4473bc
mov eax, dword [ebp - 4]
jmp 0x4473bf
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4473c4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push 1
call fcn.004471c5
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
je 0x44741f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov edi, 0x400
jmp 0x447401
cmp dword [ebp - 4], 0
je 0x447416
push dword [ebp - 4]
lea eax, [ebp - 0x404]
push eax
call dword [ebp + 8]
pop ecx
pop ecx
push 0
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x404]
push eax
push ebx
call esi
test eax, eax
jne 0x4473ec
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x447422
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
call fcn.004471c5
mov esi, eax
cmp esi, 0xffffffff
pop ecx
je 0x447450
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
leave
ret
Function at 0x44769b
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push edi
mov edi, 0x105
jmp 0x4476ed
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4476df
push dword [ebp - 4]
call fcn.0044769b
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push edi
lea eax, [ebp - 0x10c]
push eax
push 0
push ebx
call esi
test eax, eax
je 0x4476b7
pop edi
pop esi
pop ebx
leave
ret

Function at 0x447703
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
push 0
call fcn.004471c5
pop ecx
call fcn.00443d29
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 4]
push eax
push str.SoftwareSimonTathamPuTTY
mov edi, 0x80000001
push edi
call esi
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x44774b
push dword [ebp - 4]
call fcn.0044769b
pop ecx
push dword [ebp - 4]
call ebx
lea eax, [ebp - 4]
push eax
push str.SoftwareSimonTatham
push edi
call esi
test eax, eax
jne 0x4477b1
push 0x4554d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x105
lea eax, [ebp - 0x110]
push eax
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call ebx
cmp dword [ebp - 8], 0
je 0x4477b1
lea eax, [ebp - 4]
push eax
push str.Software
push edi
call esi
test eax, eax
jne 0x4477b1
push str.SimonTatham
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 4]
call ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x448348
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
cmp dword [ebp + 0x10], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, 0x104
je 0x44837b
lea eax, [ebp - 0x104]
push eax
push esi
call edi
test eax, eax
je 0x448377
cmp eax, esi
jb 0x44837b
and dword [ebp + 0x10], 0
mov ebx, dword [ebp + 8]
test ebx, ebx
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x4c
je 0x448394
cmp byte [ebx], 0
je 0x448394
mov ecx, ebx
jmp 0x448396
xor ecx, ecx
cmp dword [ebp + 0x14], 0
mov dword [eax + 0x2c], ecx
push eax
je 0x4483a8
call dword [sym.imp.comdlg32.dll_GetSaveFileNameA]
jmp 0x4483ae
call dword [sym.imp.comdlg32.dll_GetOpenFileNameA]
test ebx, ebx
mov dword [ebp + 0xc], eax
je 0x4483c4
push ebx
push esi
call edi
test eax, eax
je 0x4483c1
cmp eax, esi
jb 0x4483c4
mov byte [ebx], 0
cmp dword [ebp + 0x10], 0
pop edi
pop esi
pop ebx
je 0x4483da
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp + 0xc]
leave
ret
Function at 0x44c286
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x474b14], esi
push edi
jne 0x44c2a6
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 [0x474b10], esi
mov byte [0x474b0c], al
jne 0x44c30c
mov ecx, dword [0x477dec]
test ecx, ecx
je 0x44c2ed
mov eax, dword [0x477de8]
sub eax, 4
cmp eax, ecx
jmp 0x44c2e6
mov eax, dword [eax]
test eax, eax
je 0x44c2d8
call eax
mov eax, dword [0x477de8]
sub eax, 4
cmp eax, dword [0x477dec]
mov dword [0x477de8], eax
jae 0x44c2d0
mov eax, 0x471020
mov esi, 0x471028
cmp eax, esi
mov edi, eax
jae 0x44c30c
mov eax, dword [edi]
test eax, eax
je 0x44c305
call eax
add edi, 4
cmp edi, esi
jb 0x44c2fd
mov eax, 0x47102c
mov esi, 0x471030
cmp eax, esi
mov edi, eax
jae 0x44c32b
mov eax, dword [edi]
test eax, eax
je 0x44c324
call eax
add edi, 4
cmp edi, esi
jb 0x44c31c
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x44c345
push dword [ebp + 8]
mov dword [0x474b14], 1
call fcn.0044c1ec
pop ebp
ret
Function at 0x44c4df
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x46e070
call fcn.0040fec8
mov edi, 0x94
mov eax, edi
call fcn.0044a2e0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x474ad4], ecx
mov eax, dword [esi + 4]
mov dword [0x474ae0], eax
mov edx, dword [esi + 8]
mov dword [0x474ae4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x474ad8], esi
cmp ecx, 2
je 0x44c53f
or esi, 0x8000
mov dword [0x474ad8], esi
shl eax, 8
add eax, edx
mov dword [0x474adc], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x44c57a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44c57a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x44c592
cmp eax, 0x20b
je 0x44c57f
mov dword [ebp - 0x1c], esi
jmp 0x44c5a6
cmp dword [ecx + 0x84], 0xe
jbe 0x44c57a
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x44c5a0
cmp dword [ecx + 0x74], 0xe
jbe 0x44c57a
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0044ee61
pop ecx
test eax, eax
jne 0x44c5d2
cmp dword [0x474b20], 1
jne 0x44c5bf
call fcn.00450a16
push 0x1c
call fcn.0045089f
push 0xff
call fcn.0044c1ec
pop ecx
pop ecx
call fcn.00450d3d
mov dword [ebp - 4], esi
call fcn.0044ebc9
test eax, eax
jge 0x44c5eb
push 0x1b
call fcn.0044c4ba
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x477de0], eax
call fcn.0045140b
mov dword [0x474b18], eax
call fcn.00451369
test eax, eax
jge 0x44c611
push 8
call fcn.0044c4ba
pop ecx
call fcn.00451136
test eax, eax
jge 0x44c622
push 9
call fcn.0044c4ba
pop ecx
push 1
call fcn.0044c21c
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x44c638
push eax
call fcn.0044c4ba
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004510d9
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x44c659
movzx eax, word [ebp - 0x40]
jmp 0x44c65c
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00441d5b
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x44c67a
push edi
call fcn.0044c347
call fcn.0044c369
jmp 0x44c6ac
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0044e62f
ret
Function at 0x44d682
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x474b38], ebx
push esi
push edi
jne 0x44d702
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x44d73d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46e144
push edi
call esi
test eax, eax
mov dword [0x474b38], eax
je 0x44d73d
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x474b3c], eax
call esi
cmp dword [0x474ad4], 2
mov dword [0x474b40], eax
jne 0x44d702
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x474b48], eax
je 0x44d702
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x474b44], eax
mov eax, dword [0x474b44]
test eax, eax
je 0x44d747
call eax
test eax, eax
je 0x44d72e
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x474b48]
test eax, eax
je 0x44d72e
test byte [ebp - 8], 1
jne 0x44d747
cmp dword [0x474ae0], 4
jb 0x44d741
or byte [ebp + 0x12], 0x20
jmp 0x44d766
xor eax, eax
jmp 0x44d776
or byte [ebp + 0x12], 4
jmp 0x44d766
mov eax, dword [0x474b3c]
test eax, eax
je 0x44d766
call eax
mov ebx, eax
test ebx, ebx
je 0x44d766
mov eax, dword [0x474b40]
test eax, eax
je 0x44d766
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x474b38]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44e011
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x477cc4]
mov eax, dword [0x471680]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x44e1d7
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x477ce0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x44e1d7
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x44e07b
xor eax, eax
jmp 0x44e1eb
test al, 0x20
je 0x44e08c
push 2
push edi
push edi
push ecx
call fcn.00452dbd
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x44e161
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x44e1a8
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x44e0ee
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x44e0df
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x44e0c1
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44e12e
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x44e13a
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x44e0b5
jmp 0x44e13c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x44e1d2
cmp dword [ebp + 0x3a4], edi
je 0x44e1a8
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x44e19a
mov dword [0x474acc], eax
jmp 0x44e1de
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44e18c
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x44e13c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x44e13c
push dword [ebp + 0x3a4]
call fcn.00450e94
pop ecx
jmp 0x44e1e8
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x44e1c0
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x44e074
mov dword [0x474ac8], 0x1c
mov dword [0x474acc], edi
jmp 0x44e1e8
sub eax, dword [ebp - 0x7c]
jmp 0x44e1eb
and dword [0x474acc], 0
mov dword [0x474ac8], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0044d956
add ebp, 0x39c
leave
ret
Function at 0x44e50e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0044a2e0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x44e5a9
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x474ad4]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x44e5a9
cmp eax, 1
je 0x44e5ca
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x44e5a9
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x44e576
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x44e5a5
xor eax, eax
inc eax
jmp 0x44e5e9
cmp edi, eax
jae 0x44e5ad
xor eax, eax
jmp 0x44e5e9
cmp eax, esi
jae 0x44e5b4
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x474ad4]
jmp 0x44e5cd
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret