joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54d189
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, eax
push esi
push ecx
mov al, byte [edx + 0x5769]
mov byte [ebx + 0x14a1], al
mov cl, byte [edx + 0x576a]
mov byte [ebx + 0x14a0], cl
mov eax, dword [edx + 0x55b8]
mov dword [ebx + 0x149c], eax
lea eax, [ebx + 0x60b0]
mov ecx, dword [edx + 0x4c00]
add edx, 0x55c0
mov dword [ebx + 0x60a4], ecx
call fcn.005504bd
mov edx, dword [ebx + 0x20]
cmp edx, 0x400000
jae 0x54d22d
mov eax, dword [ebx + 0x149c]
cmp edx, eax
jbe 0x54d200
mov esi, 0x400000
sub esi, edx
jmp 0x54d1f9
mov edx, dword [ebx]
lea ecx, [edx + eax]
mov cl, byte [ecx + esi]
mov byte [edx + eax], cl
inc eax
cmp eax, dword [ebx + 0x20]
jb 0x54d1ed
jmp 0x54d22d
xor eax, eax
mov esi, dword [ebx + 0x149c]
sub esi, dword [ebx + 0x20]
jmp 0x54d219
mov edx, dword [ebx]
lea ecx, [edx + eax]
mov cl, byte [ecx + esi]
mov byte [edx + eax], cl
inc eax
cmp eax, dword [ebx + 0x20]
jb 0x54d20d
xor eax, eax
mov dword [ebx + 0x149c], eax
mov byte [ebx + 0x14a1], 1
push 0x111
mov eax, dword [ebx]
push eax
add eax, dword [ebx + 0x20]
push eax
call fcn.0056578d
add esp, 0xc
mov eax, dword [ebx + 0x149c]
mov dword [esp], eax
inc eax
and eax, dword [ebx + 0x24]
mov dword [ebx + 0x149c], eax
jmp 0x54d341
mov edx, dword [ebx]
xor ecx, ecx
mov cl, byte [edx + eax]
inc eax
and eax, dword [ebx + 0x24]
mov edx, dword [ebx]
movzx eax, byte [edx + eax]
shl eax, 8
mov dl, byte [ebx + 0x149c]
add ecx, eax
mov eax, ecx
mov ecx, dword [ebx + 4]
and eax, 0x3fff
mov byte [ecx + eax], dl
xor edx, edx
mov eax, dword [ebx + 0x149c]
mov ecx, dword [ebx]
mov dl, byte [ecx + eax + 2]
mov ecx, dword [edx*4 + 0x43e080]
mov edx, dword [ebx]
shl ecx, 0xa
movzx edx, byte [edx + eax + 1]
mov edx, dword [edx*4 + 0x43e080]
shl edx, 4
add ecx, edx
mov edx, dword [ebx]
movzx eax, byte [edx + eax]
add ecx, eax
mov dx, word [ebx + 0x149c]
and ecx, 0x3ffff
mov eax, ecx
mov ecx, dword [ebx + 8]
mov word [ecx + eax*2], dx
mov ecx, dword [ebx + 0x149c]
mov edx, dword [ebx]
movzx edx, byte [edx + ecx + 3]
mov edx, dword [edx*4 + 0x43e080]
shl edx, 6
add eax, edx
mov edx, dword [ebx + 0xc]
and eax, 0x3ffff
mov dword [edx + eax*4], ecx
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x149c]
mov esi, dword [ebx + 0x10]
movzx ecx, byte [ecx + edx + 4]
mov ecx, dword [ecx*4 + 0x43e080]
shl ecx, 8
add eax, ecx
and eax, dword [ebx + 0x1c]
mov ecx, dword [esi + eax*4]
and ecx, dword [ebx + 0x24]
mov dword [esi + eax*4], edx
mov edx, dword [ebx]
movzx edx, byte [edx + ecx]
xor eax, edx
test al, 0xf
je 0x54d325
xor ecx, ecx
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 0x149c]
mov dword [eax + edx*4], ecx
mov eax, dword [ebx + 0x149c]
inc eax
and eax, dword [ebx + 0x24]
mov dword [ebx + 0x149c], eax
mov eax, dword [ebx + 0x149c]
cmp eax, dword [esp]
jne 0x54d259
mov byte [ebx + 0x60a0], 1
mov byte [ebx + 0x1498], 1
xor edx, edx
xor ecx, ecx
mov dword [ebx + 0x974], edx
mov dword [ebx + 0x978], ecx
mov byte [ebx + 0x97c], 1
pop edx
pop esi
pop ebx
ret
Function at 0x409ca0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
mov edi, 0x34567890
mov dword [ecx], 0x12345678
mov dword [ecx + 4], 0x23456789
mov dword [ecx + 8], edi
mov dl, byte [eax]
test dl, dl
je 0x409d10
push esi
mov esi, dword [ecx + 4]
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
and edx, 0xff
mov edx, dword [ebx + edx*4]
shr eax, 8
xor edx, eax
movzx eax, dl
add esi, eax
mov eax, dword [ebp + 8]
imul esi, esi, 0x8088405
mov dword [ecx], edx
inc esi
mov edx, esi
shr edx, 0x18
xor edx, edi
and edx, 0xff
shr edi, 8
mov dword [ecx + 4], esi
xor edi, dword [ebx + edx*4]
inc eax
mov dword [ecx + 8], edi
mov dl, byte [eax]
mov dword [ebp + 8], eax
test dl, dl
jne 0x409cc6
pop esi
pop edi
pop ebp
ret

Function at 0x409d20
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4222bc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xc
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
jge 0x409d53
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ba8f
mov esp, ebp
pop ebp
ret
mov eax, dword [0x423360]
inc eax
mov dword [0x423360], eax
cmp eax, 1
jne 0x409d78
push 0
call fcn.0040d7e9
xor eax, 0xbb40e64e
push eax
call fcn.0040d83a
add esp, 8
push ebx
mov ebx, edi
mov ecx, esi
call fcn.00409ca0
add esp, 4
mov dword [ebp - 0x14], 0
lea esp, [esp]
call fcn.0040d84c
mov ecx, dword [esi + 8]
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov dword [ebp - 0x20], edx
mov edx, dword [esi]
mov ebx, edx
shr edx, 8
sar eax, 7
and eax, 0xff
xor ebx, eax
and ebx, 0xff
mov ebx, dword [edi + ebx*4]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edi + edx*4]
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0x20]
mov edx, ecx
xor edx, 1
imul edx, ecx
shr edx, 8
xor dl, al
mov eax, dword [ebp - 0x14]
mov byte [ebp + eax - 0x10], dl
inc eax
mov dword [ebp - 0x14], eax
cmp eax, 0xa
jl 0x409d90
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, edi
mov ecx, esi
call fcn.00409ca0
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x10]
add esp, 4
xor eax, eax
sub ecx, edx
mov dword [ebp - 0x1c], ecx
Function at 0x40aa50
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi + 0x4090], 0
je 0x40ab00
cmp dword [esi + 0x6c], 0
jbe 0x40ab00
mov eax, 0xffffff78
push ebx
sub eax, esi
push edi
lea edi, [esi + 0x88]
mov dword [ebp - 4], eax
lea ecx, [ecx]
movzx ecx, byte [edi]
mov eax, dword [esi + 0x4094]
mov ebx, dword [esi + 0x40a0]
xor ecx, eax
mov edx, dword [esi + 0x409c]
shr eax, 8
and ecx, 0xff
mov ecx, dword [ebx + ecx*4]
xor ecx, eax
movzx eax, cl
add eax, dword [esi + 0x4098]
mov dword [esi + 0x4094], ecx
mov ecx, dword [esi + 0x409c]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x4098], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [ebx + eax*4]
and edx, 0xfffd
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
mov dword [esi + 0x409c], ecx
mov ecx, dword [ebp - 4]
shr eax, 8
xor byte [edi], al
inc edi
add ecx, edi
cmp ecx, dword [esi + 0x6c]
jb 0x40aa80
pop edi
pop ebx
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x20]
push edx
mov edx, dword [esi + 0x1c]
lea eax, [esi + 0x88]
push eax
mov eax, dword [esi + 8]
push ecx
push edx
call eax
add esp, 0x10
cmp eax, dword [esi + 0x6c]
mov dword [esi + 0x6c], 0
je 0x40ab2e
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40ac40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
jne 0x40ac5c
pop edi
mov eax, 0xffffff9a
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x2c], edi
je 0x40ac51
cmp dword [esi + 0x80], 8
push ebx
mov dword [esi + 0x34], edi
jne 0x40acb7
cmp dword [esi + 0x84], edi
jne 0x40acb7
cmp dword [esi + 0x40], 0
jne 0x40ac91
call fcn.0040aa50
lea eax, [esi + 0x88]
mov dword [esi + 0x40], 0x4000
mov dword [esi + 0x3c], eax
mov ebx, dword [esi + 0x44]
lea eax, [esi + 0x30]
push 4
push eax
call fcn.00406d2d
mov ecx, dword [esi + 0x44]
sub ecx, ebx
add dword [esi + 0x6c], ecx
mov edi, eax
add esp, 8
test edi, edi
je 0x40ac76
cmp edi, 1
jne 0x40acb7
xor edi, edi
cmp dword [esi + 0x6c], 0
jbe 0x40accd
test edi, edi
jne 0x40accd
call fcn.0040aa50
cmp eax, 0xffffffff
jne 0x40accd
or edi, eax
cmp dword [esi + 0x80], 8
jne 0x40acf4
cmp dword [esi + 0x84], 0
jne 0x40ad0e
lea edx, [esi + 0x30]
push edx
call fcn.0040746f
add esp, 4
mov edi, eax
mov dword [esi + 0x68], 0
inc esi
push 0
cmp dword [esi + 0x84], 0
jne 0x40ad0e
mov eax, dword [esi + 0x408c]
mov edx, dword [esi + 0x38]
mov dword [ebp + 0x10], eax
mov dword [ebp + 0xc], edx
jmp 0x40ad14
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov ebx, dword [esi + 0x40a4]
add ebx, dword [esi + 0x44]
mov ecx, dword [esi + 0x74]
mov byte [ecx + 0x10], al
shr eax, 8
mov dword [ebp - 4], eax
mov byte [ecx + 0x11], al
shr eax, 8
mov byte [ecx + 0x12], al
shr eax, 8
mov byte [ecx + 0x13], al
shr eax, 8
mov dword [ebp + 8], eax
test eax, eax
je 0x40ad49
mov dword [ecx + 0x10], 0xffffffff
mov ecx, dword [esi + 0x74]
mov eax, ebx
shr eax, 8
mov dword [ebp - 8], eax
mov byte [ecx + 0x15], al
shr eax, 8
mov byte [ecx + 0x16], al
shr eax, 8
mov byte [ecx + 0x17], al
shr eax, 8
mov byte [ecx + 0x14], bl
mov dword [ebp + 8], eax
test eax, eax
je 0x40ad77
mov dword [ecx + 0x14], 0xffffffff
cmp dword [esi + 0x5c], 1
jne 0x40ad86
mov eax, dword [esi + 0x74]
mov word [eax + 0x24], 1
mov ecx, dword [esi + 0x74]
mov eax, edx
shr eax, 8
mov dword [ebp - 0xc], eax
mov byte [ecx + 0x19], al
shr eax, 8
mov byte [ecx + 0x1a], al
shr eax, 8
mov byte [ecx + 0x1b], al
shr eax, 8
mov byte [ecx + 0x18], dl
mov dword [ebp + 8], eax
Function at 0x643f10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1ab000]
push edi
or ebp, 0xffffffff
jmp 0x643f32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x643f39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x643f28
mov eax, 1
add ebx, ebx
jne 0x643f4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x643f5c
jne 0x643f7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x643f7b
dec eax
add ebx, ebx
jne 0x643f68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x643f40
add ebx, ebx
jne 0x643f77
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x643fcd
xor ecx, ecx
sub eax, 3
jb 0x643f93
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x644002
sar eax, 1
mov ebp, eax
jmp 0x643f9e
add ebx, ebx
jne 0x643f9e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x643f6c
inc ecx
add ebx, ebx
jne 0x643fac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x643f6c
add ebx, ebx
jne 0x643fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x643fae
jne 0x643fca
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x643fae
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x643fec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x643fde
jmp 0x643f2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x643fec
add edi, ecx
jmp 0x643f2e
pop esi
mov edi, esi
mov ecx, 0x5c80
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x64400a
cmp byte [edi], 0xe
jne 0x64400a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x64400f
lea edi, [esi + 0x23f000]
mov eax, dword [edi]
or eax, eax
je 0x644087
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x25548c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x25564c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x64403c
mov ecx, edi
jns 0x64406b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x255654]
or eax, eax
je 0x644081
mov dword [ebx], eax
add ebx, 4
jmp 0x644059
call dword [esi + 0x255650]
mov ebp, dword [esi + 0x255658]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x6440bb
sub esp, 0xffffff80
jmp 0x45f60d
Function at 0x4017f0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, 0x464fb0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ebx, dword [esp + 0x14]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00422c40
cmp eax, 9
ja case.default.0x401830
xor ecx, ecx
mov cl, byte [eax + 0x401970]
jmp dword [ecx*4 + 0x401964]
push 0x12c
call fcn.0042d3e3
add esp, 4
mov esi, eax
push 0xc8
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push str._sdesktop
push ebx
call fcn.00411f9c
push esi
call fcn.0042d40c
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret
push str.UserEnv.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je case.default.0x401830
push str.GetUserProfileDirectoryA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je case.default.0x401830
lea edx, [esp + 0xc]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je case.default.0x401830
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x14]
push eax
push ecx
push edx
mov dword [esp + 0x20], 0
call edi
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4018e6
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
inc eax
push eax
call fcn.0042d3e3
mov ecx, dword [esp + 0x18]
mov esi, eax
add esp, 4
lea edx, [esp + 0x14]
mov byte [ecx + esi], 0
mov eax, dword [esp + 0xc]
push edx
push esi
push eax
call edi
test eax, eax
je 0x40191a
push esi
push 0x446ecc
push ebx
call fcn.00411f9c
add esp, 0xc
push esi
call fcn.0042d40c
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je case.default.0x401830
push str.SHGetSpecialFolderPathA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je case.default.0x401830
push 0
push 0
push ebx
push 0
call eax
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x401980
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov edi, 0x464fb0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ebx, dword [esp + 0x10]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00422c40
cmp eax, 9
ja case.default.0x4019bf
xor ecx, ecx
mov cl, byte [eax + 0x401abc]
jmp dword [ecx*4 + 0x401ab0]
push 0x12c
call fcn.0042d3e3
add esp, 4
mov esi, eax
push 0xc8
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push str._sdesktop
push ebx
call fcn.00411f9c
push esi
call fcn.0042d40c
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
ret
push str.UserEnv.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je case.default.0x4019bf
push str.GetAllUsersProfileDirectoryA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je case.default.0x4019bf
lea edx, [esp + 0x10]
lea eax, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], 0
call edi
mov eax, dword [esp + 0x10]
test eax, eax
je case.default.0x4019bf
inc eax
push eax
call fcn.0042d3e3
mov ecx, dword [esp + 0x14]
add esp, 4
lea edx, [esp + 0x10]
mov esi, eax
push edx
push esi
mov byte [ecx + esi], 0
call edi
test eax, eax
je 0x401a70
push esi
push 0x446ecc
push ebx
call fcn.00411f9c
add esp, 0xc
push esi
call fcn.0042d40c
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je case.default.0x4019bf
push str.SHGetSpecialFolderPathA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je case.default.0x4019bf
push 0
push 0x19
push ebx
push 0
call eax
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x401e50
Capabilities:
Get disk information
Set file attributes

Disassembly:
sub esp, 0x20
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp]
push ebx
push esi
push edi
mov edi, 0x446ee8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, 1
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov cl, bl
lea edx, [esp + 0xc]
add cl, 0x40
push edx
mov byte [esp + 0x10], cl
call esi
cmp eax, 3
jne 0x401eaf
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0041201a
add esp, 8
test eax, eax
je 0x401ebf
inc ebx
cmp ebx, 0x1a
jle 0x401e87
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x20
ret
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push ecx
push str._supmc_
push esi
call fcn.00411f9c
push esi
call fcn.00411fee
add esp, 0x10
push 0x22
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret
Function at 0x4023d0
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x464fac]
sub esp, 0x12c
test eax, eax
push esi
jne 0x4024c4
mov esi, dword [esp + 0x134]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x464fac], eax
jne 0x40241b
push esi
lea eax, [esp + 8]
push 0x446fec
push eax
call fcn.00411f9c
add esp, 0xc
mov eax, 0xfffffffe
pop esi
add esp, 0x12c
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x446fd8
push eax
call esi
mov ecx, dword [0x464fac]
push 0x446fc4
push ecx
mov dword [0x464f88], eax
call esi
mov edx, dword [0x464fac]
push 0x446fb4
push edx
mov dword [0x464f8c], eax
call esi
mov dword [0x464f90], eax
mov eax, dword [0x464fac]
push 0x446fa4
push eax
call esi
mov ecx, dword [0x464fac]
push 0x446f90
push ecx
mov dword [0x464f94], eax
call esi
mov edx, dword [0x464fac]
push 0x446f7c
push edx
mov dword [0x464f98], eax
call esi
mov dword [0x464f9c], eax
mov eax, dword [0x464fac]
push 0x446f68
push eax
call esi
mov ecx, dword [0x464fac]
push 0x446f54
push ecx
mov dword [0x464fa0], eax
call esi
mov edx, dword [0x464fac]
push 0x446f40
push edx
mov dword [0x464fa4], eax
call esi
mov dword [0x464fa8], eax
xor eax, eax
pop esi
add esp, 0x12c
ret

Function at 0x4058b0
Capabilities:
Get disk size

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x144
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.00411f9c
add esp, 8
lea edx, [esp + 0x10]
lea eax, [esp]
lea ecx, [esp + 8]
push edx
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x405945
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x405945
cmp eax, 0x56
jne 0x405900
or eax, 0xffffffff
add esp, 0x144
ret
cmp eax, 5
jne 0x40590f
or eax, 0xffffffff
add esp, 0x144
ret
cmp eax, 0x35
jne 0x40591e
or eax, 0xffffffff
add esp, 0x144
ret
push eax
lea eax, [esp + 0x1c]
push str.LZGP_CheckNetPathIfLoginOk_:_d
push eax
call fcn.00411f9c
add esp, 0xc
lea ecx, [esp + 0x18]
push 0
push str.jfdjkafjk
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add esp, 0x144
ret

Function at 0x405950
Capabilities:
Connect network resource

Disassembly:
sub esp, 0x14c
mov edx, dword [esp + 0x154]
push edi
xor ecx, ecx
mov eax, 0x20
lea edi, [esp + 4]
xor eax, eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 4], 1
mov dword [esp + 0xc], 2
mov dword [esp + 8], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
pop edi
je 0x4059b1
mov eax, dword [esp + 0x150]
push edx
push eax
lea ecx, [esp + 0x28]
push 0x448ae8
push ecx
call fcn.00411f9c
add esp, 0x10
jmp 0x4059cb
mov edx, dword [esp + 0x150]
lea eax, [esp + 0x20]
push edx
push str._s
push eax
call fcn.00411f9c
add esp, 0xc
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x15c]
lea ecx, [esp + 0x20]
push 1
mov dword [esp + 0x18], ecx
push edx
lea ecx, [esp + 8]
push eax
push ecx
call sub.MPR.dll_WNetAddConnection2A
neg eax
sbb eax, eax
add esp, 0x14c
ret
Function at 0x405a00
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x465644]
sub esp, 0x12c
test eax, eax
push esi
je 0x405a1a
xor eax, eax
pop esi
add esp, 0x12c
ret
mov esi, dword [esp + 0x134]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x465644], eax
jne 0x405a51
push esi
lea eax, [esp + 8]
push 0x446fec
push eax
call fcn.00411f9c
add esp, 0xc
mov eax, 0xfffffffe
pop esi
add esp, 0x12c
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str._GetNumberOfDrive__YAEH_Z
push eax
call esi
mov ecx, dword [0x465644]
push str._SetCurrentDriveNumber__YAHE_Z
push ecx
mov dword [0x465618], eax
call esi
mov edx, dword [0x465644]
push str._GetCurrentDriveInfo__YAHPADPAE_Z
push edx
mov dword [0x46561c], eax
call esi
mov dword [0x465620], eax
mov eax, dword [0x465644]
push str._pFileOpen__YAKEAAKPAD_Z
push eax
call esi
mov ecx, dword [0x465644]
push str._pFileClose__YAKK_Z
push ecx
mov dword [0x465624], eax
call esi
mov edx, dword [0x465644]
push str._pFileWrite__YAKKPAEAAK_Z
push edx
mov dword [0x465628], eax
call esi
mov dword [0x46562c], eax
mov eax, dword [0x465644]
push str._pFileRead__YAKKPAEAAK_Z
push eax
call esi
mov ecx, dword [0x465644]
push str._AuthenticatePrivateArea__YAHPAD_Z
push ecx
mov dword [0x465630], eax
call esi
mov edx, dword [0x465644]
push str._pInitialFileSystem__YAKXZ
push edx
mov dword [0x465634], eax
call esi
mov dword [0x465638], eax
mov eax, dword [0x465644]
push str._pCloseFileSystem__YAKXZ
push eax
call esi
mov ecx, dword [0x465644]
push str._UnAuthenticatePrivateArea__YAHXZ
push ecx
mov dword [0x46563c], eax
call esi
mov edx, dword [0x465618]
or ecx, 0xffffffff
test edx, edx
mov dword [0x465640], eax
je 0x405b96
mov edx, dword [0x46561c]
test edx, edx
je 0x405b96
mov edx, dword [0x465620]
test edx, edx
je 0x405b96
mov edx, dword [0x465624]
test edx, edx
je 0x405b96
mov edx, dword [0x465628]
test edx, edx
je 0x405b96
mov edx, dword [0x46562c]
test edx, edx
je 0x405b96
mov edx, dword [0x465630]
test edx, edx
je 0x405b96
mov edx, dword [0x465634]
test edx, edx
je 0x405b96
mov edx, dword [0x465638]
test edx, edx
je 0x405b96
mov edx, dword [0x46563c]
test edx, edx
je 0x405b96
test eax, eax
je 0x405b96
xor ecx, ecx
pop esi
mov eax, ecx
add esp, 0x12c
ret
mov dword [0x465644], 0
mov eax, ecx
pop esi
add esp, 0x12c
ret

Function at 0x4069c0
Capabilities:
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
sub esp, 0x194
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_socket]
push 0
push 2
mov esi, ecx
push 2
mov dword [esp + 0x14], 0x3e8
call edi
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x406a0e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x276d
jne 0x406a04
lea eax, [esp + 0xc]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 2
push 2
call edi
mov dword [esi], eax
mov edx, dword [esi]
lea ecx, [esp + 8]
push 4
push ecx
push 0x1006
push 0xffff
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.00406c80
mov eax, esi
pop edi
pop esi
add esp, 0x194
ret