joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44da18
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0xc
mov esi, eax
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.00452c10
mov eax, dword [edi + 4]
and dword [ebp - 4], 0
add esp, 0xc
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, 0x1000
push eax
push eax
neg esi
sbb esi, esi
push 0xff
push 0
and esi, 0x80000
or esi, 0x40000003
push esi
push dword [edi + 0xc]
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [edi + 0x10], eax
pop esi
mov eax, ecx
leave
ret

Function at 0x44da97
Capabilities:
Connect pipe

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
mov edi, eax
cmp dword [esp + 0x14], 0
je 0x44dab1
and dword [esp + 0x14], 0
jmp 0x44dada
lea eax, [edi + 0x14]
push eax
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x44dada
call ebp
mov ebx, eax
cmp ebx, 0x3e5
je 0x44db42
test ebx, ebx
je 0x44dada
cmp ebx, 0x217
jne 0x44db09
mov esi, dword [edi + 0x10]
mov eax, dword [edi + 0x2c]
mov ecx, dword [eax]
push esi
push 0x44da80
push eax
call dword [ecx + 0x10]
add esp, 0xc
test eax, eax
je 0x44dafa
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
call fcn.0044da18
test eax, eax
jne 0x44daa3
call ebp
mov ebx, eax
push ebx
call fcn.0044b2c5
push eax
push str.Error_while_listening_to_named_pipe:__s
call fcn.0040c314
add esp, 0xc
mov ebp, eax
mov eax, dword [edi + 0x2c]
mov esi, dword [eax]
push ebx
push ebp
push 0
push dword [edi + 0xc]
call fcn.0044c271
pop ecx
push eax
push 1
push dword [edi + 0x2c]
call dword [esi]
push ebp
call fcn.0040bd73
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x44e04e
Capabilities:
Create pipe
Create process on windows
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push 0xd
push dword [ebp + 0x28]
call fcn.00402219
cmp eax, 5
pop ecx
pop ecx
je 0x44e069
xor eax, eax
leave
ret
push ebx
push esi
push edi
push dword [ebp + 0x28]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040df06
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0044c63d
push dword [ebp - 4]
push str.Starting_local_proxy_command:__s
call fcn.0040c314
mov edi, eax
push edi
xor esi, esi
push esi
call fcn.00441aad
push edi
call fcn.0040bd73
mov edi, dword [sym.imp.KERNEL32.dll_CreatePipe]
add esp, 0x24
push esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
xor ebx, ebx
lea eax, [ebp - 0xc]
inc ebx
push eax
mov dword [ebp - 0x20], 0xc
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
call edi
test eax, eax
jne 0x44e0f0
push dword [ebp + 0x24]
push str.Unable_to_create_pipes_for_proxy_command
call fcn.0040889d
push dword [ebp - 4]
mov esi, eax
call fcn.0040bd73
add esp, 0xc
mov eax, esi
jmp 0x44e1c6
push esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call edi
test eax, eax
jne 0x44e134
push dword [ebp + 0x24]
push str.Unable_to_create_pipes_for_proxy_command
call fcn.0040889d
push dword [ebp - 4]
mov edi, eax
call fcn.0040bd73
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
push dword [ebp - 0xc]
call esi
push dword [ebp - 8]
call esi
mov eax, edi
jmp 0x44e1c6
mov edi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push esi
push ebx
push dword [ebp - 0x14]
call edi
push esi
push ebx
push dword [ebp - 0xc]
call edi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push esi
push 0x8000020
push ebx
push esi
push esi
push dword [ebp - 4]
mov dword [ebp - 0x74], 0x44
push esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x48], 0x100
mov word [ebp - 0x42], si
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x34], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x2c]
call edi
push dword [ebp - 4]
call fcn.0040bd73
pop ecx
push dword [ebp - 0x10]
call edi
push dword [ebp - 8]
call edi
push esi
push dword [ebp + 0x24]
push dword [ebp - 0xc]
push dword [ebp - 0x14]
call fcn.0044aabc
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44f113
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
xor eax, eax
cmp dword [ebp + 8], eax
push ebx
push edi
je 0x44f1a6
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 4]
push ecx
push eax
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x44f1a3
cmp dword [ebp - 8], 1
jne 0x44f1a3
mov edi, dword [ebp - 4]
inc edi
push 1
push edi
call fcn.0040bca9
pop ecx
pop ecx
mov ebx, eax
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x44f19c
cmp dword [ebp - 8], 1
jne 0x44f19c
cmp dword [ebp - 4], edi
jb 0x44f191
push 0xb0
push str...windowswinstore.c
push str.size___allocsize
call fcn.004522d8
add esp, 0xc
mov eax, dword [ebp - 4]
mov byte [ebx + eax], 0
mov eax, ebx
jmp 0x44f1a5
push ebx
call fcn.0040bd73
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret

Function at 0x44f395
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x474ec4
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x44f3f9
push esi
push 1
push dword [ebp + 8]
call fcn.00451fa0
pop ecx
lea eax, [eax + eax*2 + 1]
push eax
call fcn.0040bca9
pop ecx
mov esi, eax
pop ecx
mov ecx, dword [ebp + 8]
mov edx, esi
call fcn.0044eecc
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push esi
call fcn.0040bd73
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 8]
call fcn.0044b0e3
pop ecx
pop esi
leave
ret
Function at 0x44f702
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 1
push dword [ebp + 8]
call fcn.00451fa0
push dword [ebp + 0x10]
mov esi, eax
call fcn.00451fa0
pop ecx
lea eax, [esi + eax + 5]
pop ecx
lea eax, [eax + eax*2]
push eax
call fcn.0040bca9
push dword [ebp + 0x10]
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044f49d
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 0x44f77a
push dword [ebp + 0x14]
call fcn.00451fa0
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.0040bd73
pop ecx
pop esi
leave
ret

Function at 0x44f784
Capabilities:
Check if file exists
Delete file

Disassembly:
test ecx, ecx
jne 0x44f7c5
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x44f7bf
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
je 0x44f7be
call edi
push eax
call fcn.0044b2c5
push eax
push dword [esp + 0x10]
push str.Unable_to_delete__s:__s
call fcn.00444ad5
add esp, 0x10
pop edi
or dword [esi], 0xffffffff
xor eax, eax
ret
push 2
pop eax
cmp ecx, eax
jne 0x44f7d3
mov edx, 0x80
jmp 0x44f7d5
xor edx, edx
push 0
push edx
xor edx, edx
cmp ecx, eax
setne dl
add edx, eax
push edx
mov edx, ecx
sub edx, eax
neg edx
sbb edx, edx
and edx, 3
push 0
push edx
xor edx, edx
cmp ecx, eax
setne dl
dec edx
and edx, 0xc0000000
add edx, 0x80000000
push edx
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
mov eax, ecx
ret
Function at 0x44f81c
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 0x44f8c0
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 0x44f88a
cmp dword [ebp - 0x10], edi
je 0x44f891
mov byte [ebp - 0x224], 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x224], 0
je 0x44f8c0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x224]
push eax
lea esi, [ebp - 4]
call fcn.0044f784
test eax, eax
pop ecx
jne 0x44fa0e
xor esi, esi
cmp dword [0x47e104], esi
jne 0x44f8fb
push str.shell32.dll
call fcn.0044b234
cmp eax, esi
pop ecx
mov dword [0x47e108], eax
je 0x44f8ef
push str.SHGetFolderPathA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x47e100], eax
jmp 0x44f8f5
mov dword [0x47e100], esi
mov dword [0x47e104], edi
mov eax, dword [0x47e100]
cmp eax, esi
mov edi, str.PUTTY.RND
je 0x44f987
lea ecx, [ebp - 0x224]
push ecx
push esi
push esi
push 0x1c
push esi
call eax
test eax, eax
jl 0x44f947
lea eax, [ebp - 0x224]
push edi
push eax
call fcn.00453c80
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x224]
push eax
lea esi, [ebp - 4]
call fcn.0044f784
add esp, 0xc
test eax, eax
jne 0x44fa0e
xor esi, esi
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push 0x1a
push esi
call dword [0x47e100]
test eax, eax
jl 0x44f987
lea eax, [ebp - 0x224]
push edi
push eax
call fcn.00453c80
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x224]
push eax
lea esi, [ebp - 4]
call fcn.0044f784
add esp, 0xc
test eax, eax
jne 0x44fa0e
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 0x44f9da
lea eax, [ebp - 0x224]
push edi
push eax
call fcn.00453c80
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x224]
push eax
lea esi, [ebp - 4]
call fcn.0044f784
add esp, 0xc
test eax, eax
jne 0x44fa0e
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.00453c80
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x224]
push eax
lea esi, [ebp - 4]
call fcn.0044f784
add esp, 0xc
test eax, eax
je 0x44fa13
mov eax, dword [ebp - 4]
jmp 0x44fa16
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44fa1b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push 1
call fcn.0044f81c
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
je 0x44fa76
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov edi, 0x400
jmp 0x44fa58
cmp dword [ebp - 4], 0
je 0x44fa6d
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 0x44fa43
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44fa79
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
call fcn.0044f81c
mov esi, eax
cmp esi, 0xffffffff
pop ecx
je 0x44faa7
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 0x44fcf6
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 0x44fd48
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 0x44fd3a
push dword [ebp - 4]
call fcn.0044fcf6
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 0x44fd12
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44fd5e
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.0044f81c
pop ecx
call fcn.0044b07f
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 0x44fda6
push dword [ebp - 4]
call fcn.0044fcf6
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 0x44fe0c
push 0x45d518
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 0x44fe0c
lea eax, [ebp - 4]
push eax
push str.Software
push edi
call esi
test eax, eax
jne 0x44fe0c
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 0x4508d1
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 0x450904
lea eax, [ebp - 0x104]
push eax
push esi
call edi
test eax, eax
je 0x450900
cmp eax, esi
jb 0x450904
and dword [ebp + 0x10], 0
mov ebx, dword [ebp + 8]
test ebx, ebx
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x4c
je 0x45091d
cmp byte [ebx], 0
je 0x45091d
mov ecx, ebx
jmp 0x45091f
xor ecx, ecx
cmp dword [ebp + 0x14], 0
mov dword [eax + 0x2c], ecx
push eax
je 0x450931
call dword [sym.imp.comdlg32.dll_GetSaveFileNameA]
jmp 0x450937
call dword [sym.imp.comdlg32.dll_GetOpenFileNameA]
test ebx, ebx
mov dword [ebp + 0xc], eax
je 0x45094d
push ebx
push esi
call edi
test eax, eax
je 0x45094a
cmp eax, esi
jb 0x45094d
mov byte [ebx], 0
cmp dword [ebp + 0x10], 0
pop edi
pop esi
pop ebx
je 0x450963
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp + 0xc]
leave
ret
Function at 0x454bf9
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x47e188], esi
push edi
jne 0x454c19
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 [0x47e184], esi
mov byte [0x47e180], al
jne 0x454c7f
mov ecx, dword [0x47e90c]
test ecx, ecx
je 0x454c60
mov eax, dword [0x47e908]
sub eax, 4
cmp eax, ecx
jmp 0x454c59
mov eax, dword [eax]
test eax, eax
je 0x454c4b
call eax
mov eax, dword [0x47e908]
sub eax, 4
cmp eax, dword [0x47e90c]
mov dword [0x47e908], eax
jae 0x454c43
mov eax, 0x47a020
mov esi, 0x47a028
cmp eax, esi
mov edi, eax
jae 0x454c7f
mov eax, dword [edi]
test eax, eax
je 0x454c78
call eax
add edi, 4
cmp edi, esi
jb 0x454c70
mov eax, 0x47a02c
mov esi, 0x47a030
cmp eax, esi
mov edi, eax
jae 0x454c9e
mov eax, dword [edi]
test eax, eax
je 0x454c97
call eax
add edi, 4
cmp edi, esi
jb 0x454c8f
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x454cb8
push dword [ebp + 8]
mov dword [0x47e188], 1
call fcn.00454b5f
pop ebp
ret
Function at 0x454eb0
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x477b70
call fcn.00456fc4
mov edi, 0x94
mov eax, edi
call fcn.00454980
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 [0x47e148], ecx
mov eax, dword [esi + 4]
mov dword [0x47e154], eax
mov edx, dword [esi + 8]
mov dword [0x47e158], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x47e14c], esi
cmp ecx, 2
je 0x454f10
or esi, 0x8000
mov dword [0x47e14c], esi
shl eax, 8
add eax, edx
mov dword [0x47e150], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x454f4b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x454f4b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x454f63
cmp eax, 0x20b
je 0x454f50
mov dword [ebp - 0x1c], esi
jmp 0x454f77
cmp dword [ecx + 0x84], 0xe
jbe 0x454f4b
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x454f71
cmp dword [ecx + 0x74], 0xe
jbe 0x454f4b
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00457831
pop ecx
test eax, eax
jne 0x454fa3
cmp dword [0x47e194], 1
jne 0x454f90
call fcn.004593e6
push 0x1c
call fcn.0045926f
push 0xff
call fcn.00454b5f
pop ecx
pop ecx
call fcn.0045970d
mov dword [ebp - 4], esi
call fcn.00457599
test eax, eax
jge 0x454fbc
push 0x1b
call fcn.00454e8b
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x47e900], eax
call fcn.00459d7b
mov dword [0x47e18c], eax
call fcn.00459cd9
test eax, eax
jge 0x454fe2
push 8
call fcn.00454e8b
pop ecx
call fcn.00459aa6
test eax, eax
jge 0x454ff3
push 9
call fcn.00454e8b
pop ecx
push 1
call fcn.00454b8f
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x455009
push eax
call fcn.00454e8b
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00459a49
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x45502a
movzx eax, word [ebp - 0x40]
jmp 0x45502d
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00448bce
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x45504b
push edi
call fcn.00454cba
call fcn.00454cdc
jmp 0x45507d
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00456fff
ret
Function at 0x4556b5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x47e1ac], ebx
push esi
push edi
jne 0x455735
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x455770
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x477bd4
push edi
call esi
test eax, eax
mov dword [0x47e1ac], eax
je 0x455770
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x47e1b0], eax
call esi
cmp dword [0x47e148], 2
mov dword [0x47e1b4], eax
jne 0x455735
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x47e1bc], eax
je 0x455735
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x47e1b8], eax
mov eax, dword [0x47e1b8]
test eax, eax
je 0x45577a
call eax
test eax, eax
je 0x455761
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x47e1bc]
test eax, eax
je 0x455761
test byte [ebp - 8], 1
jne 0x45577a
cmp dword [0x47e154], 4
jb 0x455774
or byte [ebp + 0x12], 0x20
jmp 0x455799
xor eax, eax
jmp 0x4557a9
or byte [ebp + 0x12], 4
jmp 0x455799
mov eax, dword [0x47e1b0]
test eax, eax
je 0x455799
call eax
mov ebx, eax
test ebx, ebx
je 0x455799
mov eax, dword [0x47e1b4]
test eax, eax
je 0x455799
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x47e1ac]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4569df
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x47e7e4]
mov eax, dword [0x47ac20]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x456ba5
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x47e800]
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 0x456ba5
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x456a49
xor eax, eax
jmp 0x456bb9
test al, 0x20
je 0x456a5a
push 2
push edi
push edi
push ecx
call fcn.0045b78c
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x456b2f
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x456b76
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x456abc
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x456aad
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 0x456a8f
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 0x456afc
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x456b08
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x456a83
jmp 0x456b0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x456ba0
cmp dword [ebp + 0x3a4], edi
je 0x456b76
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x456b68
mov dword [0x47e140], eax
jmp 0x456bac
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 0x456b5a
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x456b0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x456b0a
push dword [ebp + 0x3a4]
call fcn.00459e9d
pop ecx
jmp 0x456bb6
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x456b8e
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x456a42
mov dword [0x47e13c], 0x1c
mov dword [0x47e140], edi
jmp 0x456bb6
sub eax, dword [ebp - 0x7c]
jmp 0x456bb9
and dword [0x47e140], 0
mov dword [0x47e13c], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00455986
add ebp, 0x39c
leave
ret
Function at 0x456ede
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.00454980
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x456f79
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 [0x47e148]
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 0x456f79
cmp eax, 1
je 0x456f9a
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 0x456f79
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x456f46
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x456f75
xor eax, eax
inc eax
jmp 0x456fb9
cmp edi, eax
jae 0x456f7d
xor eax, eax
jmp 0x456fb9
cmp eax, esi
jae 0x456f84
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 [0x47e148]
jmp 0x456f9d
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