joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b420
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58bca3
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x5d5440]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
xor edi, edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], edi
cmp dword [esi + 0x10], edi
je 0x43b674
call fcn.0040bfc0
mov ecx, eax
test ecx, ecx
je 0x43b694
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x38], eax
cmp dword [esi + 0x14], 0x10
mov byte [ebp - 4], 1
jb 0x43b493
mov esi, dword [esi]
push 0xfde9
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.004688c0
add esp, 0xc
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 2
jb 0x43b4b1
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x38]
push str.SELECT_hash_key__operation_FROM_AutoOperateList_WHERE_hash_key_s
push eax
call fcn.0040bb70
mov edx, dword [ebp - 0x3c]
add esp, 0xc
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x43b501
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43b4f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43b69e
push edx
push ecx
call fcn.004671e6
add esp, 8
xorps xmm0, xmm0
lea ecx, [ebp - 0x2c]
movups xmmword [ebp - 0x2c], xmm0
movq qword [ebp - 0x1c], xmm0
call fcn.0048ffb0
mov byte [ebp - 4], 3
call fcn.004376f0
mov esi, dword [ebp - 0x38]
lea ecx, [ebp - 0x2c]
push ecx
push esi
mov ecx, eax
call fcn.00437680
lea ecx, [ebp - 0x2c]
test eax, eax
je 0x43b573
call fcn.00490370
test al, al
jne 0x43b563
cmp dword [ebp - 0x30], 0
mov edi, 1
mov dword [ebp - 0x34], edi
je 0x43b568
push 0
push str.operation
lea ecx, [ebp - 0x2c]
call fcn.004907a0
mov ecx, eax
mov eax, dword [ebp - 0x30]
mov dword [eax], ecx
jmp 0x43b568
xor edi, edi
mov dword [ebp - 0x34], edi
lea ecx, [ebp - 0x2c]
call fcn.00490740
lea ecx, [ebp - 0x2c]
call fcn.00490090
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x43b674
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x43b674
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 - 0x14]
xor ecx, ebp
call fcn.0046748e
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.0040b900
call fcn.0055718a
int3
Function at 0x443830
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58c31f
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5d5440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.LogUtils::LogAppender.0
lea edi, [esi + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [esi + 0xc], 1
mov dword [esi + 0x10], 0
call fcn.0040bfc0
mov ecx, eax
test ecx, ecx
je 0x4439e4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
lea ebx, [esi + 0x18]
call fcn.0040bfc0
mov ecx, eax
test ecx, ecx
je 0x4439ee
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 1
call fcn.0040bfc0
mov ecx, eax
test ecx, ecx
je 0x4439f8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 4
mov dword [esi + 0x10], eax
test edx, edx
jne 0x443908
xor ecx, ecx
jmp 0x443920
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x443910
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00412910
push edi
mov ecx, ebx
call fcn.004110f0
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x44393c
xor ecx, ecx
jmp 0x443954
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x443944
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x1c]
call fcn.00412910
push ebx
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
call fcn.004446c0
push eax
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.004110f0
mov edx, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x443995
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
test eax, eax
je 0x4439ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4439ce
cmp dword [esi + 0x10], 0
je 0x4439c5
push dword [edi]
call fcn.00567654
add esp, 4
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
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 0xc
push 0x80004005
call fcn.0040b900
push 0x80004005
call fcn.0040b900
push 0x80004005
call fcn.0040b900
int3
Function at 0x4444c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58c408
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5d5440]
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 edi, dword [ebp + 8]
test edi, edi
je 0x444621
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push str.__set_log_lev0
push edi
call ebx
test eax, eax
je 0x444518
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 4]
jmp 0x444621
push str.__set_log_lev1
push edi
call ebx
test eax, eax
je 0x444532
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 4]
jmp 0x444621
push str.__set_log_lev2
push edi
call ebx
test eax, eax
je 0x44454c
mov eax, dword [esi]
mov ecx, esi
push 2
call dword [eax + 4]
jmp 0x444621
push str.__set_log_lev3
push edi
call ebx
test eax, eax
je 0x444566
mov eax, dword [esi]
mov ecx, esi
push 3
call dword [eax + 4]
jmp 0x444621
push str.__reload_log_switch
push edi
call ebx
test eax, eax
je 0x444621
push 3
mov ecx, esi
call fcn.00444480
lea eax, [esi + 0x14]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040b690
push 0x59cd30
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00445f30
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4445be
push 0
mov ecx, esi
call fcn.00444480
lea eax, [esi + 0x2c]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4445cf
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x44], 0
mov byte [ebp - 4], 1
je 0x444611
mov ecx, dword [esi + 0x6c]
test ecx, ecx
je 0x444611
mov eax, dword [ecx]
push 1
mov eax, dword [eax + 4]
call eax
test al, al
je 0x444611
push str._______log_reload_switch
lea ecx, [ebp - 0x44]
call fcn.004179b0
mov ecx, dword [esi + 0x44]
lea edx, [ebp - 0x44]
push edx
mov byte [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x44]
call fcn.00404e80
lea ecx, [ebp - 0x2c]
call fcn.00443b60
lea ecx, [ebp - 0x28]
call fcn.00404e80
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.0046748e
mov esp, ebp
pop ebp
ret 4
Function at 0x4463b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58c74b
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x5d5440]
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 edx, dword [edi]
mov eax, dword [ebp + 8]
push eax
call dword [edx]
cmp byte [edi + 0xc], 0
je 0x4464e6
mov ebx, dword [edi + 0x14]
lea esi, [edi + 0x20]
push 0x180
push 0x40
push 0x8109
push ebx
push esi
call fcn.00567fb2
add esp, 0x14
mov dword [ebp - 0xac], eax
test eax, eax
je 0x4464c6
push 0x98
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.00553b10
add esp, 0xc
lea ecx, [ebp - 0xa8]
push 1
push 2
call fcn.0040d9e0
push 0x59caa4
push dword [ebp - 0xac]
lea eax, [ebp - 0xa8]
mov dword [ebp - 4], 0
push str._error.__
push ebx
push str.open
push eax
call fcn.004031c0
add esp, 8
push eax
call fcn.004031c0
add esp, 8
push eax
call fcn.004031c0
add esp, 8
mov ecx, eax
call fcn.0040de80
push eax
call fcn.004031c0
add esp, 8
lea eax, [ebp - 0xd8]
lea ecx, [ebp - 0xa8]
push eax
call fcn.004462f0
cmp dword [eax + 0x14], 8
jb 0x4464a9
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0xd8]
call fcn.00404e80
lea ecx, [ebp - 0xa8]
call fcn.004056b0
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4464dc
push 2
push 0
push eax
call fcn.005685a5
add esp, 0xc
jmp 0x4464df
or eax, 0xffffffff
mov dword [edi + 8], eax
mov byte [edi + 0xc], 0
mov eax, dword [edi + 4]
mov dword [ebp - 0xc0], eax
test eax, eax
je 0x446604
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor bl, bl
push 0
push eax
call esi
test eax, eax
movzx edx, bl
mov ecx, 1
cmove edx, ecx
mov dword [ebp - 0xac], edx
test dl, dl
jne 0x446539
cmp dword [ebp + 0xc], 0
je 0x446531
push 0xffffffffffffffff
push dword [edi + 4]
call esi
mov byte [ebp - 0xac], 1
jmp 0x446539
test dl, dl
je 0x446604
lea ecx, [edi + 0x24]
mov dword [ebp - 0xb8], 0
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
cmp eax, ecx
je 0x4465dd
mov esi, dword [ecx]
mov dword [ecx], 0
mov edx, dword [ecx + 4]
mov dword [ecx + 4], 0
mov eax, dword [ecx + 8]
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xbc], edx
mov dword [ebp - 0xb4], edx
mov dword [ebp - 0xb0], eax
mov dword [ecx + 8], 0
cmp esi, edx
je 0x4465dd
nop dword [eax]
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x4465aa
mov ecx, dword [esi]
mov eax, dword [edi + 0x20]
cmp eax, 0xffffffff
je 0x4465c9
push dword [esi + 0x10]
push ecx
push eax
call fcn.00568e3a
mov edx, dword [ebp - 0xbc]
add esp, 0xc
mov ecx, eax
jmp 0x4465cc
or ecx, 0xffffffff
mov ebx, dword [edi + 8]
add esi, 0x18
add ebx, ecx
mov dword [edi + 8], ebx
cmp esi, edx
jne 0x4465a0
jmp 0x4465e0
mov ebx, dword [edi + 8]
lea ecx, [ebp - 0xb8]
call fcn.00443ac0
cmp byte [ebp - 0xac], 0
je 0x446600
push dword [ebp - 0xc0]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, ebx
jmp 0x446607
mov eax, dword [edi + 8]
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.0046748e
mov esp, ebp
pop ebp
ret 8
Function at 0x4468c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58c7c3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5d5440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0xf
mov byte [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
lea ecx, [esi + 0x48]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov dword [ebp - 4], 0
mov byte [ecx], 0
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0xffffffff
push 0
push 0x5956dc
mov byte [ebp - 4], 1
mov dword [esi + 0x60], 4
mov byte [esi + 0x6c], 0
mov byte [esi + 0x40], 0
mov dword [esi + 0x44], 0
call fcn.00407340
mov dword [esi + 0x68], 0
mov eax, esi
mov dword [esi + 0x64], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44fd50
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58ce8b
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x5d5440]
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, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44ff30
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
call fcn.0040bfc0
mov ecx, eax
test ecx, ecx
je 0x44ff4e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x44], eax
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.004115a0
test al, al
jne 0x44fdec
test esi, esi
jne 0x44fdce
xor ecx, ecx
jmp 0x44fde2
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44fdd3
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x44]
call fcn.00412910
mov esi, dword [ebp - 0x44]
xorps xmm0, xmm0
movq qword [ebp - 0x58], xmm0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x58], 0
mov eax, dword [esi - 0xc]
mov dword [ebp - 4], 1
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x48], 0
lea eax, [eax*2 + 2]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x48]
push eax
push 0x1388
push 8
lea eax, [ebp - 0x58]
push eax
push 0
push 0x4a
push edi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x44ff11
call fcn.00444b30
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x44ff11
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x58
push str.d:jenkins.jenkinsworkspacecore_libldsutilspublic_srcldsutils_src_app_module_ex.cc
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00407340
push 3
push 0x595800
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00407340
mov byte [ebp - 4], 3
call fcn.00444b30
mov ebx, eax
lea ecx, [ebp - 0xf0]
push 0x6c
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00404340
mov edi, eax
push str.SendMessageTimeout_error:
push edi
mov byte [ebp - 4], 4
call fcn.00405420
add esp, 8
mov ecx, edi
push dword [ebp - 0x4c]
call fcn.00405280
mov eax, dword [ebx]
mov ecx, ebx
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xf0]
call fcn.004056b0
lea ecx, [ebp - 0x28]
call fcn.00404e30
lea ecx, [ebp - 0x40]
call fcn.00404e30
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x44ff30
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.0046748e
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0040b900
int3
Function at 0x450260
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58ced6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x5d5440]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x45030c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x45030c
call fcn.0044f0f0
mov esi, eax
jmp 0x4503fc
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x45032f
call fcn.0044f0f0
jmp 0x4503ef
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x45034d
call fcn.0044f0f0
jmp 0x4503ef
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x45036e
mov esi, 0x8007000e
jmp 0x4503f1
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0044ef80
jmp 0x450398
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x4503af
mov esi, 0x8007000e
jmp 0x4503f1
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4503cf
call fcn.0044f0f0
jmp 0x4503ef
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.004500c0
mov esi, eax
test edi, edi
je 0x4503fc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x450420
lea ecx, [ebp - 0x418]
call fcn.0044f520
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046748e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x451d40
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58cfe8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5d5440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0x400000
push eax
call fcn.00458530
push dword [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.0046ae40
add esp, 0x14
test eax, eax
jne 0x451dc9
mov eax, dword [ebp - 0x10]
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x451eff
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [0x5e0a1c]
mov esi, dword [ebp - 0x10]
test edi, edi
jne 0x451e30
push 0x5d53a0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x5e0a1c], edi
jne 0x451e1f
push 0x1c
call fcn.004671b6
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x451e10
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], edi
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
jmp 0x451e12
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0x14]
lock or dword [ecx], edx
mov dword [0x5e0a1c], eax
push 0x5d53a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [0x5e0a1c]
cmp dword [edi], 0
jne 0x451e93
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x451edd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call esi
push str.HttpUninit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.zlib_uncompress
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.zlib_compress
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.zlib_compressBound
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x451e93
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], 0
je 0x451edd
cmp dword [edi + 4], 0
je 0x451edd
cmp dword [edi + 0xc], 0
je 0x451edd
mov esi, dword [ebp - 0x10]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x451ec7
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x451eff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x458530
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58dc40
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5d5440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
call fcn.00458630
push 0
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.00458840
add esp, 0x18
mov edx, dword [ebp - 0x14]
or esi, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45859e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 0x14], 0
je 0x4585cf
push 0
push dword [ebp - 0x10]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4585cf
mov edi, dword [ebp + 8]
mov ecx, edi
push 0x595e58
call fcn.00417540
jmp 0x4585dd
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.0044de50
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x4585fc
mov ecx, dword [eax]
push eax
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
mov esp, ebp
pop ebp
ret
Function at 0x458840
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58dcf0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5d5440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x458959
cmp dword [ebp + 0x10], 0
je 0x458959
call fcn.0040bfc0
mov ecx, eax
test ecx, ecx
je 0x4589a9
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 0xc], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
or eax, ecx
mov dword [ebp - 4], 1
jge 0x4588be
push 0x105
lea ecx, [ebp + 0xc]
call fcn.0040ca40
mov esi, dword [ebp + 0xc]
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push dword [esi - 8]
push esi
call fcn.00560869
add esp, 8
test eax, eax
js 0x4589b3
cmp eax, dword [esi - 8]
jg 0x4589b3
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp + 0x14], ecx
je 0x458949
push ecx
push esi
push ecx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x458949
mov edi, dword [ebp + 8]
mov ecx, edi
push 0x595e58
call fcn.00417540
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x458936
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
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
mov ecx, edi
call fcn.0044de50
jmp 0x458917
call fcn.0040bfc0
mov ecx, eax
test ecx, ecx
je 0x4589bd
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0x595e58
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.004115a0
test al, al
jne 0x458996
push 0
push 0x595e58
mov ecx, esi
call fcn.00412910
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040b900
push 0x80070057
call fcn.0040b900
push 0x80004005
call fcn.0040b900
int3