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

Disassembly:
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x42b238]
mov esi, ecx
mov edi, 0x40000003
mov ebx, 8
mov dword [esp + 0xc], eax
mov eax, esp
mov dword [eax], 0xc
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
xor ecx, ecx
test edx, edx
mov edx, 0x40080003
cmovne edi, edx
mov dword [eax + 8], ecx
mov edx, 0x1000
push eax
push ecx
push edx
push edx
push 0xff
push ebx
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [esi + 0x10], eax
xor ebx, ebx
cmp eax, 0xffffffff
mov ecx, dword [esp + 0xc]
setne bl
call fcn.00497c4a
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
ret

Function at 0x492801
Capabilities:
Connect pipe

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x42b238]
mov esi, ecx
test edx, edx
mov dword [esp + 4], eax
jne 0x492828
lea eax, [esi + 0x14]
push eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x492873
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x10]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x10]
mov dword [esp], edi
sub esp, 0xc
mov edx, dword [esp + 0xc]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], 0x4928e3
call ecx
add esp, 0xc
test eax, eax
je 0x49285c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov ecx, esi
call fcn.00492787
test eax, eax
jne 0x492817
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x49288f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x492828
cmp edi, 0x217
je 0x492828
cmp edi, 0x3e5
je 0x4928d2
push edi
call fcn.0048f7e3
add esp, 4
push eax
push str.Error_while_listening_to_named_pipe:__s
call fcn.0043f758
add esp, 8
mov ebx, eax
mov eax, dword [esi + 0x2c]
mov eax, dword [eax]
mov ebp, dword [eax]
push dword [esi + 0xc]
call fcn.004907ee
add esp, 4
push edi
push ebx
push 0
push eax
push 1
push dword [esi + 0x2c]
call ebp
add esp, 0x18
push ebx
call fcn.0043f9d4
add esp, 4
mov ecx, dword [esp + 4]
call fcn.00497c4a
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x492d04
Capabilities:
Link many functions at runtime

Disassembly:
mov al, byte [0x429f18]
test al, al
jne 0x492dd1
push edi
push esi
push str.winspool.drv
call fcn.0048f6f9
add esp, 4
mov esi, eax
push str.spoolss.dll
call fcn.0048f6f9
add esp, 4
test esi, esi
je 0x492d9e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumPrintersA
push esi
call edi
mov dword [0x429f14], eax
push str.OpenPrinterA
push esi
call edi
mov dword [0x429ef8], eax
push str.ClosePrinter
push esi
call edi
mov dword [0x429f0c], eax
push str.StartDocPrinterA
push esi
call edi
mov dword [0x429efc], eax
push str.EndDocPrinter
push esi
call edi
mov dword [0x429f08], eax
push str.StartPagePrinter
push esi
call edi
mov dword [0x429f00], eax
push str.EndPagePrinter
push esi
call edi
mov dword [0x429f04], eax
push str.WritePrinter
push esi
call edi
jmp 0x492dc3
xor eax, eax
mov dword [0x429f14], eax
mov dword [0x429ef8], eax
mov dword [0x429f0c], eax
mov dword [0x429efc], eax
mov dword [0x429f08], eax
mov dword [0x429f00], eax
mov dword [0x429f04], eax
mov dword [0x429f10], eax
mov byte [0x429f18], 1
pop esi
pop edi
ret
Function at 0x493090
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
cmp byte [0x429f1c], 1
jne 0x4930a5
mov ebx, dword [0x429f20]
jmp 0x4931f6
mov byte [0x429f1c], 1
push str.advapi32.dll
call fcn.0048f6f9
add esp, 4
xor ebx, ebx
test eax, eax
mov dword [0x429f24], eax
je 0x4931f0
push str.GetSecurityInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x429f34], eax
je 0x4931f0
mov eax, dword [0x429f24]
test eax, eax
je 0x4931a6
push str.SetSecurityInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x429f38], eax
je 0x4931f0
mov eax, dword [0x429f24]
test eax, eax
je 0x4931b2
push str.OpenProcessToken
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x429f3c], eax
je 0x4931f0
mov eax, dword [0x429f24]
test eax, eax
je 0x4931be
push str.GetTokenInformation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x429f40], eax
je 0x4931f0
mov eax, dword [0x429f24]
test eax, eax
je 0x4931ca
push str.InitializeSecurityDescriptor
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x429f44], eax
je 0x4931f0
mov eax, dword [0x429f24]
test eax, eax
je 0x4931d6
push str.SetSecurityDescriptorOwner
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x429f48], eax
je 0x4931f0
mov eax, dword [0x429f24]
test eax, eax
je 0x4931e2
push str.SetEntriesInAclA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x4931e4
mov dword [0x429f38], 0
jmp 0x4931f0
mov dword [0x429f3c], 0
jmp 0x4931f0
mov dword [0x429f40], 0
jmp 0x4931f0
mov dword [0x429f44], 0
jmp 0x4931f0
mov dword [0x429f48], 0
jmp 0x4931f0
xor eax, eax
xor ebx, ebx
test eax, eax
mov dword [0x429f4c], eax
setne bl
mov dword [0x429f20], ebx
mov eax, ebx
pop ebx
ret
Function at 0x494222
Capabilities:
Set registry value

