joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f110
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x4524b6
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x468d80]
xor eax, esp
mov dword [esp + 0x468], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x468d80]
xor eax, esp
push eax
lea eax, [esp + 0x480]
mov dword fs:[0], eax
xor ebp, ebp
push ebp
push 0x1a
lea eax, [esp + 0x74]
push eax
push ebp
mov dword [esp + 0x24], ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [esp + 0x6c]
push ecx
call esi
push 0x10
xor edx, edx
mov ebx, 7
push str.M123oz123il123la
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], ebp
mov word [esp + 0x5c], dx
call fcn.00408a00
lea edx, [esp + 0x50]
lea ecx, [esp + 0x18]
mov dword [esp + 0x488], ebp
call fcn.0040eb90
mov edi, 8
cmp dword [eax + 0x18], edi
jb 0x40f1b4
mov eax, dword [eax + 4]
jmp 0x40f1b7
add eax, 4
push eax
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp dword [esp + 0x30], edi
jb 0x40f1d6
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0043e5e6
add esp, 4
lea edx, [esp + 0x6c]
push edx
call esi
push 0x10
xor eax, eax
push str.F123ir123efo123x
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], ebp
mov word [esp + 0x40], ax
call fcn.00408a00
lea edx, [esp + 0x34]
lea ecx, [esp + 0x18]
mov byte [esp + 0x488], 1
call fcn.0040eb90
cmp dword [eax + 0x18], edi
jb 0x40f21b
mov eax, dword [eax + 4]
jmp 0x40f21e
add eax, 4
push eax
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp dword [esp + 0x30], edi
jb 0x40f23d
mov edx, dword [esp + 0x1c]
push edx
call fcn.0043e5e6
add esp, 4
lea eax, [esp + 0x6c]
push eax
call esi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x6c]
call fcn.0040eca0
mov bl, al
cmp dword [esp + 0x4c], edi
jb 0x40f266
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0043e5e6
add esp, 4
xor edx, edx
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebp
mov word [esp + 0x38], dx
cmp dword [esp + 0x68], edi
jb 0x40f28c
mov eax, dword [esp + 0x54]
push eax
call fcn.0043e5e6
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x480]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x468]
xor ecx, esp
call fcn.0043eed8
add esp, 0x478
ret
Function at 0x40f2c0
Capabilities:
Set environment variable

Disassembly:
push 0xffffffffffffffff
push 0x452508
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x468d80]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push ebp
push esi
mov eax, dword [0x468d80]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], ax
lea ecx, [esp + 0x48]
mov dword [esp + 0x70], ebx
call fcn.0040f110
mov ebp, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea esi, [ebx + 8]
test al, al
je 0x40f39e
xor ecx, ecx
push 0x23
mov word [esp + 0x34], cx
push str.FI123RE123F123O123XP123ROF123I123LE
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
call fcn.00408a00
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x10]
mov byte [esp + 0x70], 1
call fcn.0040eb90
mov ecx, dword [esp + 0x4c]
cmp dword [esp + 0x60], esi
jae 0x40f363
lea ecx, [esp + 0x4c]
cmp dword [eax + 0x18], esi
jb 0x40f36d
mov eax, dword [eax + 4]
jmp 0x40f370
add eax, 4
push ecx
push eax
call ebp
cmp dword [esp + 0x28], esi
jb 0x40f387
mov edx, dword [esp + 0x14]
push edx
call fcn.0043e5e6
add esp, 4
mov byte [esp + 0x70], bl
cmp dword [esp + 0x44], esi
jb 0x40f39e
mov eax, dword [esp + 0x30]
push eax
call fcn.0043e5e6
add esp, 4
lea ecx, [esp + 0x48]
call fcn.0040f000
test al, al
je 0x40f425
xor ecx, ecx
push 0x29
mov word [esp + 0x34], cx
push str.F123IR123EFO123XPR123O123FI123LE123OL123D
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
call fcn.00408a00
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x10]
mov byte [esp + 0x70], 2
call fcn.0040eb90
mov ecx, dword [esp + 0x4c]
cmp dword [esp + 0x60], esi
jae 0x40f3ee
lea ecx, [esp + 0x4c]
cmp dword [eax + 0x18], esi
jb 0x40f3f8
mov eax, dword [eax + 4]
jmp 0x40f3fb
add eax, 4
push ecx
push eax
call ebp
cmp dword [esp + 0x28], esi
jb 0x40f412
mov edx, dword [esp + 0x14]
push edx
call fcn.0043e5e6
add esp, 4
cmp dword [esp + 0x44], esi
jb 0x40f425
mov eax, dword [esp + 0x30]
push eax
call fcn.0043e5e6
add esp, 4
cmp dword [esp + 0x60], esi
jb 0x40f438
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0043e5e6
add esp, 4
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.0043eed8
add esp, 0x64
ret

Function at 0x40f460
Capabilities:
Get file size

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

Disassembly:
sub esp, 0x84
push esi
push edi
push 0x38
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.0043f950
mov esi, dword [esp + 0xa4]
add esp, 0xc
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x18], 0x100
test esi, esi
je 0x40f7ec
mov dword [esp + 0x18], 0x140
mov edi, dword [esp + 0x94]
mov dword [esp + 0x30], 1
mov dword [esp + 0x20], str.open
mov dword [esp + 0x24], edi
test esi, esi
je 0x40f811
mov dword [esi], 0
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40f839
test esi, esi
je 0x40f8f6
mov edx, dword [esp + 0x4c]
pop edi
mov dword [esi], edx
pop esi
add esp, 0x84
ret 0xc
mov eax, dword [esp + 0x34]
cmp eax, 0x1b
je 0x40f84b
cmp eax, 0x1f
jne 0x40f8f6
xor eax, eax
mov dword [esp + 0x10], eax
push str.shell32.dll
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], 0x24
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.SHOpenWithDialog
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40f8ed
push 0x38
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.0043f950
add esp, 0xc
mov dword [esp + 0x50], 0x3c
mov dword [esp + 0x54], 0x100
test esi, esi
je 0x40f8a8
mov dword [esp + 0x54], 0x140
mov dword [esp + 0x6c], 1
mov dword [esp + 0x5c], str.openas
mov dword [esp + 0x60], edi
test esi, esi
je 0x40f8c6
mov dword [esi], 0
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40f8f6
test esi, esi
je 0x40f8f6
mov edx, dword [esp + 0x88]
pop edi
mov dword [esi], edx
pop esi
add esp, 0x84
ret 0xc
lea ecx, [esp + 8]
push ecx
push 0
call eax
pop edi
pop esi
add esp, 0x84
ret 0xc

Function at 0x40f9b0
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
xor ebx, ebx
push ebx
lea eax, [esp + 8]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edx
push ecx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40fa20
mov edx, dword [esp + 0x10]
mov eax, edx
push esi
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40f9e0
sub eax, esi
sar eax, 1
lea ecx, [eax + eax]
mov eax, dword [esp + 8]
push ecx
push edx
mov edx, dword [esp + 0x18]
push 1
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
test eax, eax
jne 0x40fa0e
mov bl, 1
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ecx
ret 8
xor al, al
pop ebx
pop ecx
ret 8
Function at 0x410160
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x452568
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x468d80]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x40]
xor edi, edi
push 0xffffffffffffffff
push edi
xor eax, eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], ax
call fcn.00408900
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], edi
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4101c0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.004095d0
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push edi
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.00408900
cmp dword [esp + 0x28], 8
jb 0x41020d
mov eax, dword [esp + 0x14]
push eax
call fcn.0043e5e6
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret
Function at 0x410da0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x452758
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x468d80]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x468d80]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
mov esi, ecx
lea ecx, [esp + 0x14]
push ecx
push 0x20019
xor edi, edi
push edi
push eax
mov dword [esp + 0x24], edi
push edx
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410ec0
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push edi
lea eax, [esp + 0x20]
push eax
push edi
push ebx
push ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410ec0
cmp dword [esp + 0x18], 1
jne 0x410ec0
mov ebp, 7
xor edx, edx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], edi
mov word [esp + 0x24], dx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x48], edi
cmp eax, edi
jbe 0x410e9a
shr eax, 1
push eax
lea ecx, [esp + 0x24]
call fcn.00410130
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x410e73
lea eax, [esp + 0x24]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push edi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x34]
dec ecx
push ecx
lea ecx, [esp + 0x24]
call fcn.00410130
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x28]
xor edx, edx
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.00408900
lea ecx, [esp + 0x20]
call fcn.00408610
jmp 0x410eed
xor ecx, ecx
mov eax, ebp
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov word [esi + 4], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x410ed5
sub eax, edx
sar eax, 1
push eax
push ebp
mov ecx, esi
call fcn.00408a00
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0043eed8
add esp, 0x38
ret 0xc
Function at 0x411140
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x38]
add dword [edi], 0xa
mov eax, dword [edi]
push 0
mov ebp, dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, ecx
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
push ecx
push 0x1f6
push edx
push 0x14
push 0x64
push eax
mov eax, dword [esp + 0x50]
push eax
push 0x50808f41
push 0x458b70
push 0x458b80
push 0
call ebp
mov ecx, dword [esi + 0x78]
push 1
push ecx
mov ebx, eax
push 0x30
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
push str.SkipAll
push ebx
mov ecx, esi
call fcn.00417950
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edx, dword [edi]
push 0
push eax
mov eax, dword [esp + 0x3c]
push 0x1f7
push ecx
push 0x14
push 0x64
push edx
add eax, 0x6e
push eax
push 0x50808f61
push 0x458ba0
push 0x458bac
push 0
call ebp
mov ecx, dword [esi + 0x78]
push 1
push ecx
mov ebp, eax
push 0x30
push ebp
call dword [sym.imp.USER32.dll_SendMessageW]
push str.Skip
push ebp
mov ecx, esi
call fcn.00417950
lea edx, [esp + 0x20]
push edx
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
add dword [esp + 0x18], 0x32
push 1
add eax, 0x32
push ecx
mov dword [esp + 0x30], eax
push eax
mov edx, dword [edi]
mov eax, dword [esp + 0x40]
push edx
push eax
push ebp
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [edi]
push 1
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x40]
push eax
lea eax, [ecx + edx + 0xa]
push eax
push ebx
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esi + 0x40]
cmp dword [eax + 0x2e0], 0
je 0x411288
mov ecx, dword [eax + 0x2e0]
push 0
push ecx
push ebx
lea ecx, [esp + 0x40]
call fcn.004081a0
mov edx, dword [esi + 0x40]
mov eax, dword [edx + 0x2e0]
push 0
push eax
push ebp
lea ecx, [esp + 0x40]
call fcn.004081a0
mov ecx, dword [esi + 0x40]
mov edx, dword [ecx + 0x2e4]
test edx, edx
je 0x4112ac
mov ecx, ebx
call fcn.00408370
mov edx, dword [esi + 0x40]
mov edx, dword [edx + 0x2e4]
mov ecx, ebp
call fcn.00408370
cmp byte [esp + 0x3c], 0
je 0x4112c3
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push ebx
call esi
push 0
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
Function at 0x417cf0
Capabilities:
Hide graphical window

Disassembly:
cmp byte [esp + 4], 0
je 0x417d06
mov eax, dword [ecx + 8]
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret 4
mov ecx, dword [ecx + 8]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
ret 4

Function at 0x417d90
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0xbc0
mov eax, dword [0x468d80]
xor eax, esp
mov dword [esp + 0xbbc], eax
push esi
push edi
push 0x3b8
lea eax, [esp + 0x10]
push 0
push eax
mov esi, ecx
call fcn.0043f950
mov edi, dword [esi + 8]
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [esp + 0x3da]
push edx
mov dword [esp + 0x20], 0x3bc
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 7
mov dword [esp + 0x30], 0x401
mov word [esp + 0x3dc], cx
call fcn.0043f950
add esp, 0x18
push 0x400
lea eax, [esp + 0x3c8]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x80
lea ecx, [esp + 0x3c8]
push ecx
lea edx, [esp + 0x28]
push edx
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]
lea edx, [esp + 8]
push edx
push 0
mov dword [esp + 0x24], eax
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov ecx, dword [esp + 0xbc4]
pop edi
pop esi
xor ecx, esp
call fcn.0043eed8
add esp, 0xbc0
ret
push esi
mov esi, ecx
cmp byte [esi + 0x3d], 1
push 0
jne 0x4278c8
call fcn.00417cf0
mov ecx, esi
pop esi
jmp 0x417d90
call fcn.004180f0
pop esi
ret

Function at 0x417e70
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0xbc0
mov eax, dword [0x468d80]
xor eax, esp
mov dword [esp + 0xbbc], eax
push esi
push edi
push 0x3b8
lea eax, [esp + 0x10]
push 0
push eax
mov esi, ecx
call fcn.0043f950
mov edi, dword [esi + 8]
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [esp + 0x3da]
push edx
mov dword [esp + 0x20], 0x3bc
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 6
mov word [esp + 0x3dc], cx
call fcn.0043f950
add esp, 0x18
push 0x400
lea eax, [esp + 0x3c8]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x80
lea ecx, [esp + 0x3c8]
push ecx
lea edx, [esp + 0x28]
push edx
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]
lea edx, [esp + 8]
push edx
push 1
mov dword [esp + 0x24], eax
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov ecx, dword [esp + 0xbc4]
pop edi
pop esi
xor ecx, esp
call fcn.0043eed8
add esp, 0xbc0
ret
Function at 0x417f80
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
mov eax, dword [esi + 8]
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 8]
push 0x43
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp byte [esi + 0x3c], 0
jne 0x41801a
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
push ebp
mov ebp, dword [sym.imp.USER32.dll_IsDialogMessageW]
push edi
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
call ebx
test eax, eax
je 0x418017
cmp dword [esp + 0x14], 0x100
jne 0x417fec
mov eax, dword [esp + 0x18]
cmp eax, 0xd
je 0x41802b
cmp eax, 0x1b
je 0x418006
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
push edx
push eax
call ebp
test eax, eax
jne 0x418011
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp byte [esi + 0x3c], 0
je 0x417fc3
pop edi
pop ebp
pop ebx
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
add esp, 0x1c
ret
mov ecx, dword [esi + 8]
call fcn.0040faa0
test eax, eax
je 0x417fec
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x417fec
mov ecx, dword [ecx + 0xc]
push 0
movzx eax, ax
push eax
push 0x111
push ecx
call edi
jmp 0x418006

Function at 0x418910
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 0x418925
mov edi, 0x80000000
test bl, 6
je 0x418949
cmp dword [esi + 0x44], 8
jb 0x418935
mov eax, dword [esi + 0x30]
jmp 0x418938
lea eax, [esi + 0x30]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
or edi, 0x40000000
cmp dword [esi + 0x60], 8
jb 0x418954
mov eax, dword [esi + 0x4c]
jmp 0x418957
lea eax, [esi + 0x4c]
xor ecx, ecx
cmp ebx, 2
setne cl
push 0
push 0x80
lea ecx, [ecx + ecx + 2]
push ecx
push 0
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor edx, edx
cmp eax, 0xffffffff
pop edi
mov dword [esi + 0x28], eax
setne dl
pop esi
mov al, dl
pop ebx
ret 4
Function at 0x419c80
Capabilities:
Read http header

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push edi
mov edi, dword [esp + 0x14]
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x13
push edi
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x24], 0
call ebp
test eax, eax
jne 0x419cbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x419d38
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
push esi
neg ecx
or ecx, eax
push ecx
call fcn.0043e26f
mov esi, eax
add esp, 4
test esi, esi
je 0x419d2b
mov eax, dword [esp + 0x10]
lea ecx, [eax + eax]
push ecx
push 0
push esi
call fcn.0043f950
add esp, 0xc
push 0
lea edx, [esp + 0x14]
push edx
push esi
push 0
push 0x13
push edi
call ebp
test eax, eax
je 0x419d22
lea eax, [esp + 0xc]
push eax
push 0
push esi
call dword [sym.imp.SHLWAPI.dll_StrToIntExW]
test eax, eax
jne 0x419d22
mov dword [esp + 0xc], 0xffffffff
push esi
call fcn.0043eee7
add esp, 4
mov eax, dword [esp + 0xc]
pop esi
pop edi
pop ebp
add esp, 8
ret 4
mov eax, dword [esp + 8]
pop edi
pop ebp
add esp, 8
ret 4

Function at 0x419d50
Capabilities:
Read http header

