joyce8/EMBER2024-capa huggingface dataset:
Function at 0x80ebb0
Capabilities:
Accept command line arguments
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0xb9d820]
sub esp, 0x434
push ebx
push ebp
push esi
mov esi, dword [0x81d884]
push edi
shr eax, 3
xor edi, edi
cmp eax, edi
jbe 0x80ed9f
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
jmp 0x80ebe6
mov esi, dword [esp + 0x20]
xor edi, edi
cmp dword [0xb9d820], 0x1c
jne 0x80ebfd
lea eax, [esp + 0x38]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [0x814700]
mov ebx, dword [0x814708]
mov ebp, dword [0x81470c]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x814704]
mov dword [esp + 0x18], eax
mov esi, 0xc6ef3720
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 0x20
jmp 0x80ec46
mov eax, dword [esp + 0x18]
xor edi, edi
mov edx, eax
shr edx, 5
add edx, ebp
mov ecx, eax
shl ecx, 4
mov dword [esp + 0x1c], edx
add ecx, ebx
lea edx, [esi + eax]
xor ecx, edx
mov dword [esp + 0x10], ecx
mov dword [0xb9c7a4], edi
mov eax, dword [esp + 0x1c]
add dword [0xb9c7a4], eax
mov eax, dword [0xb9c7a4]
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x34]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
shl edx, 4
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x30]
add dword [esp + 0x10], eax
cmp dword [0xb9d820], 0x1be
mov eax, dword [esp + 0x14]
lea edi, [esi + eax]
jne 0x80ecdd
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov eax, dword [esp + 0x14]
shr eax, 5
add eax, dword [esp + 0x2c]
cmp dword [0xb9d820], 0x979
mov dword [0xb9c7a8], 0xff6b3619
mov dword [0xb9c7ac], 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x80ed17
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
xor dword [esp + 0x10], edi
mov eax, dword [esp + 0x1c]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x18], eax
mov eax, dword [0xb9d820]
cmp eax, 0x93
je 0x80ed3d
add esi, 0x61c88647
dec dword [esp + 0x28]
jne 0x80ec40
cmp eax, 0x8d4
jne 0x80ed54
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [esi], edx
mov dword [esi + 4], eax
cmp dword [0xb9d820], 0x17
jne 0x80ed8e
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea ecx, [esp + 0x40]
push ecx
push 0x4040f0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add esi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x20], esi
jne 0x80ebe0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x434
ret
Function at 0x401700
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
ret

