joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b7b3
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
push dword [ebp + 8]
call fcn.0042b894
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x1000
jle 0x42b884
mov dword [ebp - 8], esp
push 0x40
push 0x1000
push dword [ebp - 4]
push 0
push 0xffffffff
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
nop
nop
cmp dword [ebp - 8], esp
je 0x42b81b
push 0xab
push 0x40b0c2f
push 6
call fcn.0043c4ba
add esp, 0xc
mov dword [0x1b7dbfc], eax
push dword [0x1b7dbfc]
push dword [ebp + 8]
call fcn.0042bbe2
mov dword [ebp - 8], esp
push 0x1000
push dword [0x1b7dbfc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_RtlZeroMemory]
nop
nop
cmp dword [ebp - 8], esp
je 0x42b862
push 0x10b
push 0x40b0c2f
push 6
call fcn.0043c4ba
add esp, 0xc
fild dword [0x1b7dbfc]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fadd qword [0x1b7c8b9]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
call fcn.00401194
jmp 0x42b88e
mov eax, 0
jmp 0x42b88e
mov esp, ebp
pop ebp
ret 4
Function at 0x42b894
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov eax, 0x1b7c8c1
test eax, eax
je 0x42b8ce
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0043c4ae
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x42b8df
push ebx
call fcn.0043c4b4
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esp
push 0x40
push 0x1000
push 0x1000
push 0
push 0xffffffff
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x42b925
push 0x3f8
push 0x40a2344
push 6
call fcn.0043c4ba
add esp, 0xc
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0x80000301
push 0
push dword [ebp - 8]
push htons
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x42b94b
mov eax, 0x453255
push eax
push 3
mov ebx, 0x914
call fcn.0043ed30
add esp, 0x28
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x9e0
call fcn.0043cfe0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x9e0
call fcn.0043cfe0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x24]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x34]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
push dword [ebp - 0x44]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
push 0
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
push 0
push dword [ebp - 0x50]
push dword [ebp - 0x54]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
push 0
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
push 0
push dword [ebp - 0x60]
push dword [ebp - 0x64]
push 1
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0042baf2
push 0x80000401
push edx
push eax
push 1
mov ebx, 0x9dc
call fcn.0043cf00
add esp, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push 0x8000
push 0
push dword [ebp - 8]
push 0xffffffff
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x42bad2
push 0x4cf
push 0x40a2344
push 6
call fcn.0043c4ba
add esp, 0xc
mov eax, dword [ebp - 0xc]
jmp 0x42bada
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x42baeb
push ebx
call fcn.0043c4b4
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x42baf2
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov word [ebp - 4], fs
mov eax, 0x2b
mov fs, ax
and esp, 0xfffffff0
xor eax, eax
xor ecx, ecx
mov edx, dword [ecx + ebp + 0x48]
test edx, edx
je 0x42bb3d
inc eax
lea ecx, [ecx + 0xc]
cmp ecx, 0x84
jbe 0x42bb29
mov dword [ebp - 8], eax
push 0x33
call 0x42bb47
add dword [esp], 5
retf
Function at 0x42bbe2
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov eax, 0x1b7c934
test eax, eax
je 0x42bc23
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0043c4ae
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x42bc34
push ebx
call fcn.0043c4b4
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], esp
push 0x40
push 0x1000
push 0x1000
push 0
push 0xffffffff
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x42bc7a
push 0xe84
push 0x40a2345
push 6
call fcn.0043c4ba
add esp, 0xc
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0x80000301
push 0
push dword [ebp - 8]
push htons
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x42bca0
mov eax, 0x453255
push eax
push 3
mov ebx, 0x914
call fcn.0043ed30
add esp, 0x28
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x9e0
call fcn.0043cfe0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x9e0
call fcn.0043cfe0
add esp, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
push 0x80000301
push 0
push dword [ebp + 0xc]
push 1
mov ebx, 0x9e0
call fcn.0043cfe0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
push dword [ebp - 0x38]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
push dword [ebp - 0x48]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
push 0
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
push 0
push dword [ebp - 0x54]
push dword [ebp - 0x58]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
push 0
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
push 0
push dword [ebp - 0x64]
push dword [ebp - 0x68]
push 1
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push 1
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.0042baf2
push 0x80000401
push edx
push eax
push 1
mov ebx, 0x9dc
call fcn.0043cf00
add esp, 0x10
cdq
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esp
push 0x8000
push 0
push dword [ebp - 8]
push 0xffffffff
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x42be3f
push 0xf75
push 0x40a2345
push 6
call fcn.0043c4ba
add esp, 0xc
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
jmp 0x42be4a
push edx
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x42be5c
push ebx
call fcn.0043c4b4
add esp, 4
pop eax
pop edx
mov esp, ebp
pop ebp
ret 8
Function at 0x4311f5
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push 0xc
call fcn.0043c4ae
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
push 8
call fcn.0043c4ae
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebp - 0xc], 0
jmp 0x431411
jmp fcn.01b9d353

Function at 0x43ce60
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.0044620e
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x43ceca
push esi
lea edi, [eax + 0x400]
call fcn.00446203
push edi
call fcn.0044620e
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x43ce9a
push esi
xor edi, edi
call dword [0x1b7e258]
add esp, 4
test eax, eax
je 0x43cee6
push eax
push esi
call fcn.004406f0
add esp, 8
mov edi, eax
push esi
call fcn.00446203
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x43d0c0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x43d0de
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x43d0d3
pop esi
ret

Function at 0x43dba0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x43dc32
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x43dc24
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x43dc1c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x43dbe5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x43e290
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x140
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [esp + 0x154]
xor ebp, ebp
test edi, edi
je 0x43e310
push edi
call dword [0x1b7e258]
add esp, 4
test eax, eax
jbe 0x43e310
test esi, esi
je 0x43e2ce
cmp esi, 0xffffffff
je 0x43e2ce
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebx], esi
je 0x43e352
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x43e2fc
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
je 0x43e310
jmp 0x43e30b
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x10]
test edx, eax
je 0x43e310
mov ebp, 1
test esi, esi
je 0x43e352
cmp esi, 0xffffffff
je 0x43e352
test ebp, ebp
jne 0x43e389
mov eax, dword [esp + 0x15c]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x10]
push eax
push esi
je 0x43e35f
call edi
test eax, eax
je 0x43e352
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
jne 0x43e389
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x43e33a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x140
ret
call edi
test eax, eax
je 0x43e352
mov ebx, dword [esp + 0x158]
test dword [esp + 0x10], ebx
jne 0x43e389
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
jne 0x43e36c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
lea edx, [esp + 0x3c]
push edx
call dword [0x1b7e258]
inc eax
push eax
call fcn.0043c8c0
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
Function at 0x43e9b0
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x43e9bd
xor eax, eax
pop esi
ret
push esi
call dword [0x1b7e258]
add esp, 4
test eax, eax
jne 0x43e9cd
pop esi
ret
cmp eax, 1
jne 0x43e9db
cmp byte [esi], 0x5c
jne 0x43e9db
xor eax, eax
pop esi
ret
push esi
call fcn.0043e760
add esp, 4
test eax, eax
je 0x43e9ef
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
ret

Function at 0x43ec50
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebp
push esi
push edi
push eax
call fcn.00440940
mov edi, dword [esp + 0x28]
mov ebp, eax
push edi
xor esi, esi
call dword [0x1b7e258]
add esp, 8
test ebp, ebp
je 0x43ed1a
test eax, eax
je 0x43ed1a
inc eax
push ebx
push eax
call fcn.0044620e
mov ebx, eax
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004464b0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x43ecbc
mov byte [esi], 0
inc esi
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x43ecf6
mov ecx, dword [esp + 0x10]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0x10]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x43ed09
mov eax, dword [esp + 0x28]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
push ebx
call fcn.00446203
add esp, 4
mov eax, esi
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x4401a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x4401c1
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x44021b
inc edi
cmp edi, esi
jl 0x4401b5
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x440250
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x44020a
cmp byte [eax], bl
je 0x440225
cmp byte [eax + 1], bl
je 0x44022e
cmp byte [eax + 2], bl
je 0x440238
cmp byte [eax + 3], bl
je 0x440244
add eax, 4
cmp eax, edi
jb 0x4401e1
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
Function at 0x446010
Capabilities:
Accept command line arguments

Disassembly:
push ebp
sub bp, 0xbf3f
or eax, edi
test bl, 0xb
mov ebp, esp
push 0xffffffffffffffff
push 0x1b9f4c0
test si, 0xf0bb
push 0x447654
xor ax, 0x672a
mov eax, dword fs:[0]
cmp esp, 0xabab8b94
clc
push eax
test eax, 0x6bb97f8c
cmp bp, bp
cmc
mov dword fs:[0], esp
sub esp, 0x58
push ebx
jmp loc.01ba5d2a
jmp 0x4086d0
Function at 0x151c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0151c1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x151c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x151c06a
add dl, dl
jne 0x151c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x151c0dc
xor eax, eax
add dl, dl
jne 0x151c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x151c17d
add dl, dl
jne 0x151c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x151c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x151c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x151c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x151c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x151c075
mov eax, 1
add dl, dl
jne 0x151c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x151c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x151c0e1
sub eax, ebx
mov ebx, 1
jne 0x151c128
mov ecx, 1
add dl, dl
jne 0x151c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x151c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x151c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x151c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x151c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x151c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x151c136
cmp eax, 0x7d00
jae 0x151c16d
cmp eax, 0x500
jb 0x151c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x151c075
cmp eax, 0x7f
ja 0x151c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x151c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x151c19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x151c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401071
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 4
push edi
push 1
push 0x40000000
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4010c7
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp edi, dword [ebp - 4]
sete al
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x4010cd
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00401000
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x3fe
push esi
lea eax, [ebp - 0x806]
push edi
push eax
mov dword [ebp - 4], edi
mov word [ebp - 0x808], di
call fcn.0040135c
push esi
lea eax, [ebp - 0x406]
push edi
push eax
mov word [ebp - 0x408], di
call fcn.0040135c
push 0x7fe
lea eax, [ebp - 0x1006]
push edi
push eax
mov word [ebp - 0x1008], di
call fcn.0040135c
add esp, 0x24
push 0x400
lea eax, [ebp - 0x1008]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, edi
je 0x401228
push 0xa
push str.78DB5B78_681D_4866_88EF_768934BF6DFA
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x401221
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x401221
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, edi
mov dword [ebp - 8], eax
je 0x401221
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [ebp - 0x808]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x408]
push eax
call esi
push str.WebMERClientCompressed.tgz
lea eax, [ebp - 0x408]
push eax
call esi
lea eax, [ebp - 0x808]
push eax
push dword [ebp + 8]
call esi
push 0x40209c
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x408]
push eax
push edi
push dword [ebp - 8]
call fcn.00401071
add esp, 0xc
test eax, eax
je 0x401221
push dword [ebp + 8]
lea eax, [ebp - 0x408]
push edi
push eax
call fcn.00401051
mov dword [ebp - 4], eax
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401230
Capabilities:
Accept command line arguments
Delete file
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push esi
xor esi, esi
push 0x3fe
lea eax, [ebp - 0x416]
push esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov word [ebp - 0x418], si
call fcn.0040135c
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 0xc], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], esi
jle 0x401340
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push edi
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
lea edi, [eax + ecx*4]
push str._wait2
push dword [edi]
call ebx
test eax, eax
jne 0x40131b
lea eax, [ebp - 0x418]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.WebMERProc.txt
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
push 2
push 3
push esi
push esi
push 0x80000000
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40132f
push esi
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401302
cmp dword [ebp - 0x10], 4
je 0x401305
mov dword [ebp - 4], esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40132f
push str._wait
push dword [edi]
call ebx
test eax, eax
jne 0x40132f
mov dword [ebp - 0x14], 1
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jl 0x40128c
pop edi
pop ebx
cmp dword [ebp - 4], esi
pop esi
jne 0x401357
cmp dword [ebp - 0x14], 1
jne 0x401357
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
leave
ret