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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
movd mm7, dword [ebp + 8]
punpckldq mm7, mm7
pand mm7, qword [0x55d6e8]
mov eax, dword [ebp + 0xc]
shl eax, 2
sub dword [ebp + 0x18], eax
sub dword [ebp + 0x20], eax
mov esi, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
shr ecx, 1
test ecx, ecx
je 0x41b4c3
movq mm6, qword [esi]
movq mm5, qword [edi]
movq mm4, mm6
pand mm4, qword [0x55d6e8]
movq mm3, mm7
pcmpeqd mm4, mm3
pand mm5, mm4
pxor mm4, qword [0x55d738]
pand mm6, mm4
por mm6, mm5
movq qword [edi], mm6
add esi, 8
add edi, 8
dec ecx
jne 0x41b491
mov ecx, dword [ebp + 0xc]
test ecx, 1
je 0x41b4fd
movd mm6, dword [esi]
movd mm5, dword [edi]
movq mm4, mm6
pand mm4, qword [0x55d6e8]
movq mm3, mm7
pcmpeqd mm4, mm3
pand mm5, mm4
pxor mm4, qword [0x55d738]
pand mm6, mm4
por mm6, mm5
movd dword [edi], mm6
add esi, 4
add edi, 4
add esi, dword [ebp + 0x20]
add edi, dword [ebp + 0x18]
dec edx
jne 0x41b488
emms
pop edi
pop esi
pop ebp
ret 0x1c

Function at 0x41b510
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
movd mm7, dword [ebp + 8]
punpckldq mm7, mm7
pand mm7, qword [0x55d6e8]
mov eax, dword [ebp + 0xc]
mov edx, eax
shl eax, 1
add eax, edx
sub dword [ebp + 0x18], eax
sub dword [ebp + 0x20], eax
mov esi, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
shr ecx, 1
or ecx, ecx
je 0x41b5c0
movd mm6, dword [esi]
xor eax, eax
xor ebx, ebx
mov al, byte [esi + 5]
shl eax, 0x10
mov bx, word [esi + 3]
or eax, ebx
movd mm4, eax
psllq mm4, 0x20
por mm6, mm4
pand mm6, qword [0x55d6e8]
movd mm5, dword [edi]
xor eax, eax
xor ebx, ebx
mov al, byte [edi + 5]
shl eax, 0x10
mov bx, word [edi + 3]
or eax, ebx
movd mm4, eax
psllq mm4, 0x20
por mm5, mm4
pand mm5, qword [0x55d6e8]
movq mm4, mm7
pcmpeqd mm4, mm6
pand mm5, mm4
pxor mm4, qword [0x55d738]
pand mm6, mm4
por mm6, mm5
movd dword [edi], mm6
psrlq mm6, 0x20
movd eax, mm6
mov word [edi + 3], ax
shr eax, 0x10
mov byte [edi + 5], al
add esi, 6
add edi, 6
dec ecx
jne 0x41b545
mov ecx, dword [ebp + 0xc]
test ecx, 1
je 0x41b625
xor eax, eax
xor ebx, ebx
mov al, byte [esi + 2]
shl eax, 0x10
mov bx, word [esi]
or eax, ebx
movd mm6, eax
pand mm6, qword [0x55d6e8]
xor eax, eax
xor ebx, ebx
mov al, byte [edi + 2]
shl eax, 0x10
mov bx, word [edi]
or eax, ebx
movd mm5, eax
pand mm5, qword [0x55d6e8]
movq mm4, mm7
pcmpeqd mm4, mm6
pand mm5, mm4
pxor mm4, qword [0x55d738]
pand mm6, mm4
por mm6, mm5
movd eax, mm6
mov word [edi], ax
shr eax, 0x10
mov byte [edi + 2], al
add esi, 3
add edi, 3
add esi, dword [ebp + 0x20]
add edi, dword [ebp + 0x18]
dec edx
jne 0x41b53c
emms
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c
Function at 0x420d40
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, dword [esp + 8]
imul esi, esi, 0x4f0
add esi, 0x58e9e8
mov eax, dword [esi + 0x10c]
push edi
xor edi, edi
cmp eax, edi
je 0x420e44
cmp dword [esi + 0x418], edi
je 0x420e44
mov dword [esi + 0x108], edi
mov ecx, dword [eax]
mov edx, dword [ecx + 0x48]
push eax
call edx
cmp dword [esi + 0x114], edi
je 0x420db0
mov eax, dword [esi + 0x114]
push 0xffffffffffffffff
mov dword [esi + 0x120], 1
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x120], edi
mov eax, dword [esi + 0x10c]
mov edx, dword [eax]
push edi
push eax
mov eax, dword [edx + 0x34]
call eax
push esi
call fcn.00420830
mov ecx, dword [esp + 0x14]
add esp, 4
lea edx, [esp + 0xc]
push edx
push 4
push esi
push 0x41f2d0
push edi
push edi
mov dword [esi + 0x104], 1
mov dword [esi + 0x124], edi
mov dword [esi + 0x128], ecx
mov dword [esi + 0x12c], edi
mov dword [esi + 0x438], edi
mov dword [esi + 0x448], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x114], eax
cmp eax, edi
je 0x420e44
push edi
push esi
call fcn.0041f0b0
mov eax, dword [esi + 0x10c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x30]
add esp, 8
push 1
push edi
push edi
push eax
call edx
mov eax, dword [esi + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
mov eax, 1
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x4220b0
Capabilities:
Write file on windows

Disassembly:
push 0x22
call fcn.00421200
mov eax, dword [0x5ac720]
mov ecx, dword [0x5ac718]
mov edx, dword [esp + 8]
add eax, ecx
push edx
mov dword [0x5a4704], eax
call fcn.004212a0
add esp, 8
mov dword [esp + 4], str._tenter_n
jmp fcn.004240c0

Function at 0x422410
Capabilities:
Write file on windows

Disassembly:
push esi
push 1
call fcn.00421200
movzx esi, word [esp + 0xc]
push esi
call fcn.00421250
push esi
push str._ttrap_t_d_n
call fcn.004240c0
push 1
xor esi, esi
call fcn.00421490
push 0x26
call fcn.00421200
add esp, 0x18
pop esi
mov dword [esp + 4], str._tret_n_n
jmp fcn.004240c0

Function at 0x4240c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x404
mov eax, dword [0x58c780]
xor eax, esp
mov dword [esp + 0x400], eax
cmp dword [0x5ac728], 0
je 0x424127
cmp dword [0x5ac714], 0
mov eax, dword [esp + 0x408]
jne 0x4240f2
cmp byte [eax], 0x2a
je 0x424127
lea ecx, [esp + 0x40c]
push ecx
push eax
lea edx, [esp + 8]
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
mov eax, dword [0x5ac728]
push eax
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [esp + 8]
push 1
push edx
call fcn.004f4fff
add esp, 0x10
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.004f3b35
add esp, 0x404
ret

Function at 0x425c40
Capabilities:
Encode data using xor

Disassembly:
mov cl, byte [edx]
xor eax, eax
mov dword [0x5c1b20], eax
test cl, cl
je 0x425c6e
push esi
mov edi, edi
lea esi, [eax*8]
sub esi, eax
movsx ecx, cl
mov eax, esi
xor eax, ecx
mov cl, byte [edx + 1]
inc edx
mov dword [0x5c1b20], eax
test cl, cl
jne 0x425c50
pop esi
ret
Function at 0x4262f0
Capabilities:
Encode data using xor

Disassembly:
mov dl, byte [ecx]
xor eax, eax
push esi
mov esi, 0x5c1b30
mov dword [0x5c1b20], eax
mov byte [0x5c1b30], dl
test dl, dl
je 0x42632f
lea esp, [esp]
lea edx, [eax*8]
sub edx, eax
mov eax, edx
movsx edx, byte [ecx]
inc ecx
xor eax, edx
mov dl, byte [ecx]
inc esi
mov byte [esi], dl
test dl, dl
jne 0x426310
mov dword [0x5c1b20], eax
call fcn.00425b70
mov ecx, dword [esp + 8]
mov dword [eax + 4], 0xffffffe5
mov dword [eax + 0xc], ecx
pop esi
ret

Function at 0x430060
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
call fcn.004ead60
call fcn.0041d8f0
push 0xffffffffffffffff
call fcn.004210b0
call fcn.0041dff0
push 0
call fcn.004f2ee0
add esp, 8
call fcn.004f0e80
call fcn.00406b90
call fcn.004edd00
call fcn.004ec5c0
call fcn.004eaa70
call fcn.004edd30
call fcn.00476570
mov esi, 0x5c2b38
lea esp, [esp]
mov eax, dword [esi]
test eax, eax
je 0x4300c5
push eax
call fcn.0046d9e0
add esp, 4
mov dword [esi], 0
add esi, 4
cmp esi, 0x5c2b58
jl 0x4300b0
mov eax, dword [0x5c30b4]
test eax, eax
je 0x4300f2
push eax
mov eax, dword [0xc31b68]
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov dword [0x5c30b4], 0
cmp dword [0x5c30b0], 0
je 0x430110
push 0x5c2b5c
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x5c30b0], 0
cmp byte [0x5c2b78], 0
je 0x430161
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x5c2b78
mov dword [esp + 0xc], 0x55f6f0
call fcn.0042d080
mov esi, eax
add esp, 4
test esi, esi
je 0x43015a
mov edx, dword [0x5c30a4]
mov eax, dword [0x5c2c7c]
push esi
push 1
push edx
push eax
call fcn.004f4fff
push esi
call fcn.004f446a
add esp, 0x14
mov byte [0x5c2b78], 0
mov eax, 1
pop esi
add esp, 8
ret

Function at 0x430400
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x5ac734], 0
jne 0x4304eb
cmp dword [esp + 8], 0
je 0x4304eb
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, 0x5c3438
lea ecx, [ecx]
mov eax, dword [esi]
test eax, eax
je 0x43044a
push 0
push eax
call edi
test eax, eax
jne 0x43044a
mov eax, dword [esi]
push eax
call ebx
mov dword [esi], 0
add esi, 0x94
cmp esi, 0x5c46b8
jl 0x430430
xor esi, esi
mov eax, 0x5c3438
nop
cmp dword [eax], 0
je 0x43047a
add eax, 0x94
inc esi
cmp eax, 0x5c46b8
jl 0x430460
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, esi
imul eax, eax, 0x94
mov dword [ecx], esi
neg edx
mov dword [eax + 0x5c3448], ecx
lea ecx, [esp + 0xc]
push ecx
sbb edx, edx
and edx, 4
push edx
lea edi, [eax + 0x5c3438]
push edi
push 0x4302b0
push 0
push 0
mov dword [eax + 0x5c34c8], 0
mov dword [eax + 0x5c343c], 1
mov dword [eax + 0x5c3440], 0
call fcn.004f7c44
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x430472
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret
or eax, 0xffffffff
pop ecx
ret
Function at 0x430800
Capabilities:
Resume thread

Disassembly:
sub esp, 0x9c
push ebx
push ebp
push esi
push edi
push 0x1f4
xor ebp, ebp
mov dword [0x5ac734], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
lea esi, [esp + 0x2c]
mov edi, 0x5c3438
mov eax, dword [edi]
test eax, eax
je 0x430845
mov dword [esi], eax
mov eax, dword [esi]
push eax
call ebx
test eax, eax
jg 0x430838
inc ebp
add esi, 4
add edi, 0x94
cmp edi, 0x5c46b8
jl 0x430830
test ebp, ebp
jle 0x4308e4
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ecx]
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
call esi
test eax, eax
je 0x4308a4
lea edx, [esp + 0x10]
push edx
call edi
lea eax, [esp + 0x10]
push eax
call ebx
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
call esi
test eax, eax
jne 0x430883
push 0
push 1
lea edx, [esp + 0x34]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x430870
xor esi, esi
test ebp, ebp
jle 0x4308d0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + esi*4 + 0x2c]
push eax
call edi
inc esi
cmp esi, ebp
jl 0x4308c4
push 0x1280
push 0
push 0x5c3438
call fcn.004f3750
add esp, 0xc
pop edi
pop esi
pop ebp
mov dword [0x5ac734], 0
pop ebx
add esp, 0x9c
ret
Function at 0x46f350
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [0x58b140]
cmp eax, 0x270
jl 0x46f430
cmp eax, 0x271
jne 0x46f374
push 0x1105
call fcn.0046f250
add esp, 4
xor ecx, ecx
jmp 0x46f380
mov eax, dword [ecx*4 + 0x5ccce4]
xor eax, dword [ecx*4 + 0x5ccce0]
inc ecx
and eax, 0x7fffffff
xor eax, dword [ecx*4 + 0x5cccdc]
mov edx, eax
shr eax, 1
and edx, 1
xor eax, dword [edx*4 + 0x58b2cc]
xor eax, dword [ecx*4 + 0x5cd310]
cmp ecx, 0xe3
mov dword [ecx*4 + 0x5cccdc], eax
jl 0x46f380
cmp ecx, 0x26f
jge 0x46f401
lea ecx, [ecx*4 + 0x5ccce0]
mov edi, edi
mov eax, dword [ecx]
xor eax, dword [ecx + 4]
add ecx, 4
and eax, 0x7fffffff
xor eax, dword [ecx - 4]
mov edx, eax
and edx, 1
mov edx, dword [edx*4 + 0x58b2cc]
xor edx, dword [ecx - 0x390]
shr eax, 1
xor edx, eax
cmp ecx, 0x5cd69c
mov dword [ecx - 4], edx
jl 0x46f3d0
mov ecx, dword [0x5cd69c]
mov eax, dword [0x5ccce0]
xor eax, ecx
and eax, 0x7fffffff
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
xor eax, dword [ecx*4 + 0x58b2cc]
xor eax, dword [0x5cd310]
mov dword [0x5cd69c], eax
xor eax, eax
mov ecx, dword [eax*4 + 0x5ccce0]
inc eax
mov edx, ecx
shr edx, 0xb
xor ecx, edx
mov dword [0x58b140], eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov edx, ecx
and edx, 0xffffdf8c
shl edx, 0xf
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret

Function at 0x4704a0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, eax
shr ecx, 8
mov byte [esp + 2], cl
mov ecx, edx
shr ecx, 0x10
push ebx
mov ebx, eax
mov byte [esp + 7], cl
mov ecx, edx
movzx eax, al
movzx edx, dl
sub edx, eax
shr ecx, 8
mov byte [esp + 0x18], cl
movzx eax, byte [esp + 0x18]
mov dword [esp + 0xc], edx
movzx edx, byte [esp + 6]
sub eax, edx
push ebp
shr ebx, 0x10
mov dword [esp + 0xc], eax
movzx eax, byte [esp + 0xb]
push esi
movzx edx, bl
push edi
xor ecx, ecx
xor ebp, ebp
xor edi, edi
xor esi, esi
sub eax, edx
mov dword [esp + 0x24], eax
mov eax, 0x80808081
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
add al, bl
mov byte [ecx + 0x5cd7c8], al
mov eax, 0x80808081
imul edi
add edx, edi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
add al, byte [esp + 0x12]
add esi, dword [esp + 0x24]
mov byte [ecx + 0x5cd6c8], al
add edi, dword [esp + 0x14]
mov eax, 0x80808081
imul ebp
add edx, ebp
add ebp, dword [esp + 0x18]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
add al, byte [esp + 0x20]
inc ecx
cmp ecx, 0x100
mov byte [ecx + 0x5cd8c7], al
jl 0x470501
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
Function at 0x4e9040
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x78]
test eax, eax
jne 0x4e90aa
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
mov dx, word [esi + 0x30]
mov dword [0xc1a658], eax
mov eax, dword [esi + 0x10]
mov dword [0xc1a654], ecx
movzx ecx, byte [esi + 6]
sar eax, cl
movzx ecx, byte [esi + 1]
sub eax, dword [ecx*8 + 0xb55ce8]
mov word [0xc1a650], dx
mov edx, dword [esp + 0x14]
shl eax, 0x10
mov dword [edx], eax
movzx ecx, byte [esi + 6]
mov eax, dword [esi + 0x14]
mov edx, dword [esp + 0x18]
sar eax, cl
movzx ecx, byte [esi + 1]
sub eax, dword [ecx*8 + 0xb55cec]
shl eax, 0x10
mov dword [edx], eax
jmp 0x4e91bc
mov ecx, dword [esp + 0x14]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push edi
push ebp
push ecx
push eax
call fcn.004e9040
movzx eax, word [0xc1a650]
mov ecx, dword [0x5cd6c0]
mov edx, eax
add eax, 0x200
and eax, 0x7ff
mov edi, dword [ecx + eax*4]
mov eax, dword [esi + 0x10]
and edx, 0x7ff
mov edx, dword [ecx + edx*4]
movzx ecx, byte [esi + 6]
add esp, 0xc
sar eax, cl
mov ecx, dword [0xc1a658]
push 0
mov dword [esp + 0x20], edx
cdq
push ecx
push edx
push eax
neg edi
call fcn.004f4b30
mov cl, 0x10
call fcn.004f7ee0
movzx ecx, byte [esi + 6]
mov ebx, eax
mov eax, dword [esi + 0x14]
sar eax, cl
mov ecx, dword [0xc1a654]
push 0
push ecx
cdq
push edx
push eax
call fcn.004f4b30
mov cl, 0x10
call fcn.004f7ee0
mov ecx, eax
imul eax, edi
imul ecx, dword [esp + 0x1c]
mov edx, ebx
imul ebx, dword [esp + 0x1c]
imul edx, edi
sub ecx, edx
mov edx, ecx
mov ecx, dword [esp + 0x20]
add dword [ecx], edx
add eax, ebx
sub dword [ebp], eax
mov eax, dword [esi + 0x20]
pop edi
pop ebp
pop ebx
cmp eax, 0x10000
je 0x4e9183
movzx edx, word [0xc1a65a]
mov ecx, dword [0xc1a658]
push edx
shl ecx, 0x10
push ecx
push 0
push eax
call fcn.004f4b30
mov dword [esp + 4], eax
mov dword [0xc1a658], edx
mov edx, dword [esi + 0x24]
cmp edx, 0x10000
je 0x4e91b1
movzx ecx, word [0xc1a656]
mov eax, dword [0xc1a654]
push ecx
shl eax, 0x10
push eax
push 0
push edx
call fcn.004f4b30
mov dword [esp + 4], eax
mov dword [0xc1a654], edx
mov ax, word [esi + 0x30]
add word [0xc1a650], ax
mov ecx, dword [0xc1a658]
mov edx, dword [0xc1a654]
mov ax, word [0xc1a650]
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], edx
mov word [esi + 0x32], ax
pop esi
add esp, 8
ret

Function at 0x4ed100
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x4ed10c
or eax, 0xffffffff
ret
cmp dword [eax], 0
je 0x4ed115
mov eax, dword [eax + 0xc]
ret
mov eax, dword [eax + 0x10]
mov dword [esp + 4], eax
jmp 0x4ed980
mov eax, dword [esp + 4]
test eax, eax
jne 0x4ed98c
or eax, 0xffffffff
ret
cmp dword [eax], 0
je 0x4ed995
mov eax, dword [eax + 0xc]
ret
mov eax, dword [eax + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
ret
Function at 0x4edc80
Capabilities:
Get common file path

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x4edcef
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 4]
push ecx
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4edce4
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 4]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov edx, dword [esp + 4]
test eax, eax
mov eax, dword [esp]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
je 0x4edce2
call eax
mov eax, dword [esp]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 1
add esp, 8
ret
call eax
mov eax, dword [esp]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
add esp, 8
ret

Function at 0x4ee1e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
mov eax, dword [0x58c780]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
mov bl, byte [esp + 0xa8]
test bl, bl
je 0x4ee243
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0xc], 6
jne 0x4ee243
cmp dword [esp + 0x10], 1
jb 0x4ee243
push esi
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x10
call esi
mov edx, dword [esp + 8]
push 2
push 0
push edx
push 0x11
call esi
pop esi
xor eax, eax
cmp byte [esp + 0xa4], al
movzx ecx, bl
setne al
neg ecx
sbb ecx, ecx
and ecx, 2
or eax, ecx
or eax, 0x80000040
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
mov ecx, dword [esp + 0x9c]
pop ebx
xor ecx, esp
call fcn.004f3b35
add esp, 0x9c
ret
Function at 0x4ee280
Capabilities:
Get disk information

Disassembly:
sub esp, 0x298
mov eax, dword [0x58c780]
xor eax, esp
mov dword [esp + 0x294], eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push esi
mov esi, dword [esp + 0x2a8]
push edi
mov edi, dword [esp + 0x2a8]
mov byte [0xc31a58], 0
test esi, esi
je 0x4ee33d
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x4ee33d
push 0x104
lea eax, [esp + 0x1a0]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push 0x104
lea ecx, [esp + 0xb0]
push ecx
push esi
call ebp
test edi, edi
je 0x4ee314
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4ee314
push edi
lea edx, [esp + 0x9c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4ee33d
push esi
push 0xc31a58
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x294]
xor ecx, esp
call fcn.004f3b35
add esp, 0x298
ret
push ebx
lea eax, [esp + 0x1c]
push eax
push 0x80
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x4ee3c0
lea esi, [esp + 0x1c]
xor ebx, ebx
cmp byte [esi], 0
je 0x4ee3c0
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x4ee3b7
push 0x104
lea ecx, [esp + 0x1a4]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x104
lea edx, [esp + 0xb4]
push edx
push esi
call ebp
test edi, edi
je 0x4ee3db
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4ee3db
push edi
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4ee3db
inc ebx
add esi, 4
cmp ebx, 0x20
jl 0x4ee358
xor eax, eax
mov ecx, dword [esp + 0x2a4]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004f3b35
add esp, 0x298
ret
push esi
push 0xc31a58
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
jmp 0x4ee3c2
Function at 0x4eec10
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [0xc31b78], edi
je 0x41c75f
mov eax, dword [0xc31b68]
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call esi
test edi, edi
je 0x41c6f7
mov ecx, dword [0xc31b68]
push 0x58e7c4
push ecx
mov dword [0xc31b78], 1
mov dword [0x58e788], 2
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [0xc31b68]
push 0x82000000
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
push 1
mov dword [0x58e7a0], eax
call edi
mov ecx, dword [0xc31b68]
push 0
push eax
mov dword [0x58e790], eax
mov eax, dword [0x58e7a0]
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [0xc31b68]
push 5
push edx
call esi
mov eax, dword [0xc31b68]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop esi
mov eax, 1
pop edi
ret
mov ecx, dword [0xc3089c]
mov edx, dword [0xc31b68]
push ecx
push 0xfffffffffffffff0
push edx
mov dword [0xc31b78], 0
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [0x58e7c8]
mov ecx, dword [0x58e7d0]
mov edx, dword [0x58e7cc]
push 0
sub ecx, eax
push ecx
mov ecx, dword [0x58e7c4]
sub edx, ecx
push edx
push eax
mov eax, dword [0xc31b68]
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [0xc31b68]
push 5
push ecx
call esi
mov edx, dword [0xc31b68]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop esi
mov eax, 1
pop edi
ret
cmp dword [0xc31ba8], 0
je 0x4eec1e
jmp 0x41c640
push esi
push edi
push 0
call fcn.004eeb70
push 0
call fcn.0041dd60
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
push 0x1f4
call esi
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0041c880
add esp, 4
push 0x1f4
mov edi, eax
call esi
push 1
call fcn.0041dd60
push 1
call fcn.004eeb70
add esp, 8
mov eax, edi
pop edi
pop esi
ret
Function at 0x4f0680
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x58c780]
xor eax, esp
mov dword [esp + 0x190], eax
cmp dword [0xc3343c], 0
push esi
jne 0x4f0718
mov esi, dword [esp + 0x19c]
lea eax, [esp + 4]
push eax
push esi
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x4f06db
push str.WinSock
push 1
call fcn.004f0290
add esp, 8
xor eax, eax
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004f3b35
add esp, 0x194
ret
cmp word [esp + 4], si
je 0x4f070e
push 0x55fe90
push 1
call fcn.004f0290
add esp, 8
call sub.WS2_32.dll_WSACleanup
xor eax, eax
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004f3b35
add esp, 0x194
ret
mov dword [0xc3343c], 1
mov ecx, dword [esp + 0x194]
pop esi
xor ecx, esp
mov eax, 1
call fcn.004f3b35
add esp, 0x194
ret

Function at 0x4f0760
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x1c]
cmp edi, 0x200
mov esi, edi
jle 0x4f077f
mov esi, 0x200
push 0
push esi
push ebx
push ebp
call sub.WS2_32.dll_recv
test eax, eax
jge 0x4f07ab
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2714
je 0x4f07b1
cmp eax, 0x2733
je 0x4f07b1
cmp eax, 0x2738
jne 0x4f07bf
mov eax, esi
jmp 0x4f07ad
je 0x4f07bf
sub edi, eax
add ebx, eax
test edi, edi
jg 0x4f0770
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x4f07d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
nop
push 0
push esi
push edi
push ebx
call sub.WS2_32.dll_send
test eax, eax
jge 0x4f0807
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2714
je 0x4f080d
cmp eax, 0x2733
je 0x4f080d
pop edi
pop esi
xor eax, eax
pop ebx
ret
je 0x4f0801
sub esi, eax
add edi, eax
test esi, esi
jg 0x4f07e0
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x4f09c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
nop
cmp esi, 0x200
mov eax, esi
jle 0x4f09df
mov eax, 0x200
push 0
push eax
push edi
push ebx
call sub.WS2_32.dll_send
test eax, eax
jge 0x4f0a06
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2714
je 0x4f0a0c
cmp eax, 0x2733
je 0x4f0a0c
pop edi
pop esi
xor eax, eax
pop ebx
ret
je 0x4f0a00
sub esi, eax
add edi, eax
test esi, esi
jg 0x4f09d0
pop edi
pop esi
mov eax, 1
pop ebx
ret