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

Disassembly:
push 0xffffffffffffffff
push 0x5ea780
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004cd6a0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004cd720
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004cd720
lea ecx, [esi + 0xc]
call fcn.005da0ad
lea ecx, [esi + 0x10]
call fcn.005da0ad
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004cff50
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004cff50
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004cff50
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.005da122
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.005da122
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4ce798
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ea9a8
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x4ce7a8
call fcn.004cecc0
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x4ce88b
cmp byte [edi], 0
je 0x4ce88b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x4ce7cd
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.004cd4c0
test eax, eax
jne 0x4ce7ed
push 0x6d3c2c
lea ecx, [esi + 0x38]
call fcn.005da25f
jmp 0x4ce88b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.004cd510
test eax, eax
jne 0x4ce81c
mov ecx, esi
call fcn.004cd610
push edi
add esi, 0x38
push 0x6d3c08
push esi
call fcn.005d7a54
add esp, 0xc
jmp 0x4ce88b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.004cf540
test eax, eax
je 0x4ce884
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.004ce960
test eax, eax
jne 0x4ce8a0
push edi
lea eax, [esi + 0x38]
push 0x6d3be4
push eax
call fcn.005d7a54
add esp, 0xc
mov ecx, esi
call fcn.004cecc0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x4ce948
mov ecx, dword [0x7b9e30]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.005d7a54
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.004cd5c0
test eax, eax
jne 0x4ce90a
push 0x6d3bc8
lea ecx, [esi + 0x38]
call fcn.005da25f
jmp 0x4ce91a
push 0xfa
mov ecx, esi
call fcn.004cf540
test eax, eax
jne 0x4ce937
mov ecx, esi
call fcn.004cecc0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.005da122
jmp 0x4ce88b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.005da122
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x4e33ab
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x108
call fcn.00572876
add esp, 4
mov dword [ebp - 4], eax
mov edi, eax
mov esi, 0x6d652f
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x40
rep stosd dword es:[edi], eax
push 0x108
call fcn.00572876
add esp, 4
mov dword [ebp - 8], eax
mov edi, eax
mov esi, 0x6d652f
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
mov ebx, dword [ebp - 4]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 0
add ebx, eax
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov byte [ebx], 0
mov ebx, dword [ebp - 8]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 0
add ebx, eax
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov byte [ebx], 0
mov eax, dword [ebp - 4]
add eax, 8
mov ecx, 0x100
xor ebx, ebx
sub bl, cl
mov byte [ebx + eax], bl
loop 0x4e3444
push eax
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
mov edi, dword [edx + 4]
add edx, 8
mov esi, dword [ebp - 8]
add esi, 8
mov ecx, 0x100
xor ebx, ebx
cmp ebx, edi
jb 0x4e346c
xor ebx, ebx
mov ah, byte [ebx + edx]
mov byte [esi], ah
inc esi
inc ebx
loop 0x4e3466
pop edi
xor ebx, ebx
sub esi, 0x100
xor eax, eax
mov ecx, 0x100
mov dl, byte [eax + esi]
add bl, dl
mov dl, byte [eax + edi]
add bl, dl
mov dl, byte [eax + edi]
mov dh, byte [ebx + edi]
mov byte [eax + edi], dh
mov byte [ebx + edi], dl
inc eax
loop 0x4e3485
mov esi, dword [ebp + 8]
mov esi, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ebp - 0xc], ecx
add esi, 8
push 0x80000301
push 0
push dword [ebp - 0xc]
push 1
mov ebx, 0x1bc
call fcn.00575c90
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4e34e1
push ebx
call fcn.00572870
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
add edx, 8
xor eax, eax
xor ebx, ebx
push ecx
movzx ecx, al
inc cl
push edx
mov dh, byte [ecx + edi]
add bl, dh
mov dl, byte [ebx + edi]
mov byte [ecx + edi], dl
mov byte [ebx + edi], dh
add dl, dh
movzx edx, dl
mov dl, byte [edx + edi]
mov cl, byte [eax + esi]
xor cl, dl
pop edx
mov byte [eax + edx], cl
inc eax
pop ecx
loop 0x4e34f6
mov ebx, dword [ebp - 4]
push ebx
call fcn.00572870
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
call fcn.00572870
add esp, 4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4fcc14
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
nop
nop
nop
nop
push 0x80000301
push 0
push dword [ebp + 0xc]
push 1
mov ebx, 0x1bc
call fcn.00575c90
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4fcc6d
push ebx
call fcn.00572870
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4fcc8e
add eax, 8
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_ReadFile]
nop
nop
nop
nop
mov eax, dword [ebp - 4]
test eax, eax
je 0x4fccb6
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00572876
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4fccbb
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4fcccc
push ebx
call fcn.00572870
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8

Function at 0x5215d6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
nop
nop
nop
nop
push reloc.OLEAUT32.dll_SysFreeString
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x52160a
mov eax, 0x6d615b
push eax
push 1
mov ebx, 0x194
call fcn.00575be0
add esp, 0x10
mov dword [ebp - 4], eax
push 0
mov eax, 0
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x521640
add eax, 8
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_WriteFile]
nop
nop
nop
nop
call dword [sym.imp.kernel32.dll_GetLastError]
nop
nop
nop
nop
jmp 0x52165d
mov esp, ebp
pop ebp
ret 8
Function at 0x575c20
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x575c3e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x575c33
pop esi
ret
Function at 0x5778f0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x577959
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00573140
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x577a40
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebp, ebp
test esi, esi
je 0x577ac3
push ebp
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
je 0x577ac3
push ebx
push edi
call dword [sym.imp.user32.dll_EmptyClipboard]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x42
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x577ab6
push ebx
call dword [sym.imp.kernel32.dll_GlobalLock]
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
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]
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.user32.dll_SetClipboardData]
mov ebp, 1
call dword [sym.imp.user32.dll_CloseClipboard]
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
ret
mov eax, ebp
pop esi
pop ebp
ret
Function at 0x58cab3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x593d40
call fcn.00581adc
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.005921a2
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x58caf2
call fcn.005921a2
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.kernel32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.kernel32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x58cb00
push edi
call dword [sym.imp.kernel32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x58cb0e
or eax, 0xffffffff
jmp 0x58cbf6
mov ecx, esi
call fcn.0058ca29
mov dword [ebp - 0x14], eax
call fcn.0058dd29
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x58cb45
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_IsWindowEnabled]
test eax, eax
je 0x58cb45
push edi
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0058dcdd
push dword [ebp - 0x14]
call fcn.0058d80f
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0058c7c1
cmp eax, edi
je 0x58cbb8
test byte [esi + 0x24], 0x10
je 0x58cb86
push 4
mov ecx, esi
pop ebx
call fcn.0058d20f
test ah, 1
je 0x58cb7e
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0058f837
cmp dword [esi + 0x1c], edi
je 0x58cbb8
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0058d243
jmp 0x58cbb8
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x58cbcc
push 1
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x58cbe5
call dword [sym.imp.user32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x58cbe5
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0058ca63
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x58f6e5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x58f727
call fcn.005921a2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
cmp eax, edi
je 0x58f727
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
cmp eax, edi
jne 0x58f71e
xor eax, eax
jmp 0x58f72f
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0058f735
pop edi
pop esi
pop ebx
ret 4
Function at 0x596e20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x7fd714]
xor edx, edx
cmp eax, edx
jne 0x596e46
xor eax, eax
mov byte [eax + 0x7fd614], al
inc eax
cmp eax, 0x100
jl 0x596e2e
mov dword [0x7fd714], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x7fd614
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x596ed7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x596eaa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x596e78
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x596f50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x596fa3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x596f8a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x59d950
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ead1e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0059e270
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x6b1ba4
call fcn.005d9e63
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x59d9e3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005d9e63
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x59d9dc
push 0
mov ecx, eax
call fcn.00594a50
mov dword [esi + 0xc], eax
jmp 0x59d9e5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x59d9e5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x5af7f0
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
jne 0x5af800
mov esi, 1
push esi
call fcn.005c6297
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x5af852
call fcn.005c6dbd
mov edi, eax
call fcn.005b2340
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov edi, eax
and edi, 8
je 0x5af836
mov edx, dword [0x70ee58]
mov dword [0x70ee54], edx
test al, 0x18
je 0x5af847
push esi
push 0x24
push 5
call fcn.005b2b90
add esp, 0xc
test edi, edi
je 0x5af86d
push 1
call fcn.005c7e4d
test byte [esp + 0x14], 0x20
je 0x5af86d
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x5b0970
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov edx, dword [ebp + 0x10]
test edx, edx
push ebx
push esi
push edi
je 0x5b0a64
cmp byte [edx], 0
je 0x5b0a57
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add eax, 8
or ecx, 0xffffffff
mov dword [esp + 0xc], eax
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x20]
push ecx
mov esi, ebx
call fcn.005b08f0
mov edi, dword [ebp + 0xc]
push 8
lea edx, [esp + 0x20]
push edi
push edx
call fcn.005b08f0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
xor eax, edx
push eax
xor ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.005b0860
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp edi, eax
jae 0x5b0a21
sub eax, edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
call fcn.005b08a0
fmul qword [0x6b2440]
push ecx
fstp qword [esp]
call fcn.005c4be8
fadd qword [0x6b2438]
add esp, 8
call fcn.005c4cb8
mov byte [ebx], al
inc ebx
dec edi
jne 0x5b09f4
lea ecx, [esp + 0x20]
push ecx
call fcn.005b08a0
fmul qword [0x6b2440]
push ecx
fstp qword [esp]
call fcn.005c4be8
add esp, 8
call fcn.005c4cb8
cmp esi, ebx
je 0x5b0a4d
xor byte [esi], al
inc esi
cmp esi, ebx
jne 0x5b0a46
mov byte [ebx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov byte [edx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5b0e30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
lea eax, [ebx + 0x134]
push edi
lea esi, [ebx + 0x34]
mov dword [esp + 0x14], eax
xor edi, edi
mov ecx, dword [ebx + 0x1c]
mov ebp, edi
and ebp, 0xff
mov al, byte [ecx + ebp + 1]
test al, 3
je 0x5b0e60
mov byte [edi + esi], 2
jmp 0x5b0e97
test al, 4
je 0x5b0e6a
mov byte [edi + esi], 0xd
jmp 0x5b0e97
mov edx, dword [ebx + 0x240]
push edi
push ebx
call dword [edx + 4]
add esp, 8
cmp eax, 1
jle 0x5b0e83
mov byte [edi + esi], 2
jmp 0x5b0e97
mov eax, dword [ebx + 0x1c]
test byte [eax + ebp + 1], 0x17
jne 0x5b0e93
mov byte [edi + esi], 0x19
jmp 0x5b0e97
mov byte [edi + esi], 1
inc edi
cmp edi, 0x100
jb 0x5b0e47
mov ecx, dword [esp + 0x14]
mov al, 7
mov byte [esi + 0x21], al
mov byte [esi + 0x3d], al
mov byte [esi + 0x3e], al
mov al, 0x10
mov byte [esi + 0x7c], al
mov byte [esi + 0x26], al
mov byte [esi + 0x24], 2
mov byte [esi + 0x5f], 2
mov byte [esi + 0x27], 9
mov byte [esi + 0x2e], 0xf
mov byte [esi + 0x3c], 8
mov byte [esi + 0x23], 0xa
mov byte [esi + 0x3b], 0x15
mov byte [esi + 0x3a], 0x16
mov byte [esi], 0x11
mov byte [esi + 0x5c], 0x12
mov byte [esi + 0x2f], 0x13
mov byte [esi + 0x2a], 0x14
mov byte [esi + 0x40], 0x17
mov byte [esi + 0x60], 0x1a
mov byte [esi + 0x22], 0x20
mov eax, esi
sub ecx, esi
mov edi, 0x100
mov dl, byte [eax]
cmp dl, 2
je 0x5b0f0b
cmp dl, 0xd
je 0x5b0f0b
xor edx, edx
jmp 0x5b0f10
mov edx, 1
mov byte [ecx + eax], dl
inc eax
dec edi
jne 0x5b0efb
mov al, 0x1d
mov byte [esi + 0x58], al
mov byte [esi + 0x78], al
mov al, 0x1f
pop edi
mov byte [esi + 0x62], 0x1e
mov byte [esi + 0x4e], al
mov byte [esi + 0x6e], al
pop esi
pop ebp
pop ebx
ret

Function at 0x5b0f30
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
push 0x4000
call fcn.005af7f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x5b0f51
pop edi
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esp + 0x10]
push ebx
push 0
push eax
call fcn.005b2580
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x5b0f76
push esi
call fcn.005af880
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
ret
push ebp
push 0x4000
push esi
push edi
call fcn.005c95a0
push ebx
push edi
mov ebp, eax
call fcn.005b25f0
push 0x5b0fb0
push ebp
push esi
call fcn.005b3920
push esi
call fcn.005af880
add esp, 0x24
pop ebp
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x5b22b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0x81bba0
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection_1]
mov eax, dword [0x81bac0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue_1]
test eax, eax
jne 0x5b232b
push 0x4c
push 1
call fcn.005c71e5
mov esi, eax
add esp, 8
test esi, esi
jne 0x5b22f3
push 0x81bba0
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x81bac0]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue_1]
mov eax, dword [0x80d4b0]
inc eax
lea edx, [esi + 0xc]
mov dword [0x80d4b0], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection_1]
lea eax, [esi + 4]
push 0
push eax
call fcn.005b5db0
add esp, 8
mov byte [esi + 0x3c], 1
push 0x81bba0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
mov al, bl
pop ebx
ret

Function at 0x5b27b0
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.005c6dbd
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.005c95a0
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x5b28aa
call fcn.005c6dbd
cmp dword [eax], 0
je 0x5b27f7
call fcn.005c6dbd
mov ebp, dword [eax]
jmp 0x5b27fa
or ebp, 0xffffffff
call fcn.005b2340
test esi, esi
mov dword [eax], ebp
jne 0x5b280f
call fcn.005c6dbd
cmp dword [eax], 4
je 0x5b285f
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x5b2842
cmp esi, 0xffffffff
je 0x5b2884
test al, 6
je 0x5b2842
call fcn.005b2340
mov ecx, dword [eax]
push ecx
push ebx
call fcn.005b5de0
add esp, 4
push eax
push 0x24
push 9
call fcn.005b2b90
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x5b28a2
test al, 6
je 0x5b2850
test ah, 2
je 0x5b28a2
test esi, esi
jbe 0x5b28ae
test ah, 2
je 0x5b28ae
add dword [esp + 0x18], esi
sub edi, esi
call fcn.005c6dbd
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.005c95a0
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x5b28aa
jmp 0x5b27e4
call fcn.005b2340
mov eax, dword [eax]
push eax
push ebx
call fcn.005b5de0
add esp, 4
push eax
push 0x24
push 2
call fcn.005b2b90
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x5b28bb
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x5b28c4
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x5c775b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5c777b
call dword [sym.imp.KERNEL32.dll_GetLastError_1]
push eax
call fcn.005c6d4a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x5c779e
test byte [esp + 8], 2
je 0x5c779e
call fcn.005c6dbd
mov dword [eax], 0xd
call fcn.005c6dc6
mov dword [eax], 5
jmp 0x5c7777
xor eax, eax
ret