Disassembly:
mov eax, 0x1008
call fcn.00440690
mov eax, dword [0x468d80]
xor eax, esp
mov dword [esp + 0x1004], eax
push ebp
mov ebp, dword [esp + 0x1014]
push esi
mov esi, dword [esp + 0x1014]
push edi
mov dword [esp + 0xc], 0x400
test ebp, ebp
je 0x419d8c
mov dword [ebp], 0
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push 0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x2a
push esi
call edi
test eax, eax
je 0x419e96
push 0
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0x35
push esi
mov dword [esp + 0x24], 0x400
call edi
test eax, eax
je 0x419e96
mov ax, word [esp + 0x10]
lea ecx, [esp + 0x10]
test ax, ax
je 0x419df9
movzx eax, ax
cmp ax, 0x30
jb 0x419ded
cmp ax, 0x39
jbe 0x419df9
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x419de1
push ecx
lea ecx, [esp + 0x814]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp word [esp + 0x810], 0
lea eax, [esp + 0x810]
je 0x419e38
lea ebx, [ebx]
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x419e38
cmp cx, 0x39
ja 0x419e38
add eax, 2
cmp word [eax], 0
jne 0x419e20
mov esi, dword [sym.imp.SHLWAPI.dll_StrToIntW]
xor edx, edx
mov word [eax], dx
test ebp, ebp
je 0x419e8a
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x419e70
cmp cx, 0x30
jb 0x419e7f
cmp cx, 0x39
ja 0x419e70
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x419e53
jmp 0x419e70
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x419e7f
cmp cx, 0x39
jbe 0x419e84
add eax, 2
jmp 0x419e70
push eax
call esi
mov dword [ebp], eax
lea eax, [esp + 0x810]
push eax
call esi
jmp 0x419e98
xor eax, eax
mov ecx, dword [esp + 0x1010]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0043eed8
add esp, 0x1008
ret 8
Function at 0x419ff0
Capabilities:
Receive http response

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x84]
xor ebx, ebx
push edi
cmp eax, ebx
je 0x41a014
push eax
call fcn.0043eee7
add esp, 4
mov dword [esi + 0x84], ebx
mov ebp, dword [esp + 0x20]
lea eax, [esp + 0x14]
push eax
push ebp
mov ecx, esi
call fcn.00419d50
mov edi, eax
cmp dword [esp + 0x14], ebx
jne 0x41a037
mov ecx, dword [esi + 0x98]
mov dword [esp + 0x14], ecx
cmp edi, ebx
jle 0x41a049
mov ecx, dword [esi + 0x1a4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push edi
call eax
mov dword [esi + 0x88], edi
nop
lea ecx, [esp + 0x10]
push ecx
push ebp
mov dword [esp + 0x18], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x41a167
mov edi, dword [esi + 0x94]
cmp edi, ebx
je 0x41a0c0
cmp dword [esi + 0x98], ebx
jbe 0x41a0c0
mov eax, dword [esi + 0x88]
fild dword [esi + 0x88]
mov edx, dword [esi]
mov ebp, dword [edi]
push edx
test eax, eax
jge 0x41a095
fadd qword [0x4593a8]
mov ecx, dword [esp + 0x18]
fild dword [esp + 0x18]
test ecx, ecx
jge 0x41a0a7
fadd qword [0x4593a8]
fdivp st(1)
fmul qword [0x4593a0]
call fcn.0043fb9c
mov edx, dword [ebp]
push eax
mov ecx, edi
call edx
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
push eax
call fcn.0043e26f
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x41a133
mov ecx, dword [esp + 0x10]
inc ecx
push ecx
push ebx
push edi
call fcn.0043f950
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push eax
push edi
push ebp
mov dword [esp + 0x28], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x41a12a
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
push ecx
push edx
push edi
mov ecx, esi
call fcn.00419ec0
test al, al
je 0x41a173
mov ecx, dword [esi + 0x1a4]
cmp dword [ecx + 0x20], ebx
je 0x41a173
mov eax, dword [esp + 0x18]
push eax
push edi
call fcn.00418e30
push edi
call fcn.0043eee7
add esp, 4
cmp dword [esp + 0x10], ebx
ja 0x41a050
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x88]
push ecx
push edx
mov ecx, esi
call fcn.004199e0
mov ecx, dword [esi + 0x1a4]
call fcn.00418e10
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x114], eax
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret 8

Function at 0x41a4e0
Capabilities:
Set http header

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