joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c020
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46c16a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0046b528
xor eax, eax
push ebp
push 0x46c14d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x46c085
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x46c085
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x46c137
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x46c098
call fcn.00404884
jmp 0x46c154
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x46c137
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x46c137
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00404200
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x46c137
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c70c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x46c184
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x47e9c4]
mov dl, 1
mov eax, dword [0x46a058]
call fcn.0040d040
call fcn.004047d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c154
mov eax, dword [ebp - 4]
call fcn.0046b534
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c171
lea eax, [ebp - 0x28]
call fcn.00404e48
ret
Function at 0x404400
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push esi
mov dword [eax + 0x34], 0
lea esi, [eax + 0x60]
mov word [eax + 0x1e], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x468], 0xffffffff
mov dword [eax + 0x46c], 0xffffffff
mov dword [eax + 0x30], 0x20
mov byte [eax + 0x1d], 1
mov dword [eax + 0x48], 4
mov ecx, edx
lea esi, [esi + 4]
and ecx, 1
mov eax, edx
shr eax, 1
neg ecx
and ecx, 0xedb88320
inc edx
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [esi - 4], eax
cmp edx, 0x100
jb 0x404446
pop esi
pop ebp
ret

Function at 0x404f40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea esp, [esp]
push dword [esi + 0x60]
xor ebx, ebx
call fcn.0040c730
add esp, 4
cmp dword [esi + 0x58], 0
jne 0x404ffc
push dword [esi + 0x68]
call fcn.0040c730
add esp, 4
lea eax, [esi + 0x140]
cmp dword [esi + 0x5c], 0
jne 0x404fe5
cmp dword [esi + 0x15c], 0
jne 0x405001
cmp dword [esi + 0x154], 0
lea edi, [esi + 0x178]
jne 0x404fa7
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esi + 0x15c], 1
mov eax, ebx
and eax, 0xf
shl eax, 0x12
add eax, dword [esi + 4]
push eax
push esi
call fcn.00404cf0
add esp, 8
cmp dword [esi + 0x15c], 0
je 0x405001
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esi + 0x6c]
mov dword [esi + 0x15c], 0
push eax
inc ebx
call fcn.0040c7d0
jmp 0x404f5a
push eax
call fcn.00406330
lea eax, [esi + 0x64]
push eax
call fcn.0040c6c0
add esp, 8
jmp 0x404f50
pop edi
pop esi
pop ebx
pop ebp
ret
push 1
call fcn.00566655
int3

Function at 0x406240
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov eax, dword [esi + 0x1c]
cmp dword [esi + 0x14], edi
je 0x406280
test eax, eax
jne 0x4062ca
lea eax, [esi + 0x2c]
mov dword [esi], 1
push eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
call fcn.0040c690
lea eax, [esi + 0x28]
push eax
call fcn.0040c6c0
add esp, 8
lea ebx, [esi + 0x38]
jmp 0x4062a4
test eax, eax
je 0x4062ca
lea ebx, [esi + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esi + 0x1c], edi
mov edi, dword [esi]
lea eax, [edi + 1]
mov dword [esi], eax
lea eax, [esi + 0x30]
push eax
call fcn.0040c7d0
add esp, 4
push dword [esi + 0x34]
call fcn.0040c730
add esp, 4
cmp dword [esi + 0x1c], 0
jne 0x4062ca
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, edi
mov dword [esi + 0x1c], 1
pop edi
pop esi
pop ebx
pop ebp
ret
push 1
call fcn.00566655
int3
Function at 0x408710
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
movzx esi, word [edx]
mov ebx, ecx
mov edi, dword [ebp + 0xc]
mov eax, esi
xor eax, 0x7f0
shr esi, 4
shr eax, 4
mov dword [ebp - 4], ebx
mov ecx, dword [edi + esi*4]
mov eax, dword [edi + eax*4]
mov dword [ebp + 0xc], eax
movzx eax, word [edx + 0x10]
mov esi, dword [ebp + 0xc]
shr eax, 4
mov dword [ebp - 0x14], ecx
mov eax, dword [edi + eax*4]
add eax, esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40879c
mov esi, edx
mov dword [ebp - 8], eax
add ebx, 4
push edi
push ebx
push ecx
push esi
call fcn.0040c380
push edi
lea eax, [ebx + 0x20]
push eax
push dword [ebp - 0x10]
lea eax, [esi + 0x10]
push eax
call fcn.0040c380
mov ecx, dword [ebp - 0x14]
add esp, 0x20
add ebx, 0x440
add esi, 0x20
sub dword [ebp - 8], 1
jne 0x408764
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp ebx, 0x10
jbe 0x408879
mov eax, dword [ebp - 4]
add ebx, 0xfffffff1
add eax, 0x44
shr ebx, 1
mov dword [ebp - 0x10], eax
movzx eax, word [edx + 0x10]
xor eax, 0x7f0
shr eax, 4
add esi, dword [edi + eax*4]
lea eax, [ebx + 0x180]
mov dword [ebp + 0xc], esi
lea eax, [edx + eax*2]
dec ebx
sub eax, 2
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], ebx
lea eax, [ebx + 0x80]
mov ebx, dword [ebp + 8]
mov edx, eax
shr eax, 1
and edx, 1
neg edx
shr edx, 4
movzx ecx, word [ebx + eax*2 + 0x200]
and edx, 0x7f
shr ecx, 4
xor ecx, edx
add esi, dword [edi + ecx*4]
cmp eax, 2
jae 0x4087e3
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
movzx ecx, word [eax]
mov eax, ecx
xor ecx, 0x7f0
shr eax, 4
shr ecx, 4
mov eax, dword [edi + eax*4]
add eax, esi
mov dword [edx + ebx*8], eax
mov eax, dword [edi + ecx*4]
add eax, esi
mov esi, dword [ebp + 0xc]
mov dword [edx + ebx*8 + 4], eax
mov eax, dword [ebp - 8]
test ebx, ebx
jne 0x4087d0
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
lea ebx, [eax*4 - 0x40]
mov eax, dword [ebp - 0xc]
cmp eax, 1
jbe 0x408879
lea esi, [ecx + 0x484]
lea edi, [eax - 1]
lea esp, [esp]
push ebx
push edx
push esi
call fcn.0055bfb0
mov edx, dword [ebp - 0x10]
add esp, 0xc
add esi, 0x440
sub edi, 1
jne 0x408860
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40ab50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, 0x100
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
or ecx, esi
add edi, edi
mov edx, esi
and edx, edi
mov eax, ecx
add edx, esi
shr eax, 8
add eax, edx
mov edx, dword [ebp + 8]
movzx edx, word [edx + eax*2]
mov eax, ecx
shr eax, 7
add ecx, ecx
and eax, 1
shr edx, 4
neg eax
shr eax, 4
and eax, 0x7f
xor edx, eax
mov eax, dword [ebp + 0x14]
add ebx, dword [eax + edx*4]
mov edx, ecx
xor edx, edi
not edx
and esi, edx
cmp ecx, 0x10000
jb 0x40ab65
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x40be20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x400
push edi
mov edi, 0xc
mov eax, dword [esi + 0x78]
lea edx, [esi + 0x1e68]
mov dword [esi + 0x70], eax
lea eax, [esi + 0x2030]
mov dword [esi + 0x2c], 0
mov dword [esi + 0x44], 1
mov dword [esi + 0x40], 1
mov dword [esi + 0x3c], 1
mov dword [esi + 0x38], 1
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x1e30], 0x4000400
mov dword [esi + 0x1e34], 0x4000400
mov dword [esi + 0x1e38], 0x4000400
mov dword [esi + 0x1e3c], 0x4000400
mov dword [esi + 0x1e40], 0x4000400
mov dword [esi + 0x1e44], 0x4000400
mov dword [esi + 0x1e48], 0x4000400
mov dword [esi + 0x1e4c], 0x4000400
mov ecx, 0x10
jmp 0x40bf10
mov word [eax - 0x180], bx
mov word [eax], bx
add eax, 2
sub ecx, 1
jne 0x40bf10
mov word [edx - 0x18], bx
mov word [edx], bx
mov word [edx + 0x18], bx
mov word [edx + 0x30], bx
add edx, 2
sub edi, 1
jne 0x40bf00
mov eax, 0x4000400
lea edi, [esi + 0x21b0]
mov ecx, 0x80
rep stosd dword es:[edi], eax
lea edi, [esi + 0x23b0]
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x98]
mov eax, 0x300
add ecx, dword [esi + 0x94]
shl eax, cl
test eax, eax
je 0x40bf82
mov edi, dword [esi + 0x50]
mov ecx, eax
shr ecx, 1
mov eax, 0x4000400
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov eax, 0x4000400
lea edi, [esi + 0x24b0]
mov ecx, 0x80
rep stosd dword es:[edi], eax
lea edi, [esi + 0x26b0]
mov ecx, 0x80
rep stosd dword es:[edi], eax
mov ecx, 0x80
lea edi, [esi + 0x28b0]
rep stosd dword es:[edi], eax
lea edi, [esi + 0x2ab0]
mov ecx, 0x80
rep stosd dword es:[edi], eax
mov dword [esi + 0x1c], 0
lea eax, [esi + 0xbcb8]
mov dword [esi + 0x18], 0
mov ecx, 0x800
mov dword [eax], 0x40000000
lea eax, [eax + 0x20]
sub ecx, 1
jne 0x40bfd4
mov dword [esi + 0x34], ecx
mov eax, 1
mov ecx, dword [esi + 0x9c]
mov edx, 0x100
shl eax, cl
mov ecx, dword [esi + 0x94]
dec eax
mov dword [esi + 0x4c], eax
mov eax, edx
shr eax, cl
mov ecx, dword [esi + 0x98]
shl edx, cl
sub edx, eax
pop edi
mov dword [esi + 0x48], edx
pop esi
pop ebx
pop ebp
ret
Function at 0x40c380
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ebx, ebx
mov edx, dword [ebp + 8]
mov edi, ebx
shr edi, 1
mov esi, ebx
shr esi, 2
mov eax, edi
and eax, 1
neg eax
shr eax, 4
movzx ecx, word [edx + esi*2 + 4]
and eax, 0x7f
shr ecx, 4
neg esi
xor ecx, eax
and esi, 0x7f0
movzx eax, word [edx + 2]
xor esi, eax
mov eax, dword [ebp + 0x14]
shr esi, 4
mov edx, dword [eax + ecx*4]
add edx, dword [eax + esi*4]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
add edx, dword [ebp + 0xc]
movzx ecx, word [eax + edi*2 + 8]
mov edi, dword [ebp + 0x10]
mov eax, ecx
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
mov eax, dword [esi + eax*4]
add eax, edx
mov dword [edi + ebx*4], eax
mov eax, dword [esi + ecx*4]
add eax, edx
mov dword [edi + ebx*4 + 4], eax
add ebx, 2
cmp ebx, 8
jb 0x40c388
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40c830
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.005667c7
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x40c85b
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x40c880
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.005667c7
mov ecx, dword [ebp + 8]
mov esi, eax
add esp, 0x18
mov dword [ecx], esi
test esi, esi
je 0x40c8c5
push dword [ebp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x40c8c5
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
pop esi
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x40e7f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597221
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x63434c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx + 0xc], 0
lea esi, [ebx + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 2
mov word [esi + 0x18], 0
mov dword [esi + 0x1c], 1
mov word [esi + 0x20], 0x100
mov dword [esi + 0x28], 0x40000000
mov dword [esi + 0x2c], 0
mov word [esi + 0x30], 0
call fcn.00435b30
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x84], 0
mov dword [ebx + 0x88], 0
mov dword [ebx + 0x8c], 0
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x94], 0
mov dword [ebx + 0x98], 0
mov dword [ebx + 0x9c], 0
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0xa4], 0
mov dword [ebx + 0xa8], 0
mov dword [ebx + 0xac], 0
mov dword [ebx + 0xb0], 0
mov dword [ebx + 0xb4], 0
mov dword [ebx + 0xb8], 0
mov dword [ebx + 0xbc], 0
mov edi, dword [ebp + 8]
mov byte [ebx + 0xc0], 0
mov byte [ebp - 4], 8
cmp dword [edi + 4], 0
jne 0x40e998
cmp byte [edi + 0x31], 0
je 0x40ea84
push edi
mov ecx, esi
call fcn.0040ed20
lea ecx, [edi + 0xc]
lea ebx, [esi + 0xc]
cmp ecx, ebx
je 0x40ea11
mov eax, dword [ecx + 4]
mov dword [ebp + 8], eax
cmp eax, dword [ebx + 8]
jbe 0x40e9f7
push dword [ebx]
call fcn.0055801b
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, 0xc
mov dword [ebx + 8], 0
mul edx
mov dword [ebx + 4], 0
mov dword [ebx], 0
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00558012
mov dword [ebx], eax
lea ecx, [edi + 0xc]
mov eax, dword [ebp + 8]
add esp, 8
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
test eax, eax
je 0x40ea11
lea eax, [eax + eax*2]
shl eax, 2
push eax
push dword [ecx]
push dword [ebx]
call fcn.0055bfb0
add esp, 0xc
movzx eax, byte [edi + 0x18]
mov byte [esi + 0x18], al
movzx eax, byte [edi + 0x19]
mov byte [esi + 0x19], al
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
movzx eax, byte [edi + 0x20]
mov byte [esi + 0x20], al
movzx eax, byte [edi + 0x21]
mov byte [esi + 0x21], al
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x2c]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
lea ecx, [esi + 0x34]
movzx eax, byte [edi + 0x30]
mov byte [esi + 0x30], al
movzx eax, byte [edi + 0x31]
mov byte [esi + 0x31], al
lea eax, [edi + 0x34]
push eax
call fcn.00435bc0
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x5f2918
lea eax, [ebp + 8]
mov dword [ebp + 8], 1
push eax
call fcn.0055ca0e
int3
Function at 0x425970
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
movzx eax, byte [ebx + 9]
push eax
lea ecx, [esi + 0x44]
mov dword [ebp - 4], esi
call fcn.0041c2d0
movzx eax, byte [ebx + 8]
lea ecx, [esi + 0x50]
push eax
call fcn.0041c2d0
lea edi, [esi + 0x74]
mov ecx, edi
call fcn.00411140
push 0x88
call fcn.00557fd4
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
test esi, esi
je 0x425a74
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov byte [esi + 0x4c], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi], vtable.NCoderMixer2::CCoderMT.0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov byte [esi + 0x68], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
jmp 0x425a76
xor esi, esi
mov ecx, dword [edi + 4]
lea eax, [ecx + 1]
mov dword [edi + 4], eax
mov eax, dword [edi]
mov dword [eax + ecx*4], esi
mov eax, dword [ebx + 0xc]
mov dword [esi + 0x20], eax
mov edi, dword [ebx]
test edi, edi
je 0x425a96
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x425aa3
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x18], edi
mov edi, dword [ebx + 4]
test edi, edi
je 0x425ab3
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x425ac0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 4]
mov dword [esi + 0x1c], edi
pop edi
mov al, byte [eax + 0x5c]
mov byte [esi + 0x68], al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42a110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42a169
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x42a169
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x42a15a
cmp esi, edx
jae 0x42a169
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x42a148
cmp esi, edx
jae 0x42a169
cmp word [esi], 0
je 0x42a169
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x42b4c0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59894d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x63434c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x1c]
cmp eax, 0xffffffff
je 0x42b663
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 0xc]
push eax
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0042af40
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
call fcn.0042cde0
add esp, 0x10
or esi, 0xffffffff
test eax, eax
je 0x42b64b
mov byte [ebp - 4], 1
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x42b67b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x42b685
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 4
push eax
call fcn.0042c860
add esp, 4
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00429740
mov edx, dword [ebp - 0x1c]
mov eax, esi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42b5a2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.0042cf60
add esp, 8
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.00429740
mov edx, dword [ebp - 0x1c]
mov eax, esi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42b5dc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0042af40
add esp, 0xc
push 0
push dword [eax]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [ebp - 0x1c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42b617
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42b631
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42b64b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x42b663
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [edi + 0x1c], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b00
push 0x80004005
call fcn.00429b00
int3
Function at 0x42b770
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598985
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x63434c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x42b8a5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
test edi, edi
je 0x42b7f1
test edi, 0xffff0000
jne 0x42b7d3
movzx eax, di
lea ecx, [ebp - 0x10]
push eax
call fcn.00429d30
jmp 0x42b7fd
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x42b7e0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42b7e0
sub ecx, edx
sar ecx, 1
jmp 0x42b7f3
xor ecx, ecx
push ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.0042a000
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42b872
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42b872
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x42b872
lea eax, [ebp - 0x10]
push eax
call fcn.0042d040
mov esi, dword [ebp - 0x10]
add esp, 4
cmp dword [esi - 0xc], 0
jne 0x42b843
xor edi, edi
jmp 0x42b87a
push esi
call fcn.0042b770
add esp, 4
test eax, eax
jne 0x42b854
xor edi, edi
jmp 0x42b87a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42b875
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x42b875
xor edi, edi
jmp 0x42b87a
mov esi, dword [ebp - 0x10]
mov edi, 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42b892
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b00
int3