joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4efbc0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c2b40
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x61f138]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x5c], vtable.CryptoPP::NonblockingRng.0
call fcn.004ef970
mov dword [ebp - 4], 2
call fcn.004efc80
push esi
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x4efc47
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], vtable.CryptoPP::NonblockingRng.0
test eax, eax
je 0x4efc2d
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0056eeb4
mov esp, ebp
pop ebp
ret
push 0x5f5eb8
lea ecx, [ebp - 0x2c]
call fcn.004416c0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x54]
call fcn.004ef520
push 0x61b9ec
lea eax, [ebp - 0x54]
push eax
call fcn.005869da
int3
Function at 0x4fa2e0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x37cc
call fcn.00570340
mov eax, dword [0x61f138]
xor eax, esp
mov dword [esp + 0x37c4], eax
push ebx
push ebp
xor ebp, ebp
xor ebx, ebx
push esi
push edi
lea esi, [ebp + 2]
push ebx
lea eax, [esp + 0x24]
push str..PhysicalDrive_d
push eax
call fcn.004f9f50
add esp, 0xc
lea eax, [esp + 0x20]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
xor ecx, ecx
lea eax, [edi + 1]
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056f473
add esp, 4
mov esi, eax
lea eax, [esp + 0x20]
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push eax
push esi
mov word [esi + edi*2], ax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4fa50f
push 0x2710
lea eax, [esp + 0x10c4]
mov dword [esp + 0x14], 0
push 0
push eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call fcn.00586880
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea eax, [esp + 0x1c]
add esp, 0xc
push 0
push eax
push 0x2710
lea eax, [esp + 0x10cc]
push eax
push 0xc
lea eax, [esp + 0x28]
push eax
push 0x2d1400
push esi
call edi
test eax, eax
je 0x4fa502
mov edx, dword [esp + 0x10cc]
lea eax, [esp + 0x8f0]
push eax
push 0
lea ecx, [esp + 0x10c8]
call fcn.004fa190
mov edx, dword [esp + 0x10d8]
lea eax, [esp + 0x510]
push eax
push 0
lea ecx, [esp + 0x10d0]
call fcn.004fa190
mov edx, dword [esp + 0x10e4]
lea eax, [esp + 0xce8]
push eax
push 0
lea ecx, [esp + 0x10d8]
call fcn.004fa190
mov edx, dword [esp + 0x10f0]
lea eax, [esp + 0x138]
push eax
push 1
lea ecx, [esp + 0x10e0]
call fcn.004fa190
add esp, 0x20
cmp byte [0x6d1080], 0
jne 0x4fa4c9
movsx eax, byte [esp + 0x120]
push eax
call fcn.00599b3d
add esp, 4
test eax, eax
jne 0x4fa48b
movsx eax, byte [esp + 0x133]
push eax
call fcn.00599b3d
add esp, 4
test eax, eax
je 0x4fa4c9
xor ecx, ecx
lea ecx, [ecx]
mov al, byte [esp + ecx + 0x120]
lea ecx, [ecx + 1]
mov byte [ecx + 0x6d107f], al
test al, al
jne 0x4fa490
xor eax, eax
jmp 0x4fa4b0
mov cl, byte [esp + eax + 0x508]
lea eax, [eax + 1]
mov byte [eax + 0x6d168f], cl
test cl, cl
jne 0x4fa4b0
mov ebp, 1
push 0x2710
lea eax, [esp + 0x10c4]
push 0
push eax
call fcn.00586880
add esp, 0xc
lea eax, [esp + 0x10]
push 0
push eax
push 0x2710
lea eax, [esp + 0x10cc]
push eax
push 0
push 0
push 0x700a0
push esi
call edi
jmp 0x4fa508
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
mov esi, 2
cmp ebx, 6
jl 0x4fa303
mov ecx, dword [esp + 0x37d4]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0056eeb4
add esp, 0x37cc
ret
Function at 0x4fdd10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0
call dword [ebp - 0x340]
mov dword [ebp + 8], eax
push 0x104
lea eax, [ebp - 0x334]
push eax
push 0
call dword [ebp - 0x538]
call fcn.004fce7a
loope 0x4fdd3e
mov edx, 0xd0a580c6
std
invalid
add byte [edx + 0x40], ch
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004fce58
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.004fce8a
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004fce3f
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.004fce7a
xor eax, 0x687a4dfc
add al, 1
add byte [eax], al
lea eax, [ebp - 0x12c]
push eax
call dword [ebp - 0x3d4]
mov dword [ebp - 0x28], eax
call fcn.004fce7a
invalid
Function at 0x506300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x50632b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00443f90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x50634d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x50634f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x5063d3
jg 0x506364
test esi, esi
je 0x5063d3
test ecx, ecx
jl 0x5063ad
jg 0x50636e
test eax, eax
je 0x5063ad
cmp edi, ecx
jg 0x506382
jl 0x506378
cmp esi, eax
jae 0x506382
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.00586300
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x5063b0
mov edx, dword [ebp + 8]
test edi, edi
jl 0x5063d3
jg 0x5063ba
test esi, esi
je 0x5063d3
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x5063d3
push eax
push esi
push 1
push edx
call fcn.00599289
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5063f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x50641b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00444070
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x50643d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x50643f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x5064de
jg 0x50645c
test esi, esi
je 0x5064de
test ecx, ecx
jl 0x5064a9
jg 0x506466
test eax, eax
je 0x5064a9
cmp ebx, ecx
jg 0x50647a
jl 0x506470
cmp esi, eax
jae 0x50647a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.00586300
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x5064b0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x5064de
jg 0x5064ba
test esi, esi
je 0x5064de
cmp dword [edi + 0x4c], 0
je 0x5064de
mov ecx, edi
call fcn.00507460
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.005994ad
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x506803
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x61f138]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x506820
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0056eeb4
add esp, 0x30
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x50685d
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x50685d
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0056eeb4
add esp, 0x30
ret 4
cmp dword [esi + 0x4c], 0
je 0x506950
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x506885
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5068b9
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0059a1e4
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0056eeb4
add esp, 0x30
ret 4
lea eax, [esp + 0x10]
mov byte [esp + 0xc], bl
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1d]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x506950
cmp eax, 1
jle 0x50691f
cmp eax, 3
jne 0x506950
push dword [esi + 0x4c]
push dword [esp + 0x10]
call fcn.004fbfa0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0056eeb4
add esp, 0x30
ret 4
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x18]
sub edi, eax
je 0x50693e
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00599289
add esp, 0x10
cmp edi, eax
jne 0x506950
lea eax, [esp + 0xc]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x14], eax
jne 0x506847
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0056eeb4
add esp, 0x30
ret 4
Function at 0x508770
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c51d6
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x61f138]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x34], edi
mov ecx, dword [ebp + 8]
lea esi, [edi + 4]
mov dword [ebp - 0x38], edi
mov dword [edi], ecx
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov dword [ebp - 0x34], 0
mov byte [esi], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0xf
mov byte [edi + 0x1c], 0
mov byte [ebp - 4], 1
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0xd
mov eax, dword [ecx]
mov eax, dword [eax + 4]
test byte [eax + ecx + 0xc], 6
jne 0x508914
push 0
mov ecx, edi
call fcn.00509fd0
cmp dword [edi + 0x14], 3
jb 0x50888b
mov ecx, 3
mov dword [ebp - 0x1c], 0
cmp dword [esi + 0x10], ecx
mov eax, esi
mov dword [ebp - 0x18], 0xf
cmovb ecx, dword [esi + 0x10]
cmp dword [esi + 0x14], 0x10
mov byte [ebp - 0x2c], 0
jb 0x508851
mov eax, dword [esi]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.004462c0
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
mov ebx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
cmovae ecx, ebx
push 3
push 0x5f6a40
mov dword [ebp - 0x34], 3
call fcn.00456420
add esp, 8
test al, al
je 0x50888e
mov byte [ebp - 0x2d], 1
jmp 0x508892
mov ebx, dword [ebp - 0x2c]
mov byte [ebp - 0x2d], 0
test byte [ebp - 0x34], 1
je 0x5088c7
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x5088c7
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x5088bd
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50892f
push ecx
push ebx
call fcn.0056eec5
add esp, 8
cmp byte [ebp - 0x2d], 0
je 0x5088f4
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x5088d7
mov eax, dword [esi]
mov byte [eax], 0x20
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x5088e4
mov eax, dword [esi]
mov byte [eax + 1], 0x20
cmp dword [esi + 0x14], 0x10
jb 0x5088f0
mov esi, dword [esi]
mov byte [esi + 2], 0x20
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0056eeb4
mov esp, ebp
pop ebp
ret 4
push str.stream_error
lea ecx, [ebp - 0x20]
call fcn.0050f840
push 0x61ba38
lea eax, [ebp - 0x20]
push eax
call fcn.005869da
call fcn.00591dc6
int3
Function at 0x50b620
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword fs:[0x2c]
push ebx
push ebp
mov ebp, ecx
mov edx, dword [eax]
mov eax, dword [0x6d9a44]
push esi
mov esi, dword [esp + 0x18]
mov ebx, dword [ebp]
push edi
mov edi, dword [esp + 0x18]
cmp eax, dword [edx + 4]
jg 0x50b671
test esi, esi
je 0x50b666
mov ecx, dword [0x6d9a48]
mov al, byte [edi]
lea edi, [edi + 1]
xor al, bl
shr ebx, 8
movzx eax, al
xor ebx, dword [ecx + eax*4]
sub esi, 1
jne 0x50b651
pop edi
pop esi
mov dword [ebp], ebx
pop ebp
pop ebx
pop ecx
ret 8
push 0x6d9a44
call fcn.0056f0e8
add esp, 4
cmp dword [0x6d9a44], 0xffffffff
jne 0x50b647
call fcn.0050c530
push 0x6d9a44
mov dword [0x6d9a48], eax
call fcn.0056f09e
add esp, 4
jmp 0x50b647

Function at 0x50c530
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0x2c]
sub esp, 0x40c
mov ecx, dword [eax]
mov eax, dword [0x6d9a4c]
push ebx
push esi
push edi
cmp eax, dword [ecx + 4]
jg 0x50c560
pop edi
pop esi
mov eax, 0x6d9a50
pop ebx
mov esp, ebp
pop ebp
ret
push 0x6d9a4c
call fcn.0056f0e8
add esp, 4
cmp dword [0x6d9a4c], 0xffffffff
jne 0x50c554
xor ecx, ecx
mov dword [esp + 0x14], ecx
jmp 0x50c580
xor eax, eax
movzx edi, cx
mov ecx, 0x80
mov dword [esp + 0x10], ecx
mov dx, cx
lea esi, [eax + 1]
jmp 0x50c596
or ecx, esi
movzx ebx, cx
mov ecx, ebx
and ecx, edi
movzx ecx, cx
cmp cx, dx
je 0x50c5ae
cmp cx, si
jne 0x50c5b0
jmp 0x50c5ae
xor edi, ebx
shr dx, 1
add esi, esi
mov word [esp + 0x10], dx
cmp dx, si
jbe 0x50c5c5
mov ecx, dword [esp + 0x10]
jmp 0x50c596
movzx ecx, di
mov edx, 8
mov dword [esp + 0x10], ecx
mov si, cx
jmp 0x50c5d6
movzx ecx, si
shl ecx, 0x1f
xor ecx, eax
shr si, 1
mov eax, ecx
add ecx, ecx
sar eax, 0x1f
and eax, 0x4c11db7
xor eax, ecx
sub edx, 1
jne 0x50c5d6
lea ecx, [edx + 1]
mov edx, SysReAllocString
jmp 0x50c600
mov esi, edx
or esi, ecx
mov edi, esi
and edi, eax
cmp edi, edx
je 0x50c612
cmp edi, ecx
jne 0x50c614
jmp 0x50c612
xor eax, esi
shr edx, 1
add ecx, ecx
cmp edx, ecx
ja 0x50c600
mov ecx, dword [esp + 0x14]
mov esi, 1
movzx edi, cx
mov ecx, 0x80
mov dword [esp + 0x10], ecx
mov dx, cx
jmp 0x50c636
or ecx, esi
movzx ebx, cx
mov ecx, ebx
and ecx, edi
movzx ecx, cx
cmp cx, dx
je 0x50c64e
cmp cx, si
jne 0x50c650
jmp 0x50c64e
xor edi, ebx
shr dx, 1
add esi, esi
mov word [esp + 0x10], dx
cmp dx, si
jbe 0x50c665
mov ecx, dword [esp + 0x10]
jmp 0x50c636
mov ecx, dword [esp + 0x14]
mov ebx, 0x100
movzx edx, di
inc ecx
mov dword [esp + 0x14], ecx
mov dword [esp + edx*4 + 0x18], eax
cmp cx, bx
jb 0x50c580
mov ecx, ebx
lea esi, [esp + 0x18]
mov edi, 0x6d9a50
rep movsd dword es:[edi], dword [esi]
push 0x6d9a4c
call fcn.0056f09e
add esp, 4
jmp 0x50c554
Function at 0x50de10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c56d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x61f138]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.0045d190
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov word [esi + 0xc], 0
push dword [ecx]
lea ecx, [esi + 0x10]
call fcn.00441720
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
push 0
mov byte [esi + 0x28], 0
call fcn.00508940
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x50e5c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c5710
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x61f138]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0045d190
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov dword [ebp - 4], 0
mov word [esi + 0xc], 0
mov ecx, dword [ecx]
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov eax, dword [ecx]
mov dword [esi + 0x10], eax
mov eax, dword [ecx + 4]
mov dword [esi + 0x14], eax
mov eax, dword [ecx + 8]
mov dword [esi + 0x18], eax
mov eax, dword [ecx + 0xc]
mov dword [esi + 0x1c], eax
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x20], eax
mov eax, dword [ecx + 0x14]
mov dword [esi + 0x24], eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
push 0
mov byte [esi + 0x28], 0
call fcn.00508940
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x50fe60
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c58e0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x61f138]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x3c], esi
lea eax, [ebp - 0x40]
mov dword [ebp - 0x2c], 0x4000
push eax
push ecx
push 0
push 1
push 2
mov dword [ebp - 0x30], 0xffffffff
call dword [sym.imp.MPR.dll_WNetOpenEnumW]
test eax, eax
je 0x50feba
xor eax, eax
jmp 0x510080
push dword [ebp - 0x2c]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [ebp - 0x34], edi
test edi, edi
je 0x50feb3
mov edi, edi
push dword [ebp - 0x2c]
push 0
push edi
call fcn.00586880
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
push edi
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x40]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
jne 0x51006b
xor ebx, ebx
cmp dword [ebp - 0x30], ebx
jbe 0x50fed0
mov eax, dword [ebp - 0x34]
mov edi, eax
cmp dword [edi], 2
jne 0x510042
cmp dword [eax + 4], 1
jne 0x510042
mov edx, dword [eax + 0x14]
xor eax, eax
mov word [ebp - 0x28], ax
mov eax, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea ecx, [eax + 2]
mov dword [ebp - 0x38], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x50ff36
sub eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
push edx
call fcn.00445cb0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.0044ed30
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x50ffa3
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x50ff99
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51009c
push edx
push ecx
call fcn.0056eec5
add esp, 8
push 0x6d3650
mov dword [ebp - 0x38], 0x6d3650
call fcn.0055d042
add esp, 4
test eax, eax
je 0x50ffc4
push eax
call fcn.0055ca85
add esp, 4
mov dword [ebp - 4], 1
mov eax, 0x2aaaaaab
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
imul ecx
mov ecx, dword [0x6d3588]
mov eax, 0x2aaaaaab
sub ecx, dword [0x6d3584]
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
mov esi, dword [ebp - 0x3c]
jb 0x51001a
cmp esi, 0x6d3584
je 0x51001a
push dword [ebp - 0x38]
push dword [esi + 4]
push dword [esi]
call fcn.005149e0
push 0x6d3650
mov dword [ebp - 4], 2
call fcn.0055d067
add esp, 4
test eax, eax
je 0x51003b
push eax
call fcn.0055ca85
add esp, 4
mov dword [ebp - 4], 0xffffffff
test dword [edi + 0xc], 2
je 0x510054
mov edx, esi
mov ecx, edi
call fcn.0050fe60
mov eax, dword [ebp - 0x34]
inc ebx
add edi, 0x20
cmp ebx, dword [ebp - 0x30]
jb 0x50ff04
mov edi, eax
jmp 0x50fed0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x40]
call dword [sym.imp.MPR.dll_WNetCloseEnum]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056eeb4
mov esp, ebp
pop ebp
ret
call fcn.00591dc6
int3
Function at 0x512780
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c5d20
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x61f138]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.005106f0
push esi
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0044a2c0
add esp, 4
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x512808
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5127fe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5128fe
push edx
push ecx
call fcn.0056eec5
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x2c], 8
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
mov dword [ebp - 0x14], 7
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x51283a
lea ecx, [ebp - 0x40]
call fcn.005122c0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
push 0
lea ecx, [ebp - 0x1c]
call fcn.0045be10
sub esp, 0xc
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x44], esp
push eax
call fcn.004c85a0
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
push 6
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push str.delete
mov byte [ecx], 0
call fcn.004462c0
mov byte [ebp - 4], 3
call fcn.005101e0
add esp, 0x24
lea ecx, [ebp - 0x1c]
call fcn.00444a40
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x5128e2
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5128d8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x512903
push edx
push ecx
call fcn.0056eec5
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056eeb4
mov esp, ebp
pop ebp
ret 4
call fcn.00591dc6
call fcn.00591dc6
int3