joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4eeb80
Capabilities:
Hash data using sha224
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ebp - 0x30], edx
mov dword [ecx + 0xc], 0
push ebx
push esi
push edi
test edx, edx
jne 0x4eec15
mov eax, 0x137e2179
mov dword [ebp - 0x20], 0x2b3e6c1f
mov esi, 0x5be0cd19
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esi
mov edi, 0xfb41bd6b
mov ebx, 0x1f83d9ab
mov dword [ebp - 0x24], 0x9b05688c
mov dword [ebp - 0x1c], 0x510e527f
mov edx, 0xade682d1
mov dword [ebp - 0x14], 0x5f1d36f1
mov eax, 0xfe94f82b
mov dword [ebp - 0x18], 0xa54ff53a
mov esi, 0xf3bcc908
mov dword [ebp - 0x10], 0x3c6ef372
mov dword [ebp - 8], 0x84caa73b
mov dword [ebp - 0xc], 0xbb67ae85
mov dword [ebp - 4], 0x6a09e667
jmp 0x4eec7d
mov eax, 0xbefa4fa4
mov dword [ebp - 0x20], 0x68581511
mov esi, 0x47b5481d
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esi
mov edi, 0x64f98fa7
mov ebx, 0xdb0c2e0d
mov dword [ebp - 0x24], 0x8eb44a87
mov edx, 0xffc00b31
mov dword [ebp - 0x1c], 0x67332667
mov dword [ebp - 0x14], 0xf70e5939
mov eax, 0x3070dd17
mov dword [ebp - 0x18], 0x152fecd8
mov esi, 0xc1059ed8
mov dword [ebp - 0x10], 0x9159015a
mov dword [ebp - 8], 0x367cd507
mov dword [ebp - 0xc], 0x629a292a
mov dword [ebp - 4], 0xcbbb9d5d
mov dword [ecx + 0x10], esi
mov esi, dword [ebp - 4]
mov dword [ecx + 0x14], esi
mov esi, dword [ebp - 8]
mov dword [ecx + 0x18], esi
mov esi, dword [ebp - 0xc]
mov dword [ecx + 0x1c], esi
mov esi, dword [ebp - 0x2c]
mov dword [ecx + 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 0x18]
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp - 0x28]
mov dword [ecx + 0x30], edx
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 0x34], edx
mov edx, dword [ebp - 0x20]
mov dword [ecx + 0x38], edx
mov edx, dword [ebp - 0x24]
mov dword [ecx + 0x3c], edx
mov edx, dword [ebp - 0x30]
mov dword [ecx + 0x40], edi
mov dword [ecx + 0x44], ebx
mov dword [ecx + 0x48], eax
pop edi
mov dword [ecx + 0x4c], esi
pop esi
mov dword [ecx + 0xd0], edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f0990
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
mov eax, dword [0x51300c]
xor eax, esp
mov dword [esp + 0x5c], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x1c]
push edi
mov edi, dword [ebp + 0x10]
push 0x40
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push dword [ebp + 0xc]
mov edx, esi
mov dword [esp + 0x18], 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0x67452301
mov dword [esp + 0x24], 0xefcdab89
mov dword [esp + 0x28], 0x98badcfe
mov dword [esp + 0x2c], 0x10325476
call fcn.004f07c0
add esp, 0x10
lea ecx, [esp + 8]
mov edx, edi
call fcn.004f0870
mov ecx, 0x58
lea eax, [esp + 8]
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4f0a10
mov ecx, dword [esp + 0x64]
pop edi
pop esi
xor ecx, esp
call fcn.004f1f57
mov esp, ebp
pop ebp
ret
Function at 0x403f40
Capabilities:
Copy file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x485370]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x208
mov dword [ebp - 0x260], eax
call fcn.00419ceb
add esp, 4
push 0x208
mov ebx, eax
call fcn.00419ceb
add esp, 4
push 0x208
mov dword [ebp - 0x268], eax
call fcn.00419ceb
add esp, 4
push 0x208
mov dword [ebp - 0x264], eax
call fcn.00419ceb
add esp, 4
push 0x208
mov esi, eax
call fcn.00419ceb
mov ecx, dword [ebp - 0x268]
add esp, 4
push 5
push ecx
mov edi, eax
call fcn.004119b0
mov edx, dword [ebp - 0x260]
push 0x479d80
push edx
push 0x479d98
push 0x104
push ebx
call fcn.0045150c
mov eax, dword [ebp - 0x264]
add esp, 0x1c
push ebx
push 0x104
push eax
call fcn.0045152a
mov edx, dword [ebp - 0x264]
add esp, 0xc
lea eax, [edx - 2]
lea ecx, [ecx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x404000
mov ecx, dword [0x479db0]
mov dword [eax], ecx
mov ecx, dword [0x479db4]
mov dword [eax + 4], ecx
mov cx, word [0x479db8]
mov word [eax + 8], cx
lea eax, [ebp - 0x25c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x260], eax
cmp eax, 0xffffffff
jne 0x404056
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004501c4
mov esp, ebp
pop ebp
ret 4
cmp word [ebp - 0x230], 0x2e
je 0x4040bb
lea ecx, [ebp - 0x230]
push ecx
push ebx
push str._s_s
push 0x104
push esi
call fcn.0045150c
mov eax, dword [ebp - 0x268]
add esp, 0x14
lea edx, [ebp - 0x230]
push edx
push eax
push str._s_s
push 0x104
push edi
call fcn.0045150c
add esp, 0x14
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push 0
push edi
push esi
test eax, eax
je 0x4040b5
call fcn.0040c730
add esp, 0xc
jmp 0x4040bb
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [ebp - 0x260]
lea ecx, [ebp - 0x25c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404056
mov eax, dword [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call fcn.004514d7
add esp, 4
push ebx
call fcn.004514d7
mov ecx, dword [ebp - 0x268]
add esp, 4
push ecx
call fcn.004514d7
add esp, 4
push edi
call fcn.004514d7
mov edx, dword [ebp - 0x264]
add esp, 4
push edx
call fcn.004514d7
mov ecx, dword [ebp - 8]
add esp, 4
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004501c4
mov esp, ebp
pop ebp
ret 4
Function at 0x404c30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404c48
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404c7a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x404c76
cmp esi, eax
jae 0x404c7a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404c68
cmp esi, eax
jb 0x404c80
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x405be0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push eax
mov dword [esi], vtable.DownWrapper.0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
test eax, eax
jne 0x405c0d
push 0x480a1c
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], str.can_not_load_xldl.dll
call fcn.00453748
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XL_Init
push eax
call edi
mov edx, dword [esi + 4]
push str.XL_UnInit
push edx
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
push str.XL_CreateTask
push eax
call edi
mov ecx, dword [esi + 4]
push str.XL_DeleteTask
push ecx
mov dword [esi + 0x10], eax
call edi
mov edx, dword [esi + 4]
push str.XL_StartTask
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 4]
push str.XL_StopTask
push eax
call edi
mov ecx, dword [esi + 4]
push str.XL_QueryTaskInfo
push ecx
mov dword [esi + 0x1c], eax
call edi
mov edx, dword [esi + 4]
push str.XL_QueryTaskInfoEx
push edx
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x24], eax
mov eax, dword [esi + 4]
push str.XL_SetSpeedLimit
push eax
call edi
mov ecx, dword [esi + 4]
push str.XL_SetUploadSpeedLimit
push ecx
mov dword [esi + 0x28], eax
call edi
mov edx, dword [esi + 4]
push str.XL_DelTempFile
push edx
mov dword [esi + 0x2c], eax
call edi
mov dword [esi + 0x30], eax
mov eax, dword [esi + 4]
push str.XL_SetProxy
push eax
call edi
mov ecx, dword [esi + 4]
push str.XL_SetUserAgent
push ecx
mov dword [esi + 0x34], eax
call edi
mov edx, dword [esi + 4]
push str.XL_GetFileSizeWithUrl
push edx
mov dword [esi + 0x38], eax
call edi
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 4]
push str.XL_ParseThunderPrivateUrl
push eax
call edi
mov ecx, dword [esi + 4]
push str.XL_SetAdditionInfo
push ecx
mov dword [esi + 0x40], eax
call edi
mov dword [esi + 0x44], eax
mov edx, dword [esi + 4]
push str.XL_SetFileIdAndSize
push edx
call edi
mov dword [esi + 0x48], eax
mov eax, esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x407ea0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d732
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x485370]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], 0
call fcn.0041bf6d
mov ecx, eax
mov eax, dword [ebx + 4]
mov esi, ebx
call fcn.00407e00
call fcn.004090b0
mov ecx, dword [ebx + 0x35c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x2c]
push 0x47a6d4
call edx
mov eax, dword [ebx + 4]
push 0
push 0
push eax
push 0x407c30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, 0x488168
call fcn.0040eea0
push 0x10
call fcn.004507d8
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x407fa0
lea esi, [ebp - 0x1c]
mov eax, 0x488168
call fcn.0040f420
mov byte [ebp - 4], 1
mov ecx, dword [0x48816c]
mov edx, dword [eax]
mov esi, dword [0x488170]
mov dword [ebp - 0x18], ecx
mov ecx, dword [0x488168]
push edi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], edx
call fcn.00405070
mov ecx, dword [ebp - 0x14]
lea eax, [edi + 4]
push eax
mov dword [ebp - 4], 2
call fcn.00405070
lea ecx, [edi + 8]
push ecx
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00405070
lea edx, [edi + 0xc]
push edx
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.00405070
jmp 0x407fa2
xor edi, edi
mov dword [ebp - 4], 0xffffffff
test byte [ebp - 0x10], 1
mov dword [0x488134], edi
je 0x407fd4
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407fd4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx + 0x3c4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1b4]
push 1
call eax
mov ecx, dword [ebx + 4]
push 0
push 0
push ecx
push 0x407c00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xc
call fcn.004507d8
mov esi, eax
add esp, 4
test esi, esi
je 0x40803e
movzx edx, word [0x488190]
mov eax, dword [section..data]
mov edi, dword [0x48819c]
mov dword [ebp - 0x18], edx
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [esi], eax
mov ax, word [ebp - 0x18]
mov dword [esi + 4], edi
mov word [esi + 8], ax
jmp 0x408040
xor esi, esi
mov ecx, dword [ebx + 4]
push 0
push 0x7d0
push 0x458
push ecx
mov dword [0x488120], esi
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, ebx
call fcn.00408680
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408f20
Capabilities:
Create process on windows
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d5c8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x485370]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [edi + 0x36c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1b4]
push 3
call edx
lea esi, [ebp - 0x10]
call fcn.0040f3f0
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 7
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408f9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
jne 0x408fc7
mov ecx, dword [edi + 4]
push 0
push 0x47a5b8
push 0x47a940
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x20]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
push 0
push 0x400
push eax
push ecx
call fcn.0045f9d0
push 0
push 0x400
push edx
push eax
call fcn.0045f9d0
test edx, edx
jg 0x40902c
jl 0x408fff
cmp eax, 0x64
jae 0x40902c
mov edx, dword [edi + 4]
push 0x30
push 0x47a5ec
push 0x47a978
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x14]
call fcn.0040f3f0
mov dword [ebp - 4], 0
mov eax, dword [eax]
push eax
call fcn.0040a8a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409070
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi + 0x3c0]
push str.http:__www.xitongwangguo.com_softcon_cnzztj.php
call fcn.00427cbc
call fcn.0040c410
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push str.cmd__c_shutdown__r__t_0
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a9b0
Capabilities:
Check http status code
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x40a9e0
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
push edi
push 0
push 0x4000000
push 0
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
mov dword [ebp + 8], edi
push 0
test edi, edi
je 0x40aa5a
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
push 0x20000013
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
cmp dword [ebp - 8], 0xc8
je 0x40aa43
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push esi
call edi
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x400
call fcn.00419ceb
mov edi, eax
add esp, 4
test edi, edi
jne 0x40aa6f
mov eax, dword [ebp + 8]
push eax
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push esi
call edi
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx]
mov dword [ebp - 4], 0
test eax, eax
je 0x40aa8b
push eax
call fcn.00450267
add esp, 4
mov dword [ebx], 0
push 1
call fcn.004501d3
mov edx, dword [ebp + 8]
add esp, 4
lea ecx, [ebp - 4]
push ecx
push 0x400
push edi
push edx
mov dword [ebx], eax
mov esi, 1
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 4]
test eax, eax
je 0x40aaf4
mov ecx, dword [ebx]
add eax, esi
push eax
push ecx
call fcn.004528fe
mov edx, dword [ebp - 4]
push edx
mov dword [ebx], eax
lea eax, [eax + esi - 1]
push edi
push eax
call fcn.00453830
mov edx, dword [ebp + 8]
add esi, dword [ebp - 4]
add esp, 0x14
lea ecx, [ebp - 4]
push ecx
push 0x400
push edi
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40aab7
mov eax, dword [ebx]
push edi
mov byte [eax + esi - 1], 0
call fcn.004514d7
mov ecx, dword [ebp + 8]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 4
push ecx
call esi
mov edx, dword [ebp - 0x10]
push edx
call esi
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40ab30
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x485370]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0
push 0
push 0
push 0
mov esi, ecx
mov ebx, edx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov dword [ebp - 0x40c], edi
push 0
test edi, edi
jne 0x40ab82
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004501c4
mov esp, ebp
pop ebp
ret
push 0x4000000
push 0
push 0
push esi
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
test esi, esi
jne 0x40abbb
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call esi
push edi
call esi
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004501c4
mov esp, ebp
pop ebp
ret
push 0x400
call fcn.00419ceb
add esp, 4
test eax, eax
jne 0x40abee
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
pop edi
pop esi
mov eax, 0xfffffffd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004501c4
mov esp, ebp
pop ebp
ret
push 0
push 0x80
push 2
push 0
push 0
push 0x1f01ff
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40ac2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov eax, 0xfffffffc
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004501c4
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x408]
push eax
push 0x400
lea ecx, [ebp - 0x404]
push ecx
push esi
call ebx
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x40ac88
push 0
lea edx, [ebp - 0x410]
push edx
push eax
lea eax, [ebp - 0x404]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x408]
push ecx
push 0x400
lea edx, [ebp - 0x404]
push edx
push esi
call ebx
mov eax, dword [ebp - 0x408]
test eax, eax
jne 0x40ac50
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov eax, dword [ebp - 0x40c]
push eax
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004501c4
mov esp, ebp
pop ebp
ret
Function at 0x40ad10
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, 0x104
or ecx, edx
push edi
mov edi, dword [0x486640]
jge 0x40ad3d
mov eax, 0x104
mov ecx, esi
call fcn.00404f20
mov eax, dword [esi]
push edi
push 0x104
push eax
mov eax, dword [ebp + 8]
push 0x47af60
push str.LastBack
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40ad73
push ecx
push eax
call fcn.004528bd
add esp, 8
test eax, eax
js 0x40ad8c
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40ad8c
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, edi
pop edi
pop ebp
ret 4
push 0x80070057
call fcn.004051c0
int3

Function at 0x40ba90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c828
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x485370]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x40bb98
cmp byte [edi + 0x49], 0
je 0x40bb98
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x40bb8c
lea esi, [ebp - 0x2c]
call fcn.0040b900
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x40bb03
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x40bb2c
dec eax
je 0x40bb30
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x40bb87
jmp 0x40bb93
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x40bb40
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x40bb69
cmp ebx, 0x10
jae 0x40bb4f
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00450f08
add esp, 0x10
cmp esi, eax
jne 0x40bb84
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x40bb90
test esi, esi
jne 0x40baf7
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.004026e0
jmp 0x40baf1
lea ecx, [ebp - 0x2c]
call fcn.00403ef0
xor al, al
jmp 0x40bb9a
lea ecx, [ebp - 0x2c]
call fcn.00403ef0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004501c4
mov esp, ebp
pop ebp
ret
Function at 0x40bd50
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Hide graphical window
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x40be16
mov eax, dword [ebp + 8]
push esi
push eax
call fcn.0041c08a
push 0xadc
call fcn.004507d8
add esp, 8
test eax, eax
je 0x40bd88
push eax
call fcn.0040bbc0
mov esi, eax
jmp 0x40bd8a
xor esi, esi
push edi
push str.ORMONEMUTEX
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40bdce
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push str.F1423ACA_EB23_40F0_B50A_7F4E26EFFD1F
call dword [sym.imp.USER32.dll_FindWindowW]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
test esi, esi
je 0x40be0f
push 0
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push 0x100
push 0x96c80000
push 0x47a694
push 0
mov ecx, esi
call fcn.0041be5b
mov ecx, esi
call fcn.0041ba35
mov ecx, esi
call fcn.0041b95c
call dword [sym.imp.ole32.dll_CoUninitialize]
pop esi
xor eax, eax
pop ebp
ret 0x10

Function at 0x40bee0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c7f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x485370]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
or ebx, 0xffffffff
mov ecx, section..data
mov dword [ebp - 0x14], ebx
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
movzx ecx, word [eax + 8]
push ecx
push 0x47b1a0
lea edi, [ebp - 0x10]
call fcn.00404aa0
mov esi, dword [ebp - 0x10]
add esp, 8
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
jne 0x40bf94
mov dword [ebp - 4], ebx
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bf7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x14]
mov dword [ebp - 4], ebx
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x40bfad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4