joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Persist via application shimming
Write file on windows

Disassembly:
push ecx
push esi
push str.secedit__export__cfg_C:_securityconfig.cfg
call fcn.00402db3
push str.copy_C:_securityconfig.cfg_C:_securityconfig1.cfg
call fcn.00402db3
push 0x414cc0
push str.C:_securityconfig.cfg
mov byte [esp + 0x14], 0xd
mov byte [esp + 0x15], 0
mov byte [esp + 0x16], 0xa
mov byte [esp + 0x17], 0
call fcn.00402f57
mov esi, eax
mov eax, str._System_Access_
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401046
sub eax, edx
push esi
sar eax, 1
push eax
push 2
push str._System_Access_
call fcn.004030d0
push esi
push 2
lea eax, [esp + 0x1c]
push 2
push eax
call fcn.004030d0
mov eax, str.Passwordcomplexity__0
add esp, 0x20
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401080
sub eax, edx
push esi
sar eax, 1
push eax
push 2
push str.Passwordcomplexity__0
call fcn.004030d0
push esi
push 2
lea ecx, [esp + 0x1c]
push 2
push ecx
call fcn.004030d0
push esi
call fcn.004031c9
push str.secedit__configure__db_C:_new.sdb__cfg_C:_securityconfig.cfg__areas_SECURITYPOLICY
call fcn.00402db3
mov eax, dword [esp + 0x34]
add esp, 0x28
pop esi
pop ecx
ret 4

Function at 0x401140
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [ecx]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
push eax
push edx
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4011ae
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x40117f
cmp eax, 2
jne 0x40119a
mov eax, dword [esp]
test esi, esi
je 0x4011a8
test eax, eax
je 0x4011a3
test al, 1
jne 0x40119a
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4011a8
mov eax, 0xd
pop ecx
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8
Function at 0x402750
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x120
mov eax, dword [0x417118]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push edi
mov edi, dword [esp + 0x12c]
lea eax, [esp + 0xc]
mov esi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.00402560
test al, al
jne 0x4027e5
push 0x414e44
push str.C:ResetPassword.log
call fcn.00402f57
mov esi, eax
add esp, 8
test esi, esi
je 0x4027bd
push str.QueryRegistryDwordValue_::_OpenReristry_fail
push 0x414e48
push esi
call fcn.00403b8c
push esi
call fcn.004031c9
add esp, 0x10
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4027cc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00402da4
add esp, 0x120
ret
lea eax, [esp + 0x14]
push eax
push edi
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
push 0
push esi
push edi
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402815
cmp dword [esp + 0xc], 4
je 0x4028b6
push 0
push 0
push 0x104
lea edx, [esp + 0x24]
push edx
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x414e44
push str.C:ResetPassword.log
call fcn.00402f57
mov esi, eax
add esp, 8
test esi, esi
je 0x402861
lea eax, [esp + 0x18]
push eax
push 0x414e48
push esi
call fcn.00403b8c
push esi
call fcn.004031c9
add esp, 0x10
push 0x414e44
push str.C:ResetPassword.log
call fcn.00402f57
mov esi, eax
add esp, 8
test esi, esi
je 0x402892
push str.QueryRegistryDwordValue_::_QueryDWORDValue_fail
push 0x414e48
push esi
call fcn.00403b8c
push esi
call fcn.004031c9
add esp, 0x10
test edi, edi
je 0x40289d
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00402da4
add esp, 0x120
ret
test edi, edi
je 0x4028c1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x124]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.00402da4
add esp, 0x120
ret
Function at 0x4028e0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x220
mov eax, dword [0x417118]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
push edi
xor edi, edi
mov ecx, str.SYSTEMCurrentControlSetServicesResetPassword
lea eax, [esp + 0xc]
xor esi, esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
call fcn.00402560
test al, al
jne 0x402973
push 0x414e44
push str.C:ResetPassword.log
call fcn.00402f57
mov esi, eax
add esp, 8
cmp esi, edi
je 0x402949
push str.open_regkey_faile__
push 0x414e48
push esi
call fcn.00403b8c
add esp, 0xc
push esi
call fcn.004031c9
add esp, 4
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x402958
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00402da4
add esp, 0x220
ret
mov edi, dword [esp + 0xc]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
push esi
push edi
mov dword [esp + 0x34], 0x104
call ebx
test eax, eax
jne 0x4029a5
inc esi
jmp 0x40297d
test edi, edi
je 0x4029b0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x224]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00402da4
add esp, 0x220
ret
Function at 0x402cf0
Capabilities:
Create process on windows

Disassembly:
push esi
push 0x414e44
push str.C:ResetPassword.log
call fcn.00402f57
mov esi, eax
add esp, 8
test esi, esi
je 0x402d22
push str.enter_ExitService
push 0x414e48
push esi
call fcn.00403b8c
push esi
call fcn.004031c9
add esp, 0x10
push 0x414e44
push str.C:ResetPassword.bat
call fcn.00402f57
mov esi, eax
add esp, 8
test esi, esi
je 0x402d9b
push str.sc_stop_ResetPassword_nsc_delete_ResetPassword_n:Repeat_ndel___dp0ResetPassword.exe_nif_exist_ResetPassword.exe_goto_Repeat_ndel___0
push esi
call fcn.00403b8c
push esi
call fcn.004031c9
add esp, 0xc
push 5
push str.C:ResetPassword.bat
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0x414e44
push str.C:ResetPassword.log
call fcn.00402f57
mov esi, eax
add esp, 8
test esi, esi
je 0x402d8c
push str.end_winexex
push 0x414e48
push esi
call fcn.00403b8c
push esi
call fcn.004031c9
add esp, 0x10
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x12c
call esi
jmp 0x402d92
pop esi
ret

Function at 0x402da4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417118]
jne 0x402dae
repz ret
jmp fcn.00404a9b

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4052cd
call fcn.00405266
mov dword [eax], esi
call fcn.00405253
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00404cd8
add esp, 0x14
push 0x16
pop eax
jmp 0x405322
test dword [ebp + 0xc], 0xfffffff9
jne 0x4052a9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4052fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00405279
pop ecx
call fcn.00405253
mov eax, dword [eax]
jmp 0x405322
test al, 0x10
jne 0x405320
test al, 1
je 0x405320
test byte [ebp + 0xc], 2
je 0x405320
call fcn.00405266
mov dword [eax], 5
call fcn.00405253
mov dword [eax], 0xd
jmp 0x4052f1
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40e49a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040a390
and dword [ebp - 4], 0
cmp dword [0x418af8], 0
mov ebx, eax
jne 0x40e54b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40e5fc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40e5fc
push eax
call fcn.0040a31e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x418af8], eax
call esi
push eax
call fcn.0040a31e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x418afc], eax
call esi
push eax
call fcn.0040a31e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x418b00], eax
call esi
push eax
call fcn.0040a31e
pop ecx
mov dword [0x418b08], eax
test eax, eax
je 0x40e54b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040a31e
pop ecx
mov dword [0x418b04], eax
mov eax, dword [0x418b04]
cmp eax, ebx
je 0x40e5a3
cmp dword [0x418b08], ebx
je 0x40e5a3
push eax
call fcn.0040a399
push dword [0x418b08]
mov esi, eax
call fcn.0040a399
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40e5a3
test edi, edi
je 0x40e5a3
call esi
test eax, eax
je 0x40e59a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40e59a
test byte [ebp - 0xc], 1
jne 0x40e5a3
or dword [ebp + 0x10], 0x200000
jmp 0x40e5dc
mov eax, dword [0x418afc]
cmp eax, ebx
je 0x40e5dc
push eax
call fcn.0040a399
pop ecx
test eax, eax
je 0x40e5dc
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40e5dc
mov eax, dword [0x418b00]
cmp eax, ebx
je 0x40e5dc
push eax
call fcn.0040a399
pop ecx
test eax, eax
je 0x40e5dc
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x418af8]
call fcn.0040a399
pop ecx
test eax, eax
je 0x40e5fc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40e5fe
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4015ad
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44107c]
jne 0x4015b7
repz ret
jmp fcn.0040222b

Function at 0x406b8a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44107c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040407d
and dword [ebp - 0x14], 0
cmp dword [0x443d4c], 0
mov dword [ebp - 0x18], eax
jne 0x406c3d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406ce5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406ce5
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x443d4c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x443d50], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x443d54], eax
call edi
push eax
call esi
mov dword [0x443d5c], eax
test eax, eax
je 0x406c3d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x443d58], eax
mov eax, dword [0x443d58]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406c96
cmp dword [0x443d5c], ecx
je 0x406c96
push eax
call esi
push dword [0x443d5c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406c96
test ebx, ebx
je 0x406c96
call edi
test eax, eax
je 0x406c8d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406c8d
test byte [ebp - 8], 1
jne 0x406c96
or dword [ebp + 0x10], 0x200000
jmp 0x406cc9
mov eax, dword [0x443d50]
cmp eax, dword [ebp - 0x18]
je 0x406cc9
push eax
call esi
test eax, eax
je 0x406cc9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x406cc9
mov eax, dword [0x443d54]
cmp eax, dword [ebp - 0x18]
je 0x406cc9
push eax
call esi
test eax, eax
je 0x406cc9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x443d4c]
call esi
test eax, eax
je 0x406ce5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406ce7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004015ad
leave
ret
Function at 0x401498
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4234d0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40152d
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4014ea
cmp dword [ebp + 0x10], ebx
jne 0x401521
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401498
test eax, eax
jne 0x4014fc
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014d1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
call fcn.00405b10
cmp eax, ebx
je 0x401534
push ebx
push dword [0x4234d0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40152d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x4234d0], ebx
jne 0x40152a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40152a
jmp 0x40152d
Function at 0x402e7d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp eax, esi
jl 0x402ea7
mov ecx, dword [0x423438]
push esi
add eax, ecx
push esi
push eax
push dword [0x409014]
mov dword [0x41a59c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00402d16
cmp eax, esi
jl 0x402f84
push 4
lea eax, [ebp + 8]
push eax
push dword [0x409014]
call fcn.00405848
test eax, eax
jne 0x402ed3
push 0xfffffffffffffffd
pop eax
jmp 0x402f84
add dword [0x41a59c], 4
push ebx
push dword [ebp + 8]
call fcn.00402d16
mov ebx, eax
cmp ebx, esi
jl 0x402f81
cmp dword [ebp + 0x10], esi
jne 0x402f4f
cmp dword [ebp + 8], esi
jle 0x402f81
mov esi, 0x41a5a0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x402f11
mov eax, 0x4000
push eax
push esi
push dword [0x409014]
mov dword [ebp - 4], eax
call fcn.00405848
test eax, eax
je 0x402f73
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00405877
test eax, eax
je 0x402f4b
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x41a59c], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x402f00
jmp 0x402f81
push 0xfffffffffffffffe
jmp 0x402f75
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x402f5a
mov eax, dword [ebp + 0x14]
push esi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402f78
push 0xfffffffffffffffd
pop eax
jmp 0x402f83
mov ebx, dword [ebp - 4]
add dword [0x41a59c], ebx
mov eax, ebx
pop ebx
pop esi
leave
ret 0x10
Function at 0x405f0b
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x4076f0
mov edi, 0x420e38
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov ebx, 0x400
test esi, esi
je 0x405f59
push 1
push 0
push esi
call fcn.004057d1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x406078
cmp eax, ebx
jg 0x406078
push ebx
mov esi, 0x421b78
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x406078
cmp eax, ebx
jg 0x406078
push esi
push edi
push str._s_s_r_n
push 0x421378
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x4233ec]
push dword [eax + 0x128]
push esi
call fcn.00405cb9
push 4
push 0xc0000000
push esi
call fcn.004057d1
mov ebp, eax
mov dword [esp + 0x18], ebp
cmp ebp, 0xffffffff
je 0x406078
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406071
push edi
push esi
push ebp
call fcn.00405848
test eax, eax
je 0x406071
push str._Rename__r_n
push esi
call fcn.00405731
test eax, eax
jne 0x40600f
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406044
push 0x4076d8
add eax, 0xa
push eax
call fcn.00405731
mov ebp, eax
test ebp, ebp
je 0x406040
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406031
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x40602b
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406046
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
push 0x421378
add eax, esi
push eax
call fcn.00405787
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405877
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40607d
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x4060a0
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405f0b
pop ecx
pop ecx
inc dword [0x4234b0]
ret 8

Function at 0x406279
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x421f7c], 0
jne 0x4062b7
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40628d
mov dword [ecx*4 + 0x421f78], eax
inc ecx
cmp ecx, 0x100
jl 0x406288
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4062e4
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x421f78]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4062c5
not eax
pop ebp
ret 0xc
Function at 0x416340
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
or ebp, 0xffffffff
jmp 0x416362
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x416369
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x416358
mov eax, 1
add ebx, ebx
jne 0x41637b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x416370
jne 0x41638c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x416370
xor ecx, ecx
sub eax, 3
jb 0x4163a0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x416412
mov ebp, eax
add ebx, ebx
jne 0x4163ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4163b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4163dc
inc ecx
add ebx, ebx
jne 0x4163c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4163bd
jne 0x4163d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4163bd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4163fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4163ed
jmp 0x41635e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4163fc
add edi, ecx
jmp 0x41635e
pop esi
mov edi, esi
mov ecx, 0x49b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41641a
cmp byte [edi], 0
jne 0x41641a
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 0x41641f
lea edi, [esi + 0x14000]
mov eax, dword [edi]
or eax, eax
je 0x41648e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x180f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18178]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41644c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x18180]
or eax, eax
je 0x416488
mov dword [ebx], eax
add ebx, 4
jmp 0x416469
call dword [esi + 0x1817c]
mov ebp, dword [esi + 0x18184]
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 0x4164c2
sub esp, 0xffffff80
jmp 0x40aa98
Function at 0x401578
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test edx, 0xc6bed4aa
mov edx, 0x8608bcb
xchg edx, esi
movzx edi, ah
and al, ah
mov esi, ecx
lea edi, [0x3472101d]
movsx edi, dh
adc ebx, ebp
cmp cl, dl
ror dword [edi], 1
scasd eax, dword es:[edi]
std
cmp eax, esi
test dl, 0x87
adc ebp, eax
and edi, ebp
mov eax, ecx
mov ecx, ebx
push edi
sub ch, ch
call 0x401578
mov ah, 0xdd
lea ebx, [0xab6ca985]
lea edi, [0xdf4f6676]
sub dl, ch
imul edi, ecx, 0x70a32eb5
lea ebp, [0x5f7eb2f1]
lea ebx, [eax]
lea ebp, [0xe6b12eba]
test edx, ebx
xor al, ch
and al, 0xb
lea ecx, [ebx]
inc esi
mov dl, 0xf3
mov dh, 0xf2
test dh, 0xdb
movzx ebp, ax
mov edx, esi
lea ecx, [edx]
mov edx, ebp
mov bl, 0x40
invalid
invalid

Function at 0x401d20
Capabilities:
Read file on windows

Disassembly:
push ebp
xor ebp, ebp
push edi
mov edi, 0x400
push esi
push ebx
xor ebx, ebx
sub esp, 0x2c
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0x400
jmp 0x401d77
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov ebp, dword [esp + 0x18]
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
lea eax, [esi + ebx]
sub ebp, ebx
mov dword [esp + 8], ebp
mov dword [esp], eax
call sub.msvcrt.dll_fread
add ebx, eax
cmp ebp, eax
jne 0x401db0
add dword [esp + 0x18], edi
mov ebp, esi
lea edi, [edi + edi*2]
shr edi, 1
mov eax, dword [esp + 0x18]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sub.msvcrt.dll_realloc
test eax, eax
mov esi, eax
jne 0x401d40
mov dword [esp], str.out_of_memory_while_reading_stdin
call fcn.004018f0
mov dword [esp], ebp
call sub.msvcrt.dll_free
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp], eax
call sub.msvcrt.dll_feof
test eax, eax
je 0x401dd5
mov ecx, dword [esp + 0x1c]
add esp, 0x2c
mov edx, ebx
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004015c0
mov dword [esp], str.error_reading_stdin
mov ebp, esi
call fcn.00401cb0
jmp 0x401d99
Function at 0x408290
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.004082f0
Function at 0x408c90
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x408cc8
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x408cbe
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x408cca
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x408cb0
xor eax, eax
pop ebx
pop esi
ret