Disassembly:
push ebx
push edi
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x49424f
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
push edi
call fcn.004a7f30
add esp, 4
inc eax
xor ecx, ecx
inc ecx
push eax
push edi
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
pop edi
pop ebx
ret

Function at 0x49433a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, dword [esp + 0x20]
mov eax, dword [0x42b238]
test ebx, ebx
mov dword [esp + 8], eax
je 0x4943d1
mov edi, dword [esp + 0x24]
mov eax, esp
xor esi, esi
lea ecx, [esp + 4]
push eax
push esi
push ecx
push esi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4943de
cmp dword [esp + 4], 1
jne 0x4943de
mov ebp, dword [esp]
inc ebp
xor eax, eax
inc eax
push eax
push ebp
call fcn.0043f807
add esp, 8
mov ecx, edi
mov edi, eax
mov eax, esp
push eax
push edi
lea eax, [esp + 0xc]
push eax
push 0
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4943d5
cmp dword [esp + 4], 1
jne 0x4943d5
mov eax, dword [esp]
cmp eax, ebp
jb 0x4943c9
push 0xb0
push str..._windows_winstore.c
push str.size___allocsize
call fcn.004a509d
add esp, 0xc
mov eax, dword [esp]
mov esi, edi
mov byte [edi + eax], 0
jmp 0x4943de
xor esi, esi
jmp 0x4943de
push edi
call fcn.0043f9d4
add esp, 4
mov ecx, dword [esp + 8]
call fcn.00497c4a
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4943f1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [esp + 0x24]
mov ecx, dword [0x42b238]
mov esi, dword [esp + 0x2c]
test eax, eax
mov dword [esp + 0xc], ecx
mov dword [esp], 4
je 0x494441
mov edi, esp
lea ebx, [esp + 4]
lea ebp, [esp + 8]
push edi
push ebx
push ebp
push 0
push dword [esp + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [edi]
mov edx, dword [ebp]
xor ecx, 4
xor edx, 4
or ecx, eax
or ecx, edx
cmove esi, dword [ebx]
mov ecx, dword [esp + 0xc]
call fcn.00497c4a
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x494554
Capabilities:
Set registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x42b238]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov dword [esp + 4], eax
push dword [ebp]
push esi
push edi
call fcn.00494222
add esp, 0xc
xor ebx, ebx
push ebx
push str.IsBold
push esi
call fcn.0043fa97
add esp, 0xc
mov ecx, dword [ebp + 4]
mov esi, eax
test edi, edi
mov dword [esp], ecx
je 0x4945ae
mov eax, 4
mov ecx, esp
push eax
push ecx
push eax
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call fcn.0043f9d4
add esp, 4
push ebx
push str.CharSet
mov ebp, dword [esp + 0x28]
push ebp
call fcn.0043fa97
add esp, 0xc
mov ebx, dword [esp + 0x24]
mov esi, eax
test edi, edi
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
je 0x4945ee
mov eax, 4
mov ecx, esp
push eax
push ecx
push eax
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call fcn.0043f9d4
add esp, 4
xor eax, eax
push eax
push str.Height
push ebp
call fcn.0043fa97
add esp, 0xc
mov ecx, dword [ebx + 8]
mov esi, eax
test edi, edi
mov dword [esp], ecx
je 0x494628
mov eax, 4
mov ecx, esp
push eax
push ecx
push eax
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call fcn.0043f9d4
add esp, 4
mov ecx, dword [esp + 4]
call fcn.00497c4a
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x49468e
Capabilities:
Delete registry key

Disassembly:
push edi
push esi
sub esp, 8
mov eax, dword [0x42b238]
mov dword [esp + 4], eax
mov eax, esp
push eax
push str.SoftwareSimonTathamPuTTYSessions
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x494702
mov esi, dword [esp + 0x14]
push esi
call fcn.004a7f30
add esp, 4
xor ecx, ecx
lea eax, [eax + eax*2 + 1]
inc ecx
push ecx
push eax
call fcn.0043f807
add esp, 8
mov edi, eax
mov ecx, esi
mov edx, edi
call fcn.004941ac
push edi
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push edi
call fcn.0043f9d4
add esp, 4
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0048f180
add esp, 4
mov ecx, dword [esp + 4]
call fcn.00497c4a
add esp, 8
pop esi
pop edi
ret
Function at 0x494765
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
lea ebp, [ebx + ebx*2]
push 1
push ebp
call fcn.0043f807
add esp, 8
mov ecx, dword [edi + 4]
mov esi, eax
mov eax, dword [edi]
lea edx, [ecx + 1]
mov dword [edi + 4], edx
push ebp
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x4947a8
push esi
call fcn.0043f9d4
add esp, 4
xor eax, eax
jmp 0x49481e
mov edi, dword [esp + 0x1c]
mov edx, esi
jmp 0x494804
inc edx
mov ebp, edx
jmp 0x4947fc
mov ah, byte [edx + 1]
lea ebp, [edx + 1]
test ah, ah
je 0x4947fc
mov cl, byte [edx + 2]
test cl, cl
mov byte [esp + 3], cl
je 0x4947fc
mov al, 0x39
mov cl, 7
cmp ah, al
jg 0x4947d4
xor ecx, ecx
sub ah, cl
mov cl, byte [esp + 3]
mov al, 0x39
cmp cl, al
mov al, cl
mov cl, 0xf9
jg 0x4947e6
xor ecx, ecx
shl ah, 4
add ah, al
add ah, cl
add ah, 0xd0
dec ebx
mov byte [edi], ah
je 0x494811
add edx, 3
mov ebp, edx
jmp 0x494801
dec ebx
mov byte [edi], al
je 0x494811
inc edi
mov edx, ebp
mov al, byte [edx]
cmp al, 0x25
je 0x4947b5
test al, al
jne 0x4947b0
mov byte [edi], 0
push esi
call fcn.0043f9d4
add esp, 4
mov eax, dword [esp + 0x1c]
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x494b46
Capabilities:
Set registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x42b238]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
mov dword [esp + 4], eax
push edi
call fcn.004a7f30
add esp, 4
mov esi, eax
push ebp
call fcn.004a7f30
add esp, 4
add eax, esi
lea eax, [eax + eax*2 + 0xf]
push 1
push eax
call fcn.0043f807
add esp, 8
mov esi, eax
mov edx, edi
mov ecx, esi
push ebp
push ebx
call fcn.00494acb
add esp, 8
mov eax, esp
push eax
push str.SoftwareSimonTathamPuTTYSshHostKeys
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x494bd8
mov edi, dword [esp + 0x28]
push edi
call fcn.004a7f30
add esp, 4
inc eax
xor ecx, ecx
inc ecx
push eax
push edi
push ecx
push 0
push esi
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0043f9d4
add esp, 4
mov ecx, dword [esp + 4]
call fcn.00497c4a
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x494bf2
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x408
mov eax, dword [0x42b238]
xor ecx, ecx
inc ecx
mov dword [esp + 0x404], eax
call fcn.00494c85
mov esi, eax
cmp esi, 0xffffffff
je 0x494c6e
lea ebx, [esp + 4]
mov eax, esp
push 0
push eax
push 0x400
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x494c67
mov eax, dword [esp]
test eax, eax
je 0x494c67
mov ebp, dword [esp + 0x41c]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
push ebx
call ebp
add esp, 8
push 0
lea eax, [esp + 4]
push eax
push 0x400
push ebx
push esi
call edi
test eax, eax
je 0x494c67
mov eax, dword [esp]
test eax, eax
jne 0x494c45
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x404]
call fcn.00497c4a
add esp, 0x408
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x494ed5
Capabilities:
Write file on windows

