joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x40d0c4], 0
jne 0x4014af
xor eax, eax
nop
mov ecx, eax
and cl, 1
neg cl
mov edx, eax
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr ecx, 1
xor ecx, edx
mov edx, ecx
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr ecx, 1
xor ecx, edx
mov edx, ecx
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr ecx, 1
xor ecx, edx
mov edx, ecx
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr ecx, 1
xor ecx, edx
mov edx, ecx
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr ecx, 1
xor ecx, edx
mov edx, ecx
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr ecx, 1
xor ecx, edx
mov edx, ecx
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr ecx, 1
xor edx, ecx
mov dword [eax*4 + 0x40d0c0], edx
add eax, 1
cmp eax, 0x100
jl 0x401400
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
test esi, esi
not eax
jbe 0x4014de
mov ecx, dword [esp + 0xc]
mov dl, byte [ecx]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x40d0c0]
sub esi, 1
jne 0x4014c2
not eax
pop esi
ret 0xc

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

Disassembly:
mov ecx, dword [0x43d8f0]
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x114]
push ebp
push esi
push edi
mov edi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
or ecx, 8
push ecx
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40170a
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push 0x105
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call esi
test eax, eax
jne 0x4016ce
mov ebp, dword [esp + 0x128]
lea esp, [esp]
test ebp, ebp
mov edx, dword [esp + 0x10]
jne 0x4016fe
push ebp
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.00401640
test eax, eax
jne 0x4016ce
mov ecx, dword [esp + 0x10]
push 0x105
lea eax, [esp + 0x18]
push eax
push ebp
push ecx
call esi
test eax, eax
je 0x4016a0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00407360
test eax, eax
je 0x401717
mov ecx, dword [0x43d8f0]
push 0
push ecx
push edi
push ebx
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 0xc
cmp dword [0x43d8f0], 0
jne 0x401705
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x401705
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 0xc
Function at 0x4039d0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x40
cmp dword [esp + 0x44], 0
je 0x4039f8
mov eax, dword [0x417d08]
test eax, eax
je 0x4039ea
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x417d08], 0
add esp, 0x40
ret
cmp dword [0x417d08], 0
je 0x403a0c
push 0
call fcn.004073a0
add esp, 0x40
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x43d860]
jbe 0x403a7a
cmp dword [0x43d804], 0
je 0x403a54
test byte [0x43d8f4], 1
je 0x403a7a
call fcn.00403920
push eax
lea eax, [esp + 4]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp]
push ecx
push 0
call fcn.00405cb0
add esp, 0x40
ret
mov edx, dword [0x43d808]
push 0
push 0x403940
push 0
push 0x6f
push edx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 5
push eax
mov dword [0x417d08], eax
call dword [sym.imp.USER32.dll_ShowWindow]
add esp, 0x40
ret

Function at 0x403a80
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [0x40d010]
push esi
mov esi, dword [esp + 0xc]
push 0
lea eax, [esp + 0x10]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403ab2
cmp dword [esp + 0xc], esi
jne 0x403ab2
mov eax, 1
pop esi
ret 8
xor eax, eax
pop esi
ret 8
Function at 0x403d70
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
test eax, eax
jl 0x403d98
mov ecx, dword [0x43d820]
mov edx, dword [0x40d014]
push 0
add eax, ecx
push 0
push eax
push edx
mov dword [0x42bda0], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
mov edi, 4
push edi
call fcn.00403ae0
test eax, eax
jl 0x403e9b
mov edx, dword [0x40d014]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x14]
push eax
push edi
lea ecx, [esp + 0x14]
push ecx
push edx
call esi
test eax, eax
je 0x403ee7
cmp dword [esp + 0x10], edi
jne 0x403ee7
mov eax, dword [esp + 8]
add dword [0x42bda0], edi
push eax
call fcn.00403ae0
mov edi, eax
test edi, edi
jge 0x403df7
pop esi
pop edi
pop ecx
ret 0x10
mov edx, dword [esp + 0x18]
test edx, edx
push ebx
push ebp
jne 0x403ea0
mov ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x403edd
mov ebx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x403e20
cmp ecx, 0x4000
mov esi, ecx
jl 0x403e2f
mov esi, 0x4000
mov edx, dword [0x40d014]
push 0
lea ecx, [esp + 0x1c]
push ecx
push esi
push 0x427da0
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403ec4
mov eax, dword [esp + 0x18]
cmp esi, eax
jne 0x403ec4
push 0
lea ecx, [esp + 0x24]
push ecx
push eax
push 0x427da0
push ebx
call ebp
test eax, eax
je 0x403e93
cmp dword [esp + 0x20], esi
jne 0x403e93
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
add dword [0x42bda0], eax
sub ecx, eax
add edi, eax
test ecx, ecx
mov dword [esp + 0x10], ecx
jg 0x403e20
pop ebp
pop ebx
pop esi
mov eax, edi
pop edi
pop ecx
ret 0x10
pop ebp
pop ebx
mov eax, 0xfffffffe
pop esi
pop edi
pop ecx
ret 0x10
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jl 0x403eae
mov eax, ecx
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
push edx
mov edx, dword [0x40d014]
push edx
call esi
test eax, eax
jne 0x403ed1
pop ebp
pop ebx
pop esi
mov eax, 0xfffffffd
pop edi
pop ecx
ret 0x10
mov eax, dword [esp + 0x18]
add dword [0x42bda0], eax
mov edi, eax
pop ebp
pop ebx
pop esi
mov eax, edi
pop edi
pop ecx
ret 0x10
pop esi
mov eax, 0xfffffffd
pop edi
pop ecx
ret 0x10
Function at 0x406c10
Capabilities:
Create process on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x10
lea eax, [esp]
push eax
push 0x433df0
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
mov dword [0x433df0], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x406c49
add esp, 0x10
ret 4
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp]
add esp, 0x10
ret 4

Function at 0x406e00
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406e1b
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
ret 4

Function at 0x406e20
Capabilities:
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edx, dword [esp + 0x10]
mov ecx, eax
sub ecx, 0xffffffff
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push 0
push 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
pop esi
ret 0xc

Function at 0x406e60
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, 0x64
jmp 0x406e80
sub esi, 1
mov dword [esp + 0x18], 0x61736e
call ebp
xor edx, edx
mov ecx, 0x1a
div ecx
push edi
push 0
add byte [esp + 0x22], dl
lea edx, [esp + 0x20]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x406ebb
test esi, esi
jne 0x406e80
mov byte [edi], 0
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x406ed0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 8]
neg ecx
push esi
mov esi, dword [esp + 0x14]
sbb ecx, ecx
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0xc]
and ecx, 0x100
or ecx, 0x20019
push ecx
push 0
push edx
push eax
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406f53
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push esi
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x30], 0x2000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406f3e
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x406f41
cmp eax, 2
je 0x406f41
mov byte [esi], 0
mov edx, dword [esp + 0x14]
push edx
mov byte [esi + 0x1fff], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
ret 0x14
Function at 0x407140
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
je 0x407165
mov eax, dword [0x40d058]
cmp eax, 0xffffffff
je 0x407158
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x40d058], 0xffffffff
ret 4
cmp dword [0x434b88], 0
je 0x4071e6
cmp byte [0x4393a0], 0
je 0x4071a8
cmp dword [0x40d058], 0xffffffff
jne 0x4071b1
push 4
push 0x40000000
push 0x4393a0
call fcn.00406e20
cmp eax, 0xffffffff
mov dword [0x40d058], eax
je 0x4071e6
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40d058], 0xffffffff
je 0x4071e6
push 0x40ad54
push 0x434ba0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x434ba0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [0x40d058]
push 0
lea ecx, [esp + 8]
push ecx
push eax
push 0x434ba0
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 4

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

Disassembly:
push esi
push edi
push 0x2000
call dword [sym.imp.msvcrt.dll_malloc]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0xc]
push 0x2000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
call fcn.00406d60
mov edi, eax
test edi, edi
je 0x407498
push edi
call fcn.00407060
test byte [0x43d868], 0x80
je 0x4074a9
mov al, byte [edi]
test al, al
je 0x407498
cmp al, 0x5c
jne 0x4074a9
push esi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
pop edi
xor eax, eax
pop esi
ret 4
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
sub edi, esi
call ebp
cmp eax, edi
jle 0x4074fd
mov ebx, dword [sym.imp.USER32.dll_CharPrevA]
push 0x434638
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4074e1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [0x434638], 0x10
je 0x407525
push esi
call ebp
add eax, esi
cmp byte [eax], 0x5c
je 0x4074f3
push eax
push esi
call ebx
cmp eax, esi
ja 0x4074e6
push esi
mov byte [eax], 0
call ebp
cmp eax, edi
jg 0x4074c0
push esi
call fcn.004073f0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
push esi
je 0x407526
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
ret 4
push esi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x407860
Capabilities:
Get file attributes
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push esi
push edi
mov edi, dword [str.KERNEL32]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
jne 0x407887
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x4078a7
mov ecx, dword [str.MoveFileExA]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4078a7
push 5
push esi
push ebx
call eax
test eax, eax
jne 0x407a0e
test esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x433e38], 0x4c554e
je 0x407906
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edx, eax
sub edx, 0xffffffff
push 0
neg edx
sbb edx, edx
and edx, eax
push edx
push 1
push 0
push 1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x400
push 0x433e38
push esi
call edi
test eax, eax
je 0x407a15
cmp eax, 0x400
jg 0x407a15
push 0x400
push 0x434778
push ebx
call edi
test eax, eax
je 0x407a15
cmp eax, 0x400
jg 0x407a15
push ebp
push 0x434778
push 0x433e38
push str._s_s_r_n
push 0x434238
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x43d80c]
mov ecx, dword [eax + 0x128]
add esp, 0x10
push ecx
push 0x434778
call fcn.004075a0
push 4
push 0xc0000000
push 0x434778
call fcn.00406e20
mov ebp, eax
cmp ebp, 0xffffffff
je 0x407a0d
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea edx, [edi + ebx + 0xa]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x407a06
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407a06
cmp edi, dword [esp + 0x18]
jne 0x407a06
push str._Rename__r_n
push esi
call fcn.00407540
test eax, eax
jne 0x407a1b
push str._Rename__r_n
lea ecx, [esi + edi]
push ecx
call fcn.00407020
add edi, 0xa
mov eax, edi
push ebx
push 0x434238
add eax, esi
push eax
call fcn.00406dd0
push 0
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
add dword [0x43d8d0], 1
pop edi
pop esi
pop ebx
ret 8
push 0x40ae00
add eax, 0xa
push eax
call fcn.00407540
test eax, eax
je 0x4079d0
add eax, 1
lea edx, [esi + edi]
cmp eax, edx
mov ecx, eax
jae 0x407a4f
lea esp, [esp]
mov dl, byte [ecx]
mov byte [ecx + ebx], dl
add ecx, 1
lea edx, [esi + edi]
cmp ecx, edx
jb 0x407a40
sub eax, esi
jmp 0x4079d2
Function at 0x408e00
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push ebx
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408fb3
push ebp
push esi
push edi
push 0x2000
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
xor eax, eax
mov ecx, 0x800
mov edi, esi
push 0x2000
rep stosd dword es:[edi], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 8
xor eax, eax
push eax
mov ecx, 0x800
mov edi, ebp
push ebx
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea ecx, [edi + 1]
push ecx
push 0x40
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [esp + 0x18], eax
je 0x408f8b
push 0
lea edx, [esp + 0x14]
push edx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408f8b
cmp dword [esp + 0x10], edi
jne 0x408f8b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
push 4
push eax
call fcn.00407a60
mov ebx, dword [esp + 0x18]
push ebx
mov edi, esi
lea eax, [esp + 0x18]
call fcn.00408d50
add esp, 4
test eax, eax
je 0x408f88
jmp 0x408ee0
mov edx, str.File:_wrote
mov ecx, esi
call fcn.00408bf0
test eax, eax
jne 0x408f5c
mov edx, str.File:_skipp
mov ecx, esi
call fcn.00408bf0
test eax, eax
jne 0x408f5c
mov edx, str.CreateShortCut:_out:
mov ecx, esi
call fcn.00408bf0
test eax, eax
jne 0x408f5c
mov edx, str.created_uninstaller:
mov ecx, esi
call fcn.00408bf0
test eax, eax
jne 0x408f5c
mov edx, str.Rename:
mov ecx, esi
call fcn.00408bf0
test eax, eax
mov ecx, esi
je 0x408f3d
call fcn.00408d00
test eax, eax
je 0x408f71
jmp 0x408f5e
mov edx, str.CreateDirectory:
call fcn.00408bf0
test eax, eax
je 0x408f71
mov edx, ebp
mov eax, esi
call fcn.00408c60
test eax, eax
je 0x408f71
push 1
jmp 0x408f6b
mov eax, esi
mov edx, ebp
call fcn.00408c60
test eax, eax
je 0x408f71
push 4
push ebp
call fcn.00407a60
push ebx
mov edi, esi
lea eax, [esp + 0x18]
call fcn.00408d50
add esp, 4
test eax, eax
jne 0x408ee0
push ebx
jmp 0x408f9b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x408fa1
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x408fd6
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x40afa0
call fcn.004091e8
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x400000], 0x5a4d
jne 0x40902a
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40902a
movzx ecx, word [eax + 0x400018]
cmp ecx, 0x10b
je 0x409042
cmp ecx, 0x20b
je 0x40902f
mov dword [ebp - 0x1c], ebx
jmp 0x409059
cmp dword [eax + 0x400084], 0xe
jbe 0x40902a
xor ecx, ecx
cmp dword [eax + 0x4000f8], ebx
jmp 0x409053
cmp dword [eax + 0x400074], 0xe
jbe 0x40902a
xor ecx, ecx
cmp dword [eax + 0x4000e8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x43d8fc], edi
mov dword [0x43d900], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x434b84]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x434b80]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x43d904], eax
call fcn.004091e2
cmp dword [0x40d0a8], ebx
jne 0x4090b6
push fcn.004091e2
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.004091d0
push 0x40a308
push 0x40a304
call sub.msvcrt.dll__initterm
mov eax, dword [0x434b7c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x434b78]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x40a300
push 0x40a2f8
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x409141
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x409121
cmp cl, 0x22
jne 0x409112
cmp byte [eax], 0x22
jne 0x40912a
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x409135
cmp cl, 0x20
jbe 0x409126
test byte [ebp - 0x54], 1
je 0x40914c
movzx ecx, word [ebp - 0x50]
jmp 0x40914f
cmp byte [eax], 0x20
jbe 0x40912a
inc eax
mov dword [ebp - 0x20], eax
jmp 0x409141
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call fcn.00404250
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x40916d
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x4091a9
mov eax, esi
jmp 0x4091bd
call fcn.00409223
ret
Function at 0x413360
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x476f0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0046b7b0
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4133e2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046926d
mov eax, dword [eax]
push 0x4901f4
push eax
call fcn.0045bd84
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046ba3b
test bl, bl
je 0x4133e2
push 0x4901f4
lea ecx, [esp + 0xc]
call fcn.0046bdcb
push 0x493d6c
lea ecx, [esp + 0xc]
call fcn.0046bdcb
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41341e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046ba3b
jmp 0x4134e9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4134a2
lea edx, [esp + 0x7c]
push 0x493d68
push edx
call fcn.0045bd84
add esp, 8
test eax, eax
je 0x4134a2
lea eax, [esp + 0x7c]
push 0x493d64
push eax
call fcn.0045bd84
add esp, 8
test eax, eax
je 0x4134a2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x413432
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046ba3b
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x413ce0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x413d42
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x413d50
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x476f8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x49a2fc]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x413e88
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x413db6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046ba3b
xor eax, eax
jmp 0x413eff
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046bb78
push esi
lea ecx, [esp + 0xc]
call fcn.0046be07
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x413edd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push bind
call fcn.00413ce0
test eax, eax
jne 0x413edd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push bind
mov ecx, edi
call fcn.00413ce0
test eax, eax
jne 0x413edd
lea eax, [esp + 0x14]
push 0x493d80
push eax
call fcn.0045cdc0
mov esi, eax
add esp, 8
test esi, esi
jne 0x413ebc
lea ecx, [esp + 0x14]
push 0x493d7c
push ecx
call fcn.0045cd40
mov esi, eax
add esp, 8
test esi, esi
jne 0x413ebc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x413ebf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046bb28
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x413dce
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046ba3b
xor eax, eax
jmp 0x413eff
mov byte [esi], 0
push 0x493d78
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0046ba3b
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4