joyce8/EMBER2024-capa huggingface dataset:
Function at 0x522600
Capabilities:
Initialize winhttp library
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b387b
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x63a404]
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
xor bl, bl
cmp byte [0x647b03], bl
jne 0x5227be
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov esi, eax
test esi, esi
jne 0x52272c
xor edx, edx
xor ecx, ecx
call fcn.0054e1e0
test eax, eax
jne 0x522671
call fcn.00548140
mov ecx, eax
call fcn.00548520
mov ecx, eax
call fcn.00545f90
mov esi, eax
lea eax, [ebp - 0x1bc]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpOpen]
test eax, eax
je 0x522701
mov edx, dword [ebp - 0x1b4]
test edx, edx
je 0x522701
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x1a4], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5226a6
sub ecx, dword [ebp - 0x1a4]
sar ecx, 1
je 0x522701
mov edi, dword [ebp - 0x1b0]
test edi, edi
je 0x5226fb
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 0x1a4], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5226d0
sub ecx, dword [ebp - 0x1a4]
sar ecx, 1
je 0x5226fb
push 0
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push edx
push 3
push esi
call edi
mov dword [0x647b18], eax
jmp 0x522706
push 0
push 0
jmp 0x5226e8
mov eax, dword [0x647b18]
test eax, eax
jne 0x52271a
push eax
push eax
push eax
push eax
push esi
call edi
mov dword [0x647b18], eax
test eax, eax
je 0x52271c
mov bl, 1
test esi, esi
je 0x5227be
push 2
push esi
jmp 0x5227b6
push 0x54
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x1a8], 0x29
call fcn.0056ea97
mov ecx, dword [ebp - 0x1a8]
push 0xffffffffffffffff
push str.Unable_to_initialise_WSASTartup_result__d
inc ecx
mov dword [ebp - 0x1ac], eax
push ecx
push eax
lea eax, [ebp - 0x1a4]
push eax
call fcn.00584f75
mov ecx, dword [ebp - 0x1a8]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x1a8], ecx
push esi
lea eax, [ebp - 0x1ac]
mov dword [ebp - 4], edx
push eax
push 0x9e
push str.ONetworkTools::initialise
push str.d:jenkinsworkspaceclient3.lib.networklib_networklib_srconetworktools.cpp
push edx
call fcn.0054faa0
mov eax, dword [ebp - 0x1ac]
add esp, 0x30
test eax, eax
je 0x5227be
push 2
push eax
call fcn.0056ea89
add esp, 8
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.0056e5b3
mov esp, ebp
pop ebp
ret
Function at 0x522980
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b39df
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x63a404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [edi], vtable.OInputStream.0
mov dword [ebp - 4], 0
mov esi, 9
push 0x14
mov dword [ebp - 0x10], 0
call fcn.0056ea97
push 0xffffffffffffffff
push str.ODownload
mov ebx, eax
lea eax, [ebp - 0x10]
push 0xa
push ebx
push eax
mov dword [ebp - 0x1c], ebx
call fcn.00584f75
xor ecx, ecx
add esp, 0x18
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x24]
call fcn.005448d0
lea esi, [edi + 4]
mov byte [ebp - 4], 2
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], esi
push eax
lea ecx, [esi + 0x10]
mov dword [esi], vtable.OThread.0
call fcn.00544950
mov dword [esi + 4], 0
mov word [esi + 8], 0
mov dword [esi + 0xc], 0xfffffffe
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x522a44
push 2
push eax
call fcn.0056ea89
add esp, 8
test ebx, ebx
je 0x522a53
push 2
push ebx
call fcn.0056ea89
add esp, 8
lea ecx, [edi + 0x20]
mov dword [edi], vtable.ODownload.1.0
mov dword [esi], vtable.ODownload.0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov byte [ebp - 4], 9
mov dword [edi + 0x1c], eax
call fcn.00545420
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x30], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x34], eax
mov dword [edi + 0x3c], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x40], 0
mov eax, dword [esi + 4]
mov byte [esi + 9], 1
test eax, eax
jne 0x522b08
push eax
push 4
push esi
push 0x54f620
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [esi + 0xc]
mov dword [esi + 4], eax
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esi + 4]
test eax, eax
je 0x522b0f
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
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 0x18
Function at 0x522c50
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3a2f
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x63a404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov byte [ebp - 0xd], 0
cmp dword [ebp + 0x14], 2
mov eax, 0x800000
cmove esi, eax
mov eax, dword [edi + 0x1c]
lea ecx, [eax*8 + 0x647b6c]
call fcn.00545f90
push esi
push 0
push 0
push 0
push dword [ebp + 0x34]
mov ebx, eax
push ebx
push dword [edi + 0x5c]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [edi + 0x60], eax
test ebx, ebx
je 0x522cc1
push 2
push ebx
call fcn.0056ea89
add esp, 8
mov eax, dword [edi + 0x60]
test eax, eax
je 0x522df9
push 0
push 0x10000
push fcn.0047c5b0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
push 0x20000000
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [edi + 0x2c], 0
jg 0x522d21
jl 0x522cf8
cmp dword [edi + 0x28], 0
ja 0x522d21
cmp dword [edi + 0x34], 0
jg 0x522d21
jl 0x522d06
cmp dword [edi + 0x30], 0
ja 0x522d21
push edi
push 0
push 0
push 0
push 0
push 0
push dword [edi + 0x60]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov bl, al
jmp 0x522da2
push 8
call fcn.0056e7bf
add esp, 4
mov dword [ebp + 0x40], eax
push str.Range:_bytes
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.005447b0
mov dword [ebp - 4], 0xffffffff
mov esi, eax
push dword [edi + 0x2c]
mov ecx, esi
push dword [edi + 0x28]
call fcn.00545550
push 0x2d
mov ecx, esi
call fcn.005454a0
mov ecx, dword [edi + 0x30]
add ecx, dword [edi + 0x28]
mov eax, dword [edi + 0x34]
adc eax, dword [edi + 0x2c]
push eax
push ecx
mov ecx, esi
call fcn.00545550
mov ecx, esi
call fcn.00545f90
mov esi, eax
test esi, esi
je 0x522dbc
push edi
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
push dword [edi + 0x60]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
push 2
push esi
mov bl, al
call fcn.0056ea89
add esp, 8
test bl, bl
je 0x522dbc
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x522de3
cmp eax, 0x20000000
je 0x522de3
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x3c
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x3c
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x3c
Function at 0x523fb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3c8f
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x63a404]
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 dword [ebp - 0x22c], ecx
xor esi, esi
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push 0x23
xor edi, edi
mov dword [ebp - 0x220], esi
push esi
mov dword [ebp - 0x21c], edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x52403e
push 8
call fcn.0056e7bf
add esp, 4
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 0xc
push ecx
mov ecx, eax
call fcn.00544840
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x220], esi
push esi
lea ecx, [ebp - 0x228]
call fcn.005448d0
mov dword [ebp - 4], 0x10
test esi, esi
je 0x5241e1
push 0x5c
lea ecx, [ebp - 0x228]
call fcn.005454a0
push 0x643c18
lea ecx, [ebp - 0x228]
call fcn.00545810
lea ecx, [ebp - 0x228]
call fcn.00547a60
test al, al
jne 0x524090
lea ecx, [ebp - 0x228]
call fcn.00547910
lea ecx, [ebp - 0x228]
call fcn.00547a60
test al, al
je 0x5241b8
push ecx
mov edx, 0x643bf0
lea ecx, [ebp - 0x228]
call fcn.005486b0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5241b8
mov ecx, dword [ebx + 4]
xor esi, esi
mov eax, ecx
test ecx, ecx
je 0x52413b
nop dword [eax]
test edi, edi
jne 0x52413b
cmp esi, ecx
jae 0x524131
mov eax, dword [ebx]
test eax, eax
je 0x524131
mov edi, dword [eax + esi*4]
test edi, edi
je 0x52412b
mov ecx, edi
call fcn.00524d50
test eax, eax
je 0x52412b
push dword [ebp - 0x22c]
mov ecx, eax
call fcn.00546360
test al, al
je 0x52412b
push 0xc
call fcn.0056e7bf
add esp, 4
mov dword [ebp - 0x230], eax
push edi
mov ecx, eax
mov byte [ebp - 4], 0x11
call fcn.005243d0
mov edi, eax
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x21c], edi
jmp 0x524131
mov edi, dword [ebp - 0x21c]
mov ecx, dword [ebx + 4]
inc esi
mov eax, ecx
cmp esi, ecx
jb 0x5240d0
xor edi, edi
test eax, eax
je 0x524183
cmp edi, eax
jae 0x52417b
mov esi, dword [ebx]
test esi, esi
je 0x52417b
mov esi, dword [esi + edi*4]
test esi, esi
je 0x52417b
mov eax, dword [esi]
test eax, eax
je 0x524169
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056ea89
add esp, 8
mov eax, dword [ebx + 4]
inc edi
cmp edi, eax
jb 0x524145
mov eax, dword [ebx]
test eax, eax
je 0x52419a
push 4
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebx], 0
push 8
push ebx
mov dword [ebx + 4], 0
call fcn.0056ea89
mov esi, dword [ebp - 0x220]
add esp, 8
mov edi, dword [ebp - 0x21c]
mov eax, dword [esi]
test eax, eax
je 0x5241cf
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056ea89
add esp, 8
mov ecx, dword [ebp - 0x228]
test ecx, ecx
je 0x5241f6
push 2
push ecx
call fcn.0056ea89
add esp, 8
mov eax, edi
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.0056e5b3
mov esp, ebp
pop ebp
ret
Function at 0x524220
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3cef
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x63a404]
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 eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x21c], eax
test ecx, ecx
je 0x5243b0
test edx, edx
je 0x5243b0
push ebx
push esi
call fcn.00524fe0
mov esi, eax
add esp, 8
test esi, esi
je 0x5243b0
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x524387
push 8
call fcn.0056e7bf
add esp, 4
mov dword [ebp - 0x224], eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 0xc
push ecx
mov ecx, eax
call fcn.00544840
mov edi, eax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x524387
push edi
lea ecx, [ebp - 0x220]
call fcn.005448d0
push 0x5c
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 0x10
call fcn.005454a0
push 0x643c18
lea ecx, [ebp - 0x220]
call fcn.00545810
push esi
lea ecx, [ebp - 0x220]
call fcn.00545810
push 0x643c28
lea ecx, [ebp - 0x220]
call fcn.00545810
mov dl, 1
lea ecx, [ebp - 0x220]
call fcn.0054b780
mov ecx, eax
test ecx, ecx
je 0x524335
mov eax, dword [ecx]
push 1
call dword [eax]
push 0xc
call fcn.0056e7bf
add esp, 4
mov dword [ebp - 0x224], eax
push esi
mov ecx, eax
mov byte [ebp - 4], 0x11
call fcn.005243d0
lea ecx, [ebp - 0x220]
mov ebx, eax
call fcn.004ffe40
mov eax, dword [edi]
test eax, eax
je 0x524375
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [edi], 0
push 8
push edi
mov dword [edi + 4], 0
call fcn.0056ea89
add esp, 8
mov eax, dword [esi]
test eax, eax
je 0x52439e
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056ea89
add esp, 8
mov eax, ebx
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.0056e5b3
mov esp, ebp
pop ebp
ret
Function at 0x5253a0
Capabilities:
Check if file exists
Get file attributes
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3fb5
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x63a404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 4], 0
jle 0x52555b
call fcn.00545f90
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push esi
mov edi, eax
call fcn.0056ea89
add esp, 8
cmp edi, 0xffffffff
je 0x52555b
push 0x2c
call fcn.0056e7bf
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
mov dword [edi], vtable.OGameShell.0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.00545f90
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
mov dword [edi + 4], eax
call fcn.0056ee0c
mov eax, dword [edi + 4]
add esp, 4
test eax, eax
je 0x5254d6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetEnvParam
push eax
call esi
push str.InstallKey
push dword [edi + 4]
mov dword [edi + 8], eax
call esi
push str.ExpireCurrentKey
push dword [edi + 4]
mov dword [edi + 0xc], eax
call esi
push str.SetDefaultKey
push dword [edi + 4]
mov dword [edi + 0x10], eax
call esi
push str.UpdateEnvironment
push dword [edi + 4]
mov dword [edi + 0x14], eax
call esi
cmp dword [edi + 8], 0
mov dword [edi + 0x18], eax
je 0x5254c4
cmp dword [edi + 0xc], 0
je 0x5254c4
cmp dword [edi + 0x10], 0
je 0x5254c4
cmp dword [edi + 0x14], 0
je 0x5254c4
test eax, eax
je 0x5254c4
mov ecx, edi
call fcn.00525690
mov eax, dword [edi + 4]
jmp 0x5254d6
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi + 4], 0
xor eax, eax
mov dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x52556f
push 0x3a
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x1c
call fcn.0056ea97
mov ecx, eax
mov eax, dword [ebp - 0x14]
push 0xffffffffffffffff
push str.OGameShell:_drmOpenDllFailed
inc eax
mov dword [ebp - 0x18], ecx
push eax
push ecx
lea eax, [ebp - 0x10]
push eax
call fcn.00584f75
mov ecx, dword [ebp - 0x14]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 4
push eax
push 0x16
push str.OGameShell::open
push str.d:jenkinsworkspaceclient3.lib.drmlibdrmlib_srcogameshell.cpp
push edx
call fcn.0054faa0
mov eax, dword [ebp - 0x18]
add esp, 0x2c
test eax, eax
je 0x525553
push 2
push eax
call fcn.0056ea89
add esp, 8
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
xor eax, 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
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 0x525690
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3fe7
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x63a404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
mov dword [ebp - 0x20], eax
mov edi, eax
mov dword [ebp - 0x18], eax
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x5256d0
sub esi, ecx
sar esi, 1
je 0x5258a5
push 0x6240bc
push edi
call fcn.0057389b
push 9
push str.CERTKEY_M
push edi
lea ebx, [eax + 2]
call fcn.0057e170
add esp, 0x14
test eax, eax
jne 0x525828
lea ebx, [edi + 0x10]
test ebx, ebx
je 0x52587f
push 8
call fcn.0056e7bf
add esp, 4
mov dword [ebp - 0x24], eax
push ebx
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00544840
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x52587f
mov edi, dword [ebx]
or ecx, 0xffffffff
test edi, edi
je 0x5257fa
cmp dword [ebx + 4], 0
jbe 0x5257fa
xor edx, edx
nop dword [eax]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], ecx
cmp ecx, 0xffffffff
jne 0x525781
movzx eax, word [edi]
inc edx
mov ecx, dword [ebp - 0x14]
add edi, 2
cmp eax, 0x3d
cmovne ecx, dword [ebp - 0x1c]
cmp edx, dword [ebx + 4]
jb 0x525760
test ecx, ecx
jle 0x5257fa
push ecx
push 0
mov ecx, ebx
call fcn.00545be0
mov ecx, dword [ebp - 0x10]
mov edx, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0x28]
mov edi, dword [ecx + 0x24]
mov dword [ebp - 0x14], eax
inc eax
mov dword [ecx + 0x28], eax
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056ea97
mov edx, eax
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x24], edx
test edi, edi
je 0x5257df
mov eax, dword [ebp - 0x14]
lea ecx, [eax*4]
push ecx
push edi
push edx
call fcn.00572a60
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov eax, dword [eax + 0x24]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov dword [eax + ecx*4], edx
test edi, edi
je 0x5257fa
push 4
push edi
call fcn.0056ea89
add esp, 8
mov eax, dword [ebx]
test eax, eax
je 0x525811
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebx], 0
push 8
push ebx
mov dword [ebx + 4], 0
call fcn.0056ea89
mov edi, dword [ebp - 0x18]
add esp, 8
jmp 0x52587f
push 6
push str.CERTID
push edi
call fcn.0057e170
add esp, 0xc
test eax, eax
jne 0x52587f
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00544840
mov ecx, dword [ebp - 0x10]
push eax
mov dword [ebp - 4], 1
lea ecx, [ecx + 0x1c]
call fcn.00545420
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x525878
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
lea edi, [edi + esi*2]
add edi, 2
mov esi, edi
mov dword [ebp - 0x18], edi
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x525890
sub esi, ecx
sar esi, 1
jne 0x5256e5
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
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 0x5272a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b4304
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x63a404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov dword [esi], vtable.iWinDrm.0
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 byte [ebp - 4], 3
lea ecx, [esi + 0x28]
push 0x643dd8
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call fcn.005448d0
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 4
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov byte [esi + 0x30], 0
mov dword [esi + 0x1c], ecx
mov eax, dword [ecx]
call dword [eax]
push eax
lea ecx, [esi + 4]
call fcn.00545420
mov edx, dword [esi + 4]
test edx, edx
je 0x5273bc
mov eax, dword [esi + 8]
test eax, eax
je 0x5273bc
lea eax, [edx + eax*2]
cmp eax, edx
jb 0x5273bc
nop
cmp word [eax], 0x5c
je 0x52736d
sub eax, 2
cmp eax, edx
jae 0x527360
cmp eax, edx
jb 0x5273bc
sub eax, edx
sar eax, 1
test eax, eax
jle 0x5273bc
push eax
push 0
lea ecx, [esi + 4]
call fcn.00545be0
mov edi, eax
test edi, edi
je 0x5273bc
push edi
lea ecx, [esi + 0xc]
call fcn.00545420
mov eax, dword [edi]
test eax, eax
je 0x5273aa
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [edi], 0
push 8
push edi
mov dword [edi + 4], 0
call fcn.0056ea89
add esp, 8
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 4
Function at 0x529800
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x52982b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0052a080
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x52984d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x52984f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x5298d3
jg 0x529864
test esi, esi
je 0x5298d3
test ecx, ecx
jl 0x5298ad
jg 0x52986e
test eax, eax
je 0x5298ad
cmp edi, ecx
jg 0x529882
jl 0x529878
cmp esi, eax
jae 0x529882
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.00572a60
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x5298b0
mov edx, dword [ebp + 8]
test edi, edi
jl 0x5298d3
jg 0x5298ba
test esi, esi
je 0x5298d3
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x5298d3
push eax
push esi
push 1
push edx
call fcn.0057de79
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5298f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x52991b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0052a160
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x52993d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x52993f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x5299de
jg 0x52995c
test esi, esi
je 0x5299de
test ecx, ecx
jl 0x5299a9
jg 0x529966
test eax, eax
je 0x5299a9
cmp ebx, ecx
jg 0x52997a
jl 0x529970
cmp esi, eax
jae 0x52997a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.00572a60
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x5299b0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x5299de
jg 0x5299ba
test esi, esi
je 0x5299de
cmp dword [edi + 0x4c], 0
je 0x5299de
mov ecx, edi
call fcn.0052a810
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.0057edcd
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc