joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c6e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a8
mov eax, dword [0x565680]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x56762c]
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
je 0x43c71f
push 0x118
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.004e7fb0
add esp, 0xc
mov byte [ebp - 0x24], 0
jmp 0x43c7aa
call fcn.0043bf70
test eax, eax
je 0x43c764
lea eax, [ebp - 0x3a8]
push eax
push 0x118
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x3a8]
push eax
call fcn.0043ca20
mov esi, eax
add esp, 4
test esi, esi
jne 0x43c78b
pop edi
mov eax, 7
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e52a4
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x274]
push eax
push 0x118
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x274]
push eax
call fcn.0043c040
mov esi, eax
add esp, 4
test esi, esi
je 0x43c74f
push 0x118
lea eax, [ebp - 0x13c]
push esi
push eax
call fcn.004e7fb0
push esi
mov byte [ebp - 0x24], 0
call fcn.0043b500
add esp, 0x10
lea ecx, [ebp - 0x13c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43c7b3
sub ecx, edx
test ecx, ecx
jle 0x43c7d2
lea eax, [ebp - 0x13c]
cmp byte [eax + ecx - 1], 0x5c
jne 0x43c7d2
dec ecx
test ecx, ecx
jg 0x43c7c6
cmp ecx, 0x136
jae 0x43c8be
push ebx
mov byte [ebp + ecx - 0x13c], 0
mov ebx, 0x3e
lea esp, [esp]
lea eax, [ebp - 0x13c]
push eax
push str._setilqs_
push edi
call fcn.004ea473
mov esi, edi
add esp, 0xc
lea ecx, [esi + 1]
lea ebx, [ebx]
mov al, byte [esi]
inc esi
test al, al
jne 0x43c810
sub esi, ecx
lea eax, [edi + esi]
push eax
push 0xf
call fcn.00444ec0
add esp, 8
mov ecx, 3
lea esp, [esp]
movzx eax, byte [edi + esi]
xor edx, edx
div ebx
lea esi, [esi + 5]
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 5], al
movzx eax, byte [edi + esi - 4]
xor edx, edx
div ebx
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 4], al
movzx eax, byte [edi + esi - 3]
xor edx, edx
div ebx
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 3], al
movzx eax, byte [edi + esi - 2]
xor edx, edx
div ebx
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 2], al
movzx eax, byte [edi + esi - 1]
xor edx, edx
div ebx
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 1], al
dec ecx
jne 0x43c830
push edi
mov byte [edi + esi], cl
call fcn.0043c270
add esp, 4
test eax, eax
jne 0x43c7f0
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.004e52a4
mov esp, ebp
pop ebp
ret
call fcn.004eaa68
int3
Function at 0x43c8d0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x567628], 0
push esi
jne 0x43c910
call fcn.0043c260
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
mov dword [0x567630], esi
cmp esi, 0xffffffff
jne 0x43c8ff
call fcn.0043c420
xor eax, eax
pop esi
pop ebp
ret
mov dword [0x567628], 1
call fcn.0043c420
jmp 0x43c916
mov esi, dword [0x567630]
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 8]
test eax, eax
jle 0x43c960
test esi, esi
jne 0x43c9a1
push 0xc
call fcn.0043c080
mov esi, eax
add esp, 4
test esi, esi
je 0x43c9a1
movq xmm0, qword [0x51dcf4]
movq qword [esi], xmm0
mov eax, dword [0x51dcfc]
push esi
push dword [0x567630]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop esi
pop ebp
ret
test esi, esi
je 0x43c9a1
test eax, eax
jns 0x43c9a1
mov eax, dword [esi]
cmp eax, dword [0x51dcf4]
jne 0x43c9a1
mov eax, dword [esi + 4]
cmp eax, dword [0x51dcf8]
jne 0x43c9a1
mov eax, dword [esi + 8]
cmp eax, dword [0x51dcfc]
jne 0x43c9a1
push esi
call fcn.0043c070
add esp, 4
push 0
push dword [0x567630]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor esi, esi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x449590
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
cmp edi, 2
jge 0x4495a4
mov eax, 0x17
pop edi
pop ebp
ret
push ebx
mov ebx, dword [ebp + 8]
push esi
movzx eax, byte [ebx + edi - 1]
movzx ecx, byte [ebx]
movzx eax, byte [eax + 0x5213d8]
movzx ecx, byte [ecx + 0x5213d8]
lea eax, [eax + eax*2]
shl ecx, 2
xor eax, ecx
xor eax, edi
cdq
mov ecx, 0x7f
idiv ecx
movzx esi, byte [edx + str.Pk_]
dec esi
js 0x449611
jmp 0x4495e0
movzx eax, byte [esi + 0x520e48]
cmp eax, edi
jne 0x449607
movzx eax, word [esi*2 + 0x520ec0]
push edi
add eax, str.ABORTABLEFTEMPORARYADDATABASELECTHENDEFAULTRANSACTIONATURALTERAISEACHECKEYAFTEREFERENCESCAPELSEXCEPTRIGGEREGEXPLAINITIALLYANALYZEXCLUSIVEXISTSTATEMENTANDEFERRABLEATTACHAVINGLOBEFOREIGNOREINDEXAUTOINCREMENTBEGINNERENAMEBETWEENOTNULLIKEBYCASCADEFERREDELETECASECASTCOLLATECOLUMNCOMMITCONFLICTCONSTRAINTERSECTCREATECROSSCURRENT_DATECURRENT_TIMESTAMPLANDESCDETACHDISTINCTDROPRAGMATCHFAILIMITFROMFULLGROUPDATEIFIMMEDIATEINSERTINSTEADINTOFFSETISNULLJOINORDEREPLACEOUTERESTRICTPRIMARYQUERYRIGHTROLLBACKROWHENUNIONUNIQUEUSINGVACUUMVALUESVIEWHEREVIRTUAL
push ebx
push eax
call fcn.0044cd30
add esp, 0xc
test eax, eax
je 0x44961b
movzx esi, byte [esi + 0x520dd0]
dec esi
jns 0x4495e0
pop esi
pop ebx
mov eax, 0x17
pop edi
pop ebp
ret
movzx eax, byte [esi + 0x520fb0]
pop esi
pop ebx
pop edi
pop ebp
ret

Function at 0x449640
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00449590
Function at 0x45a930
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507d43
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x565680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 4], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov byte [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi], 0x5225c8
mov eax, dword [0x5651b8]
mov ecx, 0x5651b8
mov dword [ebp - 4], 0
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x28], eax
push dword [ebp + 8]
lea ecx, [edi + 0x28]
mov byte [ebp - 4], 1
call fcn.004026b0
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x45d6e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x565680]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 8]
push esi
mov esi, dword [0x569f7c]
push edi
push 0xf0
push eax
push esi
mov dword [ebp - 0x10c], ecx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x45d86e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45d86e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x45d86e
mov edx, 0x1234
push ebx
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x45d859
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
mov dword [ebp - 0x110], ecx
mov ecx, 0x403
add esi, 8
cmp cx, ax
jne 0x45d7ce
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], eax
call fcn.0045e670
push dword [ebp - 0x108]
mov eax, dword [ebp - 0x10c]
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x108]
cmove edi, ecx
lea ecx, [ebp - 0x104]
cmp eax, ecx
je 0x45d846
push eax
call fcn.004e5db5
add esp, 4
jmp 0x45d846
cmp dx, ax
jne 0x45d84b
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x134], 1
mov dword [ebp - 0x130], 0xffffffff
mov dword [ebp - 0x108], eax
call fcn.0045e670
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x12c], eax
cmp eax, ecx
je 0x45d820
push eax
call fcn.004e5db5
add esp, 4
lea eax, [ebp - 0x134]
push eax
mov eax, dword [ebp - 0x10c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
mov edx, 0x1234
add esi, dword [ebp - 0x110]
test edi, edi
jne 0x45d746
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e52a4
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004e52a4
mov esp, ebp
pop ebp
ret 4
Function at 0x45ef90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0xcf
mov esi, ecx
call fcn.0045d6e0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], 0
mov dword [eax], 0
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x460f40
push 0
push 0
call fcn.004eb5b5
add esp, 0x18
mov dword [esi + 0x30], eax
push 0
push 0x3e8
push 0x5df
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x464800
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508618
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x565680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x566ac0]
imul eax, eax
mov dword [ebp - 0x14], 0
and eax, reloc.OLEAUT32.dll_VariantInit
jns 0x464843
dec eax
or eax, 0xfffffff8
inc eax
cmp eax, 5
jne 0x46484e
dec dword [0x5678a4]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
shr ecx, 8
movzx edi, al
movzx ebx, cl
cmp eax, 0x80000000
jae 0x46486d
mov esi, eax
shr esi, 0x10
cmp edi, 6
jb 0x464897
cmp ebx, 2
jb 0x464897
mov esi, dword [ebp + 8]
push esi
call fcn.00464910
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x5651b8]
mov ecx, 0x5651b8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push esi
push ebx
push edi
lea eax, [ebp - 0x10]
push 0x522afc
push eax
mov dword [ebp - 4], 0
call fcn.00405690
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
push esi
call fcn.004053a0
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4648f7
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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 0x46ff60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x14]
cmp eax, dword [ebx + 0x18]
jge 0x46ff76
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 0x1c], 0
je 0x46ff84
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004717a0
test al, al
jne 0x46ffba
mov eax, dword [0x566ac0]
mov ecx, eax
sub ecx, 0
je 0x46ffb0
dec ecx
je 0x46ffa4
inc eax
mov dword [0x566ac0], eax
jmp 0x46ffba
mov dword [0x566ac0], 0
jmp 0x46ffba
mov dword [0x566ac0], 2
push 0
lea eax, [ebp - 4]
push eax
push dword [ebx + 0xc]
push dword [ebx + 0x10]
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x470009
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.004656e0
mov edi, eax
push edi
push dword [ebx + 4]
push esi
push 0x4e21
call fcn.004656c0
push edi
call fcn.004e5db5
add esp, 0x18
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
test eax, eax
jne 0x470014
mov byte [ebx + 0x1c], 1
mov dword [ebx + 0x18], eax
movzx eax, byte [ebx + 0x1c]
neg eax
mov dword [ebx + 0x14], 0
sbb eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x470030
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, ecx
call fcn.00471970
test al, al
jne 0x47007f
push esi
mov esi, dword [0x566ac0]
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0x64
sub esi, ecx
xor ecx, ecx
lea eax, [esi + 0x141]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e3d44
push eax
call fcn.004e5e73
add esp, 8
pop esi
cmp dword [edi + 4], 1
jne 0x470089
xor eax, eax
pop edi
ret
mov ecx, dword [edi + 0x20]
pop edi
jmp fcn.004700a0
Function at 0x471030
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x308
mov eax, dword [0x565680]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [0x566ac0]
push edi
mov ebx, ecx
mov dword [ebp - 0x300], eax
call fcn.00471910
test al, al
jne 0x471067
inc esi
mov dword [0x566ac0], esi
mov edi, dword [ebx + 0xc]
sub edi, dword [ebx + 0x14]
mov esi, dword [ebp + 0xc]
cmp edi, esi
cmovg edi, esi
mov dword [ebp - 0x304], edi
call fcn.004718e0
test al, al
jne 0x4710c1
push 0x28
call fcn.004e3d44
add esp, 4
mov edi, eax
xor esi, esi
call fcn.004e5d44
add eax, dword [0x566ac0]
inc esi
mov dword [edi + esi*4 - 4], eax
cmp esi, 0xa
jl 0x471092
mov eax, dword [edi + 0x24]
push edi
mov dword [0x566ac0], eax
call fcn.004e5e73
mov edi, dword [ebp - 0x304]
mov esi, dword [ebp + 0xc]
add esp, 4
mov eax, dword [ebx + 0x14]
add eax, dword [ebx + 0x10]
push edi
push dword [ebp - 0x300]
push eax
call fcn.004e5700
mov edx, dword [0x566ac0]
add esp, 0xc
lea eax, [edx + 1]
imul eax, edx
and eax, reloc.OLEAUT32.dll_VariantInit
jns 0x4710ef
dec eax
or eax, 0xfffffff8
inc eax
cmp eax, 1
jne 0x471139
xor ecx, ecx
jmp 0x471100
mov eax, dword [ebp + ecx*4 - 0x2ec]
add eax, dword [ebp + ecx*4 - 0x2f0]
add ecx, 5
add eax, dword [ebp + ecx*4 - 0x308]
add eax, dword [ebp + ecx*4 - 0x30c]
add eax, dword [ebp + ecx*4 - 0x310]
imul eax, eax, 0x58
add edx, eax
cmp ecx, 0x2f8
jb 0x471100
mov dword [0x566ac0], edx
add dword [ebx + 0x14], edi
mov eax, dword [ebx + 0x14]
sub esi, edi
mov dword [ebp + 0xc], esi
je 0x4711ea
test eax, eax
jle 0x47116f
push 0
lea ecx, [ebp - 0x308]
push ecx
push eax
push dword [ebx + 0x10]
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4711aa
mov dword [ebx + 0x14], 0
mov esi, dword [0x566ac0]
mov eax, esi
imul eax, esi
cdq
mov ecx, 0x18
idiv ecx
cmp edx, 0x15
jne 0x47119f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x50
div ecx
lea esi, [edx + 1]
mov dword [0x566ac0], esi
add dword [ebp - 0x300], edi
jmp 0x471057
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.004656e0
mov edi, eax
push edi
push dword [ebx + 4]
push esi
push 0x4e22
call fcn.004656c0
push edi
call fcn.004e5db5
add esp, 0x18
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e52a4
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004e52a4
mov esp, ebp
pop ebp
ret 8
Function at 0x471ae0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1ec44
call fcn.004e6790
mov eax, dword [0x565680]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x566ac0]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1ec40], eax
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 6
idiv ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
cmp edx, 5
jne 0x471b8b
xor eax, eax
push 0x1ec30
push eax
mov word [ebp - 0x1ec38], ax
lea eax, [ebp - 0x1ec36]
push eax
call fcn.004e67c0
add esp, 0xc
xor edi, edi
xor esi, esi
xor eax, eax
test edi, edi
je 0x471b6b
test eax, eax
je 0x471b6b
lea ecx, [esi + eax]
lea edx, [ebp - 0x1ec38]
lea edx, [edx + ecx*2]
lea ecx, [esi + eax]
mov cx, word [ebp + ecx*2 - 0x1ee2e]
inc cx
add cx, word [edx - 2]
mov word [edx], cx
inc eax
cmp eax, 0xfb
jl 0x471b43
add esi, 0xfb
inc edi
cmp esi, 0xf619
jl 0x471b41
movsx eax, word [ebp - 8]
mov dword [0x566ac0], eax
push 0
lea eax, [ebp - 0x1ec44]
push eax
push 1
lea eax, [ebp - 0x1ec39]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x471c08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.004719a0
test al, al
jne 0x471bcf
call fcn.004e5d44
mov ecx, dword [0x566ac0]
cmp ecx, eax
jne 0x471bcf
dec ecx
mov dword [0x566ac0], ecx
push edi
call fcn.004656e0
mov esi, eax
push esi
push dword [ebp - 0x1ec40]
push edi
push 0x4e21
call fcn.004656c0
push esi
call fcn.004e5db5
add esp, 0x18
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e52a4
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1ec44], 0
je 0x471c29
movzx eax, byte [ebp - 0x1ec39]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e52a4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.004e52a4
mov esp, ebp
pop ebp
ret
Function at 0x473480
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov eax, ecx
push 0
push dword [eax + 0x20]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push 0x404
mov dword [ebp - 0xc], esi
call fcn.004e3d44
mov edi, eax
mov eax, 4
add esp, 4
xor ebx, ebx
cmp esi, eax
jbe 0x47354d
mov edx, 0x404
test ebx, ebx
jne 0x47354d
add eax, 0x400
cmp eax, esi
mov ecx, eax
cmova ecx, esi
push ebx
mov eax, esi
sub eax, ecx
push ebx
sub esi, eax
push eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp esi, 0x404
push dword [eax + 0x20]
mov dword [ebp - 0x10], ecx
cmova esi, edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push esi
push edi
push dword [eax + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esi - 3]
test eax, eax
jle 0x47353a
dec eax
cmp byte [eax + edi], 0x50
jne 0x47352f
cmp byte [eax + edi + 1], 0x4b
jne 0x47352f
cmp byte [eax + edi + 2], 5
jne 0x47352f
cmp byte [eax + edi + 3], 6
je 0x473535
test eax, eax
jg 0x473513
jmp 0x47353a
mov ebx, dword [ebp - 8]
add ebx, eax
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov edx, 0x404
cmp eax, esi
jb 0x4734c1
push edi
call fcn.004e5e73
add esp, 4
test ebx, ebx
je 0x473563
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push 0xffffffffffffff99
call fcn.00472570
int3
Function at 0x475730
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50982e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x565680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x10]
mov dword [edi], 0
push eax
push 0
lea ecx, [edi + 4]
mov dword [ebp - 0x10], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.00485930
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
lea eax, [ebp - 0x10]
mov dword [edi + 0x20], 0
push eax
push 0
lea ecx, [edi + 0x24]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.00485930
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea ecx, [edi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x58], esi
mov dword [edi + 0x60], edx
mov byte [edi + 0x64], 0
mov dword [edi + 0x68], eax
test byte [esi + 8], 8
mov byte [ebp - 4], 2
je 0x475858
test dl, 0x10
jne 0x475858
mov eax, 1
jmp 0x47585a
xor eax, eax
mov byte [edi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x70], eax
push dword [esi + 0x18]
call fcn.00488f10
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x47a740
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a0a9
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x565680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.00488be0
test al, al
jne 0x47a78f
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push str.pref__extensions.
push eax
call fcn.00402bc0
mov edi, dword [ebp + 8]
push 0x519ba0
push eax
push edi
mov dword [ebp - 4], 1
call fcn.00402ae0
add esp, 0x18
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
or esi, 0xffffffff
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x47a7e3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x524730
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
call fcn.00402ae0
add esp, 0xc
mov eax, dword [eax]
mov ecx, edi
push dword [eax - 0xc]
mov dword [ebp - 4], 2
push eax
call fcn.00402de0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47a82b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp + 0x14]
lea eax, [ebp - 0x1c]
push 0x524744
push eax
call fcn.00402bc0
push str.____n
push eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], 3
call fcn.00402ae0
add esp, 0x18
mov eax, dword [eax]
mov ecx, edi
push dword [eax - 0xc]
mov byte [ebp - 4], 4
push eax
call fcn.00402de0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47a886
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x1c]
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [ebx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x47a8a4
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret