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

Disassembly:
push 0xffffffffffffffff
push 0x5915905f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x5916287c]
push esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x14], 1
mov cl, byte [eax + 0xf]
mov dl, byte [eax + 0xe]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 0xd]
mov dl, byte [eax + 0xc]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 0xb]
mov dl, byte [eax + 0xa]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 9]
mov dl, byte [eax + 8]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cx, word [eax + 6]
mov dx, word [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [esp + 0x30]
push str._08lX__04lX__04lX__02lX_02lX__02lX_02lX_02lX_02lX_02lX_02lX
push ecx
call fcn.590a3d20
mov esi, dword [esp + 0x50]
add esp, 0x34
lea edx, [esp + 4]
mov ecx, esi
push edx
call fcn.590a0490
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.590a0ec0
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

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

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x590cbf9b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
mov esi, edi
not eax
jb 0x590cc09d
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x5916298c]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x5916298c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x5916298c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x5916298c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x5916298c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x5916298c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x5916298c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x5916298c]
xor eax, edx
inc ecx
dec edi
jne 0x590cbfb6
test esi, esi
je 0x590cc0bf
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x5916298c]
xor eax, edx
inc ecx
dec esi
jne 0x590cc0a1
pop edi
pop esi
not eax
pop ebx
ret
Function at 0x590cd5f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591591f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
push edi
mov dword [ebp - 0x14], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x590cd64a
push 0x5919c764
call fcn.590d8870
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp esi, 0x6400000
jbe 0x590cd659
push 0x5919c748
jmp 0x590cd62d
lea eax, [esi + 1]
mov dword [ebp + 8], edi
push eax
mov dword [ebp - 4], edi
call fcn.5913d2d0
add esp, 4
lea ecx, [ebp + 8]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
push 0
push ecx
push esi
push edi
push ebx
mov byte [edi + esi], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, dword [ebp + 8]
je 0x590cd69c
push edi
call fcn.5913d2f9
add esp, 4
push 0x5919c738
jmp 0x590cd62d
mov ecx, dword [ebp - 0x14]
push 1
push edi
call fcn.590cd6d0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x590d02d0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x5915960f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, ecx
neg esi
sbb esi, esi
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0
add esi, 2
call fcn.590b3e70
mov eax, dword [edi + 0x9c]
lea ecx, [esp + 0x10]
push eax
push ecx
push esi
mov ecx, edi
mov dword [esp + 0x34], 1
call fcn.590d2ab0
push 0x591ad730
lea ecx, [esp + 0x38]
call fcn.590a5aa0
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
mov byte [esp + 0x28], 2
mov edi, eax
jle 0x590d0388
test esi, esi
je 0x590d0355
push str._r_n_r_n
lea ecx, [esp + 0x38]
call fcn.590a6e90
mov edx, dword [esp + 0x10]
lea eax, [esp + 8]
push eax
mov ecx, dword [edx + esi*4]
call fcn.590d7230
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 3
call fcn.590a6ef0
lea ecx, [esp + 8]
mov byte [esp + 0x28], 2
call fcn.590a6240
inc esi
cmp esi, edi
jl 0x590d0343
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.590a5840
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 1
call fcn.590a6240
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.590b3e80
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x590d1150
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x59159808
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.590b3e70
mov eax, dword [esi + 0x9c]
lea ecx, [esp + 0x10]
push eax
push ecx
push 3
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.590d2ab0
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
cmp edi, eax
jge 0x590d1215
mov edx, dword [esp + 0x34]
push 0
push edx
call fcn.590d6500
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x590d11bb
push 0x5919ca9c
jmp 0x590d120d
mov eax, dword [esp + 0x10]
lea edx, [esp + 8]
push edx
mov ecx, dword [eax + edi*4]
mov dword [esp + 0xc], 0
call fcn.590d8570
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
push edx
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x590d123b
mov eax, dword [esp + 8]
push eax
call fcn.5913d2f9
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5919ca8c
call fcn.590d8870
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.590b3e80
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
mov ecx, dword [esp + 8]
push ecx
call fcn.5913d2f9
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.590b3e80
mov ecx, dword [esp + 0x20]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x590d4da0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x59159f3f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov esi, ecx
mov dword [esp + 8], 0
call fcn.590d3830
test eax, eax
jne 0x590d4eb8
lea edi, [esi + 0x14]
mov ecx, edi
call fcn.590d3830
test eax, eax
jne 0x590d4eb8
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.590d3c70
mov esi, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 1
push ecx
mov ecx, edi
call fcn.590d3c70
push eax
lea edx, [esp + 0x18]
push 0x59187b2c
push edx
mov byte [esp + 0x34], 2
call fcn.590a6b90
push 0x5919cdf8
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x30], 3
push eax
call fcn.590a69b0
push esi
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x34], 4
call fcn.590a67e0
mov esi, dword [esp + 0x30]
push 0x59188a9c
push eax
push esi
mov byte [esp + 0x34], 5
call fcn.590a69b0
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
mov byte [esp + 0x28], 4
call fcn.590a6240
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 3
call fcn.590a6240
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 2
call fcn.590a6240
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.590a6240
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 0
call fcn.590a6240
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
mov edi, dword [esp + 0x30]
mov ecx, esi
push edi
call fcn.590d3c70
mov ecx, dword [esp + 0x20]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 4

Function at 0x590d6a60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5915a10b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x59162880]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], eax
mov ecx, dword [0x59162880]
lea edi, [esi + 4]
mov dword [esp + 0x1c], 0
mov dword [edi], ecx
mov edx, dword [0x59162880]
lea ebx, [esi + 8]
mov dword [ebx], edx
lea ebp, [esi + 0xc]
mov byte [esp + 0x1c], 2
mov ecx, ebp
call fcn.590d3600
mov eax, dword [0x59162880]
mov dword [esi + 0x20], eax
mov ecx, dword [0x59162880]
mov dword [esi + 0x24], ecx
mov edx, dword [0x59162880]
mov dword [esi + 0x28], edx
mov eax, dword [0x59162880]
mov dword [esi + 0x2c], eax
mov ecx, dword [0x59162880]
mov dword [esi + 0x30], ecx
mov edx, dword [0x59162880]
mov dword [esi + 0x34], edx
push 0x591ad730
mov ecx, esi
mov byte [esp + 0x20], 9
call fcn.590a64c0
push 0x591ad730
mov ecx, edi
call fcn.590a64c0
push 0x591ad730
mov ecx, ebx
call fcn.590a64c0
mov ecx, ebp
call fcn.590d37f0
push 0x591ad730
lea ecx, [esi + 0x20]
call fcn.590a64c0
push 0x591ad730
lea ecx, [esi + 0x24]
call fcn.590a64c0
push 0x591ad730
lea ecx, [esi + 0x28]
call fcn.590a64c0
push 0x591ad730
lea ecx, [esi + 0x2c]
call fcn.590a64c0
push 0x591ad730
lea ecx, [esi + 0x30]
call fcn.590a64c0
push 0x591ad730
lea ecx, [esi + 0x34]
call fcn.590a64c0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x590d6f80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5915a331
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x59162dd0
mov ebx, dword [esi + 0x50]
xor edi, edi
test ebx, ebx
mov dword [esp + 0x18], 2
jle 0x590d6fcb
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x590d6fc6
mov edx, dword [ecx]
push 1
call dword [edx]
inc edi
cmp edi, ebx
jl 0x590d6fb6
lea edi, [esi + 0x4c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.590d2fb0
mov edi, dword [edi]
mov byte [esp + 0x18], 1
test edi, edi
je 0x590d6fed
push edi
call fcn.5913d2f9
add esp, 4
lea ecx, [esi + 0x40]
mov byte [esp + 0x18], 0
mov dword [esi + 0x3c], 0x59162dcc
call fcn.590a6240
add esi, 4
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x34]
mov dword [esp + 0x18], 0xb
call fcn.590a6240
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 0xa
call fcn.590a6240
lea ecx, [esi + 0x2c]
mov byte [esp + 0x18], 9
call fcn.590a6240
lea ecx, [esi + 0x28]
mov byte [esp + 0x18], 8
call fcn.590a6240
lea ecx, [esi + 0x24]
mov byte [esp + 0x18], 7
call fcn.590a6240
lea ecx, [esi + 0x20]
mov byte [esp + 0x18], 6
call fcn.590a6240
lea ecx, [esi + 0xc]
mov byte [esp + 0x18], 5
call fcn.590d36b0
lea ecx, [esi + 8]
mov byte [esp + 0x18], 4
call fcn.590a6240
lea ecx, [esi + 4]
mov byte [esp + 0x18], 3
call fcn.590a6240
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.590a6240
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x590d70e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
mov ebp, ecx
xor ebx, ebx
mov eax, 5
push edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], str.attachment
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], str.multipart_mixed
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], str.multipart_related
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 0x5919c918
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], 2
mov dword [esp + 0x4c], str.multipart_digest
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], 9
mov dword [esp + 0x58], str.text_plain
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], 3
mov dword [esp + 0x64], str.text_html
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], 4
mov dword [esp + 0x70], str.message_rfc822
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], eax
mov dword [esp + 0x10], ebx
lea edi, [esp + 0x20]
mov esi, dword [edi - 4]
cmp esi, ebx
je 0x590d71b7
mov eax, dword [ebp + 0x24]
push esi
mov dword [esp + 0x18], eax
call fcn.5908850e
mov ecx, dword [esp + 0x18]
push eax
push esi
push ecx
call fcn.59131d1b
add esp, 0x10
test eax, eax
jne 0x590d71d9
mov esi, dword [edi]
cmp esi, ebx
je 0x590d71ff
mov ebp, dword [ebp + 8]
push esi
call fcn.5908850e
push eax
push esi
push ebp
call fcn.59131d1b
add esp, 0x10
test eax, eax
je 0x590d71ff
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
add edi, 0xc
inc eax
cmp eax, 8
mov dword [esp + 0x10], eax
jb 0x590d7190
mov eax, dword [ebp + 0x30]
cmp dword [eax - 8], ebx
je 0x590d7212
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0x6c
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
lea edx, [eax + eax*2]
pop ebx
mov eax, dword [esp + edx*4 + 0x14]
add esp, 0x6c
ret
lea ecx, [ebp + 0x10]
call fcn.590d3830
neg eax
sbb eax, eax
pop edi
and eax, 2
pop esi
pop ebp
add eax, 5
pop ebx
add esp, 0x6c
ret
Function at 0x590d8640
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5915a5e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x590d86b5
mov eax, dword [esi + 0x48]
test eax, eax
je 0x590d86b5
cmp ecx, eax
ja 0x590d86b5
sub eax, ecx
mov dword [ebp - 4], 0
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.5913d2d0
mov edx, dword [ebp + 8]
mov ecx, edi
add esp, 4
mov dword [edx], eax
mov byte [eax + edi], 0
mov edi, dword [edx]
mov esi, dword [esi + 0x44]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x590d8848
mov ecx, esi
call fcn.590d70e0
cmp eax, 3
je 0x590d8810
cmp eax, 4
je 0x590d8810
mov eax, dword [esi + 0xc]
push 1
push eax
call fcn.590d6500
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
jne 0x590d8705
push 0x5919c718
call fcn.590d8870
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x590d873e
push 0x5919c9f0
call fcn.590d8870
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 3
call fcn.5913d2d0
add esp, 4
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
push 0
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp edi, dword [ebp - 0x14]
je 0x590d87a8
push 0x5919c738
call fcn.590d8870
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push edx
call fcn.5913d2f9
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esi + 0x2c]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp - 0x18]
push eax
push edi
push esi
call fcn.590d53a0
add esp, 0x10
test eax, eax
jne 0x590d87f0
push 0x5919cafc
call fcn.590d8870
push esi
call fcn.5913d2f9
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.5913d2f9
add esp, 4
jmp 0x590d8848
mov edi, dword [esi + 0x2c]
mov ebx, dword [esi + 0x28]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.590d7230
mov edx, dword [ebp + 8]
mov eax, dword [eax]
push edi
push ebx
push edx
push eax
mov dword [ebp - 4], 2
call fcn.590d51b0
add esp, 0x10
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.590a6240
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x590d9790
Capabilities:
Get user security identifier

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edi
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
xor ebx, ebx
push eax
push ecx
lea edx, [esp + 0x18]
push ebx
push edx
push ebx
push ebp
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x590d97db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x590d97db
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
push esi
push eax
call fcn.5913d2d0
mov ecx, dword [esp + 0x14]
mov dword [edi], eax
lea edx, [ecx + ecx]
push edx
call fcn.5913d2d0
mov esi, eax
mov eax, dword [edi]
add esp, 8
test eax, eax
je 0x590d9820
test esi, esi
je 0x590d9831
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x1c]
push esi
push ecx
push eax
push ebp
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
test esi, esi
je 0x590d982d
push esi
call fcn.5913d2f9
add esp, 4
test ebx, ebx
jne 0x590d9840
mov edi, dword [edi]
test edi, edi
je 0x590d9840
push edi
call fcn.5913d2f9
add esp, 4
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret
Function at 0x590dc950
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
mov esi, 0x8000
push edi
cmp eax, esi
mov dword [esp + 0x14], esi
jbe 0x590dc96e
mov dword [esp + 0x14], eax
mov esi, eax
push esi
call fcn.5913d2d0
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
mov ebp, dword [esp + 0x24]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x10], ebx
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x24]
push 0
push 0
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jne 0x590dc9ad
xor ebx, ebx
jmp 0x590dc9ca
lea eax, [esp + 0x24]
push 0
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x590dc9c6
or ebx, 0xffffffff
jmp 0x590dc9ca
mov ebx, dword [esp + 0x24]
push 0
push 0
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x590dca1d
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x24]
push 0
push ecx
push eax
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x590dca02
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
je 0x590dca19
mov ecx, dword [esp + 0x10]
push ecx
call fcn.5913d2f9
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x2c]
cmp ebx, esi
jae 0x590dca42
test ebx, ebx
je 0x590dcb16
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push 0
push edx
push ebx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x590dcb16
lea ecx, [ebx + edi]
add edi, eax
push esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], edi
call fcn.5913d2d0
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x24], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x590dca76
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
jg 0x590dcab5
push 0
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
je 0x590dcab5
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x28]
push 0
push eax
push esi
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x590dcaaf
or esi, 0xffffffff
jmp 0x590dcab7
mov esi, dword [esp + 0x28]
jmp 0x590dcab7
xor esi, esi
mov edx, dword [esp + 0x2c]
push 0
push 0
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test ebx, ebx
je 0x590dcadf
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push 0
push eax
push ebx
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
add edx, ebx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x20]
add edi, esi
mov dword [esp + 0x10], edx
test esi, esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], eax
mov ebx, esi
jg 0x590dca72
push eax
call fcn.5913d2f9
add esp, 4
mov eax, dword [esp + 0x10]
push eax
call fcn.5913d2f9
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x590dcb30
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push esi
call edi
cmp eax, 0xffffffff
jne 0x590dcb53
or ebx, eax
jmp 0x590dcb55
mov ebx, eax
push 2
push 0
push 0
push esi
call edi
cmp eax, 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
je 0x590dcb6f
mov dword [esp + 0x1c], eax
push 0
push ebx
push esi
call fcn.590dce70
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
sub eax, ebp
sub ecx, ebp
add esp, 0xc
cmp ecx, eax
mov dword [esp + 0x20], ecx
jl 0x590dcb97
mov dword [esp + 0x20], eax
push 0x8000
call fcn.5913d2d0
mov ebx, eax
add esp, 4
mov ecx, 0x2000
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
push 0
push 0
lea ecx, [eax + ebp]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [esp + 0x24]
push 0
push edx
push 0x8000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x590dcbe1
or eax, 0xffffffff
jmp 0x590dcc1d
mov edi, dword [esp + 0x24]
mov eax, edi
test edi, edi
mov dword [esp + 0x14], eax
jle 0x590dcc1d
push 0
push 0
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test edi, edi
je 0x590dcc19
lea eax, [esp + 0x10]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x590dcc28
cmp dword [esp + 0x10], edi
jne 0x590dcc28
mov eax, dword [esp + 0x14]
add ebp, eax
cmp eax, 0x8000
jne 0x590dcc3b
jmp 0x590dcbb1
push ebx
call fcn.5913d2f9
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push 0
sub eax, ecx
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call fcn.5913d2f9
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret