joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401440
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x58
call fcn.00401e60
push esi
push edi
mov esi, ecx
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x4c], ax
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], eax
lea edx, [esp + 0x1c]
mov dword [esp + 0x14], eax
push ecx
push edx
push eax
push eax
push eax
push eax
push eax
push eax
push str.Tally72.exe
push eax
mov dword [esp + 0x44], 0x44
mov dword [esp + 0x70], 1
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4014c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Tally72.exe
push str.Run:_CreateProcess___s__Failed__Error_Code:__d
push esi
call fcn.004010e0
add esp, 0x10
xor eax, eax
pop edi
pop esi
add esp, 0x58
ret
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xbb8
call edi
mov ecx, dword [esp + 0xc]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 8], 0x103
je 0x40151c
push str.Tally72.exe
push str.Run:_Process_Exe___s__has_shutdown_
push esi
call fcn.004010e0
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
pop edi
xor eax, eax
pop esi
add esp, 0x58
ret
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
mov dword [0x40a6c4], ecx
call ebx
mov eax, dword [esp + 0x14]
push eax
call ebx
mov eax, dword [esi + 0x24]
pop ebx
test eax, eax
je 0x401551
push 0x3e8
call edi
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x401543
pop edi
mov eax, 1
pop esi
add esp, 0x58
ret

Function at 0x401d40
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x401d64
pop edi
mov eax, 2
pop esi
ret 8
push esi
push 0x401d00
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401da3
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, eax
push edi
neg esi
sbb esi, esi
and esi, 0xfffffffe
add esi, 3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
ret 8
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
ret 8
Function at 0x402182
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x408700
call fcn.00404894
mov edi, 0x94
mov eax, edi
call fcn.00401e60
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 [0x40a6ec], ecx
mov eax, dword [esi + 4]
mov dword [0x40a6f8], eax
mov edx, dword [esi + 8]
mov dword [0x40a6fc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40a6f0], esi
cmp ecx, 2
je 0x4021e2
or esi, 0x8000
mov dword [0x40a6f0], esi
shl eax, 8
add eax, edx
mov dword [0x40a6f4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40221d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40221d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x402235
cmp eax, 0x20b
je 0x402222
mov dword [ebp - 0x1c], esi
jmp 0x402249
cmp dword [ecx + 0x84], 0xe
jbe 0x40221d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x402243
cmp dword [ecx + 0x74], 0xe
jbe 0x40221d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00402375
pop ecx
test eax, eax
jne 0x402275
cmp dword [0x40a6d4], 1
jne 0x402262
call fcn.00404056
push 0x1c
call fcn.00403edf
push 0xff
call fcn.00403b24
pop ecx
pop ecx
call fcn.0040480b
mov dword [ebp - 4], esi
call fcn.00404660
test eax, eax
jge 0x40228e
push 0x1b
call fcn.0040215d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40bc58], eax
call fcn.0040453e
mov dword [0x40a6cc], eax
call fcn.0040449c
test eax, eax
jge 0x4022b4
push 8
call fcn.0040215d
pop ecx
call fcn.00404269
test eax, eax
jge 0x4022c5
push 9
call fcn.0040215d
pop ecx
call fcn.00403b54
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x4022d8
push eax
call fcn.0040215d
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00404200
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x4022f9
movzx eax, word [ebp - 0x34]
jmp 0x4022fc
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00401000
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40231a
push edi
call fcn.00403c7b
call fcn.00403c9d
jmp 0x40234c
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004048cf
ret
Function at 0x403bb9
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40a72c], esi
push edi
jne 0x403bd9
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 [0x40a728], esi
mov byte [0x40a724], al
jne 0x403c3f
mov ecx, dword [0x40bc28]
test ecx, ecx
je 0x403c20
mov eax, dword [0x40bc24]
sub eax, 4
cmp eax, ecx
jmp 0x403c19
mov eax, dword [eax]
test eax, eax
je 0x403c0b
call eax
mov eax, dword [0x40bc24]
sub eax, 4
cmp eax, dword [0x40bc28]
mov dword [0x40bc24], eax
jae 0x403c03
mov eax, 0x40a020
mov esi, 0x40a028
cmp eax, esi
mov edi, eax
jae 0x403c3f
mov eax, dword [edi]
test eax, eax
je 0x403c38
call eax
add edi, 4
cmp edi, esi
jb 0x403c30
mov eax, 0x40a02c
mov esi, 0x40a030
cmp eax, esi
mov edi, eax
jae 0x403c5e
mov eax, dword [edi]
test eax, eax
je 0x403c57
call eax
add edi, 4
cmp edi, esi
jb 0x403c4f
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x403c79
push dword [ebp + 8]
mov dword [0x40a72c], 1
call fcn.00403b24
pop ecx
pop ebp
ret

Function at 0x403edf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x40a590]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40a058]
je 0x403f0c
inc eax
cmp eax, 0x12
jb 0x403efd
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40a058]
jne 0x404040
mov eax, dword [0x40a6d4]
cmp eax, 1
je 0x40401b
cmp eax, edx
jne 0x403f3c
cmp dword [0x40a044], 1
je 0x40401b
cmp ecx, 0xfc
je 0x404040
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403f75
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00405b10
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00405140
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x403fb7
lea eax, [ebp - 0x10c]
push eax
call fcn.00405140
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x408ae8
push edi
call fcn.00405c10
add esp, 0x10
push edi
call fcn.00405140
push dword [esi + 0x40a05c]
mov ebx, eax
call fcn.00405140
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00401e60
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00405b10
push edi
push ebx
call fcn.00405b20
push 0x408ac8
push ebx
call fcn.00405b20
push dword [esi + 0x40a05c]
push ebx
call fcn.00405b20
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00405a14
add esp, 0x2c
jmp 0x404040
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x40a05c]
push dword [esi]
call fcn.00405140
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00405262
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404e46
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x40a590]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x40bb04]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
jae 0x404fd6
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40bb20]
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 - 0x18], ebx
je 0x404fd6
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
jne 0x404ea5
xor eax, eax
jmp 0x404fea
test al, 0x20
je 0x404eb6
push 2
push edi
push edi
push ecx
call fcn.00406590
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x404f72
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
jbe 0x404faa
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
cmp ecx, dword [ebp + 0x10]
jae 0x404f0c
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x404efd
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x18]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x404ee2
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404f4c
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
cmp eax, edi
jl 0x404f55
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x404ed6
jmp 0x404f57
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x404fd1
cmp dword [ebp + 8], edi
je 0x404faa
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x404f9f
mov dword [0x40a6e4], eax
jmp 0x404fdd
push edi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404f94
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jmp 0x404f57
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x404f57
push dword [ebp + 8]
call fcn.00404c1d
pop ecx
jmp 0x404fe7
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x404fbf
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x404e9e
mov dword [0x40a6e0], 0x1c
mov dword [0x40a6e4], edi
jmp 0x404fe7
sub eax, dword [ebp - 0x14]
jmp 0x404fea
and dword [0x40a6e4], 0
mov dword [0x40a6e0], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.00405262
leave
ret
Function at 0x405a14
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40a878], ebx
push esi
push edi
jne 0x405a94
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x405acf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x408fb8
push edi
call esi
test eax, eax
mov dword [0x40a878], eax
je 0x405acf
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40a87c], eax
call esi
cmp dword [0x40a6ec], 2
mov dword [0x40a880], eax
jne 0x405a94
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40a888], eax
je 0x405a94
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40a884], eax
mov eax, dword [0x40a884]
test eax, eax
je 0x405ad9
call eax
test eax, eax
je 0x405ac0
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40a888]
test eax, eax
je 0x405ac0
test byte [ebp - 8], 1
jne 0x405ad9
cmp dword [0x40a6f8], 4
jb 0x405ad3
or byte [ebp + 0x12], 0x20
jmp 0x405af8
xor eax, eax
jmp 0x405b08
or byte [ebp + 0x12], 4
jmp 0x405af8
mov eax, dword [0x40a87c]
test eax, eax
je 0x405af8
call eax
mov ebx, eax
test ebx, ebx
je 0x405af8
mov eax, dword [0x40a880]
test eax, eax
je 0x405af8
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40a878]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4068ab
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00401e60
mov eax, dword [0x40a590]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x40bb04]
mov dword [ebp - 4], eax
jae 0x4069eb
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x40bb20]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x4069eb
push 1
push esi
push ebx
call fcn.00405691
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4069f5
push 2
push esi
push ebx
call fcn.00405691
add esp, 0xc
cmp eax, 0xffffffff
je 0x4069f5
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x406998
push 0x1000
lea eax, [ebp - 0x1008]
push esi
push eax
call fcn.00407900
push 0x8000
push ebx
call fcn.00407960
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x406957
mov eax, edi
push eax
lea eax, [ebp - 0x1008]
push eax
push ebx
call fcn.00404e46
add esp, 0xc
cmp eax, 0xffffffff
je 0x406975
sub edi, eax
test edi, edi
jg 0x40694c
jmp 0x40698b
cmp dword [0x40a6e4], 5
jne 0x406988
mov dword [0x40a6e0], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.00407960
pop ecx
pop ecx
jmp 0x4069d8
jge 0x4069d8
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00405691
push ebx
call fcn.00404e0a
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x4069d8
mov dword [0x40a6e0], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40a6e4], eax
push 0
push dword [ebp - 8]
push ebx
call fcn.00405691
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4069f8
mov dword [0x40a6e0], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.00405262
leave
ret
Function at 0x406a07
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x40bb04]
push edi
jae 0x406bce
mov eax, esi
sar eax, 5
lea ebx, [eax*4 + 0x40bb20]
mov eax, dword [ebx]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x406bce
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
mov ecx, edi
je 0x406aad
test dl, 2
jne 0x406aad
test dl, 0x48
je 0x406a77
mov al, byte [eax + 5]
cmp al, 0xa
je 0x406a77
dec dword [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebx]
lea ecx, [edi + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebx]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406ac0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x406aa8
mov dword [0x40a6e4], ecx
jmp 0x406bd5
cmp eax, 0x6d
jne 0x406ab4
xor eax, eax
jmp 0x406be2
push eax
call fcn.00404c1d
pop ecx
jmp 0x406bdf
mov eax, dword [ebx]
mov edx, dword [ebp - 0x10]
add dword [ebp - 0xc], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x406bc9
test edx, edx
je 0x406ae3
cmp byte [edi], 0xa
jne 0x406ae3
or al, 4
jmp 0x406ae5
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x406bc3
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x406bb3
cmp al, 0xd
je 0x406b19
mov byte [edi], al
inc edi
inc dword [ebp - 8]
jmp 0x406ba5
dec ecx
cmp dword [ebp - 8], ecx
jae 0x406b33
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x406b2e
add dword [ebp - 8], 2
jmp 0x406b87
mov dword [ebp - 8], eax
jmp 0x406ba1
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406b5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x406ba1
cmp dword [ebp - 0x10], 0
je 0x406ba1
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x48
je 0x406b7c
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x406b87
mov byte [edi], 0xd
mov ecx, dword [ebx]
mov byte [ecx + esi + 5], al
jmp 0x406ba4
cmp edi, dword [ebp + 0xc]
jne 0x406b8c
cmp byte [ebp - 1], 0xa
jne 0x406b8c
mov byte [edi], 0xa
jmp 0x406ba4
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00405691
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x406ba5
mov byte [edi], 0xd
inc edi
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x406afd
jmp 0x406bc3
mov eax, dword [ebx]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x406bc3
or al, 2
mov byte [esi], al
sub edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
jmp 0x406be2
and dword [0x40a6e4], 0
mov dword [0x40a6e0], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406d81
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00401e60
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406e16
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x40a6ec]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x406e16
cmp eax, 1
je 0x406e2e
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406e16
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x406deb
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x406e12
xor eax, eax
inc eax
jmp 0x406e4a
cmp esi, ebx
jae 0x406e1a
xor eax, eax
jmp 0x406e4a
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40a6ec]
jmp 0x406e30
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406780
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x463e8b
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.00458cd0
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x406802
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00456a87
mov eax, dword [eax]
push 0x4fc1c0
push eax
call fcn.00449984
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00458f5b
test bl, bl
je 0x406802
push 0x4fc1c0
lea ecx, [esp + 0xc]
call fcn.004592eb
push 0x4ffd20
lea ecx, [esp + 0xc]
call fcn.004592eb
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 0x40683e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00458f5b
jmp 0x406909
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 0x4068c2
lea edx, [esp + 0x7c]
push 0x4ffd1c
push edx
call fcn.00449984
add esp, 8
test eax, eax
je 0x4068c2
lea eax, [esp + 0x7c]
push 0x4ffd18
push eax
call fcn.00449984
add esp, 8
test eax, eax
je 0x4068c2
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 0x406852
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.00458f5b
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 0x407100
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 0x407162
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 0x407170
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x463f0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5061f0]
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 0x4072a8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4071d6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00458f5b
xor eax, eax
jmp 0x40731f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00459098
push esi
lea ecx, [esp + 0xc]
call fcn.00459327
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 0x4072fd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00407100
test eax, eax
jne 0x4072fd
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 accept
mov ecx, edi
call fcn.00407100
test eax, eax
jne 0x4072fd
lea eax, [esp + 0x14]
push 0x4ffd34
push eax
call fcn.0044a9c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4072dc
lea ecx, [esp + 0x14]
push 0x4ffd30
push ecx
call fcn.0044a940
mov esi, eax
add esp, 8
test esi, esi
jne 0x4072dc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4072df
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00459048
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4071ee
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00458f5b
xor eax, eax
jmp 0x40731f
mov byte [esi], 0
push 0x4ffd2c
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.00458f5b
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