Disassembly:
push esi
sub esp, 8
mov eax, dword [0x42b238]
mov ecx, 2
mov dword [esp + 4], eax
call fcn.00494c85
mov esi, eax
cmp esi, 0xffffffff
je 0x494f0e
mov eax, esp
push 0
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 4]
call fcn.00497c4a
add esp, 8
pop esi
ret
Function at 0x4951f7
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push edi
push esi
sub esp, 0x110
mov eax, dword [0x42b238]
xor ecx, ecx
mov dword [esp + 0x10c], eax
call fcn.00494c85
call fcn.0048eda4
mov edi, esp
push edi
push str.SoftwareSimonTathamPuTTY
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x49523f
mov ecx, dword [esp]
call fcn.004952cc
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push str.SoftwareSimonTatham
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x495269
mov ecx, dword [esp + 0x10c]
call fcn.00497c4a
add esp, 0x110
pop esi
pop edi
ret
push 0x402048
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea eax, [esp + 7]
push 0x105
push eax
push 0
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x495254
push edi
push str.Software
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x495254
push str.SimonTatham
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x495254

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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x110
mov eax, dword [0x42b238]
mov esi, ecx
lea edi, [esp + 7]
mov dword [esp + 0x10c], eax
push 0x105
push edi
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x49533a
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov eax, esp
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x495327
mov ecx, dword [esp]
call fcn.004952cc
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push esi
call ebx
push 0x105
push edi
push 0
push esi
call ebp
test eax, eax
je 0x495307
mov ecx, dword [esp + 0x10c]
call fcn.00497c4a
add esp, 0x110
pop esi
pop edi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
push ebx
push edi
push esi
mov edi, dword [esp + 0x14]
mov esi, ecx
test edx, edx
je 0x4953a3
xor ecx, ecx
xor eax, eax
cmp edx, 2
mov edx, 0x40000000
mov ebx, 0x80000000
cmove ebx, edx
sete al
mov edx, 3
setne cl
xor ebp, ebp
sub edx, eax
shl eax, 7
lea ecx, [ecx + ecx*2]
push ebp
push eax
push edx
push ebp
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
xor eax, eax
cmp ecx, 0xffffffff
mov dword [edi], ecx
setne al
jmp 0x4953df
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4953d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4953d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0048f7e3
add esp, 4
push eax
push esi
push str.Unable_to_delete__s:__s
call fcn.0048ccc3
add esp, 0xc
mov dword [edi], 0xffffffff
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x496254
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x108
mov ebx, dword [esp + 0x124]
mov eax, dword [0x42b238]
mov esi, dword [esp + 0x120]
xor ebp, ebp
mov edi, 0
test ebx, ebx
mov dword [esp + 0x104], eax
je 0x49629e
mov eax, esp
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
dec eax
xor ecx, ecx
cmp eax, 0x102
cmova ebx, ecx
mov edi, ebx
mov ebx, dword [esp + 0x11c]
mov eax, dword [esp + 0x128]
mov dword [esi], 0x4c
test ebx, ebx
je 0x4962be
xor ebp, ebp
cmp byte [ebx], 0
cmovne ebp, ebx
test eax, eax
mov dword [esi + 0x2c], ebp
je 0x4962ce
push esi
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x4962d5
push esi
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
mov esi, eax
test ebx, ebx
je 0x4962f2
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
dec eax
cmp eax, 0x103
jb 0x4962f2
mov byte [ebx], 0
test edi, edi
je 0x4962ff
mov eax, esp
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x104]
call fcn.00497c4a
mov eax, esi
add esp, 0x108
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4adbd4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ad894

Function at 0x4add19
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004adc1e

Function at 0x4af4da
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004af359

Function at 0x4c3000
Capabilities:
Packed with generic packer
Terminate process

Disassembly:
pushal
push 0x4c3031
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x4c303a
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [0x4c3047]
push 0
push 0
push 0
push edx
push 0
push 0
call eax
popal
jmp fcn.00497fd6

Function at 0x414e60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
jmp 0x414e7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x414e81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414e70
mov eax, 1
add ebx, ebx
jne 0x414e93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x414e88
jne 0x414ea4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414e88
xor ecx, ecx
sub eax, 3
jb 0x414eb8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414f2a
mov ebp, eax
add ebx, ebx
jne 0x414ec3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x414ed0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x414ef4
inc ecx
add ebx, ebx
jne 0x414ee0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x414ed5
jne 0x414ef1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414ed5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x414f14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x414f05
jmp 0x414e76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x414f14
add edi, ecx
jmp 0x414e76
pop esi
mov edi, esi
mov ecx, 0x5a7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x414f32
cmp byte [edi], 5
jne 0x414f32
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x414f37
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x414fa6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15454]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1551c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x414f64
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x15520]
or eax, eax
je 0x414fa0
mov dword [ebx], eax
add ebx, 4
jmp 0x414f81
call dword [esi + 0x15530]
mov ebp, dword [esi + 0x15524]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x414fda
sub esp, 0xffffff80
jmp 0x40a764
Function at 0x40f180
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40f1ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40f1ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x444421e3
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
mov eax, section..rsrc_1
nop
nop
nop
nop
cmp eax, 0
je 0x42e0d2
nop
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x159b1681
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219