joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b1ec0
Capabilities:
Get thread local storage value
Set file attributes

Disassembly:
mov eax, dword [0x6edbc0]
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x5b1f71
mov ecx, dword [esi + 0x9068]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call ebp
mov ax, word [esi + 0xb00]
mov cx, word [esi + 0xb02]
lea edx, [esp + 0x18]
mov dword [esi + 0x9068], 0xffffffff
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
push 0
push connect
push 3
push 0
lea ebx, [esi + 0x75e]
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x5b1f71
mov ecx, dword [esi + 0x966]
or ecx, 0x20
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x5b1f80
Capabilities:
Get disk information
Get thread local storage value

Disassembly:
mov eax, dword [0x6edbc0]
sub esp, 0x64
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x5b1fa0
mov eax, 4
pop edi
add esp, 0x64
ret
mov eax, dword [esp + 0x6c]
push ebx
xor ebx, ebx
push esi
test eax, eax
je 0x5b2045
cmp byte [eax], 0
je 0x5b2045
push eax
call fcn.005a9c30
mov esi, eax
mov eax, dword [edi + 0xc7c]
add esp, 4
test eax, eax
je 0x5b2045
push esi
call fcn.005a9bd0
add esp, 4
test eax, eax
je 0x5b2045
add esi, 0x40
lea ecx, [esp + 0x50]
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push str._c:_
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x3c]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push 0x14
push edx
push eax
push ecx
push ebx
lea edx, [esp + 0x28]
push 0x14
lea eax, [esp + 0x68]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x28]
push ecx
push str.PKBACK__03d
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x5b2045
mov ebx, 1
mov eax, ebx
pop esi
pop ebx
pop edi
add esp, 0x64
ret

Function at 0x5b2050
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ecx
or edi, 0xffffffff
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5b207a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5b2094
mov edx, dword [esp + 0x10]
push 1
push 0
push 0
push edx
call fcn.005cede0
xor ecx, ecx
add eax, esi
pop edi
pop esi
adc edx, ecx
pop ebx
ret
mov eax, edi
pop edi
mov edx, ebx
pop esi
pop ebx
ret
Function at 0x5b23a0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6edbc0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x5b23b1
ret
mov cx, word [eax + 0xcd2]
or cl, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
and eax, 0xffff
shr eax, 8
ret

Function at 0x5b23d0
Capabilities:
Generate random numbers using the delphi lcg
Get thread local storage value
Hash data with crc32

Disassembly:
mov eax, dword [0x6edbc0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5b2448
mov edx, dword [eax + 0xcca]
push esi
mov esi, dword [esp + 8]
mov ecx, edx
xor ecx, esi
and ecx, 0xff
shr edx, 8
mov ecx, dword [ecx*4 + 0x698464]
xor ecx, edx
mov edx, dword [eax + 0xcce]
mov dword [eax + 0xcca], ecx
and ecx, 0xff
add ecx, edx
mov edx, dword [eax + 0xcd2]
imul ecx, ecx, 0x8088405
inc ecx
mov esi, edx
mov dword [eax + 0xcce], ecx
and esi, 0xff
shr ecx, 0x18
xor ecx, esi
pop esi
shr edx, 8
mov ecx, dword [ecx*4 + 0x698464]
xor ecx, edx
mov dword [eax + 0xcd2], ecx
ret

Function at 0x5b2450
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6edbc0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5b249d
mov esi, dword [esp + 8]
mov dword [eax + 0xcca], 0x12345678
mov dword [eax + 0xcce], 0x23456789
mov dword [eax + 0xcd2], 0x34567890
mov al, byte [esi]
test al, al
je 0x5b249d
movsx ecx, al
push ecx
call fcn.005b23d0
mov al, byte [esi + 1]
add esp, 4
inc esi
test al, al
jne 0x5b2489
pop esi
ret

Function at 0x5b24a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
mov edx, ecx
dec ecx
mov eax, dword [edi + 0x8cde]
test edx, edx
je 0x5b24e7
push ebx
push esi
lea esi, [ecx + 1]
mov ecx, dword [esp + 0x10]
xor edx, edx
mov ebx, eax
mov dl, byte [ecx]
and ebx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x698464]
xor eax, edx
inc ecx
dec esi
jne 0x5b24bf
pop esi
mov dword [edi + 0x8cde], eax
pop ebx
pop edi
ret
mov dword [edi + 0x8cde], eax
pop edi
ret
Function at 0x5b36f0
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x6edbc0]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x5b3712
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
lea ecx, [esp + 0xc]
push esi
push ecx
mov dword [esi + 0x9078], ebx
mov dword [esi + 0x9084], ebx
mov dword [esi + 0x9080], ebx
mov dword [esi + 0x9a6], ebx
xor edi, edi
mov dword [esi + 0x908a], ebx
call fcn.005b3630
add esp, 8
cmp eax, ebx
jne 0x5b3789
mov eax, dword [esi + 0x908a]
cmp eax, edi
jbe 0x5b3750
mov edi, eax
cmp dword [esi], ebx
jne 0x5b3777
cmp dword [esp + 0xc], ebx
jne 0x5b3777
lea edx, [esp + 0xc]
push esi
push edx
mov dword [esi + 0x908a], ebx
call fcn.005b3630
add esp, 8
cmp eax, ebx
je 0x5b3744
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esi + 0x9078]
push esi
push eax
call fcn.005b2a10
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x5b3790
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6edbc0]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x5b37b0
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
ret
lea esi, [ebx + 0x9088]
push ebx
push esi
call fcn.005b1660
xor ebp, ebp
push ebx
mov bp, word [esi]
push esi
inc ebp
xor edi, edi
call fcn.005b1660
xor eax, eax
mov edx, dword [esp + 0x28]
mov ax, word [esi]
add esp, 0x10
mov ecx, eax
shr eax, 4
and ecx, 0xf
and eax, 0xf
inc ecx
inc eax
cmp eax, edx
ja 0x5b3821
mov edx, dword [esp + 0x14]
lea edx, [edx + edi*4]
mov dword [edx], ecx
inc edi
add edx, 4
dec eax
jne 0x5b37f0
dec ebp
je 0x5b382b
push ebx
push esi
call fcn.005b1660
xor eax, eax
add esp, 8
mov ax, word [esi]
mov ecx, eax
shr eax, 4
and ecx, 0xf
and eax, 0xf
inc ecx
inc eax
lea edx, [eax + edi]
cmp edx, dword [esp + 0x18]
jbe 0x5b37e9
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
ret
mov esi, dword [esp + 0x18]
mov eax, edi
sub eax, esi
pop edi
neg eax
sbb eax, eax
pop esi
pop ebp
and eax, 4
pop ebx
ret
Function at 0x5b56a0
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x6edbc0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x5b577d
mov eax, 0xffff6f6e
push ebx
push ebp
sub eax, esi
push edi
mov ebp, 0x3fc0
lea edi, [esi + 0x9191]
mov dword [esp + 0x10], eax
cmp dword [esi + 0x8cf2], 6
jge 0x5b56e3
push esi
call fcn.005b15f0
add esp, 4
mov cl, byte [esi + 0x8cee]
mov bl, byte [0x698870]
and cl, bl
xor ebx, ebx
mov byte [edi], cl
mov edx, dword [esi + 0x8cee]
mov ecx, dword [esi + 0x8cf2]
shr edx, 6
add ecx, 0xfffffffa
mov dword [esi + 0x8cee], edx
mov dword [esi + 0x8cf2], ecx
mov al, byte [edi]
test al, al
jbe 0x5b5768
cmp dword [esi + 0x8cf2], 8
jge 0x5b572b
push esi
call fcn.005b15f0
add esp, 4
mov dl, byte [esi + 0x8cee]
mov al, byte [0x698874]
and dl, al
mov eax, dword [esi + 0x908e]
add eax, ebp
mov byte [eax + ebx], dl
mov eax, dword [esi + 0x8cee]
mov edx, dword [esi + 0x8cf2]
shr eax, 8
add edx, 0xfffffff8
mov dword [esi + 0x8cee], eax
mov dword [esi + 0x8cf2], edx
mov al, byte [edi]
inc ebx
cmp bl, al
jb 0x5b5719
mov ecx, dword [esp + 0x10]
dec edi
add ecx, edi
sub ebp, 0x40
test ecx, ecx
jge 0x5b56d1
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
Function at 0x5b5bc0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6edbc0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5b5c93
mov ecx, dword [eax + 0x91a2]
mov edx, 0x101
cmp ecx, edx
push esi
jle 0x5b5bfd
lea ecx, [eax + 0xed8]
or word [ecx], 0x8000
mov esi, dword [eax + 0x91a2]
inc edx
add ecx, 2
cmp edx, esi
jl 0x5b5bea
mov ecx, dword [eax + 0x91a2]
mov esi, 0x101
cmp ecx, esi
jle 0x5b5c3b
lea edx, [eax + 0xed8]
mov cx, word [edx]
and ecx, 0x7fff
cmp ecx, 0x101
jl 0x5b5c2d
and word [eax + ecx*2 + 0xcd6], 0x7fff
mov ecx, dword [eax + 0x91a2]
inc esi
add edx, 2
cmp esi, ecx
jl 0x5b5c12
mov ecx, dword [eax + 0x91a2]
mov edx, 0x101
cmp ecx, edx
jle 0x5b5c69
lea ecx, [eax + 0xed8]
test byte [ecx + 1], 0x80
je 0x5b5c5b
mov word [ecx], 0xffff
mov esi, dword [eax + 0x91a2]
inc edx
add ecx, 2
cmp edx, esi
jl 0x5b5c50
mov esi, dword [eax + 0x919e]
mov ecx, 0x101
cmp esi, ecx
jle 0x5b5c8c
lea edx, [eax + 0xed8]
cmp word [edx], 0xffff
je 0x5b5c8c
inc ecx
add edx, 2
cmp ecx, esi
jl 0x5b5c7e
mov dword [eax + 0x91a2], ecx
pop esi
ret
Function at 0x5b6840
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x248
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp]
push ecx
call fcn.005b68e0
add esp, 4
lea edx, [esp]
push edx
push 0
push 0x2be
call fcn.005be950
add esp, 8
push eax
lea eax, [esp + 0x10c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x110]
push ecx
call fcn.005b7ad0
add esp, 0x258
ret

Function at 0x5b6930
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6edde0]
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x5b6aa4
mov ebp, dword [esi + 0x372]
test ebp, ebp
jne 0x5b6960
mov eax, dword [esi + 0xb14]
test eax, eax
je 0x5b6aa4
push ebx
mov ebx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov ecx, ebx
or ecx, edi
jne 0x5b6974
xor edi, edi
jmp 0x5b69c2
test edi, edi
jl 0x5b699a
jg 0x5b6982
cmp ebx, 0x186a0
jbe 0x5b699a
push 0
push 0x64
push edi
push ebx
call fcn.005ced30
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push edx
jmp 0x5b69b0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push 0
push 0x64
push ecx
push edx
call fcn.005cede0
push edi
push ebx
push edx
push eax
call fcn.005ced30
mov edi, eax
cmp edi, 0x64
jle 0x5b69c2
mov edi, 0x64
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [esi + 0xb10], edi
je 0x5b6a51
mov ebx, dword [esp + 0x14]
lea eax, [esi + 0x206]
push ebx
push eax
call ebp
lea eax, [esi + 0x202]
lea ecx, [esi + 0x366]
mov dword [esi + 0x36e], eax
mov dword [esi + 0x36a], 0x164
mov dword [eax], edi
mov eax, dword [esi + 0xb3c]
cmp eax, 0xc8
mov dword [ecx], 1
jl 0x5b6a3d
mov eax, dword [esi + 0x92]
test eax, eax
je 0x5b6a3d
push ecx
mov ecx, dword [esi + 0x37a]
push 0
push 0x4a
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x5b6a8f
mov dword [esi + 0x8e], 1
jmp 0x5b6a8f
mov edx, dword [esi + 0x37a]
push ecx
push 0
push 0x4a
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x5b6a8f
cmp dword [esi + 0xb3c], 0xc8
jl 0x5b6a7c
mov eax, dword [esi + 0x92]
test eax, eax
je 0x5b6a7c
mov eax, dword [esi + 0xb18]
mov ebx, dword [esp + 0x14]
push eax
push edi
push ebx
call dword [esi + 0xb14]
jmp 0x5b6a2d
mov ecx, dword [esi + 0xb18]
mov ebx, dword [esp + 0x14]
push ecx
push edi
push ebx
call dword [esi + 0xb14]
lea edx, [esi + 0x908]
push ebx
push edx
call ebp
push esi
call fcn.005b7dc0
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x5b6ab0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6edde0]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x5b6ac7
pop esi
pop ebx
ret
mov ebx, dword [esi + 0x372]
test ebx, ebx
jne 0x5b6ae0
mov eax, dword [esi + 0xb20]
test eax, eax
jne 0x5b6ae0
pop esi
xor eax, eax
pop ebx
ret
mov ecx, dword [esp + 0x10]
push ebp
test ecx, ecx
push edi
jne 0x5b6aee
xor edi, edi
jmp 0x5b6b2b
cmp ecx, 0x186a0
jle 0x5b6b0f
mov eax, 0x51eb851f
imul ecx
mov ecx, edx
mov eax, dword [esp + 0x1c]
sar ecx, 5
mov edx, ecx
shr edx, 0x1f
add ecx, edx
jmp 0x5b6b1c
mov eax, dword [esp + 0x1c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv ecx
mov edi, eax
cmp edi, 0x64
jle 0x5b6b2b
mov edi, 0x64
xor ebp, ebp
mov dword [esi + 0xb1c], edi
test ebx, ebx
je 0x5b6ba7
mov ebx, dword [esp + 0x14]
lea eax, [esi + 0x206]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esi + 0x202]
lea ecx, [esi + 0x366]
mov dword [esi + 0x36e], eax
push ecx
mov dword [eax], edi
mov eax, dword [esi + 0xb3c]
cmp eax, 0xc8
push ebp
mov dword [ecx], ebp
mov dword [esi + 0x36a], 0x164
push 0x4a
jl 0x5b6b98
mov ecx, dword [esi + 0x37a]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x5b6bff
mov ebp, 1
mov dword [esi + 0x8e], ebp
jmp 0x5b6bff
mov edx, dword [esi + 0x37a]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x5b6bff
mov eax, dword [esi + 0xb3c]
sub eax, 0x64
je 0x5b6bea
sub eax, 0x64
je 0x5b6bd3
sub eax, 0x64
je 0x5b6bd3
mov eax, dword [esi + 0xb24]
mov ebx, dword [esp + 0x14]
push eax
push edi
push ebx
call dword [esi + 0xb20]
mov ebp, eax
jmp 0x5b6bff
mov ecx, dword [esi + 0xb24]
mov ebx, dword [esp + 0x14]
push ecx
push edi
push ebx
call dword [esi + 0xb20]
mov ebp, eax
jmp 0x5b6bff
mov edx, dword [esi + 0xb24]
mov ebx, dword [esp + 0x14]
push edx
push edi
push ebx
call dword [esi + 0xb20]
xor ebp, ebp
lea eax, [esi + 0xa0c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.005b7dc0
add esp, 4
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
ret
Function at 0x5b6d50
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x20c
mov ecx, dword [eax + 0xb38]
push esi
test ecx, ecx
je 0x5b6e43
lea ecx, [esp + 8]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
push 2
push 0x6c
call fcn.005be950
add esp, 8
lea edx, [esp + 0x110]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov al, byte [esp + 0x10c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp al, 0x5c
je 0x5b6db6
lea eax, [esp + 8]
push 0x6713a0
push eax
call esi
lea ecx, [esp + 0x10c]
lea edx, [esp + 8]
push ecx
push edx
call esi
push 0
push 0x80
push 4
push 0
push 3
lea eax, [esp + 0x1c]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x5b6e43
push ebx
push edi
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0xc]
push 0
push ecx
push 2
push 0x67422c
push esi
call edi
mov ebx, dword [esp + 0x21c]
lea edx, [esp + 0xc]
push 0
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
push esi
call edi
lea eax, [esp + 0xc]
push 0
push eax
push 2
push 0x67422c
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
add esp, 0x20c
ret
Function at 0x5b7ad0
Capabilities:
Get common file path
Get thread local storage value
Write file on windows

Disassembly:
mov eax, dword [0x6edde0]
sub esp, 0x20c
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x5b7be0
mov eax, dword [esi + 0x1ee]
test eax, eax
je 0x5b7be0
cmp dword [esi + 0x1f6], 0xffffffff
jne 0x5b7b90
lea ecx, [esp + 0xc]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
push 0
push 0x2bd
call fcn.005be950
add esp, 8
lea edx, [esp + 0x114]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov al, byte [esp + 0x110]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp al, 0x5c
je 0x5b7b59
lea eax, [esp + 0xc]
push 0x6713a0
push eax
call edi
lea ecx, [esp + 0x110]
lea edx, [esp + 0xc]
push ecx
push edx
call edi
push 0
push 0x80
push 4
push 0
push 3
lea eax, [esp + 0x20]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x1f6], eax
je 0x5b7be0
mov ecx, dword [esi + 0x1f6]
push 2
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x218]
lea edx, [esp + 8]
push 0
push edx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esi + 0x1f6]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call edi
mov edx, dword [esi + 0x1f6]
lea ecx, [esp + 8]
push 0
push ecx
push 2
push 0x67422c
push edx
call edi
pop edi
pop esi
add esp, 0x20c
ret
Function at 0x5b7bf0
Capabilities:
Create process on windows
Enumerate gui resources
Get thread local storage value

Disassembly:
sub esp, 0x160
mov al, byte [0x6a0f60]
push ebp
push esi
push edi
mov byte [esp + 0x6c], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x6d]
rep stosd dword es:[edi], eax
mov ecx, dword [0x6edde0]
stosw word es:[edi], ax
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
jne 0x5b7c33
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x160
ret
push ebx
mov ebx, dword [esp + 0x174]
mov eax, ebx
lea edx, [esi + 0x382]
neg eax
sbb eax, eax
push edx
and al, 0xf5
lea ecx, [esp + 0x74]
add eax, 0x6e
push eax
push str.dzprog32.exe___c__z__T_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x3c]
mov dword [esi + 0x37e], ebp
mov dword [esi + 0x37a], ebp
mov dword [esi + 0x372], ebp
rep stosd dword es:[edi], eax
mov eax, 1
add esp, 0x10
mov word [esp + 0x5c], ax
mov dword [esp + 0x58], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x2c]
push edx
push eax
push ebp
push ebp
push 0x20
push ebp
push ebp
lea ecx, [esp + 0x8c]
push ebp
push ecx
push ebp
mov dword [esp + 0x54], 0x44
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x5b7d0f
mov edx, dword [esp + 0x1c]
push 0x2710
push edx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], eax
push edx
push 0x5b0de0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebp
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x5b7d0f
mov edi, 1
mov dword [esi + 0x37a], eax
mov dword [esi + 0x372], edi
mov dword [esi + 0x37e], ebx
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x160
ret

Function at 0x5b7d20
Capabilities:
Check for time delay via gettickcount
Get thread local storage value

Disassembly:
mov eax, dword [0x6edde0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x5b7db0
mov eax, dword [esi + 0x37a]
test eax, eax
je 0x5b7db0
push ebx
push ebp
push edi
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov ecx, dword [esi + 0x37a]
mov ebp, eax
push ecx
xor edi, edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5b7d98
test edi, edi
jne 0x5b7d98
push esi
call fcn.005b7dc0
add esp, 4
call ebx
sub eax, ebp
cmp eax, 0x1388
jbe 0x5b7d87
mov edi, 1
mov edx, dword [esi + 0x37a]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x5b7d6a
xor eax, eax
pop edi
pop ebp
mov dword [esi + 0x372], eax
mov dword [esi + 0x37e], eax
pop ebx
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x5b8e40
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov eax, dword [ebx + 0xd8c]
push edi
test eax, eax
jne 0x5b8e7f
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov edx, dword [ebx + 0x2a]
push eax
lea eax, [esp + 0x18]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5b8e78
mov ebp, dword [esp + 0x14]
test ebp, ebp
jne 0x5b8eef
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
cmp eax, 1
jne 0x5b8e78
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov ecx, dword [ebx + 0x2a]
lea eax, [esp + 0x14]
shr edi, 1
push 0
add edi, esi
push eax
push 0
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5b8e78
mov ebp, dword [esp + 0x14]
test ebp, ebp
mov dword [esp + 0x18], ebp
je 0x5b8e78
mov al, byte [edi]
cmp al, 0xa
jne 0x5b8ec2
mov byte [esi], 0xd
inc esi
mov byte [esi], al
jmp 0x5b8ed7
mov byte [esi], al
mov dl, byte [edi]
push edx
inc esi
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x5b8ed9
mov al, byte [edi + 1]
mov byte [esi], al
inc esi
inc ebp
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x5b8eb4
sub esi, ebp
push ebx
push ebp
push esi
call fcn.005b93c0
mov edx, dword [ebx + 0x32]
mov ecx, dword [ebx + 0x3d26]
add esp, 0xc
add edx, ebp
mov dword [ebx + 0x3d2a], eax
mov dword [ebx + 0x32], edx
test ecx, ecx
mov eax, edx
jne 0x5b8f21
mov ecx, dword [ebx + 0x3a]
mov edx, dword [ebx + 0x36]
push 0
push eax
push ecx
push edx
jmp 0x5b8f2d
cmp eax, ebp
ja 0x5b8f3c
push 0
push 0
push 0
push 0x64
add ebx, 0x3c22
push ebx
call fcn.005b6930
add esp, 0x14
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret

Function at 0x5b93c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
test ecx, ecx
jne 0x5b93d0
or eax, 0xffffffff
pop esi
not eax
ret
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov esi, edx
dec edx
mov eax, dword [eax + 0x3d2a]
test esi, esi
not eax
je 0x5b940a
push edi
lea esi, [edx + 1]
xor edx, edx
mov edi, eax
mov dl, byte [ecx]
and edi, 0xff
xor edx, edi
shr eax, 8
mov edx, dword [edx*4 + 0x69a6c8]
xor eax, edx
inc ecx
dec esi
jne 0x5b93eb
pop edi
not eax
pop esi
ret