joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b83a0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x410
push ebx
mov ebx, dword [esp + 0x418]
push ebp
push esi
test ebx, ebx
push edi
jne 0x100b83d4
push 0x57
mov dword [0x1030d630], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x410
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100b83fb
test al, 0x10
jne 0x100b856d
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100b856d
mov ecx, 0x103
lea edi, [esp + 0x12]
mov word [esp + 0x10], ax
push 0x207
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.10079788
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.100791b9
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.10078f12
add esp, 0x18
cmp eax, 2
jbe 0x100b848a
cmp word [esp + 0x10], di
jne 0x100b848a
cmp word [esp + 0x12], di
jne 0x100b848a
lea eax, [esp + 0x14]
push edi
push eax
call fcn.100791b9
add esp, 8
test eax, eax
je 0x100b8512
add eax, 2
push edi
push eax
call fcn.100791b9
add esp, 8
mov esi, eax
test esi, esi
je 0x100b8512
lea ecx, [esp + 0x10]
mov word [esi], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x100b84d2
test bl, 1
je 0x100b84c1
mov edx, ebx
lea eax, [esp + 0x10]
and edx, 0xfffffffe
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x100b854a
cmp ebx, 0xffffffff
je 0x100b84db
test edi, edi
jne 0x100b84ea
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x100b854a
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.100791b9
mov esi, eax
add esp, 8
test esi, esi
jne 0x100b8492
test ebp, ebp
je 0x100b854a
mov ebx, dword [esp + 0x424]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100b853b
test al, 0x10
jne 0x100b8546
test al, 1
je 0x100b8530
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x100b854a
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
jne 0x100b856d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x1030d630], eax
je 0x100b8560
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x410
ret
mov eax, dword [esp + 0x428]
test eax, eax
je 0x100b8580
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x410
ret
Function at 0x100b89b0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x25c
push ebx
mov ebx, dword [esp + 0x26c]
push ebp
mov ebp, dword [esp + 0x26c]
push esi
mov esi, dword [esp + 0x26c]
mov eax, 0x1f3
push ebx
sub eax, ebp
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x100b89f9
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x25c
ret
push edi
mov edi, 1
mov eax, dword [ebx]
test al, 0x10
mov dword [esp + 0x14], eax
je 0x100b8b69
cmp word [ebx + 0x2c], 0x2e
lea ecx, [ebx + 0x2c]
jne 0x100b8a35
mov ax, word [ebx + 0x2e]
test ax, ax
je 0x100b8b39
cmp ax, 0x2e
jne 0x100b8a35
cmp word [ebx + 0x30], 0
je 0x100b8b39
push ecx
call fcn.10078f12
mov ecx, dword [esp + 0x1c]
mov ebx, eax
add esp, 4
lea eax, [ebx + 1]
cmp ecx, eax
jb 0x100b8b32
mov ecx, dword [esp + 0x278]
mov word [esi + ebp*2 - 2], 0
lea eax, [ecx + 0x2c]
push eax
push esi
call fcn.1007952a
mov al, byte [esp + 0x284]
add esp, 8
test al, 0x10
je 0x100b8a8e
mov edx, dword [esp + 0x284]
mov eax, dword [esp + 0x14]
push edx
push eax
push 0
push esi
call dword [esp + 0x290]
mov edi, eax
test edi, edi
je 0x100b8af5
test byte [esp + 0x27c], 0x40
jne 0x100b8af5
lea ecx, [ebx + ebp]
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], 0
lea edx, [ebx + ebp + 1]
lea eax, [esi + ecx*2]
mov ecx, 0x93
mov word [eax - 2], 0x5c
mov word [eax], 0x2a
xor eax, eax
mov word [esi + edx*2], 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x284]
mov ecx, dword [esp + 0x280]
push eax
mov eax, dword [esp + 0x280]
push ecx
lea ecx, [esp + 0x24]
push eax
push ecx
push edx
push esi
call fcn.100b89b0
add esp, 0x18
mov edi, eax
test byte [esp + 0x27c], 0x20
je 0x100b8b25
test edi, edi
je 0x100b8b25
mov edx, dword [esp + 0x284]
mov eax, dword [esp + 0x14]
push edx
add ebx, ebp
push eax
push 0
push esi
mov word [esi + ebx*2 - 2], 0
call dword [esp + 0x290]
mov edi, eax
mov word [esi + ebp*2 - 2], 0x2a
mov word [esi + ebp*2], 0
mov ebx, dword [esp + 0x278]
test edi, edi
je 0x100b8b51
mov eax, dword [esp + 0x10]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100b89ff
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x25c
ret
mov ecx, dword [esp + 0x284]
lea edx, [ebx + 0x2c]
push ecx
push eax
push edx
push esi
mov word [esi + ebp*2 - 4], 0
call dword [esp + 0x290]
mov word [esi + ebp*2 - 4], 0x5c
mov edi, eax
mov word [esi + ebp*2 - 2], 0x2a
jmp 0x100b8b39
Function at 0x100b9c70
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x100b9c8f
push 0x57
mov dword [0x1030d630], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push 0
push 0x100b9bc0
push 0x20
push esi
call fcn.100b88b0
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test esi, esi
jne 0x100b9cd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x1030d630], eax
je 0x100b9cd5
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
ret

Function at 0x100b9d50
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x100b9d6f
push 0x57
mov dword [0x1030d630], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push 0
push 0x100b9bc0
push 0x20
push esi
call fcn.100b88b0
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test esi, esi
jne 0x100b9db5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x1030d630], eax
je 0x100b9db5
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
ret
Function at 0x100bc180
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10264938
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov eax, dword [esi + 0x20]
xor edi, edi
xor ebp, ebp
cmp eax, ebx
je 0x100bc1b2
call fcn.101936b0
mov ebp, eax
mov eax, dword [esi + 0x18]
mov ecx, 0xc0000000
cmp eax, ebx
je 0x100bc1c3
mov ecx, connect
mov eax, dword [esi + 0x24]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
cmp dword [eax - 8], ebx
je 0x100bc218
push ebx
push 0x80
push 3
push ebp
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x100bc1fe
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
cmp dword [esi + 4], 0xffffffff
je 0x100bc344
cmp dword [esp + 0x18], ebx
jne 0x100bc218
cmp dword [esp + 0x14], ebx
je 0x100bc344
mov eax, dword [esi + 0x18]
mov edi, 4
cmp eax, ebx
je 0x100bc229
mov edi, 2
lea ebx, [esi + 0x28]
lea ecx, [esp + 0x10]
push ebx
call fcn.100901f0
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], 0
test eax, eax
je 0x100bc26f
mov edx, dword [ebx]
mov eax, dword [edx - 8]
test eax, eax
je 0x100bc26f
call fcn.100a8670
test eax, eax
je 0x100bc26f
push 0x102c78e4
lea ecx, [esp + 0x14]
call fcn.10090e70
push ebx
lea ecx, [esp + 0x14]
call fcn.100918a0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esi + 0x10]
push eax
push 0
push edi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [esi + 8], eax
je 0x100bc31e
mov edx, dword [esi + 0x18]
mov ecx, 6
test edx, edx
je 0x100bc2ab
mov ecx, 4
mov edx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x14]
push edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0xc], eax
je 0x100bc31e
mov eax, dword [esi + 0x10]
mov ebp, 1
test eax, eax
jne 0x100bc2f9
mov eax, dword [esi + 4]
or ebx, 0xffffffff
cmp eax, ebx
je 0x100bc2fc
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x18]
xor edi, edi
sub ecx, edx
sbb eax, edi
test eax, eax
jle 0x100bc2f4
mov dword [esi + 0x10], ebx
jmp 0x100bc2fc
mov dword [esi + 0x10], ecx
jmp 0x100bc2fc
or ebx, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebx
call fcn.10090bf0
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.10090bf0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x100c05d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10264d20
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 0x100c062a
push 0x102d7e64
call fcn.100c9cc0
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 0x100c0639
push 0x102d7e44
jmp 0x100c060d
lea eax, [esi + 1]
mov dword [ebp + 8], edi
push eax
mov dword [ebp - 4], edi
call fcn.1024cbd1
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 0x100c067c
push edi
call fcn.1024cbfa
add esp, 4
push 0x102d7e30
jmp 0x100c060d
mov ecx, dword [ebp - 0x14]
push 1
push edi
call fcn.100c06b0
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 0x100c33f0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x1026514f
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.1009e460
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.100c5bd0
push 0x102f684c
lea ecx, [esp + 0x38]
call fcn.10090450
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
mov byte [esp + 0x28], 2
mov edi, eax
jle 0x100c34a8
test esi, esi
je 0x100c3475
push str._r_n_r_n
lea ecx, [esp + 0x38]
call fcn.10091840
mov edx, dword [esp + 0x10]
lea eax, [esp + 8]
push eax
mov ecx, dword [edx + esi*4]
call fcn.100c8640
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 3
call fcn.100918a0
lea ecx, [esp + 8]
mov byte [esp + 0x28], 2
call fcn.10090bf0
inc esi
cmp esi, edi
jl 0x100c3463
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.100901f0
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 1
call fcn.10090bf0
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.1009e470
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x100c4270
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x10265348
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.1009e460
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.100c5bd0
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
cmp edi, eax
jge 0x100c4335
mov edx, dword [esp + 0x34]
push 0
push edx
call fcn.100cb2f0
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x100c42db
push 0x102d8254
jmp 0x100c432d
mov eax, dword [esp + 0x10]
lea edx, [esp + 8]
push edx
mov ecx, dword [eax + edi*4]
mov dword [esp + 0xc], 0
call fcn.100c99c0
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 0x100c435b
mov eax, dword [esp + 8]
push eax
call fcn.1024cbfa
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x102d8240
call fcn.100c9cc0
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.1009e470
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.1024cbfa
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.1009e470
mov ecx, dword [esp + 0x20]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x100c6e10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1026582f
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 + 0xc], 0
call fcn.100c7190
test eax, eax
jne 0x100c6f3f
lea edi, [esi + 0x14]
mov ecx, edi
call fcn.100c7190
test eax, eax
jne 0x100c6f3f
lea eax, [esp + 8]
mov ecx, edi
push eax
call fcn.100c75d0
push 0x102d8614
push 0x102d7fc0
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 1
call fcn.10092b30
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.100c75d0
mov esi, eax
lea edx, [esp + 8]
lea eax, [esp + 0x18]
push edx
push 0x102d7fc0
push eax
mov byte [esp + 0x34], 2
call fcn.10091540
push 0x102d861c
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x34], 3
call fcn.10091360
push esi
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x34], 4
call fcn.10091190
mov esi, dword [esp + 0x30]
push 0x102d8610
push eax
push esi
mov byte [esp + 0x34], 5
call fcn.10091360
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 1
mov byte [esp + 0x28], 4
call fcn.10090bf0
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call fcn.10090bf0
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
call fcn.10090bf0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 1
call fcn.10090bf0
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.10090bf0
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.100c75d0
mov ecx, dword [esp + 0x20]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x100c7e70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10265afb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1026e87c]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], eax
mov ecx, dword [0x1026e87c]
lea edi, [esi + 4]
mov dword [esp + 0x1c], 0
mov dword [edi], ecx
mov edx, dword [0x1026e87c]
lea ebx, [esi + 8]
mov dword [ebx], edx
lea ebp, [esi + 0xc]
mov byte [esp + 0x1c], 2
mov ecx, ebp
call fcn.100c6f60
mov eax, dword [0x1026e87c]
mov dword [esi + 0x20], eax
mov ecx, dword [0x1026e87c]
mov dword [esi + 0x24], ecx
mov edx, dword [0x1026e87c]
mov dword [esi + 0x28], edx
mov eax, dword [0x1026e87c]
mov dword [esi + 0x2c], eax
mov ecx, dword [0x1026e87c]
mov dword [esi + 0x30], ecx
mov edx, dword [0x1026e87c]
mov dword [esi + 0x34], edx
push 0x102f684c
mov ecx, esi
mov byte [esp + 0x20], 9
call fcn.10090e70
push 0x102f684c
mov ecx, edi
call fcn.10090e70
push 0x102f684c
mov ecx, ebx
call fcn.10090e70
mov ecx, ebp
call fcn.100c7150
push 0x102f684c
lea ecx, [esi + 0x20]
call fcn.10090e70
push 0x102f684c
lea ecx, [esi + 0x24]
call fcn.10090e70
push 0x102f684c
lea ecx, [esi + 0x28]
call fcn.10090e70
push 0x102f684c
lea ecx, [esi + 0x2c]
call fcn.10090e70
push 0x102f684c
lea ecx, [esi + 0x30]
call fcn.10090e70
push 0x102f684c
lea ecx, [esi + 0x34]
call fcn.10090e70
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 0x100c8390
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10265d21
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], 0x1026eeac
mov ebx, dword [esi + 0x50]
xor edi, edi
test ebx, ebx
mov dword [esp + 0x18], 2
jle 0x100c83db
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x100c83d6
mov edx, dword [ecx]
push 1
call dword [edx]
inc edi
cmp edi, ebx
jl 0x100c83c6
lea edi, [esi + 0x4c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.100c6090
mov edi, dword [edi]
mov byte [esp + 0x18], 1
test edi, edi
je 0x100c83fd
push edi
call fcn.1024cbfa
add esp, 4
lea ecx, [esi + 0x40]
mov byte [esp + 0x18], 0
mov dword [esi + 0x3c], 0x1026eea8
call fcn.10090bf0
add esi, 4
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x34]
mov dword [esp + 0x18], 0xb
call fcn.10090bf0
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 0xa
call fcn.10090bf0
lea ecx, [esi + 0x2c]
mov byte [esp + 0x18], 9
call fcn.10090bf0
lea ecx, [esi + 0x28]
mov byte [esp + 0x18], 8
call fcn.10090bf0
lea ecx, [esi + 0x24]
mov byte [esp + 0x18], 7
call fcn.10090bf0
lea ecx, [esi + 0x20]
mov byte [esp + 0x18], 6
call fcn.10090bf0
lea ecx, [esi + 0xc]
mov byte [esp + 0x18], 5
call fcn.100c7010
lea ecx, [esi + 8]
mov byte [esp + 0x18], 4
call fcn.10090bf0
lea ecx, [esi + 4]
mov byte [esp + 0x18], 3
call fcn.10090bf0
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.10090bf0
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x100c84f0
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], 0x102d8080
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], 2
mov dword [esp + 0x4c], 0x102d8654
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], 9
mov dword [esp + 0x58], 0x102d7fc4
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], 3
mov dword [esp + 0x64], 0x102d8060
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 0x100c85c7
mov eax, dword [ebp + 0x24]
push esi
mov dword [esp + 0x18], eax
call fcn.10078f12
mov ecx, dword [esp + 0x18]
push eax
push esi
push ecx
call fcn.1007a728
add esp, 0x10
test eax, eax
jne 0x100c85e9
mov esi, dword [edi]
cmp esi, ebx
je 0x100c860f
mov ebp, dword [ebp + 8]
push esi
call fcn.10078f12
push eax
push esi
push ebp
call fcn.1007a728
add esp, 0x10
test eax, eax
je 0x100c860f
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
add edi, 0xc
inc eax
cmp eax, 8
mov dword [esp + 0x10], eax
jb 0x100c85a0
mov eax, dword [ebp + 0x30]
cmp dword [eax - 8], ebx
je 0x100c8622
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.100c7190
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 0x100c9a90
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10265fd8
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 0x100c9b05
mov eax, dword [esi + 0x48]
test eax, eax
je 0x100c9b05
cmp ecx, eax
ja 0x100c9b05
sub eax, ecx
mov dword [ebp - 4], 0
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.1024cbd1
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 0x100c9c98
mov ecx, esi
call fcn.100c84f0
cmp eax, 3
je 0x100c9c60
cmp eax, 4
je 0x100c9c60
mov eax, dword [esi + 0xc]
push 1
push eax
call fcn.100cb2f0
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
jne 0x100c9b55
push 0x102d7e0c
call fcn.100c9cc0
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 0x100c9b8e
push 0x102d8168
call fcn.100c9cc0
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.1024cbd1
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 0x100c9bf8
push 0x102d7e30
call fcn.100c9cc0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push edx
call fcn.1024cbfa
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.100ca190
add esp, 0x10
test eax, eax
jne 0x100c9c40
push 0x102d82c4
call fcn.100c9cc0
push esi
call fcn.1024cbfa
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.1024cbfa
add esp, 4
jmp 0x100c9c98
mov edi, dword [esi + 0x2c]
mov ebx, dword [esi + 0x28]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.100c8640
mov edx, dword [ebp + 8]
mov eax, dword [eax]
push edi
push ebx
push edx
push eax
mov dword [ebp - 4], 2
call fcn.100c9fa0
add esp, 0x10
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.10090bf0
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