Function at 0x401770
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
call fcn.00401700
mov dword [ebp - 8], eax
jmp 0x401788
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp dword [edx + 8], 0
je 0x4018c6
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.00401710
add esp, 4
movzx edx, al
test edx, edx
jne 0x4017ad
jmp 0x401780
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x4017be
jmp 0x401780
mov edx, dword [ebp - 4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x4017d4
jmp 0x401780
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp dword [ecx], 0x4550
je 0x4017ed
jmp 0x401780
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + eax + 0x78], 0
jne 0x401804
jmp 0x401780
mov edx, dword [ebp - 4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x14], ecx
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
add edx, dword [ecx + eax + 0x78]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x24], 0
je 0x401861
cmp dword [ebp - 0x1c], 0
je 0x401861
cmp dword [ebp - 0x20], 0
jne 0x401866
jmp 0x401780
mov dword [ebp - 0xc], 0
jmp 0x401878
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx + 0x18]
jae 0x4018c1
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
add edx, dword [ecx + eax*4]
push edx
call fcn.004016c0
add esp, 4
xor eax, 0x102e824f
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp + 8]
jne 0x4018bf
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
movzx eax, word [edx + ecx*2]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 4]
add edx, dword [ecx + eax*4]
mov eax, edx
jmp 0x4018c8
jmp 0x40186f
jmp 0x401780
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4033a0
Capabilities:
Create http request
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x43c070]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00403500
add esp, 8
movzx edx, byte [ebp - 6]
cmp edx, 2
jne 0x4033e0
mov dword [ebp - 0x30], 0x800000
jmp 0x4033e7
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.004036c0
add esp, 4
push 0
push 0
push 0
mov edx, dword [ebp - 0x2c]
push edx
push 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4034d1
push 0
mov eax, dword [ebp - 0x34]
or eax, 0x4000000
or eax, 0x80000000
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4034c7
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x4034a9
cmp dword [ebp - 0x18], 0
je 0x4034a9
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.00411e40
add esp, 8
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x18], 0
jne 0x40344e
cmp dword [ebp + 0xc], 0
je 0x4034bd
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x20], 0
jne 0x4034e9
cmp dword [ebp - 0x2c], 1
je 0x4034e9
mov dword [ebp - 0x2c], 1
jmp 0x4033f9
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414364
mov esp, ebp
pop ebp
ret
Function at 0x403500
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x43c070]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x3c
lea eax, [ebp - 0x40]
push eax
call fcn.00411f30
add esp, 8
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x10], 1
mov dword [ebp - 8], 1
lea ecx, [ebp - 0x40]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00411f50
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x4036af
push 0x10
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00411f30
add esp, 8
mov edx, dword [ebp - 0x2c]
lea eax, [edx + edx + 2]
push eax
call fcn.00411e20
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
je 0x4036af
cmp dword [ebp - 0x30], 0
je 0x4035ac
mov eax, dword [ebp - 0x2c]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call fcn.00411eb0
add esp, 0xc
cmp dword [ebp - 0x10], 0
jbe 0x4035d1
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx]
cmp edx, 0x2f
jne 0x4035d1
mov eax, dword [ebp - 0x10]
sub eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
add ecx, 2
mov dword [ebp - 0x14], ecx
jmp 0x4035ac
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
lea ecx, [eax + edx + 1]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
lea eax, [edx + edx + 2]
push eax
call fcn.00411e20
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx + 4], 0
je 0x40366b
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov edx, 0x2f
mov word [ecx + eax], dx
cmp dword [ebp - 0x14], 0
je 0x403636
mov eax, dword [ebp - 0x10]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
add eax, 2
push eax
call fcn.00411eb0
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x40365c
mov ecx, dword [ebp - 8]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x10]
lea eax, [ecx + edx*2 + 2]
push eax
call fcn.00411eb0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov word [edx + ecx*2], ax
mov edx, dword [ebp - 0x10]
add edx, 1
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], edx
mov ecx, dword [ebp + 0xc]
mov dx, word [ebp - 0x28]
mov word [ecx + 0xc], dx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 3
je 0x403696
cmp dword [ebp - 0x48], 4
je 0x40369f
jmp 0x4036a8
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0xe], 1
jmp 0x4036af
mov edx, dword [ebp + 0xc]
mov byte [edx + 0xe], 2
jmp 0x4036af
mov eax, dword [ebp + 0xc]
mov byte [eax + 0xe], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414364
mov esp, ebp
pop ebp
ret
Function at 0x4036f0
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x43c070]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
call fcn.00411e20
add esp, 4
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
je 0x403796
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str.programdata
lea ecx, [ebp - 0x244]
call fcn.0040fbf0
mov ecx, eax
call fcn.0040e930
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x403787
mov ecx, dword [ebp - 0x210]
push ecx
push 0
push 0x439160
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x403787
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp - 0x210]
jmp 0x403798
mov edx, dword [ebp - 0x210]
push edx
call fcn.00411e90
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414364
mov esp, ebp
pop ebp
ret

Function at 0x4037b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x43c070]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 9], 0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x40381b
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403811
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x10]
jne 0x403811
mov byte [ebp - 9], 1
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 9]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414364
mov esp, ebp
pop ebp
ret

Function at 0x403830
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
mov eax, dword [0x43c070]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4038e4
lea ecx, [ebp - 0x20c]
push ecx
push str._c_ping_127.0.0.1__del___s_____NUL
lea ecx, [ebp - 0x4d0]
call fcn.0040f240
mov ecx, eax
call fcn.0040f1d0
push eax
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str.ComSpec
lea ecx, [ebp - 0x438]
call fcn.0040efb0
mov ecx, eax
call fcn.0040ef40
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4038e4
push 0
push 0
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x20c]
push edx
push 0
push 0
call dword [0x492450]
test eax, eax
je 0x4038e4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414364
mov esp, ebp
pop ebp
ret
Function at 0x403900
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
movzx edx, word [ecx]
cmp edx, 0x5a4d
jne 0x403931
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
and ecx, 0x80000007
jns 0x40392d
dec ecx
or ecx, 0xfffffff8
inc ecx
test ecx, ecx
je 0x403935
xor al, al
jmp 0x40398b
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dx, word [ecx + 4]
mov word [ebp - 4], dx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0x4550
jne 0x403985
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 6]
test edx, edx
je 0x403985
movzx eax, word [ebp - 4]
cmp eax, 0x14c
je 0x403989
movzx ecx, word [ebp - 4]
cmp ecx, 0x200
je 0x403989
movzx edx, word [ebp - 4]
cmp edx, 0x8664
je 0x403989
xor al, al
jmp 0x40398b
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x403bd0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
and ecx, 0x10
jne 0x403bfa
cmp dword [ebp - 4], 0xffffffff
je 0x403bfa
mov dword [ebp - 8], 1
jmp 0x403c01
mov dword [ebp - 8], 0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x403c10
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x43c070]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x238], 0xffffffff
push 0x22c
push 0
lea eax, [ebp - 0x230]
push eax
call fcn.004171c0
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0xffffffff
jne 0x403c6e
or eax, 0xffffffff
jmp 0x403d14
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x403caf
mov eax, dword [ebp - 0x234]
push eax
push 0x439204
call fcn.004016c0
add esp, 4
xor eax, 0x102e824f
push eax
call fcn.00401770
add esp, 4
call eax
or eax, 0xffffffff
jmp 0x403d14
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x403cd2
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x238], eax
jmp 0x403cea
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x403caf
mov eax, dword [ebp - 0x234]
push eax
push 0x439204
call fcn.004016c0
add esp, 4
xor eax, 0x102e824f
push eax
call fcn.00401770
add esp, 4
call eax
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414364
mov esp, ebp
pop ebp
ret
Function at 0x403d90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x43c070]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403de5
cmp dword [ebp - 8], 0
je 0x403de5
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414364
mov esp, ebp
pop ebp
ret

Function at 0x4040a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a0
mov eax, dword [0x43c070]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str.programdata
lea ecx, [ebp - 0x448]
call fcn.0040e9a0
mov ecx, eax
call fcn.0040e930
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push str.contraindications.jpg
lea ecx, [ebp - 0x4a0]
call fcn.0040e3e0
mov ecx, eax
call fcn.0040e390
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x25cc9
push 0x46b238
lea eax, [ebp - 0x414]
push eax
call fcn.004037b0
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414364
mov esp, ebp
pop ebp
ret
Function at 0x411850
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov dword [eax + edx + 8], 0x67452301
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
mov dword [edx + ecx + 8], 0xefcdab89
mov eax, 4
shl eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + eax + 8], 0x98badcfe
mov edx, 4
imul eax, edx, 3
mov ecx, dword [ebp + 8]
mov dword [ecx + eax + 8], 0x10325476
pop ebp
ret

Function at 0x41fde8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041fc5e
Function at 0x40619b
Capabilities:
Create pipe
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4dcc58]
mov ecx, dword [0x4dbbac]
sub esp, 0xe84
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x40629e
mov ebx, ecx
mov dword [ebp - 8], eax
cmp dword [0x4dcc58], 0x959
jne 0x40628c
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
push esi
push esi
lea eax, [ebp - 0x680]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x280]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 0x405910
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x405968
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0xe80]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InterlockedFlushSList]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
call fcn.00405fa8
add ebx, 8
dec dword [ebp - 8]
jne 0x4061c4
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4088ab
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b718]
jne 0x4088b5
repz ret
jmp fcn.0041014c

Function at 0x411ec7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040a02d
and dword [ebp - 4], 0
cmp dword [0x42d7a0], 0
mov ebx, eax
jne 0x411f78
push 0x40391c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x412029
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403910
push edi
call esi
test eax, eax
je 0x412029
push eax
call fcn.00409fbb
mov dword [esp], 0x403900
push edi
mov dword [0x42d7a0], eax
call esi
push eax
call fcn.00409fbb
mov dword [esp], 0x4038ec
push edi
mov dword [0x42d7a4], eax
call esi
push eax
call fcn.00409fbb
mov dword [esp], 0x4038d0
push edi
mov dword [0x42d7a8], eax
call esi
push eax
call fcn.00409fbb
pop ecx
mov dword [0x42d7b0], eax
test eax, eax
je 0x411f78
push 0x4038b8
push edi
call esi
push eax
call fcn.00409fbb
pop ecx
mov dword [0x42d7ac], eax
mov eax, dword [0x42d7ac]
cmp eax, ebx
je 0x411fd0
cmp dword [0x42d7b0], ebx
je 0x411fd0
push eax
call fcn.0040a036
push dword [0x42d7b0]
mov esi, eax
call fcn.0040a036
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x411fd0
test edi, edi
je 0x411fd0
call esi
test eax, eax
je 0x411fc7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x411fc7
test byte [ebp - 0xc], 1
jne 0x411fd0
or dword [ebp + 0x10], 0x200000
jmp 0x412009
mov eax, dword [0x42d7a4]
cmp eax, ebx
je 0x412009
push eax
call fcn.0040a036
pop ecx
test eax, eax
je 0x412009
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x412009
mov eax, dword [0x42d7a8]
cmp eax, ebx
je 0x412009
push eax
call fcn.0040a036
pop ecx
test eax, eax
je 0x412009
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42d7a0]
call fcn.0040a036
pop ecx
test eax, eax
je 0x412029
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41202b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x840370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x84038e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x869074
push ecx
mov edi, eax
call fcn.00854198
mov esi, eax
add esp, 8
test esi, esi
jne 0x8403cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0085402e
push esi
call fcn.00853fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret