joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436470
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x477438
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x4364a9
inc eax
mov dword [esi + 0x10], eax
jmp 0x4365bc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4364bd
mov eax, 0xffffffc7
jmp 0x4365be
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x4364ce
cmp dword [esi + 8], eax
jne 0x4364bd
cmp dword [esi + 8], eax
jne 0x4364e7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x4364e7
mov eax, 0xffffffc7
jmp 0x4365be
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4364fb
push eax
mov ecx, ebx
call fcn.00435ca0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.0040a340
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43652c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.0040a360
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00435410
test eax, eax
mov dword [esp + 0x38], eax
je 0x43655f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x47b4a0
call fcn.0040a540
mov eax, dword [esp + 0x38]
jmp 0x4365be
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004362d0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4365a3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004362f0
mov esi, eax
test esi, esi
jne 0x4365d3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004362d0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x436575
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x47b4a0
call fcn.0040a540
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x47b4a0
call fcn.0040a540
mov eax, esi
jmp 0x4365be

Function at 0x439690
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4396f0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4396f0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4396f0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4396f0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x439730
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x43f840
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x477a68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0046ee21
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043f1e0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0046ed4f
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0046b536
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0046b536
push 1
push 0
push 0
mov ecx, esi
call fcn.0046b4de
push 1
push 0
push 1
mov ecx, esi
call fcn.0046b4de
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046ee93
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43f9c0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x477a88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0046ee21
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043f1e0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0046ed4f
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43fa84
cmp dword [esp + 0x40], 1
jne 0x43fa82
cmp ecx, eax
jge 0x43fa84
mov eax, ecx
cmp eax, 0xc8
jge 0x43fa90
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043f840
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046ee93
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x440210
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x477af3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00469956
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046f0c9
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00470621
test eax, eax
je 0x44032c
mov ecx, dword [esp + 0x3c]
call fcn.0046f0f6
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4402f0
push edi
mov ecx, esi
call fcn.0046c6ba
mov ecx, esi
call fcn.00440490
cmp dword [esp + 0x38], 1
jne 0x440325
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046c824
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x442d40
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x442d73
push esi
call fcn.00445e30
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x442d6c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x442df9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x442de2
mov eax, dword [esi + 8]
test eax, eax
je 0x442d97
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x442dde
cmp eax, 2
je 0x442de2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x442d8a
cmp eax, 3
je 0x442dbd
cmp eax, 1
jne 0x442d8a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x442d8a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x442d8a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00442e20
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x442e08
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00442e20
add esp, 4
pop esi
ret

Function at 0x46a74c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46a784
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00468803
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004687db
jmp 0x46a790
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46be3e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46be80
call fcn.00471b2d
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46be80
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46be77
xor eax, eax
jmp 0x46be88
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046be8e
pop edi
pop esi
pop ebx
ret 4

Function at 0x47205d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47208b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4720a9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00471fc3
jmp 0x4720a9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4720a9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00471fc3
test edi, edi
mov eax, edi
jne 0x472093
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401740
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4020f8
push 0x401940
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x4032c8], 0xffffffff
mov dword [0x4032cc], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4032c0]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x4032bc]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x4032d0], ecx
call fcn.00401930
mov eax, dword [0x4032a4]
test eax, eax
jne 0x4017d1
push 0x401920
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00401900
push 0x40300c
push 0x403008
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x4032b8]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x4032b4]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x403004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x4018df
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x401845
cmp al, 0x22
jne 0x401837
cmp byte [esi], 0x22
jne 0x40184e
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x40185e
cmp al, 0x20
ja 0x40185e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x40184e
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40187f
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x401884
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x4018c4
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40184e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x4018df

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

Disassembly:
pushal
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, reloc.user32.dll_MoveWindow
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x402630
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.004026a0
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
mov eax, dword [ebp - 8]
leave
ret 4

Function at 0x4017f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40408e], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.Monster
push str.Uhhh
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401838
xor eax, eax
jmp 0x401853
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x401a7d
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x401aa6
mov al, byte [esi + 1]
inc esi
test al, al
je 0x401a9e
cmp al, 0x22
jne 0x401a92
cmp byte [esi], 0x22
jne 0x401ab0
inc esi
jmp 0x401ab0
cmp al, 0x20
jle 0x401ab0
inc esi
cmp byte [esi], 0x20
jg 0x401aaa
mov al, byte [esi]
test al, al
je 0x401aba
cmp al, 0x20
jle 0x401aa3
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402e16
push 0x404004
push section..data
call fcn.00402dfc
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x401aea
movzx eax, word [ebp - 0x14]
jmp 0x401aed
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.00401130
mov esi, eax
call fcn.00402e2e
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x422e84
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x422e8a
ret
Function at 0x401820
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4283f1
push eax
mov eax, 0x188c
mov dword fs:[0], esp
call fcn.0040d8b0
mov eax, dword [0x434900]
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov ecx, 0x5db
xor eax, eax
lea edi, [esp + 0x12d]
mov byte [esp + 0x12c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], bl
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18b8]
lea edx, [esp + 0x12c]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x18b4]
push ecx
push 0x1770
push edx
push eax
mov dword [esp + 0x18b4], ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
xor eax, eax
cmp byte [esp + eax + 0x12c], bl
jne 0x4018be
cmp byte [esp + eax + 0x12d], bl
je 0x4018c6
inc eax
cmp eax, 0x1770
jl 0x4018ac
mov esi, dword [esp + 0x18ac]
lea edi, [eax + 1]
push 0xffffffffffffffff
push ebx
mov ecx, esi
mov dword [esp + 0x28], edi
call fcn.0041c51f
mov ebp, dword [esp + 0x18b0]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.0041c51f
xor eax, eax
cmp edi, ebx
mov dword [esp + 0x18], eax
jle 0x4019df
mov ecx, dword [esp + 0x14]
mov al, byte [esp + eax + 0x12c]
mov byte [esp + ecx + 0x28], al
inc ecx
cmp al, bl
mov dword [esp + 0x14], ecx
jne 0x4019ca
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x14]
call fcn.00420bb1
mov edx, dword [esp + 0x10]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov eax, dword [edx - 8]
mov dword [esp + 0x14], ebx
cmp eax, ebx
je 0x4019ca
push 0x434110
lea ecx, [esp + 0x14]
call fcn.0041bd95
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.0041bcfb
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x18ac], 1
call fcn.0041c668
lea ecx, [esp + 0x1c]
mov byte [esp + 0x18a4], bl
call fcn.00420a28
push 0x434110
lea ecx, [esp + 0x14]
call fcn.0041bd95
inc eax
lea ecx, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0041bc42
mov ecx, dword [ebp + 8]
push eax
push ecx
mov ecx, ebp
mov byte [esp + 0x18ac], 2
call fcn.0041c668
lea ecx, [esp + 0x24]
mov byte [esp + 0x18a4], bl
call fcn.00420a28
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x4018fd
mov esi, dword [esi + 8]
lea ecx, [esp + 0x10]
mov dword [esp + 0x18a4], 0xffffffff
call fcn.00420a28
mov ecx, dword [esp + 0x189c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1898
ret
Function at 0x401a20
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x428410
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
push edi
mov dword [esp + 0x24], 0
call fcn.0042535c
mov esi, dword [eax + 0xc]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
and ecx, 0xffff
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x401a8d
lea ecx, [esp + 0x34]
mov dword [esp + 0x24], 0xffffffff
call fcn.00420a28
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x401aca
lea ecx, [esp + 0x34]
mov dword [esp + 0x24], 0xffffffff
call fcn.00420a28
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
lea ecx, [esp + 0xc]
call fcn.004216af
mov edx, dword [esp + 0x34]
push 0
push 0x1001
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call fcn.004217c1
push ebp
push esi
lea ecx, [esp + 0x14]
call fcn.00421918
lea ecx, [esp + 0xc]
call fcn.004219dc
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call fcn.00421704
lea ecx, [esp + 0x34]
mov dword [esp + 0x24], 0xffffffff
call fcn.00420a28
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x401b40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebp
push esi
push edi
call fcn.0042535c
mov esi, dword [eax + 0xc]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
and ecx, 0xffff
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x401b6e
pop edi
pop esi
pop ebp
pop ecx
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x401b8b
pop edi
pop esi
pop ebp
pop ecx
ret
push ebx
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
lea eax, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [esp + 0x10]
push 0
push ecx
call fcn.00405210
mov edx, dword [esp + 0x28]
add esp, 8
push ebx
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret
Function at 0x401d70
Capabilities:
Access peb ldr_data
Create process on windows
Get common file path
Self delete
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x428520
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, dword [esp + 0x28]
push 0x100
push 0x100
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0
call fcn.00420e31
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
call fcn.00420e80
mov eax, dword [0x434900]
mov dword [esp + 4], eax
push 0x100
lea ecx, [esp + 8]
mov byte [esp + 0x24], 1
call fcn.00420e31
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call fcn.00420e80
lea ecx, [esp + 4]
push str.yxdown.bat
lea edx, [esp + 0xc]
push ecx
push edx
call fcn.00420cbd
mov eax, dword [eax]
push 0x434180
push eax
call fcn.0040da5d
add esp, 8
lea ecx, [esp + 8]
mov esi, eax
call fcn.00420a28
test esi, esi
je 0x401f60
push esi
push str._echo_off_n
call fcn.0040d9de
push esi
push str.ping__n_2_127.0.0.1_nul_n
call fcn.0040d9de
add esp, 0x10
lea eax, [esp + 0x28]
lea ecx, [esp + 0xc]
push eax
push str.del__f__q
push ecx
call fcn.00420d31
push str.yxdownmodule.exe_n
lea edx, [esp + 0xc]
push eax
push edx
mov byte [esp + 0x2c], 2
call fcn.00420cbd
mov eax, dword [eax]
push esi
push eax
call fcn.0040d9de
add esp, 8
lea ecx, [esp + 8]
call fcn.00420a28
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 1
call fcn.00420a28
lea eax, [esp + 0x28]
lea ecx, [esp + 0x14]
push eax
push str.move
push ecx
call fcn.00420d31
push str.yxdownupdate.exe
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x2c], 3
call fcn.00420cbd
lea ecx, [esp + 0x28]
lea edx, [esp + 8]
push ecx
push eax
push edx
mov byte [esp + 0x2c], 4
call fcn.00420c57
push str.yxdownmodule.exe_n
push eax
lea eax, [esp + 0x14]
mov byte [esp + 0x28], 5
push eax
call fcn.00420cbd
mov eax, dword [eax]
push esi
push eax
call fcn.0040d9de
add esp, 8
lea ecx, [esp + 0xc]
call fcn.00420a28
lea ecx, [esp + 8]
mov byte [esp + 0x20], 4
call fcn.00420a28
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 3
call fcn.00420a28
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 1
call fcn.00420a28
push esi
push str.del__0
call fcn.0040d9de
push esi
call fcn.0040d961
add esp, 0xc
push str.yxdown.bat
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.00420cbd
mov eax, dword [eax]
push 0
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x14]
call fcn.00420a28
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]