joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409d60
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2020]
mov eax, 0x2020
call fcn.00429a20
push 0xffffffffffffffff
push 0x43b27f
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x44bd78]
xor eax, ebp
mov dword [ebp + 0x201c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
call fcn.00405e46
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00409bda
xor eax, eax
push 0x1ffe
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push ebx
push eax
call fcn.00428ce0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push 0x80000001
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409eda
push str.123374DE290_123F_4565_9164_39C4925E467B
lea ecx, [ebp]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 0x2000
call fcn.0040594d
push 0x43e9f0
push 3
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.00409d34
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x409e28
lea eax, [ebp + 4]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp + 0x1c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409ecf
mov edi, str._USERPROFILE_
push edi
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp eax, ebx
je 0x409ec4
lea ecx, [ebp + 0x1c]
sub eax, ecx
sar eax, 1
mov dword [ebp - 0x10], eax
mov eax, ecx
push eax
mov ecx, esi
call fcn.00405929
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push dword [ebp - 0x10]
mov ecx, esi
call fcn.0040565e
push ebx
push 0x28
lea eax, [ebp + 0x1c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x10]
mov ecx, esi
call fcn.00409d0c
cmp dword [esi + 0x18], 8
jb 0x409ea8
mov eax, dword [esi + 4]
jmp 0x409eab
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409ebb
test al, 0x10
jne 0x409ecf
mov ecx, esi
call fcn.00409bda
jmp 0x409ecf
lea eax, [ebp + 0x1c]
push eax
mov ecx, esi
call fcn.00405929
push ebx
push 1
lea ecx, [ebp]
call fcn.00405613
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 + 0x201c]
xor ecx, ebp
call fcn.0042815f
add ebp, 0x2020
leave
ret

Function at 0x40a1d2
Capabilities:
Get file size

Disassembly:
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a203
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
jmp 0x40a20f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test edi, edi
pop edi
setne al
pop esi
ret 8
Function at 0x40a4e5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
push 0x38
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.00428ce0
mov esi, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0x100
test esi, esi
je 0x40a51c
mov dword [ebp - 0x44], 0x140
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x3c], str.open
mov dword [ebp - 0x38], ebx
test esi, esi
je 0x40a537
and dword [esi], 0
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40a557
test esi, esi
je 0x40a5fc
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
jmp 0x40a5fc
cmp dword [ebp - 0x28], 0x1b
je 0x40a567
cmp dword [ebp - 0x28], 0x1f
jne 0x40a5fc
push edi
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push str.shell32.dll
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], 0x24
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.SHOpenWithDialog
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
cmp eax, edi
jne 0x40a5f4
push 0x38
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.00428ce0
add esp, 0xc
mov dword [ebp - 0x84], 0x3c
mov dword [ebp - 0x80], 0x100
cmp esi, edi
je 0x40a5c1
mov dword [ebp - 0x80], 0x140
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x78], str.openas
mov dword [ebp - 0x74], ebx
cmp esi, edi
je 0x40a5d8
mov dword [esi], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40a5fb
cmp esi, edi
je 0x40a5fb
mov eax, dword [ebp - 0x4c]
mov dword [esi], eax
jmp 0x40a5fb
lea ecx, [ebp - 0xc]
push ecx
push edi
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40a68c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edx
push ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40a6ec
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x40a6b6
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push dword [ebp + 0xc]
push 1
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40a6df
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x40a6ee
xor al, al
pop ebx
leave
ret 8
Function at 0x40b1c1
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x34
mov eax, 0x43b46c
call fcn.004281d7
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x34]
push ecx
push 0x20019
xor esi, esi
push esi
push eax
mov dword [ebp - 0x34], esi
push edx
mov dword [ebp - 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b28d
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x3c]
push eax
push esi
lea eax, [ebp - 0x38]
push eax
push esi
push ebx
push dword [ebp - 0x34]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], esi
call edi
test eax, eax
jne 0x40b28d
cmp dword [ebp - 0x38], 1
jne 0x40b28d
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 7
call fcn.0040556f
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 4], esi
cmp eax, esi
jbe 0x40b274
push esi
shr eax, 1
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040ab39
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40b256
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x3c]
push ecx
push eax
lea eax, [ebp - 0x38]
push eax
push esi
push ebx
push dword [ebp - 0x34]
call edi
mov eax, dword [ebp - 0x18]
push esi
dec eax
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040ab39
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
call fcn.00408dcc
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00405613
jmp 0x40b298
push dword [ebp - 0x40]
mov ecx, dword [ebp - 0x30]
call fcn.0040594d
mov eax, dword [ebp - 0x30]
call fcn.0042825a
ret 0xc
Function at 0x40f6ba
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc0
mov eax, dword [0x44bd78]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x3b8
lea eax, [ebp - 0xbbc]
push 0
push eax
mov esi, ecx
call fcn.00428ce0
mov edi, dword [esi + 8]
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
mov dword [ebp - 0xbc0], 0x3bc
mov dword [ebp - 0xbbc], edi
mov dword [ebp - 0xbb8], 1
mov dword [ebp - 0xbb4], 7
mov dword [ebp - 0xbb0], 0x401
call fcn.00428ce0
add esp, 0x18
push 0x400
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x80
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0xba8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
movzx ecx, word [esi + 0x18]
mov eax, dword [esi + 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0xbac], eax
lea eax, [ebp - 0xbc0]
push eax
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042815f
leave
ret

Function at 0x40f791
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc0
mov eax, dword [0x44bd78]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x3b8
lea eax, [ebp - 0xbbc]
push 0
push eax
mov esi, ecx
call fcn.00428ce0
mov edi, dword [esi + 8]
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
mov dword [ebp - 0xbc0], 0x3bc
mov dword [ebp - 0xbbc], edi
mov dword [ebp - 0xbb8], 1
mov dword [ebp - 0xbb4], 6
call fcn.00428ce0
add esp, 0x18
push 0x400
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x80
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0xba8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
movzx ecx, word [esi + 0x18]
mov eax, dword [esi + 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0xbac], eax
lea eax, [ebp - 0xbc0]
push eax
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042815f
leave
ret

Function at 0x40ffe2
Capabilities:
Create directory

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
xor edi, edi
mov esi, ecx
test bl, 1
je 0x40fff7
mov edi, 0x80000000
and ebx, 2
je 0x41001b
cmp dword [esi + 0x40], 8
jb 0x410007
mov eax, dword [esi + 0x2c]
jmp 0x41000a
lea eax, [esi + 0x2c]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
or edi, 0x40000000
cmp dword [esi + 0x5c], 8
jb 0x410026
mov eax, dword [esi + 0x48]
jmp 0x410029
lea eax, [esi + 0x48]
push 0
push 0x80
push ebx
push 0
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
mov dword [esi + 0x24], eax
setne cl
pop esi
mov al, cl
pop ebx
ret 4
Function at 0x410883
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
or dword [ebp - 8], 0xffffffff
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x13
push dword [ebp + 8]
mov dword [ebp - 4], edi
call esi
cmp eax, edi
jne 0x4108b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x410913
mov eax, dword [ebp - 4]
push ebx
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00427504
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x410912
mov eax, dword [ebp - 4]
add eax, eax
push eax
push edi
push ebx
call fcn.00428ce0
add esp, 0xc
push edi
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 0x13
push dword [ebp + 8]
call esi
test eax, eax
je 0x41090b
lea eax, [ebp - 8]
push eax
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_StrToIntExW]
test eax, eax
jne 0x41090b
or dword [ebp - 8], 0xffffffff
push ebx
call fcn.00428278
pop ecx
pop ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 4

Function at 0x410a1f
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x84]
mov eax, dword [edi]
xor ebx, ebx
cmp eax, ebx
je 0x410a40
push eax
call fcn.00428278
pop ecx
mov dword [edi], ebx
mov dword [esi + 0x88], ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x410afa
push dword [esi + 0x88]
mov ecx, esi
call fcn.0041065f
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.00427504
mov edi, eax
pop ecx
cmp edi, ebx
je 0x410ad0
mov eax, dword [ebp - 4]
inc eax
push eax
push ebx
push edi
call fcn.00428ce0
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x410ac9
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp - 8]
push edi
call fcn.0041091c
test al, al
je 0x410b06
mov ecx, dword [esi + 0x1a4]
cmp dword [ecx + 0x20], ebx
je 0x410b06
push dword [ebp - 8]
push edi
call fcn.004101d4
push edi
call fcn.00428278
pop ecx
cmp dword [ebp - 4], ebx
ja 0x410a46
push dword [esi + 0x88]
mov ecx, esi
call fcn.0041065f
mov ecx, dword [esi + 0x1a4]
call fcn.004101c6
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x114], eax
xor al, al
jmp 0x410af3

Function at 0x410df9
Capabilities:
Initialize winhttp library

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 4], edi
jne 0x410e3a
lea eax, [esi + 0x120]
cmp dword [eax + 0x18], 8
jb 0x410e15
mov eax, dword [eax + 4]
jmp 0x410e18
add eax, 4
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 4], eax
cmp eax, edi
jne 0x410e3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x114], eax
xor al, al
jmp 0x410e3c
mov al, 1
pop edi
pop esi
ret
Function at 0x410e3f
Capabilities:
Set http header

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, ecx
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x410e80
cmp dword [eax + 0x18], 8
jb 0x410e58
mov eax, dword [eax + 4]
jmp 0x410e5b
add eax, 4
push 0x1000000
push ecx
push eax
push dword [esp + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x410e80
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x114], eax
xor al, al
jmp 0x410e82
mov al, 1
pop esi
ret 8

Function at 0x4111fc
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x16
push dword [ebp + 8]
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
call esi
cmp eax, ebx
jne 0x41122e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x411284
mov eax, dword [ebp - 8]
push edi
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00427504
mov edi, eax
pop ecx
cmp edi, ebx
je 0x411283
mov eax, dword [ebp - 8]
add eax, eax
push eax
push ebx
push edi
call fcn.00428ce0
add esp, 0xc
push ebx
lea eax, [ebp - 8]
push eax
push edi
push ebx
push 0x16
push dword [ebp + 8]
call esi
test eax, eax
je 0x41127c
mov ecx, dword [ebp + 0xc]
push edi
call fcn.00405929
mov byte [ebp - 1], 1
push edi
call fcn.00428278
pop ecx
pop edi
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret 8
Function at 0x411724
Capabilities:
Prepare http request

Disassembly:
push 0x60
mov eax, 0x43b9ee
call fcn.004281d7
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov byte [ebp - 0x66], bl
call fcn.00410b21
mov ecx, dword [esi + 0x1a4]
push 2
call fcn.004101d9
test al, al
jne 0x41175f
mov dword [esi + 0x114], 2
jmp 0x4118eb
push edi
lea ecx, [ebp - 0x64]
call fcn.00408dcc
mov dword [ebp - 4], ebx
cmp dword [esi + 0x28], ebx
je 0x4118d6
lea eax, [ebp - 0x64]
push eax
mov ecx, esi
call fcn.004111a4
test al, al
je 0x4118d6
mov ecx, esi
call fcn.00410df9
test al, al
je 0x4118e0
push dword [esi + 0x1a0]
push dword [esi + 0x19c]
push dword [esi + 0x198]
push dword [esi + 0x194]
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push ebx
push 0x10000
push 0x410b51
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
push 7
pop edi
push ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], edi
call fcn.0040556f
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], edi
call fcn.0040556f
lea eax, [ebp - 0x65]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
sub esp, 0x1c
lea eax, [esi + 0x14]
mov ecx, esp
mov dword [ebp - 0x6c], esp
push eax
mov byte [ebp - 4], 2
call fcn.00408dcc
mov ecx, esi
call fcn.004113a3
cmp al, bl
je 0x4118be
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x411826
lea eax, [ebp - 0x44]
push ebx
push dword [ebp - 0x6c]
push eax
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [esi + 8], eax
cmp eax, ebx
je 0x4118b7
movzx ecx, byte [ebp - 0x65]
mov edi, dword [ebp - 0x28]
neg ecx
sbb ecx, ecx
and ecx, 0x800000
cmp dword [ebp - 0x14], 8
jae 0x411855
lea edi, [ebp - 0x28]
cmp dword [ebp - 0x4c], 8
mov edx, dword [ebp - 0x60]
jae 0x411861
lea edx, [ebp - 0x60]
push ecx
push ebx
push ebx
push ebx
push edi
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0xc], eax
cmp eax, ebx
je 0x4118b7
cmp byte [esi + 0x10], bl
jne 0x411887
cmp byte [ebp - 0x65], bl
je 0x411887
push eax
mov ecx, esi
call fcn.0041072a
lea eax, [esi + 0xdc]
push eax
push dword [esi + 0xc]
mov ecx, esi
call fcn.00410e3f
test al, al
je 0x4118b7
lea eax, [esi + 0xb8]
push eax
push dword [esi + 0xc]
mov ecx, esi
call fcn.004116ca
test al, al
je 0x4118b7
mov byte [ebp - 0x66], 1
jmp 0x4118be
mov ecx, esi
call fcn.00410b21
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00405613
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00405613
jmp 0x4118e0
mov dword [esi + 0x114], 0x57
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.00405613
mov al, byte [ebp - 0x66]
call fcn.0042825a
ret 4
Function at 0x4126a2
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov byte [ebp - 1], bl
call fcn.00411724
test al, al
je 0x412756
lea eax, [esi + 0x15c]
cmp dword [eax + 0x18], 8
jb 0x4126d1
mov edx, dword [eax + 4]
jmp 0x4126d4
lea edx, [eax + 4]
lea eax, [esi + 0x140]
cmp dword [eax + 0x18], 8
jb 0x4126e5
mov ecx, dword [eax + 4]
jmp 0x4126e8
lea ecx, [eax + 4]
lea eax, [esi + 0xf8]
cmp dword [eax + 0x18], 8
jb 0x4126f9
mov eax, dword [eax + 4]
jmp 0x4126fc
add eax, 4
push edx
push ecx
push eax
push dword [esi + 0xc]
mov ecx, esi
call fcn.00410789
cmp byte [ebp + 0xc], bl
je 0x412718
push dword [esi + 0xc]
mov ecx, esi
call fcn.0041074f
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [esi + 0xc]
call edi
test eax, eax
jne 0x41276d
push dword [esi + 0xc]
mov ecx, esi
call fcn.00410d71
test al, al
je 0x412756
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [esi + 0xc]
call edi
test eax, eax
jne 0x41276d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x114], eax
push dword [esi + 0x114]
mov ecx, esi
call fcn.00410642
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 0x10
push dword [esi + 0xc]
mov ecx, esi
call fcn.0041083f
test al, al
je 0x412756
push ebx
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x41279e
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push dword [esi + 0xc]
call fcn.00412616
mov byte [ebp - 1], al
jmp 0x4127aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x114], eax
cmp byte [ebp - 1], bl
je 0x412756
mov ecx, esi
call fcn.0041062b
jmp 0x412763

Function at 0x41313f
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
call fcn.004129ef
xor eax, eax
push eax
push eax
push esi
push 0x413115
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x18], eax
pop esi
ret

Function at 0x41390e
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
cmp dword [esi + 0x2c], ebp
jne 0x413986
mov ecx, dword [esi + 0x10]
cmp ecx, ebp
jle 0x413986
mov edx, dword [esi + 0x14]
cmp edx, ebp
jle 0x413986
push ebx
push ebp
push 1
call fcn.004096b2
mov ebx, eax
cmp ebx, ebp
je 0x413981
push edi
push ebp
push 0x80
push 2
push ebp
push 1
push 0x40000000
mov ecx, esi
call fcn.00409007
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x413979
push ebp
lea eax, [esp + 0x14]
push eax
push dword [esi + 0x10]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 0x4c], 1
push ebx
call fcn.00428278
pop ecx
pop edi
mov al, 1
pop ebx
jmp 0x413988
xor al, al
pop esi
pop ebp
pop ecx
ret
Function at 0x413e99
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x24]
call fcn.0041e306
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor edi, edi
push edi
push edi
push edi
push edi
call ebx
push edi
push edi
push 1
push edi
mov dword [esi + 0x1c], eax
call ebx
push edi
push edi
push esi
push 0x413e8b
push edi
push edi
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
push 0x190
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x418626
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.00429a20
mov eax, dword [0x44bd78]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
call fcn.004160a5
mov ecx, esi
call fcn.00418293
mov ecx, esi
call fcn.0040f21c
lea edi, [esi + 0xcc]
mov eax, dword [edi]
push dword [eax + 0x36c]
mov ecx, esi
call fcn.0040f44d
mov eax, dword [edi]
add eax, 0x354
push eax
mov ecx, esi
call fcn.0040f4af
xor eax, eax
push 0x1ffe
push eax
mov word [ebp - 0x2004], ax
lea eax, [ebp - 0x2002]
push eax
call fcn.00428ce0
lea edi, [esi + 0xb0]
add esp, 0xc
mov ecx, edi
call fcn.00409f6f
cmp dword [esi + 0xc4], 0
jne 0x4186cd
push 0
push 0x10
lea eax, [ebp - 0x2004]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x2004]
push eax
mov ecx, edi
call fcn.00405929
cmp dword [edi + 0x18], 8
mov dword [ebp - method.LabelTextSetter.virtual_0], vtable.LabelTextSetter.0
jb 0x4186e2
mov edi, dword [edi + 4]
jmp 0x4186e5
add edi, 4
mov esi, dword [esi + 8]
push edi
push 0xf
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
lea ecx, [ebp - 0x2008]
call fcn.00405d0a
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042815f
leave
ret

Function at 0x418a4d
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x1a8], 0
jne 0x418aa0
push edi
push 0xfffffffffffffff0
lea edi, [esi + 0xec]
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 8
push eax
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push dword [esi + 0xe8]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x1e
push 0x1d20
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetTimer]
mov byte [esi + 0x1a8], 1
pop edi
pop esi
ret

Function at 0x418aa2
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x1a8], 0
je 0x418af1
push edi
push 0xfffffffffffffff0
lea edi, [esi + 0xec]
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xfffffff7
push eax
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 5
push dword [esi + 0xe8]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x1d20
push dword [esi + 8]
call dword [sym.imp.USER32.dll_KillTimer]
mov byte [esi + 0x1a8], 0
pop edi
pop esi
ret

Function at 0x418af3
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x3d], 1
push 0
jne 0x418b0b
call fcn.0040f63c
mov ecx, esi
pop esi
jmp fcn.0040f6ba
call fcn.0040f97f
pop esi
ret