joyce8/EMBER2024-capa huggingface dataset:
Function at 0x598a70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x697c72
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
mov dword [esp + 4], eax
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x10], ebx
je 0x598bc6
push ebp
push esi
mov esi, dword [esp + 0x24]
push edi
lea edi, [eax + 4]
mov ecx, dword [esi]
lea ebp, [esi + 8]
mov dword [eax], ecx
mov edx, dword [esi + 4]
mov dword [edi], edx
mov al, byte [ebp]
lea ecx, [edi + 4]
mov dword [esp + 0x28], edi
mov byte [ecx], al
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov edx, dword [0x6a3564]
push edx
push ebx
push ebp
call fcn.00402fc0
mov al, byte [esi + 0x18]
lea ebp, [esi + 0x18]
lea ecx, [edi + 0x14]
mov byte [esp + 0x1c], 1
mov byte [ecx], al
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov edx, dword [0x6a3564]
push edx
push ebx
push ebp
call fcn.00402fc0
mov eax, dword [esi + 0x28]
mov byte [esp + 0x1c], 2
mov dword [edi + 0x24], eax
mov ecx, dword [esi + 0x2c]
mov dword [edi + 0x28], ecx
mov edx, dword [esi + 0x30]
mov dword [edi + 0x2c], edx
mov eax, dword [esi + 0x34]
mov dword [edi + 0x30], eax
mov ecx, dword [esi + 0x38]
mov dword [edi + 0x34], ecx
mov edx, dword [esi + 0x3c]
mov dword [edi + 0x38], edx
mov eax, dword [esi + 0x40]
mov dword [edi + 0x3c], eax
mov ecx, dword [esi + 0x44]
mov dword [edi + 0x40], ecx
mov edx, dword [esi + 0x48]
mov dword [edi + 0x44], edx
mov eax, dword [esi + 0x4c]
mov dword [edi + 0x48], eax
mov ecx, dword [esi + 0x50]
mov dword [edi + 0x4c], ecx
mov edx, dword [esi + 0x54]
mov dword [edi + 0x50], edx
mov eax, dword [esi + 0x58]
mov dword [edi + 0x54], eax
mov ecx, dword [esi + 0x5c]
mov dword [edi + 0x58], ecx
mov edx, dword [esi + 0x60]
mov dword [edi + 0x5c], edx
mov eax, dword [esi + 0x64]
mov dword [edi + 0x60], eax
mov ecx, dword [esi + 0x68]
mov dword [edi + 0x64], ecx
mov dl, byte [esi + 0x6c]
mov byte [edi + 0x68], dl
mov eax, dword [esi + 0x70]
mov dword [edi + 0x6c], eax
mov ecx, dword [esi + 0x74]
mov dword [edi + 0x70], ecx
mov edx, dword [esi + 0x78]
mov dword [edi + 0x74], edx
mov eax, dword [esi + 0x7c]
mov dword [edi + 0x78], eax
mov cl, byte [esi + 0x80]
mov byte [edi + 0x7c], cl
mov edx, dword [esi + 0x84]
mov dword [edi + 0x80], edx
mov eax, dword [esi + 0x88]
mov dword [edi + 0x84], eax
pop edi
pop esi
mov byte [esp + 0x14], bl
pop ebp
mov dword [esp + 0x10], 0xffffffff
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esp + 8]
mov dword [esp + 0x10], 0xffffffff
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x598be0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x697cb2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
mov dword [esp + 4], eax
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x10], ebx
je 0x598cd3
push ebp
push esi
mov esi, dword [esp + 0x24]
push edi
lea edi, [eax + 4]
mov ecx, dword [esi]
lea ebp, [esi + 8]
mov dword [eax], ecx
mov edx, dword [esi + 4]
mov dword [edi], edx
mov al, byte [ebp]
lea ecx, [edi + 4]
mov dword [esp + 0x28], edi
mov byte [ecx], al
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov edx, dword [0x6a3564]
push edx
push ebx
push ebp
call fcn.00402fc0
mov al, byte [esi + 0x18]
lea ebp, [esi + 0x18]
lea ecx, [edi + 0x14]
mov byte [esp + 0x1c], 1
mov byte [ecx], al
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov edx, dword [0x6a3564]
push edx
push ebx
push ebp
call fcn.00402fc0
mov al, byte [esi + 0x28]
mov byte [esp + 0x1c], 2
mov byte [edi + 0x24], al
mov cl, byte [esi + 0x29]
mov byte [edi + 0x25], cl
mov edx, dword [esi + 0x2c]
mov dword [edi + 0x28], edx
mov al, byte [esi + 0x30]
mov byte [edi + 0x2c], al
mov cl, byte [esi + 0x31]
mov byte [edi + 0x2d], cl
mov dl, byte [esi + 0x32]
mov byte [edi + 0x2e], dl
mov al, byte [esi + 0x33]
mov byte [edi + 0x2f], al
mov ecx, dword [esi + 0x34]
mov dword [edi + 0x30], ecx
mov dl, byte [esi + 0x38]
mov byte [edi + 0x34], dl
mov al, byte [esi + 0x39]
mov byte [edi + 0x35], al
mov cl, byte [esi + 0x3a]
mov byte [edi + 0x36], cl
pop edi
pop esi
mov byte [esp + 0x14], bl
pop ebp
mov dword [esp + 0x10], 0xffffffff
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esp + 8]
mov dword [esp + 0x10], 0xffffffff
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x5ae250
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x69877e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004386f0
mov al, byte [esp + 0xb]
xor edi, edi
mov dword [esp + 0x18], edi
mov byte [esi + 0x58], al
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov cl, byte [esp + 0xb]
mov eax, 1
mov byte [esp + 0x18], al
mov byte [esi + 0x6c], cl
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
lea ecx, [esi + 0x40]
mov byte [esp + 0x18], 2
xor edx, edx
mov dword [esi], 0x6a8678
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
lea ecx, [esi + 0x4c]
mov dword [esi + 0x4c], edx
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
mov dword [esi + 0x114], edi
mov dword [esi + 0x118], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x88], eax
call dword [sym.imp.winmm.dll_timeGetTime]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x80], eax
mov dword [esi + 0x8c], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x120], edi
mov dword [esi + 0x11c], edi
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x5b41e0
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x698b37
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004386f0
mov al, byte [esp + 0xb]
xor edi, edi
mov dword [esp + 0x18], edi
mov byte [esi + 0x34], al
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov cl, byte [esp + 0xb]
mov byte [esp + 0x18], 1
push 0xc
mov byte [esi + 0x44], cl
call fcn.00673b05
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], edi
mov dl, byte [esp + 0xf]
mov byte [esp + 0x1c], 2
push 0xc
mov byte [esi + 0x50], dl
call fcn.00673b05
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 8
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], edi
mov al, byte [esp + 0xb]
mov byte [esp + 0x18], 3
mov byte [esi + 0x40074], al
mov dword [esi + 0x40078], edi
mov dword [esi + 0x4007c], edi
mov dword [esi + 0x40080], edi
mov byte [esp + 0x18], 4
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x6c], edi
mov ecx, 0x10000
xor eax, eax
lea edi, [esi + 0x70]
mov dword [esi], 0x6a86e4
mov dword [esi + 0x40070], 1
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x5b9b96
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x698d88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x6a8704
mov ecx, dword [0x6e29b4]
lea eax, [esi + 0x58]
xor edi, edi
push eax
mov dword [esp + 0x18], edi
call fcn.0044d410
mov ecx, dword [esi + 0x18]
cmp ecx, edi
je 0x5b9bca
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x50], edi
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.0042ddb0
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x5bacd0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x698ebb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x24]
push ebp
test eax, eax
mov dword [esp + 4], ecx
je 0x5badf8
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x5badf8
push esi
mov esi, dword [sym.imp.kernel32.dll_ReadFile]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x1c]
push 4
push ecx
push ebp
call esi
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x14]
push 4
push eax
push ebp
call esi
mov eax, dword [esp + 0xc]
mov dword [esp + 0x2c], 0
test eax, eax
jle 0x5badf0
push ebx
push edi
push 0x188
call fcn.00673b05
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x2c], 0
je 0x5bad84
mov ecx, eax
call fcn.0043afd0
mov ebx, eax
jmp 0x5bad86
xor ebx, ebx
mov edx, dword [ebx]
push ebp
mov ecx, ebx
mov dword [esp + 0x30], 0xffffffff
call dword [edx + 0xc]
test ebx, ebx
je 0x5badd9
mov eax, dword [esp + 0x10]
push 0xc
mov esi, dword [eax + 0x1c]
mov edi, dword [esi + 4]
call fcn.00673b05
add esp, 4
mov ecx, esi
test esi, esi
jne 0x5badb6
mov ecx, eax
test edi, edi
mov dword [eax], ecx
jne 0x5badbe
mov edi, eax
mov dword [eax + 4], edi
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
add eax, 8
test eax, eax
je 0x5badd2
mov dword [eax], ebx
mov eax, dword [esp + 0x10]
inc dword [eax + 0x20]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x34], eax
jl 0x5bad5c
pop edi
pop ebx
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
pop esi
mov ecx, dword [esp + 0x18]
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x5ee310
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x3c
push ebx
mov ebx, dword [esp + 0x44]
mov dword [esp + 4], ecx
push ebp
mov ecx, dword [esp + 0x4c]
push esi
or esi, 0xffffffff
push edi
lea eax, [ecx + 1]
sub esi, ecx
movsx ecx, byte [ebx]
test ecx, ecx
je 0x5ee333
inc ebx
mov edx, ecx
add eax, 8
sar edx, 7
and dl, 1
xor byte [eax - 9], dl
mov edx, ecx
sar edx, 6
and dl, 1
xor byte [eax - 8], dl
mov edx, ecx
sar edx, 5
and dl, 1
xor byte [eax - 7], dl
mov edx, ecx
sar edx, 4
and dl, 1
xor byte [eax - 6], dl
mov edx, ecx
sar edx, 3
and dl, 1
xor byte [eax - 5], dl
mov edx, ecx
sar edx, 2
and dl, 1
xor byte [eax - 4], dl
mov edx, ecx
sar edx, 1
and dl, 1
and cl, 1
xor byte [eax - 3], dl
mov dl, byte [eax - 2]
xor dl, cl
lea ecx, [esi + eax]
mov byte [eax - 2], dl
cmp ecx, 0x40
jl 0x5ee32b
mov esi, dword [esp + 0x58]
mov ebp, dword [esp + 0x10]
mov ecx, 0xe
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov edx, 0x6a898c
mov al, byte [esp + 0x14]
mov ecx, 0x1b
lea esi, [esp + 0x15]
lea edi, [esp + 0x14]
rep movsb byte es:[edi], byte [esi]
mov byte [esp + 0x2f], al
mov al, byte [esp + 0x30]
mov ecx, 0x1b
lea esi, [esp + 0x31]
lea edi, [esp + 0x30]
rep movsb byte es:[edi], byte [esi]
mov byte [esp + 0x4b], al
mov eax, dword [edx]
cmp eax, 2
jne 0x5ee410
mov al, byte [esp + 0x14]
mov ecx, 0x1b
lea esi, [esp + 0x15]
lea edi, [esp + 0x14]
rep movsb byte es:[edi], byte [esi]
mov byte [esp + 0x2f], al
mov al, byte [esp + 0x30]
mov ecx, 0x1b
lea esi, [esp + 0x31]
lea edi, [esp + 0x30]
rep movsb byte es:[edi], byte [esi]
mov byte [esp + 0x4b], al
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + 0x6a89dc]
inc eax
cmp eax, 0x30
mov cl, byte [esp + ecx + 0x13]
mov byte [eax + ebp - 1], cl
jl 0x5ee412
add edx, 4
add ebp, 0x30
cmp edx, 0x6a89cc
jl 0x5ee3ad
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x10]
push 1
push edx
call fcn.005edfa0
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x3c
ret 0xc
Function at 0x5ee460
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x40
xor eax, eax
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 0x10
lea edi, [esp + 0x10]
push 0x6d7d74
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, ebx
call fcn.005ee310
lea edx, [esp + 0x10]
push 0x6d7dac
push edx
push eax
mov ecx, ebx
call fcn.005ee310
lea ecx, [esp + 0x10]
push 0x6d7de4
push ecx
push eax
mov ecx, ebx
call fcn.005ee310
lea edx, [esp + 0x10]
push 0x6d7e1c
push edx
push eax
mov ecx, ebx
call fcn.005ee310
mov ecx, 0xe
lea esi, [esp + 0x10]
lea edi, [esp + 0x10]
mov ebp, ebx
rep movsd dword es:[edi], dword [esi]
mov edx, 0x6a898c
mov al, byte [esp + 0x10]
mov ecx, 0x1b
lea esi, [esp + 0x11]
lea edi, [esp + 0x10]
rep movsb byte es:[edi], byte [esi]
mov byte [esp + 0x2b], al
mov al, byte [esp + 0x2c]
mov ecx, 0x1b
lea esi, [esp + 0x2d]
lea edi, [esp + 0x2c]
rep movsb byte es:[edi], byte [esi]
mov byte [esp + 0x47], al
mov eax, dword [edx]
cmp eax, 2
jne 0x5ee53b
mov al, byte [esp + 0x10]
mov ecx, 0x1b
lea esi, [esp + 0x11]
lea edi, [esp + 0x10]
rep movsb byte es:[edi], byte [esi]
mov byte [esp + 0x2b], al
mov al, byte [esp + 0x2c]
mov ecx, 0x1b
lea esi, [esp + 0x2d]
lea edi, [esp + 0x2c]
rep movsb byte es:[edi], byte [esi]
mov byte [esp + 0x47], al
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + 0x6a89dc]
inc eax
cmp eax, 0x30
mov cl, byte [esp + ecx + 0xf]
mov byte [eax + ebp - 1], cl
jl 0x5ee53d
add edx, 4
add ebp, 0x30
cmp edx, 0x6a89cc
jl 0x5ee4d8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4
Function at 0x5f3c50
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x69b937
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov ecx, dword [ecx + 8]
mov edx, dword [esp + 0x120]
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push 0x104
push eax
mov eax, dword [ecx + edx*4]
xor esi, esi
mov ecx, dword [eax + 0x34]
mov dword [esp + 0x120], esi
push ecx
call dword [sym.imp.user32.dll_GetWindowTextA]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [esp + 0x12c]
repne scasb al, byte es:[edi]
mov dl, byte [esp + 0x13]
mov dword [ebp + 4], esi
not ecx
dec ecx
mov byte [ebp], dl
mov ebx, ecx
mov dword [ebp + 8], esi
cmp ebx, 0xfffffffd
mov dword [ebp + 0xc], esi
jbe 0x5f3cca
call fcn.006713ab
mov ecx, dword [ebp + 4]
cmp ecx, esi
je 0x5f3cef
mov al, byte [ecx - 1]
test al, al
je 0x5f3cef
cmp al, 0xff
je 0x5f3cef
cmp ebx, esi
jne 0x5f3d13
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebp
call fcn.004031c0
jmp 0x5f3d3d
cmp ebx, esi
jne 0x5f3cfe
push 1
mov ecx, ebp
call fcn.004031c0
jmp 0x5f3d3d
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x5f3d0a
cmp eax, ebx
jae 0x5f3d1b
push 1
mov ecx, ebp
call fcn.004031c0
push ebx
mov ecx, ebp
call fcn.00403480
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
lea esi, [esp + 0x14]
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 [ebp + 4]
mov dword [ebp + 8], ebx
add ebx, eax
mov byte [ebx], 0
mov dword [esp + 0x118], 1
mov ecx, dword [esp + 0x11c]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret 8
Function at 0x5f5c80
Capabilities:
Get file size
Hash data with crc32
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69bc30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], 0xffffffff
mov dword [ebp - 4], eax
push eax
push 0x8000027
push 3
push eax
push 1
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, 0xffffffff
jne 0x5f5ce7
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x5f5de0
lea ecx, [ebp - 0x18]
push ecx
push edi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x5f5d9f
cmp eax, 4
jbe 0x5f5d9f
add eax, 0xfffffffc
mov dword [ebp - 0x38], eax
push eax
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
mov dword [ebp - 0x28], esi
push 0
lea edx, [ebp - 0x2c]
push edx
push 4
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x5f5d35
push esi
jmp 0x5f5d99
push 0
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push esi
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x5f5d4e
push esi
jmp 0x5f5d99
mov dword [ebx], 0xffffffff
xor ecx, ecx
mov dword [ebp - 0x30], ecx
cmp ecx, dword [ebp - 0x38]
jae 0x5f5d8d
mov al, byte [ecx + esi]
mov byte [ebp - 0x34], al
mov eax, dword [ebx]
mov edx, eax
and edx, 0xff
mov ebx, dword [ebp - 0x34]
and ebx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x6d7ff4]
xor edx, eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], edx
inc ecx
jmp 0x5f5d56
mov eax, dword [ebx]
not eax
mov dword [ebx], eax
cmp dword [ebp - 0x24], eax
push esi
je 0x5f5dc5
call dword [sym.imp.kernel32.dll_GlobalFree]
mov dword [ebp - 0x20], 0x17
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, 0x17
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.kernel32.dll_GlobalFree]
jmp 0x5f5de0
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x5f5df2
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebx]
not eax
mov dword [ebx], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5f6050
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], edi
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x5f6087
lea esi, [ebx + 4]
mov ebp, 0x100
mov eax, dword [esi]
test eax, eax
je 0x5f607a
push eax
mov ecx, edi
call fcn.005f6400
add esi, 4
dec ebp
jne 0x5f606c
push ebx
call dword [sym.imp.kernel32.dll_GlobalFree]
mov ebx, dword [sym.imp.kernel32.dll_GlobalAlloc]
push 0x404
push 0x40
mov dword [edi + 4], 0
call ebx
test eax, eax
mov dword [edi + 4], eax
je 0x5f619c
mov edx, dword [esp + 0x20]
mov ax, word [0x6d4068]
mov cl, byte [0x6d406a]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push edx
mov word [esp + 0x2c], ax
mov byte [esp + 0x2e], cl
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x5f619c
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.kernel32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x5f6195
test esi, esi
je 0x5f6195
lea ecx, [esi + 1]
push ecx
push 0x40
call ebx
lea edx, [esp + 0x14]
push 0
mov edi, eax
push edx
push esi
push edi
push ebp
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x5f6195
lea eax, [esp + 0x10]
mov byte [edi + esi], 0
push eax
push edi
call fcn.00675792
mov ebx, dword [sym.imp.user32.dll_CharLowerA]
add esp, 8
push eax
call ebx
mov esi, eax
test esi, esi
je 0x5f6178
mov eax, dword [esp + 0x24]
test eax, eax
je 0x5f6156
mov ecx, dword [esp + 0x28]
push esi
push ecx
call eax
add esp, 8
mov ecx, dword [esp + 0x18]
push esi
call fcn.005f5ff0
lea edx, [esp + 0x10]
push edx
push 0
call fcn.00675792
add esp, 8
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x5f6143
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
push edi
call dword [sym.imp.kernel32.dll_GlobalFree]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 0xc
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 0xc
Function at 0x5f6850
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x69bc93
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x6a9380
mov ecx, dword [esi + 0x1c]
xor ebx, ebx
cmp ecx, ebx
mov dword [esp + 0x14], 1
je 0x5f688c
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x1c], ebx
mov eax, dword [esi + 0x2c]
cmp eax, ebx
mov byte [esp + 0x14], bl
je 0x5f68b7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x5f68ae
cmp al, 0xff
je 0x5f68ae
dec al
mov byte [ecx], al
jmp 0x5f68b7
push ecx
call fcn.006713a0
add esp, 4
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.00645320
mov ecx, dword [esp + 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x5f91b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x69c0c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.006452b0
push 0x455330
push 0x455220
push 3
lea eax, [esi + 0x38]
xor ebx, ebx
push 0x68
push eax
mov dword [esp + 0x38], ebx
call fcn.00674499
mov cl, byte [esp + 0xe]
lea edi, [esi + 0x170]
mov byte [esp + 0x24], 1
mov dword [esp + 0x14], edi
mov byte [edi + 4], cl
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
lea edx, [esp + 0xe]
lea eax, [esp + 0xf]
push edx
lea ecx, [edi + 0x14]
push ebx
push eax
mov byte [esp + 0x30], 2
mov dword [esp + 0x24], ecx
call fcn.00602e10
mov byte [esp + 0x24], 4
mov dword [edi], 0x6a3ff8
push 0x455a80
push 0x455a70
push 0x20
lea ecx, [esi + 0x3a4]
push 8
push ecx
mov byte [esp + 0x38], 5
call fcn.00674499
lea ecx, [esi + 0x5b4]
mov byte [esp + 0x24], 6
call fcn.0043e880
mov byte [esp + 0x24], 7
lea edi, [esi + 0x1a8]
mov ecx, 8
xor eax, eax
mov dword [esi], 0x6a93c8
mov dword [esi + 0x1a4], ebx
xor edx, edx
push 0x44
rep stosd dword es:[edi], eax
mov dword [esi + 0x20], edx
or edi, 0xffffffff
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], edx
mov dword [esi + 0x38c], ebx
mov dword [esi + 0x390], ebx
mov dword [esi + 0x394], 1
mov dword [esi + 0x398], ebx
mov dword [esi + 0x39c], ebx
mov byte [esi + 0x3a0], bl
mov byte [esi + 0x3a1], bl
mov byte [esi + 0x3a2], bl
mov dword [esi + 0x384], ebx
mov dword [esi + 0x388], ebx
mov dword [esi + 0x1c], ebx
mov eax, dword [0x818794]
mov dword [eax + 0x48c], edi
mov ecx, dword [0x818794]
mov dword [ecx + 0x494], edi
call fcn.00673b05
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0x24], 8
je 0x5f9310
mov ecx, eax
call fcn.005ba5d0
jmp 0x5f9312
xor eax, eax
mov byte [esp + 0x24], 7
push 0x28
mov dword [esi + 0x2c], eax
call fcn.00673b05
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0x24], 9
je 0x5f933a
mov ecx, eax
call fcn.0060f070
jmp 0x5f933c
xor eax, eax
mov byte [esp + 0x24], 7
push 0x80
mov dword [esi + 0x30], eax
call fcn.00673b05
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0x24], 0xa
je 0x5f9367
mov ecx, eax
call fcn.00641910
jmp 0x5f9369
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x24], 7
mov dword [esi + 0x34], eax
mov dword [esp + 0x24], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret