joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41045b
Capabilities:
Get disk information
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 0x208], ebx
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
push ebx
push ebx
push 3
push ebx
push 3
push Ordinal_2
push dword [esi + 4]
push str..PhysicalDrive_u
call fcn.0042f614
pop ecx
pop ecx
push eax
call dword [sym.imp.___total_physical_size__lu_MB_CreateFileA]
mov edi, eax
mov eax, dword [esi + 4]
inc eax
imul eax, eax, 0x18
push eax
push dword [esi + 8]
mov dword [ebp - 0x20c], edi
call fcn.0045366b
pop ecx
mov dword [esi + 8], eax
pop ecx
cmp edi, 0xffffffff
jne 0x4104f8
mov ecx, dword [esi + 4]
imul ecx, ecx, 0x18
mov dword [ecx + eax], ebx
mov dword [ecx + eax + 4], ebx
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
imul eax, eax, 0x18
inc dword [ebp - 0x208]
cmp dword [ebp - 0x208], 0xa
mov dword [eax + ecx + 8], ebx
jg 0x4105db
jmp 0x4105cb
push dword [esi + 4]
call fcn.0040e5e8
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
imul ecx, ecx, 0x18
mov dword [ecx + edx + 8], eax
push dword [esi + 4]
push str..PhysicalDrive_u_
call fcn.0042f614
pop ecx
pop ecx
push eax
call dword [sym.imp.___total_physical_size__lu_MB_GetDriveTypeA]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
imul ecx, ecx, 0x18
mov dword [ecx + edx + 0xc], eax
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
mov ecx, eax
imul ecx, ecx, 0x18
cmp dword [ecx + edx + 0xc], 2
jne 0x410575
push ebx
lea eax, [ebp - 0x210]
push eax
push 0x200
lea eax, [ebp - 0x204]
push eax
push edi
call dword [sym.imp.___total_physical_size__lu_MB_ReadFile]
test eax, eax
jne 0x410570
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
imul eax, eax, 0x18
mov dword [eax + ecx + 0x10], ebx
jmp 0x410588
push dword [esi + 4]
jmp 0x410576
push eax
call fcn.00415f41
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
imul ecx, ecx, 0x18
mov dword [ecx + edx + 0x10], eax
push edi
call fcn.0041036b
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
imul ecx, ecx, 0x18
push edi
mov dword [ecx + edx + 0x14], eax
call fcn.0041022e
mov ecx, dword [esi + 4]
mov edi, dword [esi + 8]
imul ecx, ecx, 0x18
mov dword [ecx + edi], eax
mov dword [ecx + edi + 4], edx
cmp edx, ebx
ja 0x4105b9
cmp eax, ebx
jbe 0x4105bf
mov dword [ebp - 0x208], ebx
push dword [ebp - 0x20c]
call dword [sym.imp.___total_physical_size__lu_MB_CloseHandle]
inc dword [esi + 4]
cmp dword [esi + 4], 0x3e8
jb 0x410482
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450b32
leave
ret 4
Function at 0x4105ec
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov dword [ebp - 0x114], eax
call fcn.0040fa0c
mov dword [ebp - 0x110], eax
cmp eax, 0xffffffff
je 0x4106df
mov esi, dword [sym.imp.___total_physical_size__lu_MB_DefineDosDeviceA]
xor ebx, ebx
inc ebx
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push str.DeviceHarddisk_uPartition_u
push eax
call fcn.00450c76
push dword [ebp - 0x110]
lea eax, [ebp - 0x10c]
push 0x46a8cc
push eax
call fcn.00450c76
add esp, 0x1c
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x10c]
push eax
push 1
call esi
test eax, eax
je 0x4106b1
movsx eax, byte [ebp - 0x10c]
push eax
push str.._c:
call fcn.0042f614
pop ecx
pop ecx
push eax
call fcn.0040e8b4
mov edi, eax
test edi, edi
je 0x4106a4
mov eax, dword [edi + 0x10]
cmp eax, dword [ebp + 0xc]
jne 0x41069d
mov eax, dword [edi + 0x14]
cmp eax, dword [ebp + 0x10]
je 0x4106bd
push edi
call fcn.0045038b
pop ecx
push 0
lea eax, [ebp - 0x10c]
push eax
push 2
call esi
inc ebx
cmp ebx, 0x64
jb 0x410628
jmp 0x4106fd
push 4
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x114]
call fcn.00451260
push edi
call fcn.0045038b
xor eax, eax
add esp, 0x10
inc eax
jmp 0x4106ff
push str.no_free_drive_letter_found_n
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push 0x5a7
push str.DRIVELIST
call fcn.0044dc85
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450b32
leave
ret 0x10
Function at 0x411431
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.___total_physical_size__lu_MB_GetTickCount]
cmp dword [0x4a32b8], esi
je 0x411455
call edi
sub eax, dword [0x4a32b4]
cmp eax, 0xc8
jb 0x4114a5
cmp dword [0x4821e0], esi
je 0x41146d
call fcn.0040e7b8
mov dword [0x4a32b0], eax
mov dword [0x4821e0], esi
mov eax, dword [0x4a32b8]
cmp eax, esi
je 0x411482
push eax
call fcn.0040ef81
mov dword [0x4a32b8], esi
push dword [ebp + 8]
cmp dword [0x4a32b0], esi
je 0x411494
call fcn.00410d8c
jmp 0x411499
call fcn.00410a23
mov dword [0x4a32b8], eax
call edi
mov dword [0x4a32b4], eax
mov eax, dword [0x4a32b8]
pop edi
pop esi
pop ebp
ret 4

Function at 0x411748
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp byte [0x4821e5], bl
je 0x41177a
push esi
mov esi, dword [sym.imp.___total_physical_size__lu_MB_CreateEventA]
push ebx
push ebx
push ebx
push ebx
mov byte [0x4821e5], bl
call esi
push ebx
push ebx
push ebx
push ebx
mov dword [0x4a32c8], eax
call esi
mov dword [0x4a32c0], eax
pop esi
cmp byte [0x4821e4], bl
je 0x41179d
push ebx
push ebx
push ebx
push 0x4116a7
push ebx
push ebx
mov byte [0x4821e4], bl
call dword [sym.imp.___total_physical_size__lu_MB_CreateThread]
mov dword [0x4a32d0], eax
mov eax, dword [ebp + 8]
push dword [0x4a32c8]
mov dword [0x4a32c4], eax
mov dword [0x4a32bc], ebx
call dword [sym.imp.___total_physical_size__lu_MB_SetEvent]
push 0x1f4
push dword [0x4a32c0]
call dword [sym.imp.___total_physical_size__lu_MB_WaitForSingleObject]
mov eax, dword [0x4a32bc]
cmp eax, ebx
pop ebx
jne 0x4117e9
push 1
push dword [0x4a32d0]
call dword [sym.imp.___total_physical_size__lu_MB_TerminateThread]
mov byte [0x4821e4], 1
xor eax, eax
pop ebp
ret 4

