joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440def
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [0x4a86a4]
cmp eax, dword [ecx + esi*4]
cmp dword [eax], 0
cmp byte [eax], al
cmp byte [eax], al
je 0x440e1a
mov eax, dword [eax]
cmp byte [eax + 0x13d88], bl
jne 0x440e1a
cmp eax, dword [ecx + esi*4]
mov ecx, dword [eax]
mov edx, dword [ecx]
add al, dh
push edx
call dword [0x482628]
test eax, 0x20000
jne 0x440e1b
dec esi
cmp esi, 3
jge 0x440de5
inc esi
inc edi
cmp edi, dword [0x4a86b4]
jg 0x440e5d
nop
mov ecx, dword [0x4a86a4]
cmp eax, dword [ecx + edi*4]
cmp dword [eax], 0
je 0x440e5d
mov eax, dword [eax]
cmp byte [eax + 0x13d88], bl
jne 0x440e5d
cmp eax, dword [ecx + edi*4]
mov ecx, dword [eax]
mov edx, dword [ecx]
add al, dh
push edx
call dword [0x482628]
test eax, 0x20000
jne 0x440e5d
inc edi
cmp edi, dword [0x4a86b4]
jle 0x440e25
dec edi
mov ebx, esi
cmp esi, edi
jg 0x440e86
nop
mov eax, dword [0x4a86a4]
mov ecx, dword [eax + ebx*4]
mov edx, dword [ecx]
mov eax, dword [edx]
add byte [eax], al
call 0x13576cc
inc eax
xor edx, dword [eax - 1]
adc eax, 0x482654
inc ebx
cmp ebx, edi
jle 0x440e65
cmp dword [ebp + 0xc], 1
pop ebx
jne 0x440eb3
mov edx, dword [0x4a86a4]
cmp ecx, dword [ebp + 8]
mov eax, dword [edx + ecx*4]
mov ecx, dword [eax]
mov edx, dword [ecx]
add byte [eax], al
call 0x13576a5
inc eax
xor edx, dword [edx - 1]
adc eax, 0x482654
pop edi
pop esi
pop ebp
ret 8
mov eax, dword [0x4a86a4]
mov eax, dword [eax + esi*4]
mov ecx, dword [eax]
mov edx, dword [ecx]
add al, dh
push edx
call dword [0x482628]
or eax, 0x1ff00
push eax
mov eax, dword [0x4a86a4]
mov ecx, dword [eax + esi*4]
mov edx, dword [ecx]
mov eax, dword [edx]
add al, dh
push eax
call dword [0x4824d8]
pop edi
pop esi
pop ebp
ret 8

Function at 0x442e95
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov ecx, dword [esi + 4]
mov edi, dword [esi]
mov al, cl
and al, 1
movzx eax, al
neg eax
sbb eax, eax
xor edi, ecx
and edi, 0x7ffffffe
xor edi, dword [esi]
and eax, 0x9908b0df
shr edi, 1
xor edi, dword [esi - 0x38c]
add esi, 4
xor edi, eax
dec edx
mov dword [esi - 4], edi
jne 0x442e89
mov ecx, dword [0x4a7540]
mov dl, cl
and dl, 1
movzx eax, dl
mov edx, dword [esi]
neg eax
sbb eax, eax
xor edx, ecx
and edx, 0x7ffffffe
xor edx, dword [esi]
and eax, 0x9908b0df
shr edx, 1
xor edx, dword [esi - 0x38c]
pop edi
xor edx, eax
mov dword [esi], edx
pop esi
ret
Function at 0x4534f0
Capabilities:
Encode data using xor

Disassembly:
add byte [eax + 0x74], dl
pop es
mov eax, dword [esi]
test al, al
je 0x45352f
mov esi, dword [ebx]
rol byte [eax + eax*8 + 0x68b3574], 0x84
rol byte [ebx + 0x758b0c45], 8
push esi
call 0x6045024b
pop esi
pop ebx
mov eax, 0x508b1574
adc ah, ah
add byte [eax], dl
push edx
inc eax
adc al, 0x81
loop 0x453522
dec dword [ecx - 0x3fee7678]
mov ebx, 0xc0335653
mov ecx, 0x55000c00
mov dword [ecx], edx
sar byte [ebx - 0x3fcca9ad], 0xb9
add byte [eax + eax], cl
or al, 0
push ebp
mov ebp, esp
or dword [ebp + 0x45], 8
adc eax, 0x546a26cc
lea ecx, [ebp - 0xc]
push ecx
mov eax, dword [ecx + 4]
mov dword [ebx + 0x794d8b4e], ecx
pop es
xor byte [ebp + 0x75], al
push es
xor dword [ebp + 9], 0xffffff8b
add dword [eax + 0x56], edx
mov ecx, esi
call 0x8231c062
jge 0x453525
test al, al
je 0x453598
mov edx, dword [esi - 0x75]
int1
push edi
push esi
mov dword [esi], 0x7080b8
call 0x8231b65a
jge 0x453586
sub al, 0x8b
cmp eax, 0x48230c
add byte [eax], al
add byte [eax + 0x4e], ch
xor byte [ecx - 0x3e], dl
or byte [eax], al
push esi
or byte [edx - 0x18], dl
insb byte es:[edi], dx
fdiv st(3), st(0)
jmp 0x453592
add byte [esi + 8], dl
push edx
call 0xec4111fb
add dh, byte [ebx]
ror byte [ebp + 0x8001446], 0x56
lea eax, [esi + 0x14]
add byte [eax], cl
push esi
and byte [edx], ah
xor al, 0x89
inc ebp
mov dword [esi], 0x7080bc
jne 0x4535b8
mov eax, dword [eax + edx*2]
or byte [edi + 0x56], dl
call 0xc7897c3b
push es
mov word [eax + 0x46c60070], es
or byte [ecx], al
ror byte [ecx], 1
add byte [eax], dl
push eax
call 0xec4111fb
add dh, byte [ebx]
rol bh, 0x46
inc esp
add byte [eax], al
add byte [edx - 0xeaf17aa], cl
std
dec dword [ebx + 0x8e2c146]
add eax, edx
or dword [eax], eax
adc byte [eax - 0x18], dl
cmp ah, bl
sti
jmp 0x4535c6
mov dword [esi + 0x44], 0x8a000000
push esi
call 0x432723
mov eax, dword [esi - 0x3f]
loop 0x4535e0
je 0x4535f8
mov edx, dword [esi + 0xc]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esi + 0x10]
or byte [edx + 0x50], dl
mov eax, dword [ecx + 0x50]
call eax
mov dword [esi + 0x10], 0x9758306
mov eax, dword [esi + 0x28]
mov ecx, dword [ebp + 0x74]
invd
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov dword [esi + 0x28], 0x4febb
push ebp
invalid

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
mov ecx, 0x3d215a65
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x67fe4778
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4018b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473930
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x401922
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x401922
mov byte [ebp - 0x11], 0
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
mov dword [edx + 4], 0
jmp 0x40193f
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov cl, 0x20
call fcn.00439620
mov ecx, dword [ebp - 0x18]
xor esi, esi
or eax, ecx
or edx, esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
jmp 0x40194b
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401f60
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47396d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1018
call fcn.004392b0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xffffffff
mov dword [ebp - 4], 0
push 0
push 0x8000027
push 3
push 0
push 1
push closesocket
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x401fda
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
jmp 0x402071
mov dword [ebp - 0x1028], 0x4940d8
push 0
lea edx, [ebp - 0x1024]
push edx
push 0x1000
lea eax, [ebp - 0x1020]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x402071
cmp dword [ebp - 0x1024], 0
je 0x402071
push esi
push edi
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edi, dword [ebp - 0x1028]
lea esi, [ebp - 0x1020]
mov ebx, dword [ebp - 0x1024]
lea edx, [esi + ebx]
xor eax, eax
mov bl, byte [esi]
mov al, cl
inc esi
xor al, bl
shr ecx, 8
mov ebx, dword [edi + eax*4]
xor ecx, ebx
cmp edx, esi
jne 0x402031
pop edi
pop esi
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
push 0
lea edx, [ebp - 0x1024]
push edx
push 0x1000
lea eax, [ebp - 0x1020]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1c], eax
jmp 0x402006
jmp 0x402080
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0
je 0x402097
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
not ecx
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4085f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x408608
xor al, al
jmp 0x4086ce
mov dword [ebp - 0x44], 0x40
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x40]
push edx
push 0
push 0
push str.InitValue
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x40863c
xor al, al
jmp 0x4086ce
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x40]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x3c]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x34]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x30]
mov dword [ecx + 0x14], edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x28]
mov dword [edx + 0x1c], eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x24]
mov dword [ecx + 0x20], edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x24], ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0x28], eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x2c], edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x30], ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x34], eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 0x38], edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x3c], ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 4]
mov dword [edx + 0x40], eax
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x408870
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x408885
xor al, al
jmp 0x408982
mov dword [ebp - 4], 0x5c
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x68]
push edx
push 0
push 0
push str.RenderOption
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4088b9
xor al, al
jmp 0x408982
mov edx, dword [ebp - 0x68]
mov dword [0x497808], edx
mov eax, dword [ebp - 0x64]
mov dword [0x49c918], eax
mov ecx, dword [ebp - 0x60]
mov dword [0x49780c], ecx
mov edx, dword [ebp - 0x5c]
mov dword [0x49c91c], edx
mov eax, dword [ebp - 0x58]
mov dword [0x49c920], eax
mov ecx, dword [ebp - 0x54]
mov dword [0x49c924], ecx
mov edx, dword [ebp - 0x50]
mov dword [0x49c928], edx
mov eax, dword [ebp - 0x4c]
mov dword [0x49c92c], eax
mov ecx, dword [ebp - 0x48]
mov dword [0x497810], ecx
mov edx, dword [ebp - 0x44]
mov dword [0x497814], edx
mov eax, dword [ebp - 0x40]
mov dword [0x497818], eax
mov ecx, dword [ebp - 0x3c]
mov dword [0x49781c], ecx
mov edx, dword [ebp - 0x38]
mov dword [0x49c930], edx
mov eax, dword [ebp - 0x34]
mov dword [0x49c934], eax
mov ecx, dword [ebp - 0x30]
mov dword [0x49c938], ecx
mov edx, dword [ebp - 0x2c]
mov dword [0x49c93c], edx
mov eax, dword [ebp - 0x28]
mov dword [0x497820], eax
mov ecx, dword [ebp - 0x24]
mov dword [0x497824], ecx
mov edx, dword [ebp - 0x20]
mov dword [0x497828], edx
mov eax, dword [ebp - 0x1c]
mov dword [0x49782c], eax
mov ecx, dword [ebp - 0x18]
mov dword [0x49c948], ecx
mov edx, dword [ebp - 0x14]
mov dword [0x49c958], edx
mov eax, dword [ebp - 0x10]
mov dword [0x49c95c], eax
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x409c10
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x409c2b
xor al, al
jmp 0x409c44
push 4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00439670
add esp, 0xc
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x40aba0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 4], 0
mov al, byte [0x478190]
mov byte [ebp - 0x110], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push 0x478194
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40acfd
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0x104
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x118]
push ecx
push 0
push str.Folder_P2_
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ac51
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x11c]
add ecx, 0x6ac
call fcn.00407530
mov dword [ebp - 0x114], 0x104
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x118]
push eax
push 0
push str.Server
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40aca1
mov byte [ebp - 0xd], 0
lea edx, [ebp - 0x110]
push edx
mov ecx, dword [ebp - 0x11c]
add ecx, 0x6b0
call fcn.00407530
mov dword [ebp - 0x114], 0x104
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x118]
push edx
push 0
push 0x4781c4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40acf1
mov byte [ebp - 0xd], 0
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [ebp - 0x11c]
add ecx, 0x6b4
call fcn.00407530
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40ad1e
push 0
push 0
push 5
call fcn.0040c2d0
add esp, 4
mov ecx, eax
call fcn.00406190
push eax
mov ecx, dword [ebp - 0x11c]
call fcn.00462636
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x40bb90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push edi
mov dword [ebp - 0x64], ecx
mov eax, dword [ebp - 0x64]
movzx ecx, byte [eax + 0x92a]
test ecx, ecx
je 0x40bbb2
lea ecx, [ebp + 8]
call fcn.004069f0
jmp 0x40bc14
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x5c], 0
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0
lea ecx, [ebp + 8]
call fcn.00406190
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
jne 0x40bc0c
cmp dword [ebp + 0xc], 1
jne 0x40bc0c
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp + 8]
call fcn.004069f0
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x40be80
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47412c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
push edi
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push str.SoftwareGamaSoftMP_Client
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40bef6
push 0
push 0
push 5
call fcn.0040c2d0
add esp, 4
mov ecx, eax
call fcn.00406190
push eax
mov ecx, dword [ebp - 0xc4]
call fcn.00462636
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x40bf68
lea ecx, [ebp - 0xbc]
call fcn.00408460
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call fcn.004086e0
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xbc]
call fcn.004085f0
movzx edx, al
test edx, edx
jne 0x40bf36
mov eax, dword [ebp - 0xc4]
mov byte [eax + 0x927], 1
lea ecx, [ebp - 0x10]
push ecx
call fcn.00408870
add esp, 4
movzx edx, al
test edx, edx
jne 0x40bf56
mov eax, dword [ebp - 0xc4]
mov byte [eax + 0x927], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xbc]
call fcn.004084f0
mov ecx, dword [ebp - 0xc4]
movzx edx, byte [ecx + 0x927]
test edx, edx
je 0x40bf84
mov ecx, dword [ebp - 0xc4]
call fcn.0040bae0
mov eax, dword [ebp - 0xc4]
movzx ecx, byte [eax + 0x929]
cmp ecx, 1
jne 0x40bfd1
mov edx, dword [ebp - 0xc4]
cmp dword [edx + 0x72c], 0
je 0x40bfd1
mov eax, dword [ebp - 0xc4]
mov byte [eax + 0x929], 0
push 1
mov ecx, dword [ebp - 0xc4]
mov edx, dword [ecx + 0x72c]
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax + 0x72c]
mov edx, dword [edx]
call dword [edx + 0x10]
lea ecx, [ebp - 0x14]
call fcn.00407430
mov dword [ebp - 4], 1
mov dword [ebp - 0x74], 0x44
mov dword [ebp - 0x70], 0
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x6c]
rep stosd dword es:[edi], eax
call fcn.0040ca10
mov eax, dword [eax + 0x44]
push eax
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x1c
mov edx, dword [ebp - 0xc4]
movsx eax, byte [edx + ecx + 0x73e]
push eax
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x1c
mov edx, dword [ebp - 0xc4]
mov eax, dword [edx + ecx + 0x756]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str._s__d__s
lea ecx, [ebp - 0x14]
push ecx
call fcn.00408380
add esp, 0x14
push str.Minia.exe
mov edx, dword [ebp - 0xc4]
add edx, 0x6ac
push edx
lea eax, [ebp - 0xc0]
push eax
call fcn.0040d640
add esp, 0xc
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], ecx
mov byte [ebp - 4], 2
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x74]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
call fcn.00407620
push eax
mov ecx, dword [ebp - 0xcc]
call fcn.00406190
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc0]
call fcn.004069f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004069f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x41b2f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x48
cmp eax, 1
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x80], 0
jne 0x41b445
mov edi, dword [esp + 0x5c]
test edi, edi
jne 0x41b32a
pop edi
pop esi
pop ebp
mov eax, 0x80070057
pop ebx
add esp, 0x48
ret 0xc
mov eax, dword [ebx]
test eax, eax
je 0x41b33f
push eax
call fcn.00460cd5
add esp, 4
mov dword [ebx], 0
push 0x10000
push 0
push edi
call dword [sym.imp.WINMM.dll_mmioOpenA]
test eax, eax
mov dword [ebx + 4], eax
jne 0x41b405
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceA]
push str.WAVE
push edi
push eax
call ebp
mov esi, eax
test esi, esi
jne 0x41b380
push 0x47a43c
push edi
push eax
call ebp
mov esi, eax
test esi, esi
je 0x41b45e
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41b45e
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebp, ebp
je 0x41b45e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41b45e
push ebp
call fcn.00460caa
mov edx, eax
mov ecx, ebp
mov eax, ecx
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add esp, 4
xor eax, eax
mov ecx, 0x12
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push 0x10000
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x20], 0x204d454d
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], edx
call dword [sym.imp.WINMM.dll_mmioOpenA]
mov dword [ebx + 4], eax
mov ecx, ebx
call fcn.0041acf0
mov esi, eax
test esi, esi
jge 0x41b42a
mov edx, dword [ebx + 4]
push 0
push edx
call dword [sym.imp.WINMM.dll_mmioClose]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0xc
mov ecx, ebx
call fcn.0041ae80
test eax, eax
jl 0x41b49e
mov ecx, dword [ebx + 0xc]
pop edi
pop esi
pop ebp
mov dword [ebx + 0x30], ecx
pop ebx
add esp, 0x48
ret 0xc
mov edx, dword [esp + 0x5c]
push 0x11002
push 0
push edx
call dword [sym.imp.WINMM.dll_mmioOpenA]
test eax, eax
mov dword [ebx + 4], eax
jne 0x41b46d
pop edi
pop esi
pop ebp
mov eax, 0x80004005
pop ebx
add esp, 0x48
ret 0xc
mov eax, dword [esp + 0x60]
push eax
mov ecx, ebx
call fcn.0041b190
mov esi, eax
test esi, esi
jge 0x41b497
mov ecx, dword [ebx + 4]
push 0
push ecx
call dword [sym.imp.WINMM.dll_mmioClose]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0xc
mov ecx, ebx
call fcn.0041ae80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0xc
Function at 0x41bb50
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0xfc]
test byte [eax + 0xc], 1
je 0x41bbad
mov eax, dword [ebx + 0x6c]
push ebp
xor ebp, ebp
test eax, eax
jbe 0x41bbac
push esi
push edi
jmp 0x41bb70
mov esi, dword [ebx + 0x7c]
mov edi, dword [ebx + 0x1a0]
xor ecx, ecx
mov cl, byte [esi + ebp]
add esi, ebp
and edi, 0xfffd
or edi, 2
push ecx
mov ecx, ebx
call fcn.0041bad0
mov al, byte [esi]
mov edx, edi
xor edx, 1
imul edx, edi
sar edx, 8
xor al, dl
mov byte [esi], al
mov eax, dword [ebx + 0x6c]
inc ebp
cmp ebp, eax
jb 0x41bb70
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x41bbb0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi + 0xfc]
test byte [eax + 0xc], 1
je 0x41bc08
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
test ebp, ebp
jbe 0x41bc06
jmp 0x41bbd0
mov ecx, dword [edi + 0x1a0]
mov eax, dword [edi + 0x7c]
and ecx, 0xfffd
or ecx, 2
mov edx, ecx
xor edx, 1
imul edx, ecx
mov cl, byte [eax + esi]
add eax, esi
sar edx, 8
xor cl, dl
mov byte [eax], cl
movsx eax, cl
push eax
mov ecx, edi
call fcn.0041bad0
inc esi
cmp esi, ebp
jb 0x41bbd0
pop esi
pop ebp
pop edi
ret 4

Function at 0x41bf10
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x474ca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
xor esi, esi
push esi
mov edi, ecx
push 0xc
lea ecx, [esp + 0x18]
call fcn.0041f7c0
mov eax, dword [esp + 0x14]
push esi
push 0xc
push eax
lea ecx, [edi + 0x84]
mov dword [esp + 0x30], esi
call fcn.00422d70
mov eax, dword [edi + 0x1a0]
mov ecx, dword [esp + 0x14]
mov dl, byte [ecx + esi]
and eax, 0xfffd
or eax, 2
mov ebx, eax
xor ebx, 1
imul ebx, eax
sar ebx, 8
xor bl, dl
mov byte [esp + 0xc], bl
mov edx, dword [esp + 0xc]
push edx
mov ecx, edi
call fcn.0041bad0
inc esi
cmp esi, 0xc
jl 0x41bf52
mov edi, dword [edi + 0xfc]
mov al, byte [edi + 0xc]
shr al, 3
test al, 1
je 0x41bf9f
mov al, byte [edi + 0x11]
jmp 0x41bfa2
mov al, byte [edi + 0x17]
cmp al, bl
lea ecx, [esp + 0x10]
sete bl
mov dword [esp + 0x24], 0xffffffff
call fcn.0041f7f0
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret