joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ccf0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], 0
mov ebx, dword [edi + 8]
mov dword [ebp - 8], ebx
cmp dword [ebx + 0x10], 0
jbe 0x41ceeb
xor ecx, ecx
mov dword [ebp - 0x10], ecx
push esi
jmp 0x41cd20
mov eax, dword [ebx + 8]
mov ecx, dword [ecx + eax + 4]
mov dword [ebx + 4], ecx
test ecx, ecx
je 0x41ced1
mov esi, dword [ecx + 0x1c]
test esi, esi
je 0x41ced1
mov eax, dword [esi]
cmp eax, dword [ecx + 0x18]
jne 0x41cec0
test byte [esi + 0xe0], 1
jne 0x41cec0
cmp dword [ecx], 0x103
je 0x41ced1
mov eax, dword [esi + 0xc0]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 4]
mov dword [ebp + 8], 0
mov dword [ebp - 4], 0
cmp eax, 3
ja case.default.0x41cd80
jmp dword [eax*4 + 0x41cefc]
mov dword [ebp - 4], 1
lea ecx, [edi + 0xc]
jmp 0x41cda9
mov dword [ebp - 4], 1
lea ecx, [edi + 0x18]
jmp 0x41cda9
mov dword [ebp - 4], 2
lea ecx, [edi + 0x24]
mov dword [ebp + 8], ecx
test eax, eax
je 0x41cdb5
cmp eax, 1
jne 0x41ce1f
mov eax, dword [esi + 0xc0]
push 0
push 0
push 0x7010
push 0xffff
push dword [eax]
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [esi + 0xc0]
push dword [ebx + 4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x41ce1f
call sub.WS2_32.dll_WSAGetLastError
push eax
call fcn.0041cfa0
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41ce1f
push 4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esi + 0xc0]
push 0x1007
push 0xffff
push dword [eax]
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [ebp - 4]
push esi
push dword [ebp + 8]
push edi
call fcn.00415db0
add esp, 0x10
test byte [esi + 0xe0], 1
push esi
je 0x41ceb5
call fcn.00418710
lea ebx, [esi + 0xcc]
push ebx
push dword [ebp + 8]
call fcn.0041ca20
mov eax, dword [edi + 0x6c]
add esp, 0xc
test eax, eax
je 0x41ce59
mov dword [eax], ebx
mov dword [ebx + 4], eax
mov dword [ebx], 0
inc dword [edi + 0x64]
cmp dword [edi + 0x64], 1
mov dword [edi + 0x6c], ebx
jne 0x41ce71
mov dword [edi + 0x68], ebx
cmp dword [esi + 0x1c], 0
je 0x41ce8a
add esi, 0xc8
lea eax, [edi + 0x3c]
push esi
push eax
call fcn.0041a200
add esp, 8
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x2c], 0
jne 0x41ceca
lea esi, [eax + 0x13c]
lea eax, [edi + 0x4c]
push esi
push eax
call fcn.0041ca20
lea eax, [edi + 0x58]
push esi
push eax
call fcn.0041c9f0
add esp, 0x10
jmp 0x41ceca
push edi
call fcn.0041cb30
add esp, 8
jmp 0x41ce8d
push ecx
push edi
call fcn.0041c610
add esp, 8
mov dword [ebx + 4], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
inc eax
add ecx, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
cmp eax, dword [ebx + 0x10]
jb 0x41cd20
pop esi
push edi
call fcn.004160a0
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41cd87
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], 0
mov ebx, dword [edi + 8]
mov dword [ebp - 8], ebx
cmp dword [ebx + 0x10], 0
jbe 0x41ceeb
xor ecx, ecx
mov dword [ebp - 0x10], ecx
push esi
jmp 0x41cd20
mov eax, dword [ebx + 8]
mov ecx, dword [ecx + eax + 4]
mov dword [ebx + 4], ecx
test ecx, ecx
je 0x41ced1
mov esi, dword [ecx + 0x1c]
test esi, esi
je 0x41ced1
mov eax, dword [esi]
cmp eax, dword [ecx + 0x18]
jne 0x41cec0
test byte [esi + 0xe0], 1
jne 0x41cec0
cmp dword [ecx], 0x103
je 0x41ced1
mov eax, dword [esi + 0xc0]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 4]
mov dword [ebp + 8], 0
mov dword [ebp - 4], 0
cmp eax, 3
ja case.default.0x41cd80
jmp dword [eax*4 + 0x41cefc]
mov dword [ebp - 4], 1
lea ecx, [edi + 0xc]
jmp 0x41cda9
mov dword [ebp - 4], 1
lea ecx, [edi + 0x18]
jmp 0x41cda9
mov dword [ebp - 4], 2
lea ecx, [edi + 0x24]
mov dword [ebp + 8], ecx
test eax, eax
je 0x41cdb5
cmp eax, 1
jne 0x41ce1f
mov eax, dword [esi + 0xc0]
push 0
push 0
push 0x7010
push 0xffff
push dword [eax]
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [esi + 0xc0]
push dword [ebx + 4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x41ce1f
call sub.WS2_32.dll_WSAGetLastError
push eax
call fcn.0041cfa0
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41ce1f
push 4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esi + 0xc0]
push 0x1007
push 0xffff
push dword [eax]
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [ebp - 4]
push esi
push dword [ebp + 8]
push edi
call fcn.00415db0
add esp, 0x10
test byte [esi + 0xe0], 1
push esi
je 0x41ceb5
call fcn.00418710
lea ebx, [esi + 0xcc]
push ebx
push dword [ebp + 8]
call fcn.0041ca20
mov eax, dword [edi + 0x6c]
add esp, 0xc
test eax, eax
je 0x41ce59
mov dword [eax], ebx
mov dword [ebx + 4], eax
mov dword [ebx], 0
inc dword [edi + 0x64]
cmp dword [edi + 0x64], 1
mov dword [edi + 0x6c], ebx
jne 0x41ce71
mov dword [edi + 0x68], ebx
cmp dword [esi + 0x1c], 0
je 0x41ce8a
add esi, 0xc8
lea eax, [edi + 0x3c]
push esi
push eax
call fcn.0041a200
add esp, 8
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x2c], 0
jne 0x41ceca
lea esi, [eax + 0x13c]
lea eax, [edi + 0x4c]
push esi
push eax
call fcn.0041ca20
lea eax, [edi + 0x58]
push esi
push eax
call fcn.0041c9f0
add esp, 0x10
jmp 0x41ceca
push edi
call fcn.0041cb30
add esp, 8
jmp 0x41ce8d
push ecx
push edi
call fcn.0041c610
add esp, 8
mov dword [ebx + 4], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
inc eax
add ecx, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
cmp eax, dword [ebx + 0x10]
jb 0x41cd20
pop esi
push edi
call fcn.004160a0
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41e920
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.MSVCR120.dll___iob_func]
call esi
add eax, 0x20
push eax
call dword [sym.imp.MSVCR120.dll_fflush]
add esp, 4
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR120.dll_vfprintf]
add esp, 0xc
push str._nQUITTING__n
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR120.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCR120.dll_exit]
int3
Function at 0x41fe50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x464994], 0
mov edx, dword [ebp + 8]
not edx
jne 0x41fe66
call fcn.0041f8b0
push esi
mov esi, dword [ebp + 0x10]
xor ecx, ecx
test esi, esi
jle 0x41fe8f
push edi
mov edi, dword [ebp + 0xc]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
shr edx, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x464ae0]
cmp ecx, esi
jl 0x41fe74
pop edi
not edx
mov eax, edx
pop esi
pop ebp
ret

Function at 0x41ffd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x42015d
push ebx
mov ebx, dword [ebp + 0xc]
push edi
cmp esi, dword [0x464fe4]
je 0x42015b
xor cl, cl
movzx edx, cl
mov edi, dword [esi + edx*4 + 0x10]
test edi, edi
je 0x42000e
mov eax, dword [esi + edx*4]
xor eax, dword [ebx + edx*4]
test edi, eax
jne 0x420069
inc cl
cmp cl, 4
jb 0x41fff2
test byte [esi + 0x1c], 1
jne 0x42015b
mov edi, dword [ebp + 0x10]
xor dl, dl
lea ecx, [ecx]
movzx ecx, dl
mov eax, dword [esi + ecx*4 + 0x10]
cmp eax, dword [edi + ecx*4]
ja 0x42011e
inc dl
cmp dl, 4
jb 0x420020
xor cl, cl
lea esp, [esp]
movzx eax, cl
mov edx, dword [esi + eax*4 + 0x10]
cmp edx, 0xffffffff
jb 0x420075
inc cl
cmp cl, 4
jb 0x420040
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4200dd
mov esi, eax
test esi, esi
jne 0x41ffe4
pop edi
pop ebx
pop esi
pop ebp
ret
push ebx
push esi
call fcn.00421590
add esp, 8
jmp 0x420018
movzx eax, cl
mov ecx, dword [ebx + eax*4]
test edx, edx
jne 0x420087
and ecx, 0x80000000
jmp 0x420091
mov eax, edx
not edx
shr eax, 1
and eax, edx
and ecx, eax
test ecx, ecx
je 0x420053
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x42005e
push 0x28
call fcn.0041e9e0
add esp, 4
mov dword [ebp + 8], eax
sub ebx, eax
mov ecx, eax
sub edi, eax
mov edx, 4
mov eax, dword [ebx + ecx]
lea ecx, [ecx + 4]
mov dword [ecx - 4], eax
mov eax, dword [edi + ecx - 4]
mov dword [ecx + 0xc], eax
dec edx
jne 0x4200b4
mov ecx, dword [ebp + 8]
mov eax, dword [0x464fe4]
pop edi
pop ebx
mov dword [ecx + 0x24], eax
mov dword [ecx + 0x20], eax
mov dword [esi + 0x20], ecx
pop esi
pop ebp
ret
push 0x28
call fcn.0041e9e0
add esp, 4
mov dword [ebp + 8], eax
sub ebx, eax
mov ecx, eax
sub edi, eax
mov edx, 4
mov eax, dword [ebx + ecx]
lea ecx, [ecx + 4]
mov dword [ecx - 4], eax
mov eax, dword [edi + ecx - 4]
mov dword [ecx + 0xc], eax
dec edx
jne 0x4200f5
mov ecx, dword [ebp + 8]
mov eax, dword [0x464fe4]
pop edi
pop ebx
mov dword [ecx + 0x24], eax
mov dword [ecx + 0x20], eax
mov dword [esi + 0x24], ecx
pop esi
pop ebp
ret
movzx eax, dl
lea ebx, [esi + eax*4]
mov eax, dword [edi + eax*4]
mov dword [ebx + 0x10], eax
cmp dl, 4
jae 0x42013d
mov al, 4
lea edi, [ebx + 0x10]
sub al, dl
movzx ecx, al
xor eax, eax
rep stosd dword es:[edi], eax
push dword [esi + 0x20]
call fcn.00421350
push dword [esi + 0x24]
call fcn.00421350
mov eax, dword [0x464fe4]
add esp, 8
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x421590
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4635a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
movzx edx, bl
shl edx, 2
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x4215da
or eax, 0xffffffff
jmp 0x421630
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x421600
mov eax, ecx
shr eax, 8
test eax, eax
je 0x4215f6
mov al, byte [eax + 0x45d1a8]
add al, 0x18
jmp 0x421619
mov al, byte [ecx + 0x45d1a8]
add al, 0x10
jmp 0x421619
mov ecx, eax
shr ecx, 8
test ecx, ecx
je 0x421613
mov al, byte [ecx + 0x45d1a8]
add al, 8
jmp 0x421619
mov al, byte [eax + 0x45d1a8]
movzx ecx, al
inc ecx
cmp ecx, 0x20
jl 0x421626
xor eax, eax
jmp 0x421630
mov eax, 1
shl eax, cl
dec eax
not eax
mov dword [ebp + edx - 0x14], eax
cmp eax, 0xffffffff
jb 0x421640
inc bl
cmp bl, 4
jb 0x4215c7
push 0x28
call fcn.0041e9e0
mov ebx, esi
mov dword [ebp - 0x18], eax
add esp, 4
mov edx, esi
sub ebx, eax
mov edi, 4
lea ecx, [eax + 0x10]
jmp 0x421660
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ecx - 0x10], eax
mov eax, dword [ebx + ecx]
mov dword [ecx], eax
add ecx, 4
dec edi
jne 0x421660
mov ebx, dword [ebp - 0x18]
xor cl, cl
mov eax, dword [0x464fe4]
movdqu xmm0, xmmword [ebp - 0x14]
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x20], eax
mov eax, dword [esi + 0x20]
mov dword [ebx + 0x20], eax
mov eax, dword [esi + 0x24]
mov dword [ebx + 0x24], eax
movdqu xmmword [esi + 0x10], xmm0
lea esp, [esp]
movzx eax, cl
mov edx, dword [esi + eax*4 + 0x10]
cmp edx, 0xffffffff
jb 0x4216ce
inc cl
cmp cl, 4
jb 0x4216a0
pop edi
mov dword [esi + 0x24], ebx
mov dword [esi + 0x20], 0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
movzx eax, cl
mov ecx, dword [esi + eax*4]
test edx, edx
jne 0x4216e0
and ecx, 0x80000000
jmp 0x4216ea
mov eax, edx
not edx
shr eax, 1
and eax, edx
and ecx, eax
test ecx, ecx
je 0x4216b3
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 0x20], ebx
xor ecx, ebp
mov dword [esi + 0x24], 0
pop esi
pop ebx
call fcn.0044590e
mov esp, ebp
pop ebp
ret
Function at 0x422c50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
dec byte [ecx]
xor edi, edi
lea ecx, [ecx]
mov eax, edi
inc byte [ecx]
cdq
inc edi
idiv dword [ebp + 0x10]
movzx esi, byte [ecx]
mov eax, dword [ebp + 0xc]
mov bl, byte [esi + ecx + 2]
movzx eax, byte [edx + eax]
add al, bl
add byte [ecx + 1], al
movzx eax, byte [ecx + 1]
movzx eax, byte [eax + ecx + 2]
mov byte [esi + ecx + 2], al
movzx eax, byte [ecx + 1]
mov byte [eax + ecx + 2], bl
cmp edi, 0x100
jl 0x422c60
mov al, byte [ecx]
pop edi
pop esi
mov byte [ecx + 1], al
pop ebx
pop ebp
ret
Function at 0x422d50
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4635a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push edi
push 0xf0000000
push 1
push 0
push 0
push eax
mov dword [ebp - 0x108], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea eax, [ebp - 0x104]
push eax
push 0x100
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov byte [esi + eax + 2], al
inc eax
cmp eax, 0x100
jl 0x422db3
push 0x80
lea eax, [ebp - 0x104]
mov word [esi], 0
push eax
push esi
call fcn.00422c50
push 0x80
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.00422c50
add esp, 0x18
mov dword [esi + 0x104], 0
mov dword [esi + 0x108], 0
xor edi, edi
inc byte [esi]
movzx edx, byte [esi]
mov bl, byte [edx + esi + 2]
add byte [esi + 1], bl
movzx eax, byte [esi + 1]
mov cl, byte [eax + esi + 2]
mov byte [edx + esi + 2], cl
movzx eax, byte [esi + 1]
movzx ecx, cl
mov byte [eax + esi + 2], bl
movzx eax, bl
add ecx, eax
and ecx, 0xff
movzx eax, byte [ecx + esi + 2]
mov byte [ebp + edi - 0x104], al
inc edi
cmp edi, 0x100
jb 0x422e01
xor edi, edi
inc byte [esi]
movzx edx, byte [esi]
mov bl, byte [edx + esi + 2]
add byte [esi + 1], bl
movzx eax, byte [esi + 1]
mov cl, byte [eax + esi + 2]
mov byte [edx + esi + 2], cl
movzx eax, byte [esi + 1]
movzx ecx, cl
mov byte [eax + esi + 2], bl
movzx eax, bl
add ecx, eax
and ecx, 0xff
movzx eax, byte [ecx + esi + 2]
mov byte [ebp + edi - 0x104], al
inc edi
cmp edi, 0x100
jb 0x422e46
xor edi, edi
jmp 0x422e90
inc byte [esi]
movzx edx, byte [esi]
mov bl, byte [edx + esi + 2]
add byte [esi + 1], bl
movzx eax, byte [esi + 1]
mov cl, byte [eax + esi + 2]
mov byte [edx + esi + 2], cl
movzx eax, byte [esi + 1]
movzx ecx, cl
mov byte [eax + esi + 2], bl
movzx eax, bl
add ecx, eax
and ecx, 0xff
movzx eax, byte [ecx + esi + 2]
mov byte [ebp + edi - 0x104], al
inc edi
cmp edi, 0x100
jb 0x422e90
xor edi, edi
inc byte [esi]
movzx edx, byte [esi]
mov bl, byte [edx + esi + 2]
add byte [esi + 1], bl
movzx eax, byte [esi + 1]
mov cl, byte [eax + esi + 2]
mov byte [edx + esi + 2], cl
movzx eax, byte [esi + 1]
movzx ecx, cl
mov byte [eax + esi + 2], bl
movzx eax, bl
add ecx, eax
and ecx, 0xff
movzx eax, byte [ecx + esi + 2]
mov byte [ebp + edi - 0x104], al
inc edi
cmp edi, 0x100
jb 0x422ed5
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044590e
mov esp, ebp
pop ebp
ret
Function at 0x422fc0
Capabilities:
Create pipe
Create thread

Disassembly:
cmp dword [0x46512c], 0
push esi
mov esi, dword [sym.imp.MSVCR120.dll__wassert]
je 0x422fe4
push 0x95
push str.nbase_winunix.c
push str.stdin_thread__NULL
call esi
add esp, 0xc
cmp dword [0x465134], 0
je 0x423001
push 0x96
push str.nbase_winunix.c
push str.stdin_pipe_r__NULL
call esi
add esp, 0xc
cmp dword [0x465138], 0
je 0x42301e
push 0x97
push str.nbase_winunix.c
push str.stdin_pipe_w__NULL
call esi
add esp, 0xc
cmp dword [0x465130], 0
je 0x42303b
push 0x98
push str.nbase_winunix.c
push str.thread_stdin_handle__NULL
call esi
add esp, 0xc
push 0
push 0
push 0x465138
push 0x465134
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x423093
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
push 0x465130
call esi
push eax
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push dword [0x465134]
test eax, eax
jne 0x423097
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [0x465138]
call esi
xor eax, eax
pop esi
ret
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
test eax, eax
jne 0x4230c5
push dword [0x465134]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [0x465138]
call esi
push dword [0x465130]
call esi
xor eax, eax
pop esi
ret
push 0x8000
push 0
call dword [sym.imp.MSVCR120.dll__setmode]
mov esi, eax
push esi
push 0
call dword [sym.imp.MSVCR120.dll__setmode]
add esp, 0x10
push esi
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.MSVCR120.dll__open_osfhandle]
add esp, 8
cmp eax, 0xffffffff
je 0x4230a3
push 0
push eax
call dword [sym.imp.MSVCR120.dll__dup2]
add esp, 8
push 0
push 0
push 0
push 0x423130
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x46512c], eax
test eax, eax
je 0x4230a3
mov eax, 1
pop esi
ret

