joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4148c0
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55af98
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x5a0440]
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 [esi + 0x10]
test eax, eax
jne 0x4147f4
xor eax, eax
jmp 0x41496a
cmp eax, 1
jle 0x4147ed
call fcn.00414559
test eax, eax
je 0x41480c
mov eax, 1
jmp 0x41496a
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00409ec9
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x42]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
add eax, ecx
mov byte [ebp - 0x42], 0x5c
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push eax
cmovae ecx, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x41]
mov byte [ebp - 0x41], 0x2f
call fcn.00415f99
add esp, 8
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
add byte [eax], al
add bh, al
inc ebp
mov eax, 0
push 0x587d74
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00409b49
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00416929
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x2c], 0x10
jb 0x4148b6
push dword [ebp - 0x40]
call fcn.004befe9
add esp, 4
mov edi, dword [ebp - 0x50]
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x4148cc
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.00409ec9
mov ebx, dword [ebp - 0x4c]
lea esi, [edi + 0x18]
cmp esi, ebx
je 0x41493b
lea ecx, [ecx]
push 1
push 0x587d74
lea ecx, [ebp - 0x28]
call fcn.0040b459
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x28]
call fcn.0040a739
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 1
jne 0x414927
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0x80
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x414934
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
add byte [eax], al
jne 0x414986
add esi, 0x18
cmp esi, ebx
jne 0x4148d9
mov esi, 1
test edi, edi
je 0x414957
push ebx
push edi
lea ecx, [ebp - 0x50]
call fcn.0040a499
push edi
call fcn.004befe9
xchg ebp, eax
cmpsb byte [esi], byte es:[edi]
or al, byte [eax]
add esp, 4
cmp dword [ebp - 0x14], 0x10
jb 0x414968
push dword [ebp - 0x28]
call fcn.004befe9
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
add byte [eax], al
add byte [eax], al
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004befee
mov esp, ebp
pop ebp
ret
xor esi, esi
jmp 0x414940
Function at 0x43f469
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5a0440]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x20], 0
push edi
lea ecx, [ebp - 0x1c]
call fcn.0043f369
cmp dword [eax + 0x14], 0x10
jb 0x43f484
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp dword [ebp - 8], 0x10
mov edi, eax
jb 0x43f49e
push dword [ebp - 0x1c]
call fcn.004befe9
add esp, 4
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
mov byte [esi], 0
test edi, edi
je 0x43f4be
push 0xd
push str.bkg_image.jpg
jmp 0x43f4c5
push 0x14
push str.DefaultArtistPic.png
call fcn.00409a49
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004befee
mov esp, ebp
pop ebp
ret

Function at 0x444f39
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x5a0440]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x444f95
cmp dword [ebp - 0x88], 2
jne 0x444f95
cmp dword [ebp - 0x94], 6
jb 0x444f95
cmp dword [ebp - 0x90], 2
jb 0x444f95
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004befee
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004befee
mov esp, ebp
pop ebp
ret

Function at 0x445279
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5a0440]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004c2179
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x568bd4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x4452ee
mov esi, dword [esi]
push 1
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x445337
cmp word [ebp - 0x20c], 0
jne 0x445310
xor ecx, ecx
jmp 0x445328
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x445319
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.0040b779
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
test eax, eax
pop edi
setne al
xor ecx, ebp
pop esi
call fcn.004befee
mov esp, ebp
pop ebp
ret
Function at 0x4452d0
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5a0440]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004c2179
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x568bd4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x4452ee
mov esi, dword [esi]
push 1
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x445337
cmp word [ebp - 0x20c], 0
jne 0x445310
xor ecx, ecx
jmp 0x445328
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x445319
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.0040b779
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
test eax, eax
pop edi
setne al
xor ecx, ebp
pop esi
call fcn.004befee
mov esp, ebp
pop ebp
ret
Function at 0x445bf9
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5a0440]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x445c52
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x445c5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x445c68
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x14]
xor ecx, ecx
test esi, esi
pop esi
cmovne eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004befee
mov esp, ebp
pop ebp
ret

