joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10133740
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1028c2b8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10314008]
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, edx
mov edi, ecx
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x10133779
mov ecx, dword [esi]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x10133783
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0xb
push ecx
push eax
call ebx
test eax, eax
je 0x1013379a
mov al, 1
jmp 0x101338c0
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x59], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.10134450
movzx ecx, byte [ebp - 0x59]
test al, al
mov edx, 1
mov dword [ebp - 0x18], 0
cmovne ecx, edx
mov dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], dl
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.10134450
test al, al
jne 0x10133816
cmp byte [ebp - 0x60], al
je 0x10133836
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push 0xb
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call ebx
test eax, eax
jne 0x1013388a
mov ecx, esi
call fcn.10133540
cmp eax, 0xffffffff
je 0x101338a1
push esi
lea ecx, [ebp - 0x58]
call fcn.100062d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.10134200
test al, al
je 0x10133895
lea edx, [ebp - 0x58]
mov ecx, esi
call fcn.10133600
test al, al
je 0x10133895
mov edx, esi
mov ecx, edi
call fcn.10133600
lea ecx, [ebp - 0x58]
test al, al
je 0x1013388e
call fcn.10133b00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.10004cc0
mov bl, 1
jmp 0x101338a3
mov edx, esi
call fcn.10133600
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.10004cc0
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10004cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10004cc0
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.1025b3e6
mov esp, ebp
pop ebp
ret
Function at 0x101338e0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1028c2f0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10314008]
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 edi, edx
mov esi, ecx
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x10133919
mov ecx, dword [edi]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10133923
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push ecx
push eax
call ebx
test eax, eax
je 0x1013393a
mov al, 1
jmp 0x101339f9
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x41], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x40]
mov ecx, esi
call fcn.10134450
movzx ecx, byte [ebp - 0x41]
test al, al
mov edx, 1
mov dword [ebp - 0x18], 0
cmovne ecx, edx
mov dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], dl
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.10134450
test al, al
jne 0x101339b6
cmp byte [ebp - 0x48], al
je 0x101339da
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push 0
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call ebx
test eax, eax
je 0x101339da
mov bl, 1
jmp 0x101339dc
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10004cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10004cc0
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.1025b3e6
mov esp, ebp
pop ebp
ret
Function at 0x10133b00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1028c370
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10314008]
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
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10133b37
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x10133b4b
mov al, 1
jmp 0x10133cd2
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x10133b55
mov edx, dword [esi]
mov ecx, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10133b80
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10004d70
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10133540
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004cc0
cmp ebx, 0xffffffff
jne 0x10133bc8
xor al, al
jmp 0x10133cd2
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x10133bd2
mov edx, dword [esi]
mov ecx, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10133c00
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10004d70
mov dword [ebp - 4], 1
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.10133460
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004cc0
test bl, bl
je 0x10133bc1
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10133c49
mov eax, dword [esi]
push eax
call edi
test eax, eax
jne 0x10133b44
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 2
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.10134450
test al, al
je 0x10133c93
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call edi
test eax, eax
je 0x10133c93
mov bl, 1
jmp 0x10133cc1
cmp dword [esi + 0x14], 8
jb 0x10133c9b
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x44]
call fcn.100046c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.10133460
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.10004cc0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004cc0
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.1025b3e6
mov esp, ebp
pop ebp
ret
Function at 0x10133ed0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x10314008]
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 edi, edx
mov esi, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x10133f0e
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x10133f16
mov esi, dword [esi]
lea eax, [esp + 0xc]
push eax
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x10133f76
xor eax, eax
lea edx, [esp + 0xc]
mov word [esp + 0x216], ax
lea esi, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10133f40
sub edx, esi
lea eax, [esp + 0xc]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.10004d70
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.1025b3e6
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1025b3e6
add esp, 0x210
ret

Function at 0x10139900
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1028d5bd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10314008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
call fcn.101049c0
mov dword [ebp - 4], 0
mov dword [ebx + 0xe4], 0xffffffff
mov dword [ebx + 0xe8], 0
push 0x38
mov byte [ebx + 0xec], 0
call fcn.1025b3f7
mov edi, eax
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 1
push 0x38
push 0
push edi
call sub.VCRUNTIME140.dll_memset
push 0x18
mov dword [edi], 0xbb8
mov dword [edi + 4], 0x3e80
mov dword [edi + 8], 0xafc8
mov dword [edi + 0xc], 0x3e8
mov word [edi + 0x10], 0
call fcn.1025b3f7
mov dword [edi + 0x14], eax
add esp, 0x14
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [edi + 0x14]
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov eax, dword [edi + 0x14]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov byte [ebp - 4], 2
lea esi, [edi + 0x30]
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
push 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [ebp - 0x18], esi
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10166380
mov dword [esi], eax
mov byte [ebp - 4], 0
mov dword [ebx + 0xe0], edi
mov dword [ebp - 4], 0xffffffff
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
Function at 0x1014b450
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x10314008]
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 sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x1014b4e7
cmp dword [esp + 8], 6
jb 0x1014b4e7
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.1025b3e6
add esp, 0x118
ret

Function at 0x1014b510
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1028f700
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x10314008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xc
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x28]
push str.wintrust.dll
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10004d70
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.1011e230
mov ecx, eax
call fcn.1011e300
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004cc0
push 0xb
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x40]
push str.crypt32.dll
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.10004d70
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.1011e230
mov ecx, eax
call fcn.1011e300
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10004cc0
test ebx, ebx
je 0x1014b66d
test esi, esi
je 0x1014b66d
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 0x1014c060
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x808]
sub esp, 0x808
push 0xffffffffffffffff
push 0x1028f730
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10314008]
xor eax, ebp
mov dword [ebp + 0x804], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea eax, [ebp + 4]
push eax
push 0x3fe
call edi
mov ebx, eax
test ebx, ebx
je 0x1014c127
lea edx, [ebp + 4]
mov dword [ebp], 0
lea ecx, [ebp]
mov dword [ebp - 0x10], edx
call fcn.100692f0
mov dword [ebp - 4], 0
cmp ebx, 0x3fe
jbe 0x1014c14c
xor ecx, ecx
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1025b86b
add esp, 4
lea ecx, [ebp]
mov esi, eax
mov dword [ebp - 0x10], esi
push esi
call fcn.10069300
push esi
push ebx
call edi
test eax, eax
je 0x1014c118
cmp eax, ebx
ja 0x1014c118
mov edx, esi
xor ecx, ecx
mov ebx, eax
mov dword [edx + eax*2], ecx
jmp 0x1014c170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.10069280
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x804]
xor ecx, ebp
call fcn.1025b3e6
lea esp, [ebp + 0x808]
pop ebp
ret
lea eax, [ebx + ebx]
cmp eax, 0x800
jae 0x1014c1d8
xor ecx, ecx
mov word [ebp + eax + 4], cx
add eax, 2
cmp eax, 0x800
jae 0x1014c1d8
mov word [ebp + eax + 4], cx
xor eax, eax
xor esi, esi
test ebx, ebx
je 0x1014c1c2
mov edi, 2
nop dword [eax]
cmp word [edx + edi - 2], 0
jne 0x1014c1ba
cmp eax, esi
je 0x1014c1ba
lea eax, [edx + eax*2]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100046c0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
push eax
call fcn.1001df40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.10004cc0
mov edx, dword [ebp - 0x10]
lea eax, [esi + 1]
inc esi
add edi, 2
cmp esi, ebx
jb 0x1014c180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.10069280
mov al, 1
jmp 0x1014c129
call fcn.1025bcea
int3