Function at 0x42a380
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp + 0xc]
cmp byte [ecx + 0x3d], 1
mov eax, dword [eax]
mov eax, dword [eax]
ja 0x42a3a8
test byte [eax + 5], 3
je 0x42a3a8
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.0042a840
pop ebp
ret
Function at 0x42a3e0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x60]
test esi, esi
je 0x42a4cb
jmp 0x42a400
mov al, byte [esi + 5]
test al, 3
je case.0x42a429.10
and al, 0xfc
mov edx, esi
mov byte [esi + 5], al
movzx eax, byte [esi + 4]
sub eax, 4
cmp eax, 0x22
ja case.0x42a429.10
movzx eax, byte [eax + 0x42a4f4]
jmp dword [eax*4 + 0x42a4d4]
mov eax, dword [edx + 8]
test eax, eax
je 0x42a447
test byte [eax + 5], 3
je 0x42a447
push eax
push edi
call fcn.0042a840
add esp, 8
or byte [edx + 5], 4
mov eax, dword [edx + 0xc]
add eax, 0x18
add dword [edi + 0x10], eax
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0xc], eax
movzx eax, byte [edx + 6]
test al, 0x40
je case.0x42a429.10
mov al, byte [ecx + 5]
test al, 3
je case.0x42a429.10
and al, 0xfc
mov edx, ecx
mov byte [ecx + 5], al
movzx eax, byte [ecx + 4]
sub eax, 4
cmp eax, 0x22
jbe 0x42a422
jmp case.0x42a429.10
movzx eax, byte [edx + 7]
or byte [edx + 5], 4
add eax, 0x11
add dword [edi + 0x10], eax
jmp case.0x42a429.10
mov eax, dword [edx + 0xc]
or byte [edx + 5], 4
add eax, 0x11
add dword [edi + 0x10], eax
jmp case.0x42a429.10
mov eax, dword [edi + 0x4c]
mov dword [edx + 8], eax
jmp 0x42a4be
mov eax, dword [edi + 0x4c]
mov dword [edx + 0x1c], eax
jmp 0x42a4be
mov eax, dword [edi + 0x4c]
mov dword [edx + 0x28], eax
jmp 0x42a4be
mov eax, dword [edi + 0x4c]
mov dword [edx + 0x4c], eax
mov dword [edi + 0x4c], edx
mov esi, dword [esi]
test esi, esi
jne 0x42a400
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42a520
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 9
push edi
lea edi, [esi + 0xe8]
jmp 0x42a540
mov edx, dword [edi]
test edx, edx
je 0x42a60f
test byte [edx + 5], 3
je 0x42a60f
movzx eax, byte [edx + 4]
and byte [edx + 5], 0xfc
sub eax, 4
cmp eax, 0x22
ja 0x42a60f
jmp 0x42a570
movzx eax, byte [eax + 0x42a640]
jmp dword [eax*4 + 0x42a620]
add edi, 4
dec ebx
jne 0x42a540
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42a840
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 4]
and byte [esi + 5], 0xfc
sub eax, 4
cmp eax, 0x22
ja case.default.0x42a869
push edi
mov edi, dword [ebp + 8]
movzx eax, byte [eax + 0x42a948]
jmp dword [eax*4 + 0x42a928]
mov eax, dword [esi + 8]
test eax, eax
je 0x42a887
test byte [eax + 5], 3
je 0x42a887
push eax
push edi
call fcn.0042a840
add esp, 8
or byte [esi + 5], 4
mov eax, dword [esi + 0xc]
add eax, 0x18
add dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
movzx eax, byte [esi + 6]
test al, 0x40
je case.0x42a869.10
mov al, byte [ecx + 5]
test al, 3
je case.0x42a869.10
and al, 0xfc
mov esi, ecx
mov byte [ecx + 5], al
movzx eax, byte [ecx + 4]
sub eax, 4
cmp eax, 0x22
jbe 0x42a862
pop edi
pop esi
mov esp, ebp
pop ebp
ret
movzx eax, byte [esi + 7]
or byte [esi + 5], 4
add eax, 0x11
add dword [edi + 0x10], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc]
or byte [esi + 5], 4
add eax, 0x11
add dword [edi + 0x10], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x4c]
mov dword [esi + 8], eax
mov dword [edi + 0x4c], esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x1c], eax
mov dword [edi + 0x4c], esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x28], eax
mov dword [edi + 0x4c], esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x4c], eax
mov dword [edi + 0x4c], esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42a970
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x68]
lea ebx, [edi + 0x68]
test ecx, ecx
je 0x42aabc
push esi
lea ebx, [ebx]
test byte [ecx + 5], 7
jne 0x42a9a4
cmp dword [ecx + 0x24], 0
je 0x42a9a4
lea ebx, [ecx + 0x2c]
jmp 0x42aab1
mov eax, dword [ecx + 0x2c]
mov dword [ebx], eax
mov esi, dword [ecx + 0x24]
mov dword [ecx + 0x2c], ecx
test esi, esi
je 0x42aab1
jmp 0x42a9c0
cmp dword [esi + 0xc], 0
je 0x42aaa6
mov edx, dword [esi]
test byte [edx + 8], 0x40
je 0x42aa9f
mov edx, dword [edx]
test byte [edx + 5], 3
je 0x42aa9f
movzx eax, byte [edx + 4]
and byte [edx + 5], 0xfc
sub eax, 4
cmp eax, 0x22
ja 0x42aa9f
jmp 0x42aa00
movzx eax, byte [eax + 0x42aae4]
jmp dword [eax*4 + 0x42aac4]
mov dword [esi + 0xc], 0
mov esi, dword [esi + 8]
test esi, esi
jne 0x42a9c0
mov ecx, dword [ebx]
test ecx, ecx
jne 0x42a990
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b150
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp byte [esi + 6], bl
jbe 0x42b256
push edi
lea edi, [esi + 0x10]
mov esi, dword [ebp + 8]
lea ecx, [ecx]
test byte [edi + 8], 0x40
je case.0x42b1a7.10
mov edx, dword [edi]
test byte [edx + 5], 3
je case.0x42b1a7.10
movzx eax, byte [edx + 4]
and byte [edx + 5], 0xfc
sub eax, 4
cmp eax, 0x22
ja case.0x42b1a7.10
lea ebx, [ebx]
movzx eax, byte [eax + 0x42b284]
jmp dword [eax*4 + 0x42b264]
mov eax, dword [edx + 8]
test eax, eax
je 0x42b1c5
test byte [eax + 5], 3
je 0x42b1c5
push eax
push esi
call fcn.0042a840
add esp, 8
or byte [edx + 5], 4
mov eax, dword [edx + 0xc]
add eax, 0x18
add dword [esi + 0x10], eax
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0xc], eax
movzx eax, byte [edx + 6]
test al, 0x40
je case.0x42b1a7.10
mov al, byte [ecx + 5]
test al, 3
je case.0x42b1a7.10
and al, 0xfc
mov edx, ecx
mov byte [ecx + 5], al
movzx eax, byte [ecx + 4]
sub eax, 4
cmp eax, 0x22
jbe 0x42b1a0
jmp case.0x42b1a7.10
movzx eax, byte [edx + 7]
or byte [edx + 5], 4
add eax, 0x11
add dword [esi + 0x10], eax
jmp case.0x42b1a7.10
mov eax, dword [edx + 0xc]
or byte [edx + 5], 4
add eax, 0x11
add dword [esi + 0x10], eax
jmp case.0x42b1a7.10
mov eax, dword [esi + 0x4c]
mov dword [edx + 8], eax
jmp 0x42b23c
mov eax, dword [esi + 0x4c]
mov dword [edx + 0x1c], eax
jmp 0x42b23c
mov eax, dword [esi + 0x4c]
mov dword [edx + 0x28], eax
jmp 0x42b23c
mov eax, dword [esi + 0x4c]
mov dword [edx + 0x4c], eax
mov dword [esi + 0x4c], edx
mov eax, dword [ebp + 0xc]
inc ebx
add edi, 0x10
movzx eax, byte [eax + 6]
cmp ebx, eax
jl 0x42b170
mov esi, dword [ebp + 0xc]
pop edi
movzx eax, byte [esi + 6]
inc eax
pop esi
shl eax, 4
pop ebx
mov esp, ebp
pop ebp
ret