Function at 0x445d99
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 0x14]
push 0
push 0x587d5f
call fcn.00409a49
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 1
mov byte [ebp - 1], 0
cmp dword [eax + 0x14], 0x10
jb 0x445dcb
mov eax, dword [eax]
push esi
lea ecx, [ebp - 0xc]
push ecx
push 0x20019
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x445e93
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x14], 0x10
jb 0x445df6
mov eax, dword [esi]
jmp 0x445df8
mov eax, esi
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 1]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
jne 0x445e8a
mov eax, dword [ebp - 8]
inc eax
push edi
push eax
call fcn.004be4a6
add esp, 4
mov edi, eax
cmp dword [esi + 0x14], 0x10
jb 0x445e2f
mov esi, dword [esi]
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push 0
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 8]
mov byte [edi + eax], 0
cmp byte [edi], 0
jne 0x445e54
xor ecx, ecx
jmp 0x445e62
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x445e59
sub ecx, edx
push ecx
mov ecx, dword [ebp + 0x14]
push edi
call fcn.00409a49
push edi
call fcn.004bfe77
add esp, 4
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
test eax, eax
jne 0x445e8a
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x499959
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov cl, byte [esi]
test cl, cl
je 0x499987
nop
movzx ecx, cl
lea esi, [esi + 1]
movzx edx, byte [ecx + 0x569238]
lea ecx, [eax*8]
xor edx, ecx
mov cl, byte [esi]
xor eax, edx
test cl, cl
jne 0x499969
pop esi
pop ebp
ret

Function at 0x49cc69
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00488e99
Function at 0x4acbe0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x561303
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x5a0440]
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 dword [ebp - 0x48], esi
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp byte [edx], 0
mov dword [ebp - 4], 0
jne 0x4acb34
xor ecx, ecx
jmp 0x4acb42
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4acb39
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00409a49
mov eax, dword [ebp + 0xc]
lea edi, [esi + 4]
mov dword [ebp - 0x2c], eax
mov ecx, edi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004ad0e9
mov eax, dword [eax]
cmp eax, dword [edi]
je 0x4acb72
mov esi, dword [eax + 0x2c]
jmp 0x4accd2
test ebx, ebx
jne 0x4acb7d
xor esi, esi
jmp 0x4accd2
push 4
call fcn.004bf207
mov esi, eax
add esp, 4
test esi, esi
je 0x4acb95
mov dword [esi], 0
jmp 0x4acb97
xor esi, esi
push 0xffffffffffffffff
push ebx
mov ebx, dword [ebp - 0x48]
mov ecx, esi
push dword [ebx]
call fcn.004a6df9
test eax, eax
je 0x4accc5
push dword [ebx]
call fcn.00452df9
add esp, 4
lea ecx, [ebp - 0xfc]
mov esi, eax
push 1
push 3
call fcn.00418f69
push esi
push str.SQL_preparation_error_for:
push 0x58a130
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x58a134
xor al, 0xa1
pop eax
add byte [edx + 0x36], ch
push 0x58a138
push str.sqlite_sqlite_compiled_statement.cc
push str._Kw_
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0xec]
push 0x58a15c
push eax
call fcn.0041aa39
add esp, 8
mov ecx, eax
call fcn.00428679
push eax
call fcn.0041aa39
add esp, 8
push eax
call fcn.0041aa39
add esp, 8
push eax
call fcn.0041aa39
add esp, 8
mov ecx, eax
call fcn.004186a9
push eax
call fcn.0041aa39
add esp, 8
mov ecx, eax
call fcn.00428679
push eax
call fcn.0041aa39
add esp, 8
push eax
call fcn.0041aa39
add esp, 8
push eax
call fcn.0041aa39
push eax
call fcn.0042a5b9
add esp, 0xc
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0xfc]
invalid
invalid
call dword [eax - 0x18]
push eax
invalid
idiv bh
cmp dword [eax + 0x14], 0x10
jb 0x4acc81
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x30], 0x10
jb 0x4acc99
push dword [ebp - 0x44]
call fcn.004befe9
add esp, 4
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0
call fcn.00419049
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], vtable.std::ios_base.0
push eax
call fcn.004be525
add esp, 4
xor esi, esi
jmp 0x4accd2
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.004ac9e9
mov dword [eax], esi
cmp dword [ebp - 0x14], 0x10
jb 0x4acce3
push dword [ebp - 0x28]
call fcn.004befe9
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004befee
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4adad9
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x281c
call fcn.004c1af9
mov eax, dword [0x5a0440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2808], eax
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x4adb16
mov eax, dword [esi]
jmp 0x4adb18
mov eax, esi
push 0
push 0
push 0
push 1
mov byte [eax], 0
push 0
mov dword [ebp - 0x281c], 0x572014
mov dword [ebp - 0x2818], 0
call dword [sym.imp.WININET.dll_InternetOpenA]
push 1
push 0
push 3
push 0x587d5f
push 0x587d5f
push dword [ebp + 0xc]
mov dword [ebp - 0x2814], eax
push edi
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
push 1
push 0x4000000
lea ecx, [ebp - 0x281c]
mov dword [ebp - 0x2810], eax
push ecx
push dword [ebp - 0x2808]
push str.HTTP_1.0
push ebx
push 0x5720d8
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
push 0
push 0x587d5f
push 0
mov edi, eax
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
push 0x2800
mov dword [ebp - 0x2808], eax
lea eax, [ebp - 0x2804]
push 0
push eax
mov dword [ebp - 0x280c], 0
call fcn.004c2179
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x280c]
add esp, 0xc
push eax
push 0x27ff
lea eax, [ebp - 0x2804]
push eax
push edi
call ebx
test eax, eax
je 0x4adc4e
lea ecx, [ecx]
mov eax, dword [ebp - 0x280c]
test eax, eax
je 0x4adc4e
cmp eax, 0x2800
jae 0x4adc7e
mov byte [ebp + eax - 0x2804], 0
cmp byte [ebp - 0x2804], 0
jne 0x4adc13
xor eax, eax
jmp 0x4adc25
lea eax, [ebp - 0x2804]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4adc1c
sub eax, edx
push eax
lea eax, [ebp - 0x2804]
mov ecx, esi
push eax
call fcn.0040b459
lea eax, [ebp - 0x280c]
push eax
push 0x27ff
lea eax, [ebp - 0x2804]
push eax
push edi
call ebx
test eax, eax
jne 0x4adbe9
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 0x2810]
call esi
push dword [ebp - 0x2814]
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2808]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004befee
mov esp, ebp
pop ebp
ret
call fcn.004c0185
int3
Function at 0x4ae0f9
Capabilities:
Connect to http server
Create http request
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2820
call fcn.004c1af9
mov eax, dword [0x5a0440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x2808], eax
mov eax, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [eax + 0x14], 0x10
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x2814], eax
mov dword [eax + 0x10], 0
jb 0x4ae13d
mov eax, dword [eax]
mov byte [eax], 0
lea eax, [ebp - 0x2803]
push 0x27ff
push 0
push eax
mov dword [ebp - 0x2820], 0x572014
mov dword [ebp - 0x281c], 0
mov dword [ebp - 0x280c], 0
mov byte [ebp - 0x2804], 0
call fcn.004c2179
add esp, 0xc
push 0
push 0
push 0
push 1
push str.Mozilla_5.0__Windows__U__Windows_NT_5.1__en_US__AppleWebKit_534.10__KHTML__like_Gecko__Chrome_8.0.552.215_Safari_534.10
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x2818], eax
test eax, eax
je 0x4ae2ec
push 1
push 0
push 3
push 0x587d5f
push 0x587d5f
push dword [ebp + 0xc]
push esi
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x2810], eax
test eax, eax
je 0x4ae2e4
push 1
push 0x4000000
lea ecx, [ebp - 0x2820]
push ecx
push ebx
push str.HTTP_1.0
push edi
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test edi, edi
je 0x4ae2dc
mov edx, dword [ebp - 0x2808]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ae201
sub ecx, esi
push ecx
push edx
push 0x31
push str.Content_Type:_application_x_www_form_urlencoded_r_n
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov dword [ebp - 0x280c], eax
test eax, eax
je 0x4ae2d3
push 0x2800
lea eax, [ebp - 0x2804]
mov dword [ebp - 0x2808], 0
push 0
push eax
call fcn.004c2179
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x2808]
add esp, 0xc
push eax
push 0x27ff
lea eax, [ebp - 0x2804]
push eax
push edi
call ebx
test eax, eax
je 0x4ae2d3
mov esi, dword [ebp - 0x2814]
mov eax, dword [ebp - 0x2808]
test eax, eax
je 0x4ae2d3
cmp eax, 0x2800
jae 0x4ae303
mov byte [ebp + eax - 0x2804], 0
cmp byte [ebp - 0x2804], 0
jne 0x4ae298
xor ecx, ecx
jmp 0x4ae2aa
lea ecx, [ebp - 0x2804]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ae2a1
sub ecx, edx
push ecx
lea eax, [ebp - 0x2804]
mov ecx, esi
push eax
call fcn.0040b459
lea eax, [ebp - 0x2808]
push eax
push 0x27ff
lea eax, [ebp - 0x2804]
push eax
push edi
call ebx
test eax, eax
jne 0x4ae26e
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 0x2810]
call esi
push dword [ebp - 0x2818]
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x280c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004befee
mov esp, ebp
pop ebp
ret
call fcn.004c0185
int3

