joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003afc0
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xfffffffffffffffe
push 0x10112698
push 0x100bb940
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x10123068]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.10013d50
mov ecx, edi
call fcn.1003b0e0
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x1003b04c
test bl, bl
jne 0x1003b0af
cmp edi, 0x1a
jne 0x1003b0af
mov ecx, esi
call fcn.10013d50
push 0x410
push 0
lea eax, [ebp]
push eax
call fcn.100bc780
add esp, 0xc
push 0x207
lea eax, [ebp]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp]
push eax
call fcn.10002dd0
add esp, 4
push eax
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.10002bd0
mov ecx, esi
call fcn.10002af0
movzx ebx, bl
mov ecx, 1
test al, al
cmove ebx, ecx
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.100ba074
lea esp, [ebp + 0x414]
pop ebp
ret

Function at 0x1003b260
Capabilities:
Query environment variable

Disassembly:
mov edx, ecx
mov ecx, 0x1a
jmp fcn.1003afc0
Function at 0x1003ba90
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x10123068]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push 0x110
lea eax, [esp + 0x18]
mov esi, ecx
push 0
push eax
call fcn.100bc780
add esp, 0xc
mov dword [esp + 0x10], 0x114
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1003bb0e
cmp dword [esp + 0x14], 6
jb 0x1003bb0e
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x207
push eax
push esi
push str.Progid
mov edx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov ecx, 0x80000001
call fcn.1003b900
add esp, 0xc
test al, al
je 0x1003bb0e
cmp word [esi], 0
jne 0x1003bb66
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.http_shellopencommand
mov ecx, 0x80000000
call fcn.1003b900
add esp, 0xc
test al, al
je 0x1003bb3a
cmp word [esi], 0
jne 0x1003bb66
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.SoftwareClasses.html
mov ecx, 0x80000001
call fcn.1003b900
add esp, 0xc
test al, al
je 0x1003bb7b
cmp word [esi], 0
je 0x1003bb7b
mov al, 1
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.100ba074
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
xor al, al
pop esi
xor ecx, esp
call fcn.100ba074
mov esp, ebp
pop ebp
ret
Function at 0x1003c150
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x283c]
mov eax, 0x283c
call fcn.100bb1c0
push 0xffffffffffffffff
push 0x100e6798
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x10123068]
xor eax, ebp
mov dword [ebp + 0x2838], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x2000
lea eax, [ebp + 0x630]
push 0
push eax
call fcn.100bc780
add esp, 0xc
mov eax, 0x22
mov word [ebp + 0x630], ax
test esi, esi
je 0x1003c397
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jl 0x1003c397
push esi
call edi
cmp eax, 0xffa
jge 0x1003c397
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp + 0x630]
push eax
call esi
push 0x101067a0
lea eax, [ebp + 0x630]
push eax
call esi
lea ecx, [ebp]
call fcn.1003bb90
xor edi, edi
lea esi, [ebp]
cmp word [esi], 0
je 0x1003c26a
lea eax, [ebp + 0x630]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10009390
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
push esi
call fcn.10009390
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
push eax
sub esp, 8
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.10033b60
add esp, 0xc
mov bl, al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.10002b50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10002b50
test bl, bl
jne 0x1003c278
inc edi
add esi, 0x210
cmp edi, 3
jl 0x1003c204
jmp 0x1003c29a
imul eax, edi, 0x210
cmp dword [ebp + eax + 0x208], 0
mov eax, dword [ebp + eax + 0x20c]
jne 0x1003c292
add eax, 0x10
test eax, eax
jne 0x1003c399
push str.Shell32.dll
lea ecx, [ebp - 0x2c]
xor ebx, ebx
call fcn.10009390
mov dword [ebp - 4], 2
lea eax, [ebp - 0x2c]
push eax
call fcn.1003c5a0
mov ecx, eax
call fcn.1003c660
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10002b50
test esi, esi
je 0x1003c391
push 0x10108b34
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x1003c391
push 1
push ebx
push ebx
lea eax, [ebp + 0x630]
push eax
push 0x101067a4
push ebx
call edi
cmp eax, 0x20
ja 0x1003c388
mov dword [ebp - 0x14], str._programfiles_x86__Internet_Exploreriexplore.exe
xor esi, esi
mov dword [ebp - 0x10], str._programfiles_Internet_Exploreriexplore.exe
nop dword [eax + eax]
push 0x208
lea eax, [ebp + 0x2630]
push 0
push eax
call fcn.100bc780
add esp, 0xc
lea eax, [ebp + 0x2630]
push 0x103
push eax
push dword [ebp + esi*4 - 0x14]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp + 0x2630]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1003c37e
push 1
push 0
lea eax, [ebp + 0x630]
push eax
lea eax, [ebp + 0x2630]
push eax
push 0x101067a4
push 0
call edi
cmp eax, 0x20
ja 0x1003c388
inc esi
cmp esi, 2
jb 0x1003c320
mov eax, ebx
jmp 0x1003c399
mov ebx, 0x10
mov eax, ebx
jmp 0x1003c399
xor ebx, ebx
mov eax, ebx
jmp 0x1003c399
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2838]
xor ecx, ebp
call fcn.100ba074
lea esp, [ebp + 0x283c]
pop ebp
ret
Function at 0x1003cfe0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e4718
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10123068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
and esi, 0xffffb1af
push esi
call fcn.10002b10
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1003d029
mov al, 1
jmp 0x1003d071
lea ecx, [ebp - 0x28]
call fcn.100093e0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.1003d6f0
test al, al
je 0x1003d05e
push esi
lea ecx, [ebp - 0x28]
call fcn.10002b10
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1003d05e
mov bl, 1
jmp 0x1003d060
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002b50
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ba074
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e4718
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10123068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.10002b10
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1003d10e
lea ecx, [ebp - 0x28]
call fcn.100093e0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.1003d6f0
test al, al
je 0x1003d0fd
lea ecx, [ebp - 0x28]
call fcn.10002b10
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002b50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ba074
mov esp, ebp
pop ebp
ret
Function at 0x1003d240
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e6a88
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10123068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.10002b10
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x1003d286
mov al, 1
jmp 0x1003d3d8
mov ecx, esi
call fcn.10002b10
push eax
lea ecx, [ebp - 0x28]
call fcn.10009390
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.1003d090
mov ebx, eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002b50
cmp ebx, 0xffffffff
jne 0x1003d2c5
xor al, al
jmp 0x1003d3d8
mov ecx, esi
call fcn.10002b10
push eax
lea ecx, [ebp - 0x28]
call fcn.10009390
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 0
call fcn.10002b10
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
call ebx
test eax, eax
je 0x1003d2f7
xor bl, bl
jmp 0x1003d341
lea ecx, [ebp - 0x40]
call fcn.100093e0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.1003d6f0
test al, al
je 0x1003d333
push 0
lea ecx, [ebp - 0x40]
call fcn.10002b10
push eax
call ebx
test eax, eax
je 0x1003d333
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.10002b50
xor bl, bl
jmp 0x1003d341
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.10002b50
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002b50
test bl, bl
jne 0x1003d2be
mov ecx, esi
call fcn.10002b10
push eax
call edi
test eax, eax
jne 0x1003d27f
lea ecx, [ebp - 0x28]
call fcn.100093e0
mov dword [ebp - 4], 3
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.1003d6f0
test al, al
je 0x1003d39a
lea ecx, [ebp - 0x28]
call fcn.10002b10
push eax
call edi
test eax, eax
je 0x1003d39a
mov bl, 1
jmp 0x1003d3c7
mov ecx, esi
call fcn.10002b10
push eax
lea ecx, [ebp - 0x40]
call fcn.10009390
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x44]
call fcn.1003cfe0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.10002b50
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002b50
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ba074
mov esp, ebp
pop ebp
ret
Function at 0x1003d400
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x10123068]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
lea eax, [esp + 4]
push esi
push edi
push 0x20c
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.100bc780
add esp, 0xc
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0
call fcn.10002b10
push eax
mov ecx, edi
call fcn.10002b10
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1003d495
xor eax, eax
mov word [esp + 0x216], ax
lea eax, [esp + 0xc]
push eax
call fcn.10002dd0
add esp, 4
mov ecx, ebx
push eax
lea eax, [esp + 0x10]
push eax
call fcn.10002bd0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.100ba074
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100ba074
add esp, 0x210
ret
Function at 0x10041db0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x10123068]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0x114
push 0x110
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [esi], 0
call fcn.100bc780
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x10041e47
cmp dword [esp + 8], 6
jb 0x10041e47
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.100ba074
add esp, 0x118
ret

Function at 0x10041e60
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e7250
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x10123068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.wintrust.dll
lea ecx, [ebp - 0x28]
call fcn.10009390
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.1003c5a0
mov ecx, eax
call fcn.1003c660
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002b50
push str.crypt32.dll
lea ecx, [ebp - 0x40]
call fcn.10009390
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.1003c5a0
mov ecx, eax
call fcn.1003c660
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10002b50
test ebx, ebx
je 0x10041f75
test esi, esi
je 0x10041f75
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push ebx
call esi
push str.CryptCATAdminAcquireContext
push ebx
mov dword [edi + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push ebx
mov dword [edi + 8], eax
call esi
push str.CryptCATCatalogInfoFromContext
push ebx
mov dword [edi + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push ebx
mov dword [edi + 0x10], eax
call esi
push str.CryptCATAdminReleaseContext
push ebx
mov dword [edi + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push ebx
mov dword [edi + 0x18], eax
call esi
push str.WTHelperGetProvSignerFromChain
push ebx
mov dword [edi + 0x1c], eax
call esi
push str.WinVerifyTrust
push ebx
mov dword [edi + 0x20], eax
call esi
push str.CertNameToStrW
push dword [ebp - 0x10]
mov dword [edi + 0x24], eax
call esi
mov dword [edi + 0x28], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005d350
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
push esi
mov dword [esp + 4], 0x10d040e
xor esi, esi
mov dword [esp + 8], 0x80b0f02
mov dword [esp + 0xc], 0xc060a03
mov dword [esp + 0x10], 0x7000905
mov dword [esp + 0x14], 0xe08010f
mov dword [esp + 0x18], 0x4030b06
mov dword [esp + 0x1c], 0xd020709
mov dword [esp + 0x20], 0xa05000c
mov dword [esp + 0x24], 0xe09000a
mov dword [esp + 0x28], 0x50f0306
mov dword [esp + 0x2c], 0x70c0d01
mov dword [esp + 0x30], 0x802040b
mov dword [esp + 0x34], 0x30e0d07
mov dword [esp + 0x38], 0xa090600
mov dword [esp + 0x3c], 0x5080201
mov dword [esp + 0x40], 0xf040c0b
mov dword [esp + 0x44], 0x1040c02
mov dword [esp + 0x48], 0x60b0a07
mov dword [esp + 0x4c], 0xf030508
mov dword [esp + 0x50], 0x90e000d
mov dword [esp + 0x54], 0xf0a010c
mov dword [esp + 0x58], 0x8060209
mov dword [esp + 0x5c], 0x4030d00
mov dword [esp + 0x60], 0xb05070e
mov dword [esp + 0x64], 0xe020b04
mov dword [esp + 0x68], 0xd08000f
mov dword [esp + 0x6c], 0x7090c03
mov dword [esp + 0x70], 0x1060a05
mov dword [esp + 0x74], 0x408020d
mov dword [esp + 0x78], 0x10b0f06
mov dword [esp + 0x7c], 0xe03090a
mov dword [esp + 0x80], 0x70c0005
nop dword [eax]
mov ecx, esi
mov edx, esi
sar ecx, 4
and edx, 0xf
movzx eax, byte [esp + ecx + 4]
shl al, 4
or al, byte [esp + edx + 0x14]
mov byte [esi + 0x10126120], al
movzx eax, byte [esp + ecx + 0x24]
shl al, 4
or al, byte [esp + edx + 0x34]
mov byte [esi + 0x10125e20], al
movzx eax, byte [esp + ecx + 0x44]
shl al, 4
or al, byte [esp + edx + 0x54]
mov byte [esi + 0x10126020], al
movzx eax, byte [esp + ecx + 0x64]
shl al, 4
or al, byte [esp + edx + 0x74]
mov byte [esi + 0x10125f20], al
inc esi
cmp esi, 0x100
jl 0x1005d460
pop esi
add esp, 0x80
ret
Function at 0x100657f0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ebcf9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10123068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
call fcn.100094e0
mov dword [ebp - 4], 0
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], 1
test eax, eax
je 0x100659a2
nop dword [eax]
dec eax
mov dword [ebp + 8], eax
mov al, byte [edi]
inc edi
mov byte [ebp + esi - 0x14], al
inc esi
mov ch, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov dword [ebp - 0x20], edi
mov byte [ebp - 0xf], ch
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xe], cl
cmp esi, 3
jne 0x100658e4
mov al, cl
xor edi, edi
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ch
mov byte [ebp - 0x16], cl
and al, 0x3f
mov ecx, 0x10125e04
mov byte [ebp - 0x15], al
call fcn.10002b60
mov esi, eax
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x100658bf
mov ecx, dword [esi]
movzx eax, byte [ebp + edi - 0x18]
movzx eax, byte [eax + ecx]
mov ecx, ebx
push eax
call fcn.1000b440
inc edi
cmp edi, 4
jl 0x100658b5
mov edi, dword [ebp - 0x20]
xor esi, esi
mov dl, byte [ebp - 0xd]
mov cl, byte [ebp - 0xe]
mov ch, byte [ebp - 0xf]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x10065850
mov dword [ebp + 8], esi
test esi, esi
je 0x100659a2
mov eax, esi
cmp esi, 3
jge 0x1006591e
cmp eax, 3
jae 0x100659b6
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x10065904
mov ch, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov al, cl
xor edi, edi
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x17], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x15], ch
lea eax, [esi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x20], eax
test eax, eax
jle 0x10065988
mov ecx, 0x10125e04
call fcn.10002b60
mov esi, eax
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x1006596e
mov ecx, dword [esi]
movzx eax, byte [ebp + edi - 0x18]
movzx eax, byte [eax + ecx]
mov ecx, ebx
push eax
call fcn.1000b440
inc edi
cmp edi, dword [ebp - 0x20]
jl 0x10065964
mov esi, dword [ebp + 8]
cmp esi, 3
jge 0x100659a2
mov edi, 3
sub edi, esi
push 0x3d
mov ecx, ebx
call fcn.1000b440
sub edi, 1
jne 0x10065994
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.100ba547
int3
Function at 0x10067270
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ec133
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x10123068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [esi]
test edi, edi
jne 0x100672ae
xor al, al
jmp 0x1006744d
lea eax, [edi + 0x38]
push eax
lea ecx, [ebp - 0xbc]
call fcn.10067470
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.10002af0
test al, al
jne 0x10067437
lea ecx, [ebp - 0x74]
call fcn.10002af0
test al, al
jne 0x10067437
cmp dword [ebp - 0x5c], 0
jne 0x10067409
mov edx, dword [esi + 8]
mov eax, edx
mov ecx, dword [esi + 0xc]
or eax, ecx
jne 0x100673a6
lea eax, [ebp - 0x3c]
xorps xmm0, xmm0
push eax
mov ecx, edi
movlpd qword [ebp - 0x18], xmm0
call fcn.1005bb50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.10002af0
test al, al
jne 0x1006738a
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea ecx, [ebp - 0x3c]
call fcn.10002b10
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1006738a
test edi, edi
je 0x1006738a
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push 8
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10067383
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.10002b50
mov dword [esi + 8], edi
mov edx, edi
mov dword [esi + 0xc], ebx
mov ecx, ebx
or edx, ecx
je 0x10067430
lea ecx, [ebp - 0x20]
call fcn.1002f610
mov ecx, dword [esi + 8]
mov esi, dword [esi + 0xc]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
cmp edx, esi
ja 0x100673cc
jb 0x10067430
cmp eax, ecx
jb 0x10067430
push esi
push ecx
push edx
push eax
call fcn.10067710
test al, al
je 0x10067437
lea ecx, [ebp - 0x20]
call fcn.1002f800
test eax, eax
js 0x10067430
lea ecx, [ebp - 0x20]
call fcn.1002f800
cmp eax, 3
jg 0x10067430
call fcn.100c9f64
xor edx, edx
mov ecx, 0xf0
div ecx
cmp edx, 1
jne 0x10067437
mov bl, dl
jmp 0x10067439
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10067434
cmp ecx, eax
jbe 0x10067434
sub ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
add edx, 2
cmp edx, dword [ebp - 0x5c]
jb 0x10067437
mov bl, 1
jmp 0x10067439
mov dword [esi + 0x10], ecx
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xbc]
call fcn.1001d280
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ba074
mov esp, ebp
pop ebp
ret 4
Function at 0x10067520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ec1b8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10123068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
mov dword [esi + 0x10], eax
call fcn.100c8e4f
mov ecx, dword [esi]
add esp, 4
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
test ecx, ecx
je 0x100675fa
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x1c], edx
call fcn.1005bb50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.10002af0
test al, al
jne 0x100675eb
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x38]
call fcn.10002b10
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100675eb
test esi, esi
je 0x100675eb
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 8
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.10002b50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ba074
mov esp, ebp
pop ebp
ret 4