Function at 0x1014fb00
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1029015f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10314008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, dword [ebp + 8]
mov ecx, edi
push esi
mov dword [ebp - 0x10], edi
call fcn.100062d0
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.100062d0
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.100062d0
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.100062d0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.100062d0
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.100062d0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10153de0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10290ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10314008]
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 edi, ecx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x10153e29
mov dword [ecx], 0
mov dword [eax], 0
cmp dword [edi], 0xffffffff
je 0x10153f7b
mov eax, dword [ebp + 0xc]
mov ecx, 0x100000
push 0
mov ebx, eax
mov dword [ebp - 0x1c], 0
cmp eax, 0x100000
lea eax, [ebp - 0x1c]
push eax
cmova ebx, ecx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x1c], 0
je 0x10153f46
test eax, eax
je 0x10153f46
mov edx, dword [ebp - 0x1c]
cmp edx, ebx
jae 0x10153f49
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x24], eax
cmp ecx, 0xffffffff
je 0x10153ecb
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10153ebf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10153ecb
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add ecx, esi
adc eax, 0
jmp 0x10153ed9
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push 0
push dword [ebp - 0x24]
push eax
push ecx
sub esp, 0x18
lea eax, [edi + 4]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.100062d0
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x18]
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x10153f46
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push ebx
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
xor edx, edx
test ecx, ecx
mov eax, 0x80004005
cmovne eax, edx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
test ecx, ecx
je 0x10153e84
jmp 0x10153f49
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
add dword [ecx], edx
test eax, eax
jne 0x10153f72
test edx, edx
je 0x10153f6e
mov eax, dword [ebp + 0xc]
add esi, edx
sub eax, edx
mov dword [ebp - 0x20], esi
mov dword [ebp + 0xc], eax
mov ecx, 0x100000
jne 0x10153e40
mov al, 1
jmp 0x10153f7d
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x10153f7b
mov dword [ecx], eax
xor al, al
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.1025b3e6
mov esp, ebp
pop ebp
ret 0x10
Function at 0x101594d0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102921a8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x10314008]
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
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
xor bl, bl
movlpd qword [ebp - 0x24], xmm0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 0x20], bl
test esi, esi
je 0x1015953e
mov eax, dword [esi]
test eax, eax
je 0x1015953b
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10159535
cmp eax, 0x80
je 0x10159535
xor bl, bl
jmp 0x1015953b
mov byte [esi + 4], 1
mov bl, 1
mov byte [ebp - 0x20], bl
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.10158150
mov edi, eax
test edi, edi
jne 0x10159559
xor bh, bh
jmp 0x1015964d
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x3c]
push dword [ebp + 8]
push str.url_info
push str.SELECT_status_FROM__s_WHERE_url_id_u
push eax
call fcn.100fece0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
add esp, 0x10
xor bh, bh
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 1
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
mov ecx, edi
push eax
call fcn.10169cf0
mov edi, dword [ebp - 0x1c]
test al, al
je 0x10159601
cmp byte [ebp - 0x14], bh
jne 0x10159601
push 0
push edi
call fcn.101cf2a0
add esp, 8
cmp eax, 5
je 0x101595f7
push 0
push edi
call fcn.101cee80
add esp, 8
jmp 0x101595fa
or eax, 0xffffffff
mov ecx, dword [ebp - 0x40]
mov bh, 1
mov dword [ecx], eax
test edi, edi
je 0x10159613
push edi
call fcn.101cd270
add esp, 4
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 1
mov byte [ebp - 4], 1
test edi, edi
je 0x10159636
push edi
call fcn.101cd270
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.10004cc0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1015966d
test bl, bl
je 0x1015966d
mov eax, dword [esi]
test eax, eax
je 0x10159669
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 4], 0
mov dword [ebp - 0x24], 0
mov al, bh
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.1025b3e6
mov esp, ebp
pop ebp
ret 8
Function at 0x10159800
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10292228
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x10314008]
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
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
xor bl, bl
movlpd qword [ebp - 0x24], xmm0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 0x20], bl
test esi, esi
je 0x1015986e
mov eax, dword [esi]
test eax, eax
je 0x1015986b
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10159865
cmp eax, 0x80
je 0x10159865
xor bl, bl
jmp 0x1015986b
mov byte [esi + 4], 1
mov bl, 1
mov byte [ebp - 0x20], bl
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.10158150
mov edi, eax
xor bh, bh
test edi, edi
je 0x1015997a
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x3c]
push dword [ebp + 8]
push str.url_info
push str.SELECT_speed_limit_FROM__s_WHERE_url_id_u
push eax
call fcn.100fece0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
add esp, 0x10
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 1
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
mov ecx, edi
push eax
call fcn.10169cf0
mov edi, dword [ebp - 0x1c]
test al, al
je 0x1015992e
cmp byte [ebp - 0x14], bh
jne 0x1015992e
push 0
push edi
call fcn.101cf2a0
add esp, 8
cmp eax, 5
je 0x10159924
push 0
push edi
call fcn.101cee80
add esp, 8
jmp 0x10159927
or eax, 0xffffffff
mov ecx, dword [ebp - 0x40]
mov bh, 1
mov dword [ecx], eax
test edi, edi
je 0x10159940
push edi
call fcn.101cd270
add esp, 4
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 1
mov byte [ebp - 4], 1
test edi, edi
je 0x10159963
push edi
call fcn.101cd270
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.10004cc0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1015999a
test bl, bl
je 0x1015999a
mov eax, dword [esi]
test eax, eax
je 0x10159996
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 4], 0
mov dword [ebp - 0x24], 0
mov al, bh
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.1025b3e6
mov esp, ebp
pop ebp
ret 8