Function at 0x4af6a9
Capabilities:
Check if file exists

Disassembly:
add ecx, 0xc0
cmp dword [ecx + 0x14], 8
jb 0x4af6b7
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
ret
Function at 0x4b17a9
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x561ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5a0440]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x4b17e1
mov edi, dword [esi]
jmp 0x4b17e3
mov edi, esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b17f9
shr al, 4
and al, 1
jmp 0x4b187a
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004b0ea9
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x4b1815
mov eax, dword [esi]
jmp 0x4b1817
mov eax, esi
push dword [esi + 0x10]
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x18]
push 0
call fcn.004b15d9
test eax, eax
je 0x4b1867
lea eax, [ebp - 0x28]
push eax
call fcn.004b17a9
add esp, 4
test al, al
je 0x4b1867
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4b1863
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4b1867
push esi
call fcn.004b19b9
add esp, 4
test al, al
je 0x4b1867
mov bl, 1
jmp 0x4b1869
xor bl, bl
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ab79
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.004befee
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4b19c7
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b19db
shr eax, 4
and eax, 1
pop ebp
ret
xor al, al
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4b1b07
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x4b98f0
Capabilities:
Get system information on windows

Disassembly:
movdqu xmmword [ebp - 0xb0], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0xc4]
test eax, eax
je 0x4b9925
cmp eax, 6
je 0x4b991c
cmp eax, 9
jne 0x4b992c
mov dword [esi + 0x18], 1
jmp 0x4b992c
mov dword [esi + 0x18], 2
jmp 0x4b992c
mov dword [esi + 0x18], 0
mov ecx, dword [ebp - 0xb0]
mov eax, esi
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 0xa8]
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004befee
mov esp, ebp
pop ebp
ret
Function at 0x4ba089
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, dword [ebp + 8]
mov dword [ebp + 8], 0xffffffff
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x4ba0dd
push str.slot_____DWORD_0xFFFFFFFF_
lea eax, [ebp + 8]
push eax
push ecx
call fcn.004b2539
add esp, 0xc
test eax, eax
je 0x4ba0dd
push eax
push 0x12
push str.threading_thread_local_win.cc
lea ecx, [ebp - 0x98]
call fcn.004b2f79
lea ecx, [ebp - 0x98]
call fcn.004b3059
mov esp, ebp
pop ebp
ret

Function at 0x4bbcf9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jne 0x4bbd16
mov eax, dword [ebp + 8]
mov dword [eax + 8], ebx
mov dword [eax + 4], ebx
mov dword [eax], 1
pop ebx
pop ebp
ret
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push ebx
call fcn.004bb859
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x4bbd46
mov eax, dword [ebp + 8]
pop ebx
mov dword [eax + 8], 0
mov dword [eax], ecx
mov dword [eax + 4], 0
pop ebp
ret
push esi
mov esi, dword [ebp + 0x10]
push edi
lea eax, [esi + 1]
push eax
mov dword [ebp + 0x10], eax
call dword [0x5a0208]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4bbd75
mov eax, dword [ebp + 8]
mov dword [eax + 8], edi
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], 3
pop ebx
pop ebp
ret
push ebx
push esi
push 1
push edi
call fcn.004c4151
add esp, 0x10
cmp eax, esi
je 0x4bbdac
push edi
call dword [0x5a020c]
mov eax, dword [ebp + 8]
add esp, 4
pop edi
pop esi
mov dword [eax + 8], 0
mov dword [eax], 2
mov dword [eax + 4], 0
pop ebx
pop ebp
ret
push esi
push edi
push dword [ebp + 0x18]
call fcn.004bb7f9
add esp, 0xc
cmp eax, 1
jne 0x4bbdc5
mov byte [edi + esi], 0
mov esi, dword [ebp + 0x10]
push dword [ebp + 0x1c]
push 1
push 1
push eax
push dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push eax
push eax
push esi
call fcn.004bbb29
add esp, 0x28
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret