joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402d00
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x1ac]
sub esp, 0x22c
mov eax, dword [0x4c2f90]
xor eax, ebp
mov dword [ebp + 0x1a8], eax
mov eax, dword [ebp + 0x1b4]
push ebx
push esi
push edi
push 0x4b28f8
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x80], eax
call fcn.00401903
lea eax, [ebp - 0x7c]
push eax
call fcn.00402f6a
mov ebx, 0x208
push ebx
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.004764d0
mov eax, dword [ebp - 0x78]
add esp, 0x10
cmp dword [ebp - 0x64], 8
jae 0x402d5d
lea eax, [ebp - 0x78]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x4b2788
push eax
lea eax, [ebp - 0x60]
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x60]
push eax
call edi
test eax, eax
lea eax, [ebp - 0x60]
je 0x402dce
push 0x4b27c8
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x60]
push eax
call fcn.00401a41
mov ecx, dword [ebp - 0x80]
push 0x4b27d0
call fcn.0040198a
push 0
push 1
lea ecx, [ebp - 0x7c]
call fcn.00401a65
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x1a8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047654a
add ebp, 0x1ac
leave
ret
push ebx
push 0
push eax
call fcn.004764d0
mov eax, dword [ebp - 0x78]
add esp, 0xc
cmp dword [ebp - 0x64], 8
jae 0x402de6
lea eax, [ebp - 0x78]
push 0x4b27d4
push eax
lea eax, [ebp - 0x60]
push eax
call esi
lea eax, [ebp - 0x60]
push eax
call edi
test eax, eax
je 0x402e01
lea eax, [ebp - 0x60]
jmp 0x402d82
lea eax, [ebp - 0x7c]
push eax
call fcn.00403c1c
mov ecx, eax
call fcn.00403c47
push ebx
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.004764d0
mov eax, dword [ebp - 0x78]
add esp, 0xc
cmp dword [ebp - 0x64], 8
jae 0x402e2c
lea eax, [ebp - 0x78]
push 0x4b2788
push eax
lea eax, [ebp - 0x60]
push eax
call esi
lea eax, [ebp - 0x60]
push eax
call edi
test eax, eax
lea eax, [ebp - 0x60]
jne 0x402d82
push ebx
push 0
push eax
call fcn.004764d0
mov eax, dword [ebp - 0x78]
add esp, 0xc
cmp dword [ebp - 0x64], 8
jae 0x402e61
lea eax, [ebp - 0x78]
push 0x4b27d4
push eax
lea eax, [ebp - 0x60]
push eax
call esi
lea eax, [ebp - 0x60]
push eax
call edi
test eax, eax
je 0x402eb5
push 0x4b27c8
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x60]
push eax
call fcn.00401a41
mov ecx, dword [ebp - 0x80]
push 0x4b27d0
call fcn.0040198a
xor esi, esi
inc esi
push 0
push 1
lea ecx, [ebp - 0x7c]
call fcn.00401a65
mov eax, esi
jmp 0x402db6
xor esi, esi
jmp 0x402ea2
Function at 0x402eb9
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x1a8]
sub esp, 0x228
mov eax, dword [0x4c2f90]
xor eax, ebp
mov dword [ebp + 0x1a4], eax
push esi
mov esi, ecx
push 0x4b28f8
lea ecx, [ebp - 0x80]
call fcn.00401903
lea eax, [ebp - 0x80]
push eax
call fcn.00402d00
pop ecx
test eax, eax
je 0x402f66
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x62]
push eax
call fcn.004764d0
mov eax, dword [ebp - 0x7c]
add esp, 0xc
cmp dword [ebp - 0x68], 8
jae 0x402f16
lea eax, [ebp - 0x7c]
push str.download_interface.dll
push eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402f66
lea eax, [ebp - 0x64]
push eax
mov ecx, esi
call fcn.00401a41
xor esi, esi
inc esi
push 0
push 1
lea ecx, [ebp - 0x80]
call fcn.00401a65
mov ecx, dword [ebp + 0x1a4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0047654a
add ebp, 0x1a8
leave
ret
xor esi, esi
jmp 0x402f42

Function at 0x402f6a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x390]
sub esp, 0x410
mov eax, dword [0x4c2f90]
xor eax, ebp
mov dword [ebp + 0x38c], eax
push esi
mov esi, dword [ebp + 0x398]
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.004764d0
or dword [ebp - 0x78], 0xffffffff
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
push str.instdir
push str.SOFTWAREThunder_NetworkThunderOem_thunder_backwnd
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], 0x200
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x403018
lea eax, [ebp - 0x74]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x402fda
sub eax, edx
sar eax, 1
je 0x403018
lea eax, [ebp - 0x74]
push eax
mov ecx, esi
call fcn.00401a41
mov eax, dword [esi + 0x14]
dec eax
push eax
mov ecx, esi
call fcn.00416ac0
cmp word [eax], 0x5c
je 0x403013
push 0x4b27d0
mov ecx, esi
call fcn.0040198a
xor eax, eax
inc eax
jmp 0x40301a
xor eax, eax
mov ecx, dword [ebp + 0x38c]
xor ecx, ebp
pop esi
call fcn.0047654a
add ebp, 0x390
leave
ret
Function at 0x403030
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x390]
sub esp, 0x410
mov eax, dword [0x4c2f90]
xor eax, ebp
mov dword [ebp + 0x38c], eax
push esi
mov esi, dword [ebp + 0x398]
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.004764d0
or dword [ebp - 0x78], 0xffffffff
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
push str.Path
push str.SOFTWAREThunder_NetworkXmp
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], 0x200
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4030c0
lea eax, [ebp - 0x74]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4030a0
sub eax, edx
sar eax, 1
je 0x4030c0
lea eax, [ebp - 0x74]
push eax
mov ecx, esi
call fcn.00401a41
xor eax, eax
inc eax
jmp 0x4030c2
xor eax, eax
mov ecx, dword [ebp + 0x38c]
xor ecx, ebp
pop esi
call fcn.0047654a
add ebp, 0x390
leave
ret

Function at 0x4031ed
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov ebx, eax
cmp dword [ebp + 8], esi
je 0x403278
cmp dword [ebp + 0xc], esi
je 0x403278
cmp ebx, esi
jle 0x403278
push esi
push 0x80
push 2
push esi
push esi
push 7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x403229
mov eax, 0x80004005
jmp 0x40327d
push edi
push esi
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor edi, edi
push esi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push ebx
add eax, edi
push eax
push dword [ebp - 4]
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403261
cmp dword [ebp + 8], esi
jle 0x403261
sub ebx, dword [ebp + 8]
add edi, dword [ebp + 8]
cmp ebx, esi
jg 0x403236
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x40326a
mov dword [eax], edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
jmp 0x40327d
mov eax, 0x86180008
pop esi
pop ebx
leave
ret

Function at 0x403281
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
push edi
mov eax, 0x80
push eax
push 3
push edi
push edi
push eax
push dword [ebp + 8]
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4032b1
mov eax, 0x80004005
jmp 0x4032ca
lea eax, [ebp + 0xc]
push eax
push ebx
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x403348
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jg 0x403365
mov eax, 0x80004005
jmp 0x4033e0
lea eax, [esi + 4]
push edi
push eax
call fcn.004752e5
pop ecx
mov edi, eax
push edi
push esi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4033a1
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x4b27d0
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x4033a8
mov eax, 0x80004005
jmp 0x4033df
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0xa]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [edx], ecx
mov edx, dword [eax + 8]
mov ecx, 0xffff
and edx, ecx
mov dword [esi], edx
movzx edx, word [eax + 0xe]
mov esi, dword [ebp + 0x14]
mov dword [esi], edx
mov eax, dword [eax + 0xc]
and eax, ecx
mov ecx, dword [ebp + 0x18]
push edi
mov dword [ecx], eax
call fcn.004761fc
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x403751
Capabilities:
Copy file

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x403769
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi]
sub esp, 0x14
push ebx
test ecx, ecx
je 0x4037e7
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
je 0x4037e7
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ebx, eax
mov eax, dword [esi]
push eax
push dword [eax + 0xc]
lea ecx, [ebp - 8]
call fcn.00415b29
jmp 0x4037c9
lea ecx, [ebp - 8]
call fcn.004039b4
cmp dword [eax + 0x18], 8
jb 0x4037b2
mov eax, dword [eax + 4]
jmp 0x4037b5
add eax, 4
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x403808
lea ecx, [ebp - 8]
call fcn.0040396e
mov eax, dword [esi]
push eax
push dword [eax + 0x10]
lea ecx, [ebp - 0x10]
call fcn.00415b29
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.00412119
test al, al
je 0x40379f
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x4037fd
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esi + 4]
push edi
call fcn.0040384f
pop ecx
pop ecx
pop ebx
leave
ret

Function at 0x40380b
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov dword [ebp + 0xc], esi
call fcn.00403a59
add esp, 0xc
test esi, esi
pop esi
je 0x40384b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40384b
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x40384f
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 8], 0
je 0x40387c
push dword [esp + 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40387c
push 4
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
ret
Function at 0x403a59
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x484
mov eax, dword [0x4c2f90]
xor eax, esp
mov dword [esp + 0x480], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
call fcn.00401903
mov eax, dword [esp + 0x28]
dec eax
push eax
lea ecx, [esp + 0x18]
call fcn.00416ac0
cmp word [eax], 0x5c
je 0x403ab0
push 0x4b27d0
lea ecx, [esp + 0x18]
call fcn.0040198a
push 0x4b2914
lea ecx, [esp + 0x18]
call fcn.0040198a
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x403acd
lea eax, [esp + 0x18]
lea ecx, [esp + 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x403b08
xor esi, esi
push 0
push 1
lea ecx, [esp + 0x1c]
call fcn.00401a65
mov ecx, dword [esp + 0x48c]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0047654a
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [esp + 0x284]
push 0
push eax
call fcn.004764d0
add esp, 0xc
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push 0x4b2918
lea eax, [esp + 0x60]
push eax
call edi
test eax, eax
je 0x403b96
push 0x4b27c8
lea eax, [esp + 0x60]
push eax
call edi
test eax, eax
je 0x403b96
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x288]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test byte [esp + 0x30], 0x10
je 0x403b8a
push esi
lea eax, [esp + 0x284]
push ebx
push eax
call fcn.00403a59
add esp, 0xc
cmp dword [ebx], 0
je 0x403b96
lea eax, [esp + 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x403b96
lea edi, [esp + 0x280]
call fcn.00403769
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403b1f
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
inc esi
jmp 0x403ae4
Function at 0x40789d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x790]
sub esp, 0x810
mov eax, dword [0x4c2f90]
xor eax, ebp
mov dword [ebp + 0x78c], eax
mov eax, dword [ebp + 0x798]
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push edi
mov edi, ecx
push str.HKCT
push edi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], 0x400
call esi
test eax, eax
je 0x407928
push str.HKEY_CLASSES_ROOT
push edi
call esi
test eax, eax
je 0x407928
push str.HKCU
push edi
call esi
test eax, eax
je 0x407921
push str.HKEY_CURRENT_USER
push edi
call esi
test eax, eax
je 0x407921
push str.HKLM
push edi
call esi
test eax, eax
je 0x40791a
push 0x4b2eec
push edi
call esi
test eax, eax
jne 0x407921
mov eax, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x40792d
mov eax, closesocket
jmp 0x40792d
mov eax, closesocket
lea ecx, [ebp - 0x7c]
push ecx
push 1
xor esi, esi
push esi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407971
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push esi
push dword [ebp - 0x80]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x7c]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x407971
cmp dword [ebp - 0x78], esi
jbe 0x407971
xor eax, eax
inc eax
jmp 0x407973
xor eax, eax
mov ecx, dword [ebp + 0x78c]
pop edi
xor ecx, ebp
pop esi
call fcn.0047654a
add ebp, 0x790
leave
ret

Function at 0x40b376
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x390]
sub esp, 0x410
mov eax, dword [0x4c2f90]
xor eax, ebp
mov dword [ebp + 0x38c], eax
mov eax, dword [ebp + 0x3a4]
push ebx
mov ebx, dword [ebp + 0x3a0]
push esi
mov esi, dword [ebp + 0x398]
push edi
mov edi, dword [ebp + 0x39c]
push 0x400
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.004764d0
or dword [ebp - 0x80], 0xffffffff
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push edi
push esi
mov dword [ebp - 0x7c], 0x200
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ecx, dword [ebp - 0x78]
pop edi
pop esi
pop ebx
test eax, eax
je 0x40b3f8
call fcn.0040387f
mov eax, 0x80004005
jmp 0x40b403
lea eax, [ebp - 0x74]
push eax
call fcn.00401a41
xor eax, eax
mov ecx, dword [ebp + 0x38c]
xor ecx, ebp
call fcn.0047654a
add ebp, 0x390
leave
ret

Function at 0x40b418
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x18], 8
mov ecx, dword [eax + 0x14]
jb 0x40b42a
mov eax, dword [eax + 4]
jmp 0x40b42d
add eax, 4
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
and eax, 0x80004005
ret
Function at 0x40b451
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x4c2f90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
push 0x400
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.004764d0
or dword [ebp - 0x408], 0xffffffff
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x40c]
mov dword [ebp - 0x410], 0x200
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x40b4d3
mov eax, dword [ebp + 0x18]
mov dword [esi], eax
mov eax, 0x80004005
jmp 0x40b4dd
mov eax, dword [ebp - 0x404]
mov dword [esi], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047654a
leave
ret
Function at 0x40c2fd
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x41c]
sub esp, 0x49c
mov eax, dword [0x4c2f90]
xor eax, ebp
mov dword [ebp + 0x418], eax
mov eax, dword [ebp + 0x424]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x428]
push esi
push edi
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x42c]
push 0x400
mov dword [ebp - 0x7c], eax
lea eax, [ebp + 0x18]
push 0
push eax
mov edi, ecx
call fcn.004764d0
add esp, 0xc
mov esi, 0x4b2eea
push esi
lea ecx, [ebp - 0x58]
call fcn.00402429
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40c35d
sub eax, ecx
lea ecx, [ebp - 0x58]
push ecx
sar eax, 1
push eax
push edi
call fcn.0040b681
add esp, 0xc
push esi
lea ecx, [ebp - 0x20]
call fcn.00402429
mov eax, ebx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40c387
sub eax, ecx
lea ecx, [ebp - 0x20]
push ecx
sar eax, 1
push eax
push ebx
call fcn.0040b681
add esp, 0xc
push esi
lea ecx, [ebp - 4]
call fcn.00402429
mov eax, dword [ebp - 0x7c]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40c3b2
sub eax, ecx
lea ecx, [ebp - 4]
push ecx
sar eax, 1
push eax
push dword [ebp - 0x7c]
call fcn.0040b681
add esp, 0xc
push esi
lea ecx, [ebp - 0x3c]
call fcn.00402429
mov eax, dword [ebp - 0x78]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40c3df
sub eax, ecx
lea ecx, [ebp - 0x3c]
push ecx
sar eax, 1
push eax
push dword [ebp - 0x78]
call fcn.0040b681
mov esi, dword [ebp - 0x38]
add esp, 0xc
push 0x10
pop eax
cmp dword [ebp - 0x24], eax
jae 0x40c40b
lea esi, [ebp - 0x38]
mov edx, dword [ebp]
cmp dword [ebp + 0x14], eax
jae 0x40c416
lea edx, [ebp]
mov ecx, dword [ebp - 0x1c]
cmp dword [ebp - 8], eax
jae 0x40c421
lea ecx, [ebp - 0x1c]
cmp dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x54]
jae 0x40c42c
lea eax, [ebp - 0x54]
push esi
push 0x3ff
lea esi, [ebp + 0x18]
push esi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x4b28f8
lea ecx, [ebp - 0x74]
call fcn.00401903
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40c451
sub eax, ecx
lea ecx, [ebp - 0x74]
push ecx
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.0040b5f9
mov ecx, dword [ebp - 0x80]
add esp, 0xc
push 0xffffffffffffffff
xor edi, edi
push edi
lea eax, [ebp - 0x74]
push eax
call fcn.004019ae
xor esi, esi
push edi
inc esi
push esi
lea ecx, [ebp - 0x74]
call fcn.00401a65
push edi
push esi
lea ecx, [ebp - 0x3c]
call fcn.004027fd
push edi
push esi
lea ecx, [ebp - 4]
call fcn.004027fd
push edi
push esi
lea ecx, [ebp - 0x20]
call fcn.004027fd
push edi
push esi
lea ecx, [ebp - 0x58]
call fcn.004027fd
mov ecx, dword [ebp + 0x418]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0047654a
add ebp, 0x41c
leave
ret
Function at 0x40c66e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4c2f90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push eax
push 0x400
lea eax, [ebp - 0x804]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
xor ecx, ecx
cmp ecx, eax
mov ecx, dword [ebp - 4]
sbb eax, eax
neg eax
mov dword [esi], eax
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0047654a
leave
ret
Function at 0x40d45d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 0x74]
call fcn.00401a41
push dword [ebp + 0xc]
lea ecx, [esi + 0x90]
call fcn.00401a41
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x70], eax
xor eax, eax
cmp dword [esi + 0x270], eax
jne 0x40d4aa
lea ecx, [ebp + 8]
push ecx
push eax
push esi
push 0x40d880
push eax
push eax
mov dword [ebp + 8], eax
call fcn.00477755
add esp, 0x18
mov dword [esi + 0x270], eax
xor eax, eax
inc eax
pop esi
pop ebp
ret 0xc

Function at 0x40d4b2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 0xc8]
call fcn.00401a41
xor eax, eax
lea ecx, [ebp + 8]
push ecx
push eax
push esi
push 0x40d948
push eax
push eax
mov dword [ebp + 8], eax
call fcn.00477755
add esp, 0x18
pop esi
pop ebp
ret 4

Function at 0x40daab
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, 0x3c
mov eax, dword [0x4c2f90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
mov esi, 0x1000
push esi
mov dword [ebp - 0x3c], eax
mov edi, ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call fcn.004752e5
push esi
push ebx
push eax
mov dword [ebp - 0x30], eax
call fcn.004764d0
add esp, 0x10
push ebx
lea ecx, [ebp - 0x20]
mov dword [ebp - 8], 0xf
call fcn.004027e1
push ebx
push 0x80
push 2
push ebx
push ebx
push 0xc0000000
push edi
mov byte [ebp - 0x21], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
je 0x40dba5
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x38], eax
cmp eax, ebx
je 0x40db82
push ebx
push 0x84000002
push ebx
push ebx
push dword [ebp - 0x3c]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x40db82
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x40db68
cmp dword [ebp - 0x28], ebx
je 0x40db7e
push ebx
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x28]
push eax
push esi
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call edi
test eax, eax
jne 0x40db4f
mov byte [ebp - 0x21], bl
jmp 0x40db82
mov byte [ebp - 0x21], 1
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x2c], ebx
je 0x40db9b
push dword [ebp - 0x2c]
call esi
cmp dword [ebp - 0x38], ebx
je 0x40dba5
push dword [ebp - 0x38]
call esi
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.004027fd
mov ecx, dword [ebp - 4]
movzx eax, byte [ebp - 0x21]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047654a
leave
ret