joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5d0860
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push esi
push edi
push 0
push eax
push 0
mov edi, ecx
mov dword [ebp - 4], 0
push 0
push ebx
push dword [edi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0x24
jne 0x5d089c
cmp eax, 0x2f76
je 0x5d08a9
cmp eax, 0x7a
je 0x5d08b4
push eax
mov ecx, edi
call fcn.005d0d00
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
test eax, eax
jne 0x5d08de
call fcn.005c11a0
push str.retrieveHeaderFromHttpRequest:_Zero_buffer_required....
push 0x63f7d8
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
push 0x63a264
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005d41d5
mov esi, eax
add esp, 8
test esi, esi
jne 0x5d093d
call fcn.005c11a0
push str.failed_to_allocate_memory
push 0x63f7d8
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
sub esp, 0xc
mov ecx, esp
push str.Memory_Allocation_Failed
call fcn.00433230
push esi
push 0x14
mov ecx, edi
call fcn.005d1540
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
lea eax, [ebp - 4]
push eax
push esi
push 0
push ebx
push dword [edi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x5d0979
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.005d0d00
push esi
call fcn.00562e55
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
push esi
call fcn.004334d0
push esi
call fcn.00562e55
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x5d0a80
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push 0
push 0
push 0x16
push dword [edi]
mov dword [ebp - 4], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x5d0b08
mov eax, dword [ebp - 4]
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
push esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00562e5a
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
push 0
push 0x16
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x5d0afa
call fcn.005c11a0
push esi
push str.Header_contents:__n_s
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
add esp, 0xc
test esi, esi
je 0x5d0b07
push esi
call fcn.00562e55
add esp, 4
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10014663
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x10014672
pop dword [ebp - 0x2c]
mov eax, 0xaaa64dcb
sub eax, 0x9aa50759
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x3731c
push 0
mov eax, 0x67eb08ee
add eax, 0xa8166852
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0xf802dea3
add ecx, 0x7fd5e8c
mov esi, eax
mov edi, 0x508123d5
add edi, 0xbf81302b
add edi, dword [ebp - 0x2c]
mov edx, 0x5ea2b78e
xor dword [ebp - 0x18], 0x67ed20ab
mov ebx, dword [edi]
xor dword [ebp - 0x1c], 0xc2bab2c3
add ebx, edx
add dword [ebp - 0x28], 0x9f2a181e
mov dword [esi], ebx
add esi, 4
add edi, 0xdc9d1e6b
add edi, 0x2362e199
loop 0x100146cb
add eax, 0xd8251923
add eax, 0x27dbce6c
mov ebx, eax
add eax, 0x603a8272
add eax, 0x9fc57d93
mov ecx, 0x960a7f07
sub ecx, 0x860a7f07
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x404374
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x423414]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [0x4241e4]
cmp eax, 0xffffffff
jne 0x4043c9
push 0x114
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0040e350
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
sbb eax, eax
inc eax
mov dword [0x4241e4], eax
xor ecx, ecx
cmp eax, 1
sete cl
mov al, cl
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0040c34a
add ebp, 0x98
leave
ret
Function at 0x404e50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push 1
push 0
push 0
push esi
push str.open
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x1b
je 0x404e75
cmp eax, 0x1f
jne 0x404ee5
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], esi
mov dword [ebp - 4], 0x24
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.SHOpenWithDialog
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop edi
test eax, eax
jne 0x404edd
push 0x38
push eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x48], 0x3c
call fcn.0040e350
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x44], pe_nt_image_headers32
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x3c], str.openas
mov dword [ebp - 0x38], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
leave
ret
lea ecx, [ebp - 0xc]
push ecx
push 0
call eax
leave
ret
Function at 0x405760
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ab33
mov eax, dword fs:[0]
push eax
mov eax, 0x2028
call fcn.00416af0
mov eax, dword [0x423414]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 4], edi
xor eax, eax
mov dword [ebp - 0x201c], edi
push 0x1ffe
mov word [ebp - 0x2010], ax
lea eax, [ebp - 0x200e]
push edi
push eax
mov dword [ebp - 0x2028], ebx
call fcn.0040e350
add esp, 0xc
lea eax, [ebp - 0x2010]
push eax
push 0xfff
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x2010]
push eax
mov esi, ebx
call fcn.004018a5
mov dword [ebp - 4], edi
lea eax, [ebp - 0x2030]
mov ecx, ebx
mov dword [ebp - 0x201c], 1
call fcn.00405f9f
mov ecx, dword [eax]
mov eax, dword [eax + 4]
or edi, 0xffffffff
lea esi, [ebp - 0x2018]
mov dword [ebp - 0x2018], ecx
mov dword [ebp - 0x2014], eax
call fcn.00406416
mov eax, dword [ebp - 0x2018]
mov dword [ebp - 0x2024], eax
mov eax, dword [ebp - 0x2014]
lea esi, [ebp - 0x2024]
mov dword [ebp - 0x2020], eax
call fcn.004063e2
cmp word [eax], 0x5c
je 0x40584b
push 0x5c
mov eax, ebx
call fcn.00405fc5
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c34a
leave
ret

Function at 0x405866
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x1c
mov eax, 0x41b0cc
call fcn.0040ddcd
mov edi, ecx
mov ebx, dword [edi + 0x10]
lea esi, [ebp - 0x20]
call fcn.0040730a
mov ebx, dword [edi + 0xc]
lea esi, [ebp - 0x28]
call fcn.0040730a
push dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push eax
mov eax, edi
call fcn.00406468
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], esi
cmp ebx, 0xffffffff
jne 0x4058c9
xor al, al
jmp 0x40591c
lea eax, [ebp - 0x18]
push eax
push ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp + 0xc], eax
jae 0x4058e2
mov eax, dword [ebp + 0xc]
push eax
mov eax, edi
call fcn.004060d8
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
push esi
lea ecx, [ebp - 0x14]
push ecx
push eax
mov eax, edi
call fcn.00406157
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
push ebx
cmp eax, dword [ebp - 0x14]
sete byte [ebp - 0xd]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0xd]
call fcn.0040de6c
ret
Function at 0x405922
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40596c
push esi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 8], esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 8], edi
push ebx
sete byte [ebp - 1]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
jmp 0x40596e
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x405972
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, ecx
shr eax, 5
test eax, eax
jbe 0x4059a2
mov eax, ecx
shr eax, 5
push ebx
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push 0x20
pop edx
mov bl, byte [edi]
xor byte [esi], bl
inc esi
inc edi
dec edx
jne 0x405992
dec dword [ebp - 4]
jne 0x40598c
pop edi
pop ebx
shl eax, 5
sub ecx, eax
mov eax, dword [ebp + 8]
je 0x4059b5
mov dl, byte [eax]
xor byte [esi], dl
inc esi
inc eax
dec ecx
jne 0x4059ac
pop esi
leave
ret

Function at 0x405a05
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x41aaec
call fcn.0040de36
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
push 0x20019
xor edi, edi
push edi
push str.Software4sharedDownloadHelper
mov dword [ebp - 0x34], edi
push 0x80000001
mov dword [ebp - 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405ad1
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x3c]
push eax
push edi
lea eax, [ebp - 0x38]
push eax
push edi
push ebx
push dword [ebp - 0x34]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], edi
call esi
test eax, eax
jne 0x405ad1
cmp dword [ebp - 0x38], 1
jne 0x405ad1
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], ax
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x3c]
cmp eax, edi
jbe 0x405ab1
shr eax, 1
lea ecx, [ebp - 0x2c]
call fcn.00406028
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x405a95
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x3c]
push ecx
push eax
lea eax, [ebp - 0x38]
push eax
push edi
push ebx
push dword [ebp - 0x34]
call esi
mov eax, dword [ebp - 0x18]
dec eax
lea ecx, [ebp - 0x2c]
call fcn.00406028
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
call fcn.004018c4
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea esi, [ebp - 0x2c]
call fcn.00401b29
mov eax, dword [ebp - 0x30]
jmp 0x405ae0
mov esi, dword [ebp - 0x30]
push 0x41f72c
call fcn.004018a5
mov eax, esi
call fcn.0040de80
ret
Function at 0x405ae6
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 str.Software4sharedDownloadHelper
push 0x80000001
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x405b4e
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x405b18
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 0x405b41
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x405b50
xor al, al
pop ebx
leave
ret

Function at 0x405b53
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x202c
call fcn.00416af0
mov eax, dword [0x423414]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x41f708
xor esi, esi
push 0xa6
mov edi, ecx
push esi
mov dword [ebp - 0x200c], edi
mov dword [ebp - 0x2010], esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, esi
jne 0x405ba2
mov esi, edi
call fcn.00401892
mov eax, edi
jmp 0x405c9e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x2010], eax
cmp edi, esi
je 0x405c91
cmp eax, esi
je 0x405c91
xor eax, eax
push 0x1ffe
mov word [ebp - 0x2008], ax
lea eax, [ebp - 0x2006]
push esi
push eax
call fcn.0040e350
add esp, 0xc
lea ebx, [ebp - 0x202c]
call fcn.00405760
cmp dword [eax + 0x18], 8
jb 0x405c05
mov eax, dword [eax + 4]
jmp 0x405c08
add eax, 4
lea ecx, [ebp - 0x2008]
push ecx
push esi
push 0x41f718
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
push 1
lea esi, [ebp - 0x202c]
call fcn.00401b29
lea eax, [ebp - 0x2008]
push str..tmp
push eax
call fcn.0040d05e
push 0x41f72c
push 2
push eax
call fcn.0040ce83
add esp, 0x14
push str..exe
lea eax, [ebp - 0x2008]
push 0x1000
push eax
call fcn.0040d0bf
add esp, 0xc
push edi
mov edi, dword [ebp - 0x2010]
lea eax, [ebp - 0x2008]
push eax
call fcn.00405922
mov esi, dword [ebp - 0x200c]
pop ecx
pop ecx
test al, al
je 0x405c97
lea eax, [ebp - 0x2008]
push eax
call fcn.004018a5
jmp 0x405c9c
mov esi, dword [ebp - 0x200c]
call fcn.00401892
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c34a
leave
ret
Function at 0x405cad
Capabilities:
Get common file path
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b231
mov eax, dword fs:[0]
push eax
mov eax, 0x2050
call fcn.00416af0
mov eax, dword [0x423414]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x201c], eax
lea eax, [ebp - 0x2040]
xor ebx, ebx
push eax
mov esi, ecx
mov dword [ebp - 0x2020], ebx
call fcn.00406076
push ebx
push ebx
push 3
push ebx
xor edi, edi
inc edi
push edi
push 0x80000000
mov dword [ebp - 4], edi
push esi
mov dword [ebp - 0x2028], ebx
mov dword [ebp - 0x2024], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2018], eax
mov byte [ebp - 4], 2
cmp eax, 0xffffffff
je 0x405d45
lea ecx, [ebp - 0x2028]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2024], eax
push dword [ebp - 0x2024]
lea ecx, [ebp - 0x2040]
push esi
call fcn.00405866
pop ecx
pop ecx
test al, al
je 0x405e8e
mov esi, dword [ebp - 0x2030]
sub esi, dword [ebp - 0x2034]
push 0x41f168
lea eax, [ebp - 0x2040]
call fcn.00406157
mov ecx, esi
call fcn.00405972
xor eax, eax
mov word [ebp - 0x2014], ax
mov dword [esp], 0x1ffe
lea eax, [ebp - 0x2012]
push ebx
push eax
call fcn.0040e350
add esp, 0xc
lea ebx, [ebp - 0x205c]
call fcn.00405760
cmp dword [eax + 0x18], 8
jb 0x405dba
mov eax, dword [eax + 4]
jmp 0x405dbd
add eax, 4
lea ecx, [ebp - 0x2014]
push ecx
push 0
push 0x41f73c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push edi
lea esi, [ebp - 0x205c]
call fcn.00401b29
lea eax, [ebp - 0x2014]
push str..tmp
push eax
call fcn.0040d05e
push 0x41f72c
push 2
push eax
call fcn.0040ce83
add esp, 0x14
push str..exe
lea eax, [ebp - 0x2014]
push 0x1000
push eax
call fcn.0040d0bf
mov edi, dword [ebp - 0x2030]
sub edi, dword [ebp - 0x2034]
add esp, 0xc
lea eax, [ebp - 0x2040]
call fcn.00406157
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.00405922
pop ecx
pop ecx
test al, al
je 0x405e89
mov esi, dword [ebp - 0x201c]
lea eax, [ebp - 0x2014]
push eax
call fcn.004018a5
cmp dword [ebp - 0x2018], 0xffffffff
mov dword [ebp - 0x2020], 1
je 0x405e75
push dword [ebp - 0x2018]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x2040]
push eax
mov byte [ebp - 4], 0
call fcn.004060ac
mov eax, esi
jmp 0x405ece
xor edi, edi
inc edi
xor ebx, ebx
mov esi, dword [ebp - 0x201c]
push 0x41f72c
call fcn.004018a5
cmp dword [ebp - 0x2018], 0xffffffff
mov dword [ebp - 0x2020], edi
je 0x405eb9
push dword [ebp - 0x2018]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x2040]
push eax
mov byte [ebp - 4], bl
call fcn.004060ac
mov eax, dword [ebp - 0x201c]
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.0040c34a
leave
ret
Function at 0x40783a
Capabilities:
Create http request

Disassembly:
push 0
mov eax, 0x41a8aa
call fcn.0040ddcd
mov ebx, dword [ebp + 8]
push dword [ebp + 0xc]
mov esi, ebx
call fcn.004018c4
mov eax, dword [ebp + 0x10]
push dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], edi
lea esi, [ebx + 0x20]
mov dword [ebx + 0x1c], eax
call fcn.004018c4
mov eax, dword [ebp + 0x14]
or dword [ebx + 0x40], 0xffffffff
mov dword [ebx + 0x3c], eax
lea eax, [ebx + 0x54]
push eax
mov dword [ebx + 0x44], edi
mov dword [ebx + 0x48], edi
mov dword [ebx + 0x4c], edi
mov dword [ebx + 0x50], edi
call fcn.0040804e
lea eax, [ebx + 0x6c]
push eax
call fcn.0040804e
lea eax, [ebx + 0x84]
push eax
call fcn.0040804e
mov eax, dword [ebp + 0x1c]
mov byte [ebp - 4], 4
mov dword [ebx + 0xa0], eax
mov eax, dword [ebp + 0x20]
push 0x2000
mov dword [ebx + 0xa4], eax
mov al, byte [ebp + 0x18]
lea esi, [ebx + 0xe0]
push edi
push esi
mov dword [ebx + 0xa8], edi
mov dword [ebx + 0xac], edi
mov dword [ebx + 0xb0], edi
mov dword [ebx + 0xb4], edi
mov byte [ebx + 0x20e0], 0
mov byte [ebx + 0x20e1], 1
mov byte [ebx + 0x20e2], al
call fcn.0040e350
add esp, 0xc
lea edx, [ebx + 0xb8]
push 0xa
xor eax, eax
pop ecx
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x3c]
mov dword [ebx + 0xcc], esi
xor esi, esi
mov dword [edx], 0x28
mov dword [ebx + 0xd0], 0x2000
cmp eax, esi
je 0x407928
mov dword [eax + 4], ebx
push 0x10000000
push esi
push esi
push esi
push 0x41f7a8
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebx + 0x4c], eax
cmp eax, esi
je 0x407957
push 0x407e5b
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov ecx, ebx
call fcn.00407cf0
jmp 0x407965
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebx
call fcn.00407ad5
mov eax, ebx
call fcn.0040de6c
ret 0x1c

Function at 0x408226
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3f90]
mov eax, 0x4010
call fcn.00416af0
mov eax, dword [0x423414]
xor eax, ebp
mov dword [ebp + 0x3f8c], eax
mov eax, dword [ebp + 0x3f98]
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push eax
mov dword [ebp - 0x80], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x408297
push 2
push esi
push 0xffffc000
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 0x80]
push eax
push 0x4000
lea eax, [ebp - 0x74]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], esi
call fcn.004082d6
push dword [ebp - 0x78]
mov edx, dword [ebp - 0x7c]
mov ecx, ebx
call fcn.0040839c
mov ecx, dword [ebp + 0x3f8c]
pop edi
xor ecx, ebp
pop esi
call fcn.0040c34a
add ebp, 0x3f90
leave
ret 4
Function at 0x409fdd
Capabilities:
Hide graphical window

Disassembly:
push 0x1c
mov eax, 0x41b418
call fcn.0040ddcd
mov edi, ecx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push 0x236
mov esi, ebx
call fcn.00406b43
and dword [ebp - 4], 0
mov eax, dword [ebx + 4]
push 0x231
push eax
mov dword [ebx], 0x41fb58
call dword [sym.imp.USER32.dll_LoadBitmapW]
push eax
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
fld dword [0x420000]
push 1
push 1
push ecx
fstp dword [esp]
mov esi, 0x13cc
push esi
push dword [ebx + 8]
mov dword [ebx + 0x10], eax
call fcn.00409fb3
fld dword [0x420014]
add esp, 0x14
push 0
push 0
push ecx
fstp dword [esp]
push 0x13db
push dword [ebx + 8]
call fcn.00409fb3
add esp, 0x14
cmp dword [edi + 0x18], 8
jb 0x40a068
mov edi, dword [edi + 4]
jmp 0x40a06b
add edi, 4
mov eax, dword [ebx + 8]
push esi
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, eax
call fcn.00404ee7
xor esi, esi
push esi
push dword [ebx + 8]
mov byte [ebx + 0x35], 0
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00408f5d
lea ecx, [ebp - 0x28]
call fcn.0040104a
cmp dword [eax + 0x14], esi
push esi
push 1
lea esi, [ebp - 0x28]
sete byte [ebp + 0xf]
call fcn.00401b29
cmp byte [ebp + 0xf], 0
push 0
je 0x40a0bb
push 0x4241e8
jmp 0x40a0c0
push 0x4241ec
push 0x18aa1
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, ebx
call fcn.0040de6c
ret 8

Function at 0x40a332
Capabilities:
Delete file

Disassembly:
push 0x24
mov eax, 0x41a9b0
call fcn.0040de36
mov edi, ecx
mov dword [ebp - 0x30], edi
mov dword [edi], 0x41fbfc
mov dword [edi + 0x38], 0x41fc14
mov dword [ebp - 4], 5
mov eax, dword [edi + 0xa0]
test eax, eax
je 0x40a3cf
and dword [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
mov byte [ebp - 4], 6
cmp dword [eax + 0x40], 3
je 0x40a38f
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
lea eax, [edi + 0x84]
push ecx
xor ebx, ebx
call fcn.00401922
mov esi, dword [edi + 0xa0]
test esi, esi
je 0x40a3a6
push esi
call fcn.0040796f
push esi
call fcn.0040c3d6
pop ecx
cmp dword [ebp - 0x18], 0
je 0x40a3bf
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40a3b8
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00401b29
mov eax, dword [edi + 0xe8]
test eax, eax
je 0x40a3df
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0
push 1
lea esi, [edi + 0xec]
mov byte [ebp - 4], 4
call fcn.00401b29
push 0
push 1
lea esi, [edi + 0xcc]
mov byte [ebp - 4], 3
call fcn.00401b29
push 0
push 1
lea esi, [edi + 0xb0]
mov byte [ebp - 4], 2
call fcn.00401b29
lea ecx, [edi + 0x40]
mov byte [ebp - 4], 1
call fcn.0040b2a8
or dword [ebp - 4], 0xffffffff
mov ecx, edi
mov dword [edi + 0x38], 0x41fb30
call fcn.00406be9
call fcn.0040de80
ret
Function at 0x40c34a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x423414]
jne 0x40c354
repz ret
jmp fcn.0040e242

Function at 0x415a83
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040ece7
and dword [ebp - 4], 0
cmp dword [0x4250a8], 0
mov ebx, eax
jne 0x415b34
push 0x41d5ec
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x415be5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41d5e0
push edi
call esi
test eax, eax
je 0x415be5
push eax
call fcn.0040ec75
mov dword [esp], 0x41d5d0
push edi
mov dword [0x4250a8], eax
call esi
push eax
call fcn.0040ec75
mov dword [esp], 0x41d5bc
push edi
mov dword [0x4250ac], eax
call esi
push eax
call fcn.0040ec75
mov dword [esp], 0x41d5a0
push edi
mov dword [0x4250b0], eax
call esi
push eax
call fcn.0040ec75
pop ecx
mov dword [0x4250b8], eax
test eax, eax
je 0x415b34
push 0x41d588
push edi
call esi
push eax
call fcn.0040ec75
pop ecx
mov dword [0x4250b4], eax
mov eax, dword [0x4250b4]
cmp eax, ebx
je 0x415b8c
cmp dword [0x4250b8], ebx
je 0x415b8c
push eax
call fcn.0040ecf0
push dword [0x4250b8]
mov esi, eax
call fcn.0040ecf0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x415b8c
test edi, edi
je 0x415b8c
call esi
test eax, eax
je 0x415b83
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x415b83
test byte [ebp - 0xc], 1
jne 0x415b8c
or dword [ebp + 0x10], 0x200000
jmp 0x415bc5
mov eax, dword [0x4250ac]
cmp eax, ebx
je 0x415bc5
push eax
call fcn.0040ecf0
pop ecx
test eax, eax
je 0x415bc5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x415bc5
mov eax, dword [0x4250b0]
cmp eax, ebx
je 0x415bc5
push eax
call fcn.0040ecf0
pop ecx
test eax, eax
je 0x415bc5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4250a8]
call fcn.0040ecf0
pop ecx
test eax, eax
je 0x415be5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x415be7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret