joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004d02
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x138
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
mov edi, dword [esp + 0x14c]
push 0x3f5
push edi
call esi
push 0x3f6
push edi
mov dword [esp + 0x28], eax
call esi
push 0x3f7
push edi
mov dword [esp + 0x2c], eax
call esi
push 0x3f8
push edi
mov dword [esp + 0x1c], eax
call esi
mov edi, dword [esp + 0x148]
mov ecx, dword [edi + 8]
xor ebx, ebx
cmp dword [ecx], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
jne 0x1004d67
xor eax, eax
jmp 0x1004ef5
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push ebx
push 0x14b
push eax
call ebp
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x5c]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push ebx
push dword [esp + 0x28]
mov dword [esp + 0x28], eax
call esi
push ebx
push dword [esp + 0x2c]
call esi
push ebx
push dword [esp + 0x1c]
call esi
cmp dword [esp + 0x20], 0
jbe 0x1004ec5
push 0
lea eax, [esp + 0x34]
push eax
mov eax, dword [edi + 8]
mov dword [esp + 0x38], 0x118
mov dword [esp + 0x3c], ebx
push dword [eax + 4]
call dword [sym.imp.WINMM.dll_mixerGetLineInfoW]
test eax, eax
jne 0x1004eba
cmp dword [esp + 0x48], 4
jne 0x1004e19
cmp dword [esp + 0x1c], eax
jne 0x1004e60
push 1
push dword [esp + 0x28]
call esi
cmp ebx, dword [edi + 0xc]
jne 0x1004e06
mov eax, 0x3f5
push eax
push 0x3f7
push eax
push dword [esp + 0x15c]
call dword [sym.imp.USER32.dll_CheckRadioButton]
mov eax, dword [edi + 8]
mov dword [eax + 8], ebx
mov dword [esp + 0x1c], 1
jmp 0x1004eba
cmp dword [esp + 0x48], 7
jne 0x1004e60
cmp dword [esp + 0x14], 0
jne 0x1004e60
push 1
push dword [esp + 0x2c]
call esi
cmp ebx, dword [edi + 0xc]
jne 0x1004e50
push 0x3f6
push 0x3f7
push 0x3f5
push dword [esp + 0x15c]
call dword [sym.imp.USER32.dll_CheckRadioButton]
mov eax, dword [edi + 8]
mov dword [eax + 0xc], ebx
mov dword [esp + 0x14], 1
jmp 0x1004eba
push 1
push dword [esp + 0x1c]
call esi
lea eax, [esp + 0x78]
push eax
push 0
push 0x143
push dword [esp + 0x1c]
call ebp
push ebx
push eax
push 0x151
push dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
call ebp
cmp ebx, dword [edi + 0xc]
jne 0x1004eba
mov eax, 0x3f7
push eax
push eax
push 0x3f5
push dword [esp + 0x15c]
call dword [sym.imp.USER32.dll_CheckRadioButton]
push 0
push dword [esp + 0x30]
push 0x14e
push dword [esp + 0x1c]
call ebp
inc ebx
cmp ebx, dword [esp + 0x20]
jb 0x1004da8
push 0x3f7
push dword [esp + 0x154]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
jne 0x1004ef1
xor edi, edi
push edi
push edi
push 0x14e
push dword [esp + 0x1c]
call ebp
push edi
push dword [esp + 0x14]
call esi
xor eax, eax
inc eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x138
ret 8
Function at 0x10056c3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 8]
push eax
mov edi, 0x20019
push edi
push 0
push 0x10014a8
push 0x80000001
call esi
mov ebx, eax
test ebx, ebx
jne 0x1005747
cmp dword [ebp + 8], eax
je 0x1005707
lea eax, [ebp - 4]
push eax
push edi
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call esi
mov ebx, eax
jmp 0x100570d
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
test ebx, ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x1005742
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp + 8], 0
mov ebx, eax
je 0x1005742
push dword [ebp - 4]
call esi
push dword [ebp - 8]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14

Function at 0x1005750
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 0xc]
push eax
mov edi, 0x20019
push edi
xor ebx, ebx
push ebx
push 0x10014a8
push 0x80000001
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x10057dc
cmp dword [ebp + 8], ebx
je 0x1005797
lea eax, [ebp - 8]
push eax
push edi
push ebx
push dword [ebp + 8]
push dword [ebp - 0xc]
call esi
mov dword [ebp - 4], eax
jmp 0x100579d
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x10057d7
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x10], ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x10057cd
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
cmp dword [ebp + 8], ebx
je 0x10057d7
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10057e6
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor esi, esi
push esi
lea eax, [ebp - 0xc]
push eax
push esi
mov ebx, 0x20006
push ebx
push esi
push esi
push esi
push 0x10014a8
push 0x80000001
call edi
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x1005881
cmp dword [ebp + 8], esi
je 0x1005835
push esi
lea eax, [ebp - 8]
push eax
push esi
push ebx
push esi
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 0xc]
call edi
mov dword [ebp - 4], eax
jmp 0x100583b
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x100587c
cmp dword [ebp + 0x14], esi
je 0x1005863
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x100586f
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp dword [ebp + 8], esi
mov dword [ebp - 4], eax
je 0x100587c
push dword [ebp - 8]
call edi
push dword [ebp - 0xc]
call edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x10089f5
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x1001650
call fcn.01009acc
mov edi, 0x94
mov eax, edi
call fcn.01009b20
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 [0x100f7e8], ecx
mov eax, dword [esi + 4]
mov dword [0x100f7f4], eax
mov edx, dword [esi + 8]
mov dword [0x100f7f8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x100f7ec], esi
cmp ecx, 2
je 0x1008a55
or esi, 0x8000
mov dword [0x100f7ec], esi
shl eax, 8
add eax, edx
mov dword [0x100f7f0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1008a90
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1008a90
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1008aa8
cmp eax, 0x20b
je 0x1008a95
mov dword [ebp - 0x1c], esi
jmp 0x1008abc
cmp dword [ecx + 0x84], 0xe
jbe 0x1008a90
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x1008ab6
cmp dword [ecx + 0x74], 0xe
jbe 0x1008a90
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.01009a7b
pop ecx
test eax, eax
jne 0x1008ae8
cmp dword [0x100f7d0], 1
jne 0x1008ad5
call fcn.0100928f
push 0x1c
call fcn.010090c6
push 0xff
call fcn.01008f47
pop ecx
pop ecx
mov dword [ebp - 4], esi
call fcn.010098b6
test eax, eax
jge 0x1008afc
push 0x1b
call fcn.010089d0
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10101b0], eax
call fcn.01009790
mov dword [0x100f7c8], eax
call fcn.010096ee
test eax, eax
jge 0x1008b22
push 8
call fcn.010089d0
pop ecx
call fcn.010094a2
test eax, eax
jge 0x1008b33
push 9
call fcn.010089d0
pop ecx
call fcn.01008f77
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x1008b46
push eax
call fcn.010089d0
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.01009439
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x1008b67
movzx eax, word [ebp - 0x34]
jmp 0x1008b6a
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.01004192
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x1008b88
push edi
call fcn.01009086
call fcn.010090a8
jmp 0x1008bba
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.01009b05
ret
Function at 0x10090c6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
cmp edx, dword [eax*8 + 0x100f050]
je 0x10090e6
inc eax
cmp eax, 0x12
jb 0x10090d7
shl eax, 3
cmp edx, dword [eax + 0x100f050]
mov dword [ebp + 8], eax
jne 0x1009284
mov ecx, dword [0x100f7d0]
cmp ecx, 1
je 0x1009259
test ecx, ecx
jne 0x1009118
cmp dword [0x100f020], 1
je 0x1009259
cmp edx, 0xfc
je 0x1009284
and byte [ebp - 8], 0
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1009153
push 5
pop ecx
mov esi, 0x1001dd4
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10c]
lea ebx, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1009162
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x100919a
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100917a
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x1001dd0
push ebx
call fcn.0100a420
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100919f
sub eax, edx
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x100f054]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10091b6
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.01009b20
mov edx, esp
push 6
pop ecx
mov esi, 0x1001db4
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10091e2
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10091ee
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1009207
mov eax, dword [ebp + 8]
mov esi, 0x1001db0
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x100f054]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1009222
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100922e
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1001d88
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0100a31b
add esp, 0xc
jmp 0x1009284
mov ecx, dword [eax + 0x100f054]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1009264
push 0
lea edx, [ebp - 4]
push edx
sub eax, esi
push eax
push ecx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100a31b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x100f978], ebx
push esi
push edi
jne 0x100a39b
push 0x1001e74
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100a3d6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001e68
push edi
call esi
test eax, eax
mov dword [0x100f978], eax
je 0x100a3d6
push 0x1001e58
push edi
call esi
push 0x1001e44
push edi
mov dword [0x100f97c], eax
call esi
cmp dword [0x100f7e8], 2
mov dword [0x100f980], eax
jne 0x100a39b
push 0x1001e28
push edi
call esi
test eax, eax
mov dword [0x100f988], eax
je 0x100a39b
push 0x1001e10
push edi
call esi
mov dword [0x100f984], eax
mov eax, dword [0x100f984]
test eax, eax
je 0x100a3e0
call eax
test eax, eax
je 0x100a3c7
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x100f988]
test eax, eax
je 0x100a3c7
test byte [ebp - 8], 1
jne 0x100a3e0
cmp dword [0x100f7f4], 4
jb 0x100a3da
or byte [ebp + 0x12], 0x20
jmp 0x100a3ff
xor eax, eax
jmp 0x100a40f
or byte [ebp + 0x12], 4
jmp 0x100a3ff
mov eax, dword [0x100f97c]
test eax, eax
je 0x100a3ff
call eax
mov ebx, eax
test ebx, ebx
je 0x100a3ff
mov eax, dword [0x100f980]
test eax, eax
je 0x100a3ff
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x100f978]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100b7b4
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.01009b20
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100b849
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 [0x100f7e8]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x100b849
cmp eax, 1
je 0x100b861
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 0x100b849
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x100b81e
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x100b845
xor eax, eax
inc eax
jmp 0x100b87d
cmp esi, ebx
jae 0x100b84d
xor eax, eax
jmp 0x100b87d
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x100f7e8]
jmp 0x100b863
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 0x100d61d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x1001f00
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100d675
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x1001f3c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100d668
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x100d677
xor eax, eax
pop esi
leave
ret 4
Function at 0x401190
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x180c
call fcn.00407450
lea eax, [esp]
push ebx
push eax
lea ecx, [esp + 0x814]
xor ebx, ebx
push 0x1000
push ecx
mov dword [esp + 0x14], ebx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x4011c4
pop ebx
add esp, 0x180c
ret
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
shr ebp, 2
je 0x40125b
lea edi, [esp + 0x81c]
mov edx, dword [edi]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401240
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push 4
push ecx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x401239
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push 0x800
push edx
push eax
push esi
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x401239
mov ecx, dword [esp + 0x1820]
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00412776
add esp, 8
test eax, eax
je 0x401257
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
add edi, 4
cmp ebx, ebp
jb 0x4011db
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x180c
ret
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x180c
ret
Function at 0x401540
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
test edi, edi
mov dword [esp + 4], 0
mov dword [esp + 8], 0
je 0x401599
mov eax, dword [esp + 0x14]
test eax, eax
je 0x401599
mov ecx, dword [esp + 0x18]
mov edx, dword [eax + 8]
cmp ecx, edx
jbe 0x401599
add eax, 0xc
lea edx, [eax + 0x800]
lea ecx, [eax + 0x400]
push edx
push ecx
push eax
call fcn.00401340
add esp, 0xc
test eax, eax
je 0x401599
mov dword [esp + 4], 1
mov dword [esp + 8], eax
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0xc]
push 8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
add esp, 8
ret

Function at 0x4015c0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x418660]
sub esp, 0x438
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
je 0x401783
cmp dword [esp + 0x444], ebx
je 0x401783
mov esi, dword [esp + 0x448]
cmp esi, ebx
je 0x401783
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x44c]
cmp ecx, eax
jbe 0x401783
cmp eax, 0x418
ja 0x401783
add esi, 0xc
push edi
push esi
mov dword [esp + 0x14], ebx
mov word [esi + 0x206], bx
mov word [esi + 0x40e], bx
mov edi, dword [0x418660]
mov dword [esp + 0x18], ebx
mov ecx, edi
mov dword [esp + 0x10], ebx
call fcn.00403ad0
mov ecx, dword [edi + 4]
mov dword [esp + 0x28], eax
cmp eax, ecx
je 0x40165e
add eax, 0xc
lea ecx, [edi + 1]
push eax
push esi
call fcn.00401790
test al, al
jne 0x40165e
lea eax, [esp + 0x28]
jmp 0x401669
mov eax, dword [edi + 4]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov edi, dword [eax]
mov eax, dword [0x418660]
cmp edi, dword [eax + 4]
je 0x401711
mov eax, dword [edi + 0x420]
cmp eax, ebx
je 0x401763
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4016bc
mov ecx, dword [edi + 0x420]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x420], ebx
mov dword [edi + 0x41c], ebx
mov dword [esp + 0xc], 1
jmp 0x401763
mov edx, dword [esi + 0x410]
mov dword [esp + 0xc], 2
push edx
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x4016fe
mov ecx, dword [edi + 0x420]
push ebx
push ebx
lea eax, [esp + 0x18]
push 0x1f0fff
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov edx, dword [edi + 0x41c]
push esi
mov dword [esp + 0x18], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401763
mov edx, dword [esp + 0x24]
mov ecx, 0x104
lea edi, [esp + 0x2c]
push ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x444], edx
mov dword [esp + 0x440], ecx
lea ecx, [esp + 0x30]
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, eax
xor ebp, ebp
call fcn.004033b0
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x41c], ebx
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0x420], ebp
mov dword [esp + 0x10], 1
pop ebp
mov ecx, dword [esp + 0x448]
lea edx, [esp + 0x20]
push ebx
push edx
lea eax, [esp + 0x14]
push 0xc
push eax
push ecx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
add esp, 0x438
ret
Function at 0x4017e0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x418660]
push ebx
xor ebx, ebx
push ebp
cmp eax, ebx
je 0x401918
mov ebp, dword [esp + 0x10]
cmp ebp, ebx
je 0x401918
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x401918
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x18]
cmp edx, ecx
jbe 0x401918
cmp ecx, 0x418
ja 0x401918
push esi
lea esi, [eax + 0xc]
push edi
push esi
mov word [esi + 0x206], bx
mov word [esi + 0x40e], bx
mov edi, dword [0x418660]
mov dword [esp + 0x1c], ebx
mov ecx, edi
call fcn.00403ad0
mov ecx, dword [edi + 4]
mov dword [esp + 0x1c], eax
cmp eax, ecx
je 0x40186c
add eax, 0xc
lea ecx, [edi + 1]
push eax
push esi
call fcn.00401790
test al, al
jne 0x40186c
lea eax, [esp + 0x1c]
jmp 0x401877
mov eax, dword [edi + 4]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
mov ecx, dword [0x418660]
mov edi, dword [eax]
cmp edi, dword [ecx + 4]
je 0x4018fe
mov eax, dword [edi + 0x420]
cmp eax, ebx
jne 0x4018c5
mov eax, dword [esi + 0x410]
cmp eax, ebx
je 0x4018ed
push eax
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
je 0x4018ed
mov dword [edi + 0x420], eax
mov edx, dword [esi + 0x410]
mov dword [edi + 0x41c], edx
mov dword [esp + 0x18], 1
jmp 0x4018fe
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4018fe
mov eax, dword [edi + 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x420], ebx
mov dword [edi + 0x41c], ebx
lea ecx, [esp + 0x1c]
push edi
push ecx
mov ecx, dword [0x418660]
call fcn.00402f50
lea edx, [esp + 0x10]
push ebx
push edx
lea eax, [esp + 0x20]
push 4
push eax
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x401920
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov ecx, dword [0x418660]
push esi
test ecx, ecx
mov dword [esp + 4], 0
je 0x401a78
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401a78
mov eax, dword [esp + 0x14]
test eax, eax
je 0x401a78
mov edx, dword [esp + 0x18]
mov esi, dword [eax + 8]
cmp edx, esi
jbe 0x401a78
push ebx
mov ebx, dword [ecx + 4]
mov dword [esp + 0x18], ebx
mov esi, dword [ebx]
cmp esi, ebx
je 0x401a56
mov ecx, dword [0x418664]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov eax, dword [esi + 0x420]
lea edi, [esi + 0x420]
test eax, eax
je 0x4019ee
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4019e8
mov edi, dword [esp + 0x10]
mov ecx, dword [0x418664]
inc edi
mov dword [esp + 0x10], edi
mov eax, dword [esi + 8]
cmp eax, ecx
je 0x4019cd
mov esi, eax
mov eax, dword [esi]
cmp eax, ecx
je 0x401a4c
mov esi, eax
mov eax, dword [esi]
cmp eax, ecx
jne 0x4019c3
jmp 0x401a4c
mov eax, dword [esi + 4]
cmp esi, dword [eax + 8]
jne 0x4019df
mov esi, eax
mov eax, dword [eax + 4]
cmp esi, dword [eax + 8]
je 0x4019d5
cmp dword [esi + 8], eax
je 0x401a4c
mov esi, eax
jmp 0x401a4c
mov ecx, dword [0x418664]
mov eax, dword [esi + 8]
mov ebx, esi
cmp eax, ecx
je 0x401a09
mov esi, eax
mov eax, dword [esi]
cmp eax, ecx
je 0x401a22
mov esi, eax
mov eax, dword [esi]
cmp eax, ecx
jne 0x4019ff
jmp 0x401a22
mov eax, dword [esi + 4]
cmp esi, dword [eax + 8]
jne 0x401a1b
mov esi, eax
mov eax, dword [eax + 4]
cmp esi, dword [eax + 8]
je 0x401a11
cmp dword [esi + 8], eax
je 0x401a22
mov esi, eax
mov eax, dword [edi]
test eax, eax
je 0x401a31
push eax
call ebp
mov dword [edi], 0
mov ecx, dword [0x418660]
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00402f50
mov ecx, dword [0x418664]
mov ebx, dword [esp + 0x20]
cmp esi, ebx
jne 0x401981
pop edi
pop ebp
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push 0
push ecx
lea edx, [esp + 0x10]
push 4
push edx
push eax
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
add esp, 8
ret