Function at 0x4119d5
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
mov eax, 0x46a5b4
cmp ecx, dword [eax]
jne 0x4119ea
add edi, 4
cmp byte [edi + 1], 0x3a
je 0x4119f4
mov eax, edi
jmp 0x411a48
mov al, byte [edi]
push ebx
push esi
mov esi, 0x104
push esi
mov byte [ebp + 8], al
mov word [ebp + 9], 0x3a
call fcn.0042f52e
mov ebx, eax
push esi
push ebx
lea eax, [ebp + 8]
push eax
call dword [sym.imp.___total_physical_size__lu_MB_QueryDosDeviceA]
test eax, eax
jne 0x411a22
mov eax, edi
jmp 0x411a46
push ebx
call fcn.00411897
mov edx, ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x411a2c
push esi
add edi, 2
push edi
push ebx
call fcn.00453720
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop edi
pop ebp
ret 4
Function at 0x411a4d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp byte [eax], 0x5c
mov dword [ebp - 0x114], eax
jne 0x411b7c
and dword [ebp - 0x118], 0
push ebx
push esi
push edi
call dword [sym.imp.___total_physical_size__lu_MB_GetLogicalDrives]
mov ebx, 0x104
push ebx
mov dword [ebp - 0x120], eax
call fcn.0042f52e
and dword [ebp - 0x10c], 0
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x10c]
xor eax, eax
inc eax
shl eax, cl
test dword [ebp - 0x120], eax
je 0x411b51
mov esi, 0x46aaa8
lea edi, [ebp - 0x110]
movsw word es:[edi], word [esi]
xor eax, eax
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x10d]
stosb byte es:[edi], al
mov al, cl
add al, 0x41
mov byte [ebp - 0x110], al
push ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.___total_physical_size__lu_MB_QueryDosDeviceA]
test eax, eax
je 0x411b51
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411afa
sub eax, edx
mov esi, eax
cmp esi, dword [ebp - 0x118]
jle 0x411b51
push esi
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x114]
call fcn.00450f08
add esp, 0xc
test eax, eax
jne 0x411b51
mov eax, dword [ebp - 0x114]
add eax, esi
push eax
lea eax, [ebp - 0x110]
push eax
push 0x46aaa0
push ebx
push dword [ebp - 0x11c]
mov dword [ebp - 0x118], esi
call fcn.00450d91
add esp, 0x14
inc dword [ebp - 0x10c]
cmp dword [ebp - 0x10c], 0x20
jb 0x411aa0
cmp dword [ebp - 0x118], 0
mov eax, dword [ebp - 0x11c]
pop edi
pop esi
pop ebx
jne 0x411b7c
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450b32
leave
ret 4
Function at 0x41236f
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.___total_physical_size__lu_MB_GetEnvironmentVariableA]
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x108]
push eax
push str.TEMP
call esi
test eax, eax
jne 0x4123b5
push edi
lea eax, [ebp - 0x108]
push eax
push 0x46abd0
call esi
push 0x14
lea eax, [ebp - 0x108]
push str._snapshot_memory.dmp
push eax
call fcn.00453720
add esp, 0xc
pop edi
lea eax, [ebp - 0x108]
mov edx, ebx
mov ecx, eax
pop esi
sub edx, ecx
pop ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4123da
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450b32
leave
ret 4

Function at 0x4123f2
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.___total_physical_size__lu_MB_GetEnvironmentVariableA]
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x108]
push eax
push str.TEMP
call esi
test eax, eax
jne 0x412438
push edi
lea eax, [ebp - 0x108]
push eax
push 0x46abd0
call esi
push 0xd
lea eax, [ebp - 0x108]
push str._snapshot.rpt
push eax
call fcn.00453720
add esp, 0xc
pop edi
lea eax, [ebp - 0x108]
mov edx, ebx
mov ecx, eax
pop esi
sub edx, ecx
pop ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41245d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450b32
leave
ret 4

Function at 0x412615
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 8]
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.___total_physical_size__lu_MB_VirtualQuery]
test eax, eax
jne 0x412634
xor eax, eax
jmp 0x412693
test esi, esi
je 0x412630
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp - 0x18]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.___total_physical_size__lu_MB_GetModuleFileNameA]
test eax, eax
je 0x412692
mov eax, dword [edi + 0x3c]
and dword [ebp + 8], 0
add eax, edi
movzx edx, word [eax + 6]
movzx ecx, word [eax + 0x14]
sub esi, edi
push ebx
lea ecx, [ecx + eax + 0x18]
test edx, edx
je 0x41268f
lea eax, [ecx + 0x10]
mov edi, dword [eax]
mov ebx, dword [eax - 8]
mov ecx, dword [eax - 4]
cmp edi, ebx
ja 0x41267a
mov edi, ebx
cmp esi, ecx
jl 0x412684
add edi, ecx
cmp esi, edi
jle 0x412698
inc dword [ebp + 8]
add eax, 0x28
cmp dword [ebp + 8], edx
jb 0x41266c
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 0x14
mov eax, dword [ebp + 0x18]
sub esi, ecx
mov dword [eax], esi
xor eax, eax
inc eax
jmp 0x412691
Function at 0x41314d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00412f03
Function at 0x41430b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x414386
push dword [edi + 0x300]
lea eax, [edi + 0x140]
push edi
push eax
lea eax, [ebp - 0xd0]
push str._s.at._s._hu
push eax
call fcn.00450c76
push 0x80
lea esi, [edi + 0x80]
push ebx
push esi
call fcn.00450230
lea eax, [ebp - 0xd0]
add esp, 0x20
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x414367
sub eax, ecx
je 0x414386
mov cl, byte [ebp + ebx - 0xd0]
cmp cl, 0x5c
je 0x414381
mov byte [esi], cl
inc esi
inc ebx
cmp ebx, eax
jb 0x414372
lea eax, [ebp - 0xd4]
push eax
lea eax, [edi + 0x80]
push eax
push str.SoftwareSnapShotFtpAccounts_s
call fcn.0042f614
pop ecx
pop ecx
push eax
push Ordinal_2
call dword [sym.imp.ical_size__lu_MB_RegCreateKeyA]
test eax, eax
je 0x4143b7
xor eax, eax
jmp 0x414462
push 1
mov ecx, edi
call fcn.0041415b
lea ecx, [edi + 0x140]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4143cb
sub eax, esi
mov esi, dword [sym.imp.ical_size__lu_MB_RegSetValueExA]
inc eax
push eax
push ecx
push 1
push 0
push 0x46b938
push dword [ebp - 0xd4]
call esi
push 0x100
mov ebx, eax
lea eax, [edi + 0x200]
push eax
push 3
push 0
push 0x46b92c
push dword [ebp - 0xd4]
call esi
or ebx, eax
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x414414
sub eax, ecx
inc eax
push eax
push edi
push 1
push 0
push str.Server
push dword [ebp - 0xd4]
call esi
push 4
add edi, 0x300
push edi
push 4
push 0
push 0x46b91c
push dword [ebp - 0xd4]
or ebx, eax
call esi
push dword [ebp - 0xd4]
or ebx, eax
call dword [sym.imp.ical_size__lu_MB_RegCloseKey]
xor eax, eax
test ebx, ebx
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450b32
leave
ret 4
Function at 0x414473
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x314], eax
test edi, edi
je 0x414568
cmp byte [edi], 0
je 0x414568
test ebx, ebx
je 0x414568
cmp byte [ebx], 0
je 0x414568
cmp word [ebp + 0x10], 0
je 0x414568
lea edx, [ebp - 0x1c8]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4144cf
lea edx, [ebp - 0x308]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4144e3
movzx esi, word [ebp + 0x10]
push esi
push ebx
push edi
lea eax, [ebp - 0x288]
push str._s.at._s._u
push eax
call fcn.00450c76
add esp, 0x14
lea eax, [ebp - 0x30c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x288]
push eax
push str.SoftwareSnapShotFtpAccounts
push 0x4696e0
call fcn.0042f614
add esp, 0xc
push eax
push Ordinal_2
call dword [sym.imp.ical_size__lu_MB_RegOpenKeyExA]
test eax, eax
je 0x41457b
push 0
call dword [sym.imp.___total_physical_size__lu_MB_SetLastError]
push esi
push ebx
push edi
push str.The_account__s__s:_hu_was_not_found_n
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push 0x81
push str.FTPAccount
call fcn.0044dc85
add esp, 0x1c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450b32
leave
ret 0x10
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push str.PassWord
push dword [ebp - 0x30c]
mov dword [ebp - 0x310], 0x100
call dword [sym.imp.ical_size__lu_MB_RegQueryValueExA]
push dword [ebp - 0x30c]
call dword [sym.imp.ical_size__lu_MB_RegCloseKey]
push 2
lea ecx, [ebp - 0x308]
call fcn.0041415b
test eax, eax
je 0x414568
mov edx, dword [ebp - 0x314]
test edx, edx
je 0x4145e3
lea eax, [ebp - 0x188]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4145d9
xor eax, eax
inc eax
jmp 0x41456a
Function at 0x4145e8
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x14
push ebx
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push str.SoftwareSnapShotFtpAccounts
push Ordinal_2
call dword [sym.imp.ical_size__lu_MB_RegOpenKeyExA]
test eax, eax
je 0x41461b
xor eax, eax
jmp 0x4147a2
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ical_size__lu_MB_RegQueryInfoKeyA]
test eax, eax
je 0x414641
push dword [ebp - 0x10]
call dword [sym.imp.ical_size__lu_MB_RegCloseKey]
jmp 0x414614
mov eax, dword [0x4a3d3c]
cmp eax, ebx
je 0x414651
push eax
call fcn.0045038b
pop ecx
push esi
mov esi, dword [ebp - 0x14]
lea eax, [esi + 1]
push eax
push 0x304
call fcn.00450903
pop ecx
pop ecx
mov dword [0x4a3d3c], eax
mov dword [ebp - 0xc], ebx
cmp esi, ebx
jbe 0x414797
push edi
mov edi, dword [sym.imp.ical_size__lu_MB_RegQueryValueExA]
xor esi, esi
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4a3d3c]
lea eax, [esi + eax + 0x80]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 4], 0xca
push dword [ebp - 0x10]
call dword [sym.imp.ical_size__lu_MB_RegEnumKeyExA]
lea eax, [ebp - 8]
push eax
mov eax, dword [0x4a3d3c]
push 0x20019
push ebx
lea eax, [esi + eax + 0x80]
push eax
push str.SoftwareSnapShotFtpAccounts
push 0x4696e0
call fcn.0042f614
add esp, 0xc
push eax
push Ordinal_2
call dword [sym.imp.ical_size__lu_MB_RegOpenKeyExA]
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4a3d3c]
lea eax, [esi + eax + 0x140]
push eax
push ebx
push ebx
push str.UserName
push dword [ebp - 8]
mov dword [ebp - 4], 0x40
call edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4a3d3c]
lea eax, [esi + eax + 0x200]
push eax
push ebx
push ebx
push str.PassWord
push dword [ebp - 8]
mov dword [ebp - 4], 0x100
call edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4a3d3c]
add eax, esi
push eax
push ebx
push ebx
push str.Server
push dword [ebp - 8]
mov dword [ebp - 4], 0x80
call edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4a3d3c]
lea eax, [esi + eax + 0x300]
push eax
push ebx
push ebx
push 0x46b91c
push dword [ebp - 8]
mov dword [ebp - 4], 4
call edi
push dword [ebp - 8]
call dword [sym.imp.ical_size__lu_MB_RegCloseKey]
mov eax, dword [0x4a3d3c]
push 2
lea ecx, [esi + eax]
call fcn.0041415b
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add esi, 0x304
cmp eax, dword [ebp - 0x14]
jb 0x41467e
mov esi, dword [ebp - 0x14]
pop edi
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, dword [0x4a3d3c]
pop esi
pop ebx
leave
ret 4
Function at 0x4147a7
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SoftwareSnapShotFtpAccounts
push Ordinal_2
call dword [sym.imp.ical_size__lu_MB_RegOpenKeyExA]
test eax, eax
je 0x4147ce
xor eax, eax
jmp 0x4147e9
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ical_size__lu_MB_RegDeleteKeyA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ical_size__lu_MB_RegCloseKey]
mov eax, esi
pop esi
leave
ret 4

Function at 0x414a82
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
cmp dword [ebp + 8], ebx
je 0x414ae5
cmp dword [ebp + 0xc], ebx
je 0x414ae5
mov edi, dword [ebp + 0x10]
cmp edi, ebx
jne 0x414aa8
lea edi, [ebp - 1]
push ebx
push ebx
push ebx
push 1
push str.Snapshot_FTP
call dword [sym.imp.s_InternetOpenA]
mov dword [esi + 8], eax
cmp eax, ebx
jne 0x414aee
mov esi, dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
call esi
push eax
push dword [ebp + 8]
push str.Unable_to_connect_to__s._Errorcode:0x_x_n
call esi
push eax
push 0xb3
push str.FTPUtils
call fcn.0044dc85
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
movzx ecx, word [esi + 0x17c]
push ebx
push dword [0x4cd338]
push 1
push edi
push dword [ebp + 0xc]
push ecx
push dword [ebp + 8]
push eax
call dword [sym.imp.s_InternetConnectA]
mov dword [esi + 0xc], eax
cmp eax, ebx
jne 0x414b69
push dword [ebp + 8]
push str.Cant_connect_to__s
call fcn.0041c7ee
pop ecx
pop ecx
lea edi, [esi + 0x14]
lea eax, [esi + 0x1c]
push edi
push eax
add esi, 0x18
push esi
mov dword [ebp + 0xc], eax
call dword [sym.imp.s_InternetGetLastResponseInfoA]
cmp dword [edi], ebx
jbe 0x414b51
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.Server_response_was:_n_s
call fcn.0041c7ee
add esp, 0xc
jmp 0x414ae5
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push str.Last_Windows_error_was:_0x_x
call fcn.0041c7ee
pop ecx
pop ecx
jmp 0x414ae5
mov edi, dword [sym.imp.s_InternetSetOptionA]
push 4
pop ebx
push ebx
lea eax, [ebp - 8]
push eax
push 8
push dword [esi + 8]
mov dword [ebp - 8], 0x1d4c0
call edi
push ebx
lea eax, [ebp - 8]
push eax
push 7
push dword [esi + 8]
call edi
push ebx
lea eax, [ebp - 8]
push eax
push 5
push dword [esi + 8]
call edi
push ebx
lea eax, [ebp - 8]
push eax
push 6
push dword [esi + 8]
call edi
xor eax, eax
inc eax
jmp 0x414ae7
Function at 0x414cd6
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x414dce
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x414dce
cmp dword [esi + 0x14c], 0
jne 0x414d20
push 1
push 0x100000
call fcn.00450903
and dword [esi + 0x150], 0
and dword [esi + 0x154], 0
pop ecx
pop ecx
mov dword [esi + 0x14c], eax
mov eax, dword [esi + 0x150]
mov ecx, dword [esi + 0x154]
cmp eax, ecx
jae 0x414dbc
sub ecx, eax
cmp ebx, ecx
jb 0x414d3c
mov ebx, ecx
mov ecx, dword [esi + 0x14c]
push ebx
add ecx, eax
push ecx
push edi
mov dword [ebp - 4], ebx
call fcn.00451390
sub dword [ebp + 0xc], ebx
add esp, 0xc
add edi, ebx
add dword [esi + 0x150], ebx
jmp 0x414dbc
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push edi
push dword [esi + 0x10]
call dword [sym.imp.s_InternetReadFile]
test eax, eax
je 0x414dd8
mov eax, dword [esi + 0x154]
mov ebx, 0x100000
cmp eax, ebx
jae 0x414db0
mov ecx, dword [esi + 0x14c]
test ecx, ecx
je 0x414db0
sub ebx, eax
cmp ebx, dword [ebp - 4]
jb 0x414d97
mov ebx, dword [ebp - 4]
push ebx
add eax, ecx
push edi
push eax
call fcn.00451390
add dword [esi + 0x154], ebx
add esp, 0xc
add dword [esi + 0x150], ebx
mov eax, dword [ebp - 4]
sub dword [ebp + 0xc], eax
add edi, eax
test eax, eax
je 0x414dc6
mov eax, edi
sub eax, dword [ebp + 8]
cmp eax, dword [ebp + 0xc]
jl 0x414d5f
sub edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0x1c]
push eax
add esi, 0x18
push esi
call dword [sym.imp.s_InternetGetLastResponseInfoA]
xor eax, eax
jmp 0x414dd1

Function at 0x414dee
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x148]
test ecx, ecx
je 0x414e39
mov eax, dword [esi + 0x160]
test eax, eax
je 0x414e39
lea edx, [ebp - 4]
push edx
push eax
push ecx
push dword [esi + 0x10]
call dword [sym.imp.s_InternetWriteFile]
test eax, eax
jne 0x414e32
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0x1c]
push eax
add esi, 0x18
push esi
call dword [sym.imp.s_InternetGetLastResponseInfoA]
xor eax, eax
jmp 0x414e3c
and dword [esi + 0x160], 0
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x4150b6
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x148], 0
push edi
jne 0x4150d1
push 0x40000
call fcn.00415034
mov ecx, dword [esi + 0x148]
test ecx, ecx
je 0x415160
mov eax, dword [esi + 0x160]
mov edi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.s_InternetWriteFile]
lea edx, [eax + edi]
cmp edx, dword [esi + 0x164]
jbe 0x415124
push dword [ebp + 0x10]
push eax
push ecx
push dword [esi + 0x10]
call ebx
test eax, eax
jne 0x41511d
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0x1c]
push eax
add esi, 0x18
push esi
call dword [sym.imp.s_InternetGetLastResponseInfoA]
xor eax, eax
jmp 0x415179
and dword [esi + 0x160], 0
cmp edi, dword [esi + 0x164]
jbe 0x41513a
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
push dword [esi + 0x10]
call ebx
jmp 0x415172
mov eax, dword [esi + 0x160]
add eax, dword [esi + 0x148]
push edi
push dword [ebp + 8]
push eax
call fcn.00451390
mov eax, dword [ebp + 0x10]
add esp, 0xc
add dword [esi + 0x160], edi
mov dword [eax], edi
jmp 0x415176
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x10]
call dword [sym.imp.s_InternetWriteFile]
test eax, eax
je 0x415107
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc