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

Disassembly:
sub esp, 0x10
lea eax, [esp + 0xc]
push ebx
push esi
push edi
push ebp
mov edi, ecx
mov esi, dword [esp + 0x24]
push 4
push eax
push esi
call fcn.0045d8b0
lea ecx, [esp + 0x24]
add esp, 0xc
push 4
push ecx
push esi
call fcn.0045d8b0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
add esp, 0xc
push eax
push ecx
mov ecx, edi
call fcn.0042b660
mov word [esp + 0x16], 0
mov ecx, dword [edi + 0xc]
test ecx, ecx
jle 0x42bf14
xor bp, bp
mov eax, dword [edi + 0xc]
test eax, eax
jle 0x42beff
movsx eax, word [esp + 0x16]
lea ebx, [eax*4]
lea eax, [esp + 0x14]
push 1
push eax
push esi
call fcn.0045d8b0
lea eax, [esp + 0x21]
add esp, 0xc
push 1
push eax
push esi
call fcn.0045d8b0
lea eax, [esp + 0x1f]
add esp, 0xc
push 1
push eax
push esi
call fcn.0045d8b0
movsx eax, bp
lea edx, [eax + eax*2]
mov eax, dword [edi + 0x8d8c]
inc bp
add esp, 0xc
lea ecx, [edx*8]
mov eax, dword [eax + ebx]
lea edx, [eax + ecx + 5]
mov al, byte [esp + 0x14]
xor al, byte [edx]
and al, 0x1f
xor al, byte [edx]
mov byte [edx], al
mov edx, dword [edi + 0x8d8c]
mov eax, dword [edx + ebx]
lea edx, [eax + ecx + 5]
mov al, byte [esp + 0x15]
shl al, 5
mov cl, byte [edx]
xor cl, al
and cl, 0x1f
xor cl, al
movsx eax, bp
mov byte [edx], cl
mov ecx, dword [edi + 0xc]
cmp eax, ecx
jl 0x42be7a
inc word [esp + 0x16]
mov ecx, dword [edi + 0xc]
movsx eax, word [esp + 0x16]
cmp eax, ecx
jl 0x42be60
push 0
mov eax, dword [edi + 0xc]
dec ax
push 0
push 0
push eax
mov eax, dword [edi + 8]
mov ecx, edi
dec ax
push eax
push 0
push 0
call fcn.0042f430
push 0
mov eax, dword [edi + 0xc]
dec ax
push 0
push 0
push eax
mov eax, dword [edi + 8]
mov ecx, edi
dec ax
push eax
push 0
push 0
push 0
push 0
call fcn.0042f840
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8
Function at 0x433830
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4338b5
push eax
mov dword fs:[0], esp
mov eax, dword [ebp + 8]
sub esp, 4
push esi
push 1
mov dword [ebp - 0x10], ecx
mov esi, ecx
push eax
call fcn.004d30a0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], 0
push ecx
mov dword [esi], 0x54ea90
mov ecx, esi
mov dword [esi + 0x30], eax
mov word [esi + 4], 0x6c
call fcn.004d3630
push 1
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 0x3c]
movsx ecx, word [eax + 0x3c]
push ecx
call fcn.0052f7a0
add esp, 8
mov dword [esi + 0x40], eax
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4338d0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43395c
push eax
mov dword fs:[0], esp
mov eax, dword [ebp + 8]
sub esp, 4
push esi
push 1
mov dword [ebp - 0x10], ecx
mov esi, ecx
push eax
call fcn.004d30a0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0x14]
mov dword [esi], 0x54ea90
push 1
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x20], ecx
mov ecx, dword [esi + 8]
mov dword [esi + 0x24], edx
mov word [esi + 4], 0x6c
mov dword [esi + 0x28], eax
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 0x3c]
movsx ecx, word [eax + 0x3c]
push ecx
call fcn.0052f7a0
add esp, 8
mov dword [esi + 0x40], eax
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x44f240
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f3b0
push eax
mov dword fs:[0], esp
sub esp, 4
push ebx
push esi
mov dword [ebp - 0x10], ecx
push edi
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, 0xffffffff
xor ebx, ebx
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], edi
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov eax, 0xbf800000
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x58], ecx
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
push 0x28
mov dword [esi + 0x68], ebx
mov dword [esi + 0x48], 0x40000000
mov dword [esi + 0x6c], 0xa
call fcn.0052f700
add esp, 4
mov dword [esi + 0x60], eax
mov dword [ebp - 4], ebx
mov dword [esi + 0xf0], ebx
mov dword [esi + 0xf4], ebx
mov dword [esi + 0xf8], ebx
mov dword [esi + 0x104], ebx
mov dword [esi + 0x108], ebx
mov dword [esi + 0x124], ebx
mov dword [esi + 0x128], ebx
mov dword [esi + 0x12c], ebx
mov dword [esi + 0x100], 0xbb8
mov dword [esi + 0x10c], 0x3e8
mov dword [esi + 0x120], 0x3f800000
mov byte [esi + 0x130], bl
mov dword [esi], 0x54f9d0
test edi, edi
je 0x44f34c
mov eax, dword [edi + 8]
movsx ecx, word [eax + 0x14]
mov dword [esi + 0xc], ecx
mov eax, dword [edi + 8]
mov edx, dword [eax + 0x28]
mov dword [esi + 0x120], edx
mov eax, dword [esi + 0x14]
shl eax, 2
lea ecx, [eax + eax*8]
push ecx
call fcn.0052f700
add esp, 4
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x18], eax
lea eax, [ecx + ecx*2]
shl eax, 3
push eax
call fcn.0052f700
add esp, 4
mov ecx, esi
mov dword [esi + 0x24], eax
mov eax, 0xbf800000
mov dword [esi + 0x110], eax
mov dword [esi + 0x114], eax
mov dword [esi + 0x118], eax
call fcn.004539d0
mov eax, esi
pop edi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x457a70
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
lea eax, [esp + 8]
push esi
push edi
push eax
push str.dplayx.dll
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
jne 0x457a96
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop edi
pop esi
add esp, 0xc
ret
push eax
mov esi, eax
call fcn.0052f700
add esp, 4
mov edi, eax
test edi, edi
jne 0x457aaf
xor eax, eax
pop edi
pop esi
add esp, 0xc
ret
push edi
push esi
push 0
push str.dplayx.dll
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x457acf
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop edi
pop esi
add esp, 0xc
ret
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
push 0x56257c
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x457af0
xor eax, eax
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 8]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
cmp ecx, 0x40005
jne 0x457b0f
cmp eax, 0x1062f
jae 0x457b19
cmp ecx, 0x40005
ja 0x457b19
xor eax, eax
pop edi
pop esi
add esp, 0xc
ret
mov eax, 1
pop edi
pop esi
add esp, 0xc
ret
Function at 0x45c640
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x88
lea eax, [esp]
push ebx
push esi
push edi
mov edi, dword [esp + 0x98]
push ebp
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
mov esi, eax
jne 0x45c6ae
push 2
push edi
push 0
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x45c69c
push eax
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x88
ret
cmp esi, 0xffffffff
jne 0x45c6ae
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x88
ret
push esi
call fcn.0045c780
add esp, 4
mov ebp, eax
test ebp, ebp
jne 0x45c6ca
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x88
ret
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x20]
test eax, eax
jne 0x45c6e5
mov cx, word [ebp + 0xe]
cmp cx, 8
ja 0x45c6e5
mov eax, 1
shl eax, cl
mov ecx, dword [ebp]
push ebp
lea eax, [ecx + eax*4]
lea edi, [eax + ebx]
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
jne 0x45c73c
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test edi, edi
je 0x45c764
mov eax, dword [edi + 0x20]
test eax, eax
jne 0x45c754
mov cx, word [edi + 0xe]
cmp cx, 8
ja 0x45c754
mov eax, 1
shl eax, cl
push ebx
mov ecx, dword [edi]
lea eax, [ecx + eax*4]
add eax, edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll__hread]
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x88
ret
Function at 0x45d020
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x148
mov dword [esp], 0
push ebx
push esi
push edi
mov ebx, 0xffffffff
mov edi, dword [esp + 0x158]
push ebp
mov eax, dword [esp + 0x164]
push edi
lea ecx, [esp + 0x58]
push eax
push 0x561964
push ecx
call fcn.00535470
mov ecx, dword [esp + 0x178]
add esp, 0x10
test ecx, ecx
jne 0x45d0d1
lea eax, [esp + 0x54]
push 0
push pe_nt_image_headers32
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 4
push 0
push 1
push Ordinal_1
push eax
call ebp
cmp eax, ebx
mov esi, eax
je 0x45d22b
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
test ebp, ebp
je 0x45d22b
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esp + 0x10], eax
test eax, eax
je 0x45d22b
push ebp
call esi
jmp 0x45d0ee
lea eax, [esp + 0x54]
push 0x8000
push eax
call fcn.00535c20
add esp, 8
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45d22b
push 0x114
call fcn.0052f730
add esp, 4
mov ebp, eax
test ebp, ebp
je 0x45d22b
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [ebp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 0xc], 0
mov eax, dword [esp + 0x168]
test eax, eax
jne 0x45d14c
mov eax, dword [esp + 0x10]
lea esi, [ebp + 8]
mov dword [ebp], eax
mov dword [esi], eax
mov dword [ebp + 4], 0xffffffff
jmp 0x45d1b5
push 1
mov dword [ebp + 4], ebx
push 0
mov dword [ebp], 0
push ebx
call fcn.00536290
lea eax, [esp + 0x20]
add esp, 0xc
push 0x40
push eax
push ebx
call fcn.005359b0
add esp, 0xc
cmp eax, 0x40
jne 0x45d22b
lea esi, [ebp + 8]
mov eax, dword [esp + 0x50]
push eax
call fcn.0052f730
add esp, 4
mov dword [esi], eax
push 0
push 0
push ebx
call fcn.00536290
mov eax, dword [esp + 0x5c]
add esp, 0xc
mov ecx, dword [esi]
nop
push eax
push ecx
push ebx
call fcn.005359b0
mov ecx, dword [esp + 0x5c]
add esp, 0xc
cmp ecx, eax
jne 0x45d22b
mov eax, dword [0x562760]
test eax, eax
jne 0x45d1c6
mov dword [0x562760], ebp
jmp 0x45d1e1
mov eax, dword [0x562760]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x45d1de
xor ecx, ecx
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
test edx, edx
jne 0x45d1d4
mov dword [eax + 0xc], ebp
mov eax, dword [esi]
mov ecx, dword [esp + 0x160]
add eax, 0x2c
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x45d20d
or dl, dl
je 0x45d209
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x45d20d
add eax, 2
add ecx, 2
or dl, dl
jne 0x45d1ed
xor eax, eax
jmp 0x45d212
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x45d22b
push 4
mov eax, dword [esi]
push str.1.00
add eax, 0x28
push eax
call fcn.00535410
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x148
ret
Function at 0x45d4b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x120]
push esi
lea ecx, [esp + 0xc]
push edi
mov edx, dword [esp + 0x120]
push ebp
push eax
mov dword [ebx], 0
mov eax, dword [esp + 0x124]
push ecx
push edx
push eax
call fcn.0045d3e0
add esp, 0x10
mov ebp, eax
test ebp, ebp
jne 0x45d4fc
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea eax, [esp + 0x18]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x45d536
mov edi, 0x562818
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x128]
lea eax, [esp + 0x18]
push esi
push 0
push str.temp
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x45d590
push 0x56280c
push esi
call fcn.00535860
add esp, 8
mov dword [ebx], eax
test eax, eax
je 0x45d590
mov ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x45d590
push eax
push 1
mov eax, dword [esp + 0x18]
push eax
push ebp
call fcn.00537130
add esp, 0x10
mov eax, dword [ebx]
push 0
push 0
push eax
call fcn.00537090
add esp, 0xc
mov eax, dword [esp + 0x14]
cmp eax, 1
jne 0x45d5a2
push ebp
call fcn.0052f860
add esp, 4
mov eax, dword [ebx]
pop ebp
pop edi
cmp eax, 1
sbb eax, eax
pop esi
inc eax
pop ebx
add esp, 0x10c
ret
Function at 0x497710
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push ebx
push esi
mov eax, dword [ecx + 0x1fc]
push edi
push ebp
mov esi, ecx
xor edi, edi
mov dword [esp + 0x20], edi
cmp eax, edi
jle 0x49787a
mov edx, dword [esi + 0x200]
add edx, edi
cmp dword [edx], 0xffffffff
je 0x497860
xor eax, eax
mov ecx, dword [esp + 0x28]
mov al, byte [edx + 0xa]
cmp eax, ecx
jne 0x497860
mov eax, dword [esi + 0x100]
mov ecx, dword [eax + 0xf0]
movsx ebx, word [ecx + 0x4a]
xor ecx, ecx
mov cl, byte [edx + 9]
cmp ebx, ecx
jne 0x497860
xor eax, eax
lea ecx, [esp + 0x10]
mov al, byte [edx + 5]
push ecx
mov ecx, esi
mov dword [esp + 0x14], eax
xor eax, eax
mov al, byte [edx + 6]
mov dword [esp + 0x18], eax
call fcn.0049d020
mov eax, dword [esi + 0x200]
xor ecx, ecx
add eax, edi
mov cl, byte [eax + 7]
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov cl, byte [eax + 8]
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], ecx
push eax
mov ecx, esi
call fcn.0049d020
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
cmp eax, ebx
jl 0x4977e6
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
jl 0x4977dd
push 0x4b
mov ecx, 0x582a70
push ebp
push ebx
inc ebp
call fcn.004e07a0
cmp dword [esp + 0x1c], ebp
jge 0x4977c8
inc ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
jge 0x4977bc
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
sub eax, 5
sub ecx, 5
lea edx, [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
push edx
mov ecx, esi
call fcn.0049d020
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
add ecx, 5
add eax, 5
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ecx
push edx
mov ecx, esi
mov dword [esp + 0x20], eax
call fcn.0049d020
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
cmp eax, ebx
jl 0x497860
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
jl 0x497857
push 0xf
mov ecx, 0x582a70
push ebp
push ebx
inc ebp
call fcn.004e07a0
cmp dword [esp + 0x1c], ebp
jge 0x497842
inc ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
jge 0x497836
add edi, 0x18
mov eax, dword [esp + 0x20]
inc eax
mov ecx, dword [esi + 0x1fc]
mov dword [esp + 0x20], eax
cmp ecx, eax
jg 0x49772d
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8
Function at 0x4a0d20
Capabilities:
Initialize winsock library

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0e0c
push eax
mov dword fs:[0], esp
mov eax, dword [ebp + 8]
sub esp, 8
push ebx
push esi
mov dword [ecx], eax
push edi
mov esi, ecx
call fcn.004a1150
lea eax, [esi + 4]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
push 0x504
mov dword [ebp - 0x14], eax
mov ebx, 0
call fcn.0052f700
mov dword [ebp - 0x10], eax
add esp, 4
mov dword [ebp - 4], 0
mov edi, eax
test edi, edi
je 0x4a0d9d
lea ebx, [edi + 4]
push 0x4a0e90
push 0x4a0e30
mov dword [edi], 8
push 8
push 0xa0
push ebx
call fcn.005379b0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x220], ebx
test eax, eax
je 0x4a0dd0
mov dword [esi + 0x214], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esi + 0x214], 1
mov ecx, esi
call fcn.004a0ef0
push 0xff
call fcn.0052f700
add esp, 4
mov edi, eax
mov ecx, esi
nop
push edi
call fcn.004a1030
push edi
mov ecx, esi
call fcn.004a0f10
push edi
call fcn.0052f720
add esp, 4
jmp 0x4a0dbb

Function at 0x4a0f10
Capabilities:
Resolve dns

Disassembly:
push ebx
push esi
cmp ecx, 0xfffffe6c
push edi
push ebp
mov ebx, ecx
jne 0x4a0f27
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret 4
lea eax, [ebx + 0x194]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x4a0f40
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret 4
mov ecx, dword [esp + 0x14]
mov byte [ecx], 0
mov edx, dword [eax + 4]
mov dword [ebx + 0x21c], 0
cmp dword [edx], 0
je 0x4a0f9c
mov edi, dword [edx]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [ebx + 0x21c]
mov eax, dword [ebx + 0x220]
add edx, 4
lea edi, [edi + edi*4]
shl edi, 5
lea edi, [edi + eax + 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
inc dword [ebx + 0x21c]
cmp dword [edx], 0
jne 0x4a0f59
mov eax, dword [ebx + 0x21c]
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x4a1030
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x1c
push ebx
push esi
cmp ecx, 0xfffffe6c
push edi
push ebp
mov ebx, ecx
jne 0x4a104d
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 4
lea eax, [ebx + 0x194]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x4a1069
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 4
mov ecx, dword [esp + 0x30]
mov byte [ecx], 0
mov ebp, dword [eax + 0xc]
mov dword [ebx + 0x218], 0
cmp dword [ebp], 0
je 0x4a1133
mov eax, dword [ebp]
xor ecx, ecx
mov cl, byte [eax + 3]
push ecx
xor ecx, ecx
mov cl, byte [eax + 2]
push ecx
xor ecx, ecx
mov cl, byte [eax + 1]
push ecx
xor ecx, ecx
mov cl, byte [eax]
lea eax, [esp + 0x1c]
push ecx
push str._d._d._d._d_n
push eax
call fcn.00535470
lea edi, [esp + 0x28]
add esp, 0x18
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
mov edi, dword [esp + 0x30]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
mov ecx, 0xffffffff
sub eax, eax
mov edx, dword [ebx + 0x220]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [ebx + 0x218]
lea edi, [edi + edi*4]
shl edi, 5
add edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x218]
add ebp, 4
inc eax
mov dword [ebx + 0x218], eax
cmp dword [ebp], 0
jne 0x4a1087
mov eax, dword [ebx + 0x218]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 4
Function at 0x4e8fc0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x20c
push ebx
push esi
mov eax, dword [ecx + 0xc]
push edi
push ebp
mov esi, ecx
mov ecx, dword [eax + 0x408]
test ecx, ecx
jne 0x4e8fe3
mov eax, 1
jmp 0x4e90c8
xor edi, edi
mov eax, dword [esp + 0x220]
cmp eax, edi
jle 0x4e9039
xor ebx, ebx
lea ebp, [ebx + 1]
mov ecx, dword [esi + 0x18c]
push ebp
call fcn.00521ef0
cmp eax, 2
jne 0x4e9013
push ebx
mov ecx, esi
call fcn.004eb2c0
test eax, eax
je 0x4e9013
inc edi
mov ebx, ebp
cmp ebp, 9
jl 0x4e8ff2
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x220]
mov ecx, dword [eax + 0x40c]
xor eax, eax
imul ecx, edi
cmp ecx, edx
setge al
jmp 0x4e90c8
mov eax, dword [0x56817c]
test eax, eax
je 0x4e9049
mov eax, 1
jmp 0x4e90c8
push str.CDPath
mov ecx, dword [esi + 0x1ac]
push 0
call fcn.00425470
mov edi, eax
test edi, edi
jne 0x4e9065
xor eax, eax
jmp 0x4e90c8
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jmp 0x4e9075
lea eax, [esp + 0x11c]
push 0x100
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x2c]
push eax
push 0x100
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
mov eax, 0
nop
nop
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x1c]
add eax, 0x2fd
push eax
push ecx
call fcn.005355b0
add esp, 8
cmp eax, 1
sbb eax, eax
neg eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x20c
ret 4

Function at 0x4e9150
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
mov eax, dword [ecx + 0xc]
push edi
push ebp
mov esi, ecx
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x20], eax
call ebp
cmp eax, 0xb7
jne 0x4e9212
mov eax, dword [esi + 0xc]
lea ecx, [eax + 0x7a]
push ecx
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
test edi, edi
je 0x4e91ec
push str.LOBBY
mov ecx, esi
call fcn.004ebab0
test al, al
je 0x4e91c3
push 0
push 0
push 0x10
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4e91b9
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
ret
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4e91d7
push 1
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push edi
call dword [sym.imp.USER32.dll_GetLastActivePopup]
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4e920b
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x20], 0
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4e9220
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
ret