joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4220c0
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x43bca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov ecx, edi
mov dword [esp + 0x14], edi
call fcn.00421c60
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x20], 0
test eax, eax
je 0x422110
mov al, byte [esp + 0xb]
lea ecx, [esp + 0xb]
push 0x43eb60
push ecx
mov byte [esp + 0x13], al
call fcn.00430b31
lea edx, [esp + 0xc]
push edx
push 4
push esi
push 0x421e70
push 0
push 0
call fcn.00431e7a
mov ecx, dword [esp + 0x24]
add esp, 0x18
test eax, eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
jne 0x422150
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x10]
push 0x43eab0
push edx
mov dword [esp + 0x18], eax
call fcn.00430b31
mov ecx, dword [esi + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x422178
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x10]
push 0x43eab0
push edx
mov dword [esp + 0x18], eax
call fcn.00430b31
mov eax, dword [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4221a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
push 0x43eab0
push ecx
mov dword [esp + 0x18], eax
call fcn.00430b31
mov ecx, edi
mov dword [esi + 0x1c], 1
call fcn.00421c70
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x425290
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4252c0
push esi
call fcn.00428660
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x4252b9
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x425343
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x42532f
mov eax, dword [esi + 8]
test eax, eax
je 0x4252e4
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x42532b
cmp eax, 2
je 0x42532f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4252d7
cmp eax, 3
je 0x42530a
cmp eax, 1
jne 0x4252d7
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4252d7
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4252d7
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.00425370
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x425363
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.00425370
add esp, 4
pop esi
ret

Function at 0x431bb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x431bd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043637a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x431bf3
test byte [esp + 8], 2
je 0x431bf3
call fcn.004363ed
mov dword [eax], 0xd
call fcn.004363f6
mov dword [eax], 5
jmp 0x431bcc
xor eax, eax
ret
Function at 0x4076b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6239f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [esp + 0x24]
push ebx
push ebp
xor ebp, ebp
mov ebx, ecx
push esi
cmp eax, ebp
push edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebp
je 0x4076fc
mov dword [ebx], 0x62d4b4
mov dword [ebx + 0x7c], ebp
mov dword [ebx + 0x58], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [esp + 0x10], 1
mov dword [esp + 0x28], ebp
mov eax, dword [ebx]
mov dword [ebx + 4], ebp
lea esi, [ebx + 8]
mov ecx, dword [eax + 4]
mov dword [ecx + ebx], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov edx, dword [ebx]
mov edi, dword [edx + 4]
mov dword [edi + ebx + 0x28], esi
add edi, ebx
mov ecx, edi
mov dword [edi + 0x2c], ebp
mov byte [edi + 0x30], 0x20
call fcn.00606a17
cmp dword [edi + 0x28], ebp
jne 0x40773c
mov eax, dword [edi + 4]
push ebp
or al, 4
mov ecx, edi
or al, 4
push eax
call fcn.006066f6
mov dword [esp + 0x28], 2
mov dword [esp + 0x1c], esi
call fcn.0060730b
lea ecx, [esp + 0x14]
mov dword [esi + 0x34], eax
call fcn.006071a8
mov edi, dword [0xd371fc]
lea ecx, [esp + 0x34]
call fcn.006071a8
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jae 0x407774
inc eax
mov dword [edi + 4], eax
lea ecx, [esp + 0x34]
call fcn.00607244
lea ecx, [esp + 0x14]
call fcn.00607244
lea eax, [esi + 4]
lea ecx, [esi + 0x14]
lea edx, [esi + 0x18]
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
lea eax, [esi + 8]
lea ecx, [esi + 0x24]
lea edx, [esi + 0x28]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0x10], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], edx
mov dword [eax], ebp
mov eax, dword [esi + 0x20]
push ebp
push ebp
push ebp
mov dword [eax], ebp
mov ecx, dword [esi + 0x30]
mov byte [esp + 0x34], 3
mov dword [ecx], ebp
mov ecx, esi
call fcn.00408a60
mov edx, dword [esp + 0x30]
push 2
push ebp
push edx
push ebp
mov ecx, esi
mov byte [esp + 0x38], 4
mov dword [esi], vtable.std::strstreambuf.0
call fcn.00607049
mov eax, dword [ebx]
pop edi
pop esi
pop ebp
mov ecx, dword [eax + 4]
mov eax, ebx
mov dword [ecx + ebx], vtable.std::istrstream.0
mov ecx, dword [esp + 0x14]
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8

Function at 0x40e660
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [str.87996606]
mov ecx, dword [0x641adc]
push esi
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0xc]
shr ecx, 3
jecxz 0x40e6a9
mov esi, dword [ebp + 8]
movq mm2, qword [ebp - 8]
movq mm3, mm2
movq mm0, qword [esi]
pxor mm0, mm3
pxor mm0, mm2
movq mm1, mm0
psllq mm0, 0x39
psrlq mm1, 7
por mm0, mm1
movq qword [esi], mm0
add esi, 8
loop 0x40e68a
emms
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40e6c0
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, ecx
push esi
push edi
mov edx, dword [ebx + 0x15c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, ebx
add esi, 7
and esi, 0xfffffff8
push esi
push edx
call fcn.0040e760
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 1
push 0
push 2
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x40e718
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x641ae4
push edi
call fcn.00613b7b
mov edi, eax
add esp, 8
test edi, edi
je 0x40e74f
push 0
push 0
push edi
call fcn.00613a91
mov eax, dword [ebx + 0x15c]
push edi
push 1
push esi
push eax
call fcn.00613958
push edi
call fcn.006138db
add esp, 0x20
pop edi
pop esi
pop ebx
ret 4

Function at 0x40e760
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [str.11111111]
push esi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 0xc]
shr ecx, 3
jecxz 0x40e7a2
mov esi, dword [ebp + 8]
movq mm2, qword [ebp - 8]
movq mm0, qword [esi]
movq mm1, mm0
psllq mm0, 3
psrlq mm1, 0x3d
por mm0, mm1
pxor mm0, mm2
movq qword [esi], mm0
add esi, 8
loop 0x40e786
emms
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40f68d
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, 0x68ec20
jmp 0x40f670
push 0xffffffffffffffff
push 0x623f35
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp]
push ebx
push esi
mov esi, ecx
mov cl, byte [esp + 8]
xor ebx, ebx
mov byte [esi + 1], cl
mov ecx, esi
mov dword [esp + 0xc], esi
mov byte [esi], al
mov byte [esi + 8], bl
call fcn.004153f0
mov dl, byte [esp + 8]
mov al, byte [esp + 8]
lea ecx, [esi + 0x10]
mov dword [esp + 0x18], ebx
mov byte [ecx], dl
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.00415bf0
mov dl, byte [esp + 8]
mov al, byte [esp + 8]
lea ecx, [esi + 0x20]
mov byte [esp + 0x18], 1
mov byte [ecx], dl
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.00416440
mov dl, byte [esp + 8]
mov al, byte [esp + 8]
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 2
mov byte [ecx], dl
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.00416bd0
mov dl, byte [esp + 8]
mov al, byte [esp + 8]
lea ecx, [esi + 0x40]
mov byte [esp + 0x18], 3
mov byte [ecx], dl
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.00417360
mov dl, byte [esp + 8]
mov al, byte [esp + 8]
lea ecx, [esi + 0x50]
mov byte [esp + 0x18], 4
mov byte [ecx], dl
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.00417af0
mov dl, byte [esp + 8]
mov al, byte [esp + 8]
lea ecx, [esi + 0x60]
mov byte [esp + 0x18], 5
mov byte [ecx], dl
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.00418150
lea edx, [esp + 8]
lea eax, [esp + 9]
push edx
push ebx
lea ecx, [esi + 0x70]
push eax
mov byte [esp + 0x24], 6
call fcn.00414b20
lea ecx, [esp + 0xa]
mov byte [esp + 0x18], 7
push ecx
push ebx
lea edx, [esp + 0x13]
push edx
lea ecx, [esi + 0x80]
call fcn.00414c80
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4334e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x625448
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push esi
mov ecx, 0x6a0130
call fcn.0042d810
mov cl, byte [esp + 7]
mov al, byte [esp + 7]
mov byte [esp + 0x31], cl
lea ecx, [esp + 0x30]
mov byte [esp + 0x30], al
mov byte [esp + 0x38], 0
call fcn.00436910
mov eax, dword [0xa4f274]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x6c], esi
push esi
je 0x433538
push 0x642a34
jmp 0x43353d
push 0x642a24
mov ecx, 0x6a0130
call fcn.0042da60
push 1
push 0x6424a8
mov ecx, 0x6a0130
call fcn.0042da60
mov eax, dword [esp + 0x34]
lea edx, [esp + 0xc]
push eax
mov ecx, dword [eax]
push ecx
push edx
lea ecx, [esp + 0x3c]
call fcn.00436650
mov eax, dword [0xa52d00]
cmp eax, esi
jbe 0x4336a8
push edi
mov edi, 1
cmp eax, edi
mov dword [esp + 0xc], edi
jb 0x433692
mov esi, 0xa52d1b
push ebx
push ebp
mov dword [esp + 0x18], esi
mov eax, dword [esi - 4]
test eax, eax
je 0x433673
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x50]
mov byte [esp + 0x50], al
call fcn.00409ab0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x78], 1
push ecx
lea ecx, [esp + 0x64]
mov dword [esp + 0x60], edi
call fcn.00435950
lea edx, [esp + 0x5c]
lea eax, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x80], 2
call fcn.00438090
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x1c]
mov edx, dword [eax + 4]
lea eax, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], edx
call fcn.0045bbb0
mov ebx, dword [eax]
push 1
lea ecx, [esp + 0x64]
mov byte [esp + 0x7c], 1
mov edx, dword [eax + 4]
mov dword [esp + 0x3c], edx
call fcn.00409ab0
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x7c], 0
call fcn.00409ab0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add ebx, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
mov ecx, ebx
push ebp
call fcn.0040c6a0
test al, al
je 0x433673
mov edi, dword [ebx + 4]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov esi, dword [esp + 0x18]
mov dword [ebx + 8], ebp
add ebp, eax
mov byte [ebp], 0
mov edi, dword [esp + 0x14]
mov eax, dword [0xa52d00]
inc edi
add esi, 0x17
cmp edi, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
jbe 0x433598
pop ebp
pop ebx
lea ecx, [esp + 0x34]
push 3
push ecx
push 6
mov ecx, 0x6a0130
call fcn.00432160
xor esi, esi
pop edi
mov eax, dword [esp + 0x34]
lea edx, [esp + 8]
push eax
mov dword [esp + 0x70], 0xffffffff
mov ecx, dword [eax]
push ecx
push edx
lea ecx, [esp + 0x3c]
call fcn.00436650
mov eax, dword [esp + 0x34]
push eax
call fcn.006066eb
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], esi
call fcn.006071a8
mov eax, dword [0x6a04c8]
dec eax
mov dword [0x6a04c8], eax
jne 0x433706
mov ecx, dword [0x6a04c4]
push ecx
call fcn.006066eb
add esp, 4
mov dword [0x6a04c4], esi
lea ecx, [esp + 0xc]
call fcn.00607244
mov ecx, dword [esp + 0x64]
pop esi
mov dword fs:[0], ecx
add esp, 0x6c
ret
Function at 0x435b10
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x625550
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.00409ab0
mov eax, dword [0x62d4c0]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.00435db0
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.00438090
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x435bb7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x435bae
cmp al, 0xff
je 0x435bae
dec al
mov byte [ecx], al
jmp 0x435bb7
push ecx
call fcn.006066eb
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x435be8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x435bdf
cmp al, 0xff
je 0x435bdf
dec al
mov byte [ecx], al
jmp 0x435be8
push ecx
call fcn.006066eb
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4

Function at 0x43d020
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x625bb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov al, byte [esp + 0x24]
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0xc]
mov byte [esp + 0xc], al
call fcn.00409ab0
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x28]
lea edx, [esp + 4]
or eax, 0x20000000
push ecx
push edx
lea ecx, [esi + 0x14]
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], eax
call fcn.0043dc40
mov eax, dword [eax]
mov ecx, dword [esi + 0x18]
cmp eax, ecx
je 0x43d0d6
mov eax, dword [eax + 0x14]
mov esi, 0x62d4bc
test eax, eax
je 0x43d08c
mov esi, eax
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x43d0c2
mov al, byte [ecx - 1]
test al, al
je 0x43d0b8
cmp al, 0xff
je 0x43d0b8
dec al
mov byte [ecx - 1], al
mov eax, esi
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
dec ecx
push ecx
call fcn.006066eb
add esp, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x43d10c
mov al, byte [ecx - 1]
test al, al
je 0x43d102
cmp al, 0xff
je 0x43d102
dec al
pop esi
mov byte [ecx - 1], al
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
dec ecx
push ecx
call fcn.006066eb
add esp, 4
mov ecx, dword [esp + 0x18]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x488580
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x108
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x114]
push 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov eax, ecx
mov esi, edi
mov edi, edx
push 3
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4885df
pop edi
xor eax, eax
pop esi
add esp, 0x108
ret
mov eax, dword [esp + 0x118]
lea edx, [esp + 8]
push 0
push edx
push 0x300
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 0xffffffff
push esi
jne 0x488611
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x108
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x108
ret
Function at 0x488ce0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 4]
push ebx
push esi
push edi
mov edi, str..Guildlogo_
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x18]
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
mov edi, str..glg
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push eax
and ecx, 3
lea eax, [esp + 0x24]
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0x40000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x488dba
push 0
push 0x80
push 2
push 0
push 0
lea ecx, [esp + 0x24]
push 0x40000000
push ecx
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x488dba
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x108
ret
mov eax, dword [esp + 0x11c]
lea edx, [esp + 0xc]
push 0
push edx
push 0x288
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 0xffffffff
push esi
jne 0x488ded
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x108
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x108
ret
Function at 0x488e10
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x108
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 4]
push ebx
push esi
push edi
mov edi, str..Guildlogo_
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x18]
and ecx, 3
push 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..glg
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push 1
and ecx, 3
lea eax, [esp + 0x24]
push connect
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x488ec9
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x108
ret
mov edx, dword [esp + 0x11c]
lea ecx, [esp + 0xc]
push 0
push ecx
push 0x288
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 0xffffffff
push esi
jne 0x488efc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x108
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x108
ret
Function at 0x496750
Capabilities:
Create thread

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x3c]
push edi
xor edi, edi
lea ebp, [esi + 0x14]
lea ebx, [esi + 0x18]
cmp eax, edi
mov dword [esi + 0x934], edi
mov dword [esi + 0x938], edi
mov dword [ebp], eax
mov dword [ebx], ecx
jne 0x4967b0
push edi
push ebp
push edi
call sub.DSOUND.dll_DirectSoundCreate
cmp eax, edi
jl 0x4968ba
mov eax, dword [ebp]
mov ecx, dword [esp + 0x38]
push 2
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
cmp eax, edi
jl 0x4968ba
mov dword [esi + 0x934], 1
cmp dword [ebx], edi
jne 0x496806
mov ebp, dword [ebp]
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x24
mov dword [esp + 0x18], 0x11
mov edx, dword [ebp]
push ebx
push eax
push ebp
call dword [edx + 0xc]
test eax, eax
jl 0x4968ba
mov eax, dword [ebx]
test eax, eax
je 0x4967fc
mov ecx, dword [eax]
push 1
push 0
push 0
push eax
call dword [ecx + 0x30]
mov dword [esi + 0x938], 1
mov eax, dword [ebx]
lea edi, [esi + 0x1c]
push edi
push 0x62f2d8
mov edx, dword [eax]
push eax
call dword [edx]
mov ebp, eax
test ebp, ebp
jge 0x49684c
mov eax, dword [esi + 0x938]
test eax, eax
je 0x4968b8
mov eax, dword [ebx]
test eax, eax
je 0x4968b8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, ebp
pop esi
mov dword [ebx], 0
pop ebp
pop ebx
add esp, 0x24
ret 0xc
mov eax, dword [edi]
push 0
push 0
push 0xbf800000
mov edx, dword [eax]
push 0
push 0xbf000000
push 0
push 0
push eax
call dword [edx + 0x34]
mov edi, dword [edi]
push 0
push 0x3ba3d70a
push edi
mov eax, dword [edi]
call dword [eax + 0x2c]
mov ecx, esi
call fcn.004998c0
mov ecx, dword [esp + 0x38]
push 0xa264e8
mov dword [esi + 8], eax
mov dword [esi + 0x10], 1
mov dword [esi + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea edx, [esp + 0x3c]
push edx
push 0
push 0
push 0x497cf0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x93c], eax
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc