joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420d30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4450f2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x16c
push ebx
push esi
push edi
xor esi, esi
push 1
lea ecx, [esp + 0x78]
mov dword [esp + 0x74], esi
call fcn.0041f950
lea ecx, [esp + 0x20]
mov dword [esp + 0x180], esi
call fcn.0041f8e0
mov edi, dword [esp + 0x190]
lea ecx, [esp + 0x5c]
push edi
call fcn.0041fbd0
mov eax, dword [esp + 0x18c]
lea ecx, [esp + 0xc]
push eax
call fcn.0041fbd0
lea ecx, [esp + 0x48]
mov byte [esp + 0x180], 3
call fcn.0041f8e0
lea ecx, [esp + 0x34]
mov byte [esp + 0x180], 4
call fcn.0041f8e0
mov bl, 5
mov byte [esp + 0x180], bl
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x420f80
cmp eax, 1
jne 0x420dd9
mov ecx, dword [esp + 0x10]
cmp dword [ecx], esi
je 0x420f80
lea edx, [esp + 0xc]
lea eax, [esp + 0xb0]
push edx
push eax
lea ecx, [esp + 0x64]
call fcn.004202c0
lea ecx, [esp + 0x150]
push eax
push ecx
lea ecx, [esp + 0x50]
call fcn.0041fc70
lea ecx, [esp + 0x150]
call fcn.0041fc40
lea ecx, [esp + 0xb0]
call fcn.0041fc40
lea edx, [esp + 0xc]
lea eax, [esp + 0x128]
push edx
push eax
lea ecx, [esp + 0x50]
call fcn.00420130
lea ecx, [esp + 0xd8]
push eax
push ecx
lea ecx, [esp + 0x64]
mov byte [esp + 0x188], 6
call fcn.0041fea0
lea edx, [esp + 0x88]
push eax
push edx
lea ecx, [esp + 0x3c]
call fcn.0041fc70
lea ecx, [esp + 0x88]
call fcn.0041fc40
lea ecx, [esp + 0xd8]
call fcn.0041fc40
lea ecx, [esp + 0x128]
mov byte [esp + 0x180], bl
call fcn.0041fc40
lea eax, [esp + 0xc]
lea ecx, [esp + 0x100]
push eax
push ecx
lea ecx, [esp + 0x64]
call fcn.0041fc70
lea ecx, [esp + 0x100]
call fcn.0041fc40
lea edx, [esp + 0x34]
lea eax, [esp + 0x9c]
push edx
push eax
lea ecx, [esp + 0x14]
call fcn.0041fc70
lea ecx, [esp + 0x9c]
call fcn.0041fc40
lea ecx, [esp + 0x74]
lea edx, [esp + 0xc4]
push ecx
push edx
lea ecx, [esp + 0x3c]
call fcn.0041fc70
lea ecx, [esp + 0xc4]
call fcn.0041fc40
lea eax, [esp + 0x48]
lea ecx, [esp + 0x13c]
push eax
push ecx
lea ecx, [esp + 0x7c]
call fcn.00420130
lea edx, [esp + 0x114]
push eax
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x188], 7
call fcn.0041fea0
push eax
lea eax, [esp + 0xf0]
push eax
lea ecx, [esp + 0x7c]
call fcn.0041fc70
lea ecx, [esp + 0xec]
call fcn.0041fc40
lea ecx, [esp + 0x114]
call fcn.0041fc40
lea ecx, [esp + 0x13c]
mov byte [esp + 0x180], bl
call fcn.0041fc40
lea ecx, [esp + 0x34]
lea edx, [esp + 0x164]
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.0041fc70
lea ecx, [esp + 0x164]
call fcn.0041fc40
jmp 0x420dbc
mov al, byte [esp + 0x30]
test al, al
je 0x420f92
push edi
lea ecx, [esp + 0x24]
call fcn.0041fda0
mov esi, dword [esp + 0x188]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.0041fbd0
lea ecx, [esp + 0x34]
call fcn.0041fc40
lea ecx, [esp + 0x48]
call fcn.0041fc40
lea ecx, [esp + 0xc]
call fcn.0041fc40
lea ecx, [esp + 0x5c]
call fcn.0041fc40
lea ecx, [esp + 0x20]
call fcn.0041fc40
lea ecx, [esp + 0x74]
call fcn.0041fc40
mov ecx, dword [esp + 0x178]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x178
ret
Function at 0x422af0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x2aaaaaab
sub esp, 0xc
imul dword [esp + 0x14]
sar edx, 2
mov eax, edx
push ebx
push ebp
push esi
shr eax, 0x1f
push edi
add edx, eax
xor edi, edi
mov ebx, ecx
test edx, edx
jle 0x422b90
mov ecx, dword [esp + 0x20]
lea ebp, [ebx + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov ecx, ebx
call fcn.004230d0
mov ecx, ebx
call fcn.00423240
mov edi, dword [esp + 0x10]
mov ecx, 6
mov esi, ebp
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov edx, ebp
mov esi, dword [ebx + 0xb8]
mov ecx, eax
add ecx, esi
mov esi, dword [edx]
add edx, 4
mov edi, dword [ebx + ecx*4 + 0x24]
lea ecx, [ebx + ecx*4 + 0x24]
xor edi, esi
inc eax
cmp eax, 8
mov dword [ecx], edi
jb 0x422b44
mov edx, dword [ebx + 0x20]
mov edi, dword [ebx + 0x1c]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
xor edx, edi
add ecx, 0x18
and edx, 0x18
dec eax
mov dword [ebx + 0xb8], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x422b25
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov ecx, 0x18
cdq
idiv ecx
mov esi, edx
test esi, esi
je 0x422c03
mov ecx, ebx
call fcn.004230d0
mov ecx, ebx
call fcn.00423240
lea eax, [edi + edi*2]
mov edi, dword [esp + 0x20]
mov ecx, esi
lea edx, [ebx + 4]
lea edi, [edi + eax*8]
mov eax, ecx
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx + 0xb8]
mov ecx, eax
add ecx, esi
mov esi, dword [edx]
add edx, 4
mov ebp, dword [ebx + ecx*4 + 0x24]
lea ecx, [ebx + ecx*4 + 0x24]
xor ebp, esi
inc eax
cmp eax, 8
mov dword [ecx], ebp
jb 0x422bd1
mov edx, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x1c]
xor edx, ecx
and edx, 0x18
mov dword [ebx + 0xb8], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8

Function at 0x427140
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0
push 3
push 0
push 0
push 0x40000000
push eax
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x427176
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x42717d
xor eax, eax
pop esi
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
ret 4
Function at 0x427490
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueA]
lea eax, [esp + 4]
push edi
push eax
lea ecx, [esp + 0x10]
push 0
push ecx
push str.PendingFileRenameOperations
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.WS2_32.dll_bind
mov dword [esp + 0x20], 0
call esi
test eax, eax
jne 0x427646
mov eax, dword [esp + 8]
cmp eax, 6
jb 0x427646
push eax
call fcn.0041b540
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x10], edi
je 0x42765b
lea edx, [esp + 8]
lea eax, [esp + 0xc]
push edx
push edi
push eax
push str.PendingFileRenameOperations
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.WS2_32.dll_bind
call esi
test eax, eax
je 0x42751d
push edi
call fcn.0041da60
add esp, 4
pop edi
pop esi
add esp, 0x10
ret 8
mov ecx, dword [esp + 8]
push ecx
call fcn.0041b540
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x427543
push edi
call fcn.0041da60
add esp, 4
pop edi
pop esi
add esp, 0x10
ret 8
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
mov ebx, eax
call ebp
lea esi, [eax + edi + 1]
mov edx, dword [esp + 0x18]
cmp byte [edx], 0
je 0x4275e7
mov eax, dword [esp + 0x24]
test eax, eax
je 0x42757c
cmp byte [eax], 0
je 0x42757c
push eax
lea eax, [edi + 4]
push eax
call fcn.00427a00
test eax, eax
jne 0x4275cf
mov cl, byte [esi]
test cl, cl
je 0x4275b1
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4275b1
cmp byte [eax], 0
je 0x4275b1
cmp cl, 0x21
push eax
jne 0x4275a4
lea ecx, [esi + 5]
push ecx
call fcn.00427a00
test eax, eax
je 0x4275b1
jmp 0x4275cf
lea edx, [esi + 4]
push edx
call fcn.00427a00
test eax, eax
jne 0x4275cf
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call ebp
lea ebx, [ebx + eax + 1]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call ebp
lea ebx, [ebx + eax + 1]
push esi
call ebp
lea edi, [eax + esi + 1]
push edi
call ebp
lea esi, [eax + edi + 1]
mov al, byte [edi]
test al, al
jne 0x427561
mov esi, dword [esp + 0x1c]
mov byte [ebx], 0
sub ebx, esi
inc ebx
cmp ebx, 6
jae 0x42760d
push str.PendingFileRenameOperations
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
jmp 0x427629
mov eax, dword [esp + 0x14]
push ebx
push esi
push eax
push str.PendingFileRenameOperations
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
push esi
call fcn.0041da60
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0041da60
add esp, 8
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x10
ret 8
push str.PendingFileRenameOperations
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
pop edi
pop esi
add esp, 0x10
ret 8
Function at 0x4276e0
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x427753
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ebp
push edi
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
and al, 0xfe
push eax
push edi
call ebp
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x427720
push esi
call ebx
and al, 0xfe
push eax
push esi
call ebp
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop ebp
pop ebx
test eax, eax
je 0x427753
push esi
push esi
call fcn.00427490
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x427749
push eax
push edi
call fcn.00427190
pop edi
mov eax, 1
pop esi
ret 8
pop edi
xor eax, eax
pop esi
ret 8

Function at 0x4277c0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x18
mov edx, dword [esp + 0x1c]
push ebx
push ebp
push esi
lea ecx, [esp + 0x10]
push edi
lea eax, [esp + 0x18]
push ecx
push edx
xor esi, esi
xor edi, edi
mov dword [esp + 0x18], eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x42783a
push ebx
call fcn.0041b540
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x42783a
mov eax, dword [esp + 0x2c]
push ebp
push ebx
push edi
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x427831
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x10]
push ecx
push edx
push 0x453ce0
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x427831
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
or esi, eax
or edi, ecx
push ebp
call fcn.0041da60
add esp, 4
mov edx, edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4

Function at 0x4278c0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push esi
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
cmp eax, 0x80070057
je 0x4278ee
push esi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 1
pop esi
ret 8
xor eax, eax
pop esi
ret 8
Function at 0x427c10
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x238
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
push edi
mov edi, dword [esp + 0x250]
push edi
call ebx
mov esi, eax
test esi, esi
je 0x427c64
lea eax, [esp + 0x18]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [esp + esi + 0x17], 0x5c
je 0x427c53
lea ecx, [esp + 0x18]
push 0x453ce0
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x18]
push edx
call ebx
lea eax, [esp + eax + 0x18]
mov dword [esp + 0x14], eax
jmp 0x427c6c
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x24c]
push 0
push edx
call fcn.0042dab0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x427d6e
lea eax, [esp + 0x11c]
push eax
push 0xffffffffffffffff
push ebx
call fcn.0042dad0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x427d63
mov eax, dword [esp + 0x11c]
xor edi, edi
test eax, eax
mov dword [esp + 0x10], eax
jle 0x427d29
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x11c]
push ecx
push edi
push ebx
call fcn.0042dad0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x427d63
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x120]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
lea edx, [esp + 0x18]
push eax
push edx
call ebp
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x18]
push ecx
push edi
push ebx
call fcn.0042db70
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x427d63
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
jl 0x427cbc
push ebx
call fcn.0042db90
mov esi, eax
add esp, 4
test esi, esi
jne 0x427d63
mov eax, dword [esp + 0x254]
test eax, eax
je 0x427d51
mov edx, dword [esp + 0x24c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x238
ret 0xc
push ebx
call fcn.0042db90
add esp, 4
jmp 0x427d72
mov esi, dword [esp + 0x10]
test esi, esi
je 0x427d51
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x238
ret 0xc

Function at 0x427dd0
Capabilities:
Check if file exists
Create directory

Disassembly:
sub esp, 0x108
push ebx
mov ebx, dword [esp + 0x110]
push ebp
push esi
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x427e43
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x427e43
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x453ce0
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
mov esi, eax
test esi, esi
je 0x427e43
mov edx, esi
sub edx, ebx
test edx, edx
jle 0x427e39
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
inc edx
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x14]
push ebx
push eax
call ebp
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov cl, byte [esi + 1]
lea eax, [esi + 1]
test cl, cl
jne 0x427dfa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x428160
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x4281a1
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
je 0x4281d4
mov ecx, dword [esp + 0x18]
mov eax, 2
cmp ecx, eax
jne 0x4281d4
cmp dword [esp + 0xc], 5
jne 0x4281d4
cmp dword [esp + 0x10], 1
jne 0x4281d4
cmp word [esp + 0x9c], ax
jne 0x4281d4
pop edi
mov eax, 1
pop esi
add esp, 0x9c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret
Function at 0x4281e0
Capabilities:
Get common file path
Get file size
Read file via mapping

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44544b
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push ebp
push esi
push edi
call fcn.00428160
test eax, eax
je 0x4283ce
lea eax, [esp + 0x24]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x24]
push str.drivers_tcpip.sys
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x24]
push edx
call fcn.004277c0
mov edi, eax
mov ebp, edx
xor ebx, ebx
mov esi, 0x464db8
mov eax, dword [esi]
push eax
call fcn.00427850
cmp edi, eax
jne 0x428251
cmp ebp, edx
je 0x428262
add esi, 0x1c
inc ebx
cmp esi, 0x464df0
jb 0x428241
jmp 0x4283ce
cmp ebx, 0xffffffff
je 0x4283ce
push 0
push 0x80
push 3
push 0
push 1
lea ecx, [esp + 0x38]
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4283ce
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea esi, [ebx*8]
mov dword [esp + 0x18], eax
sub esi, ebx
shl esi, 2
cmp eax, dword [esi + 0x464dbc]
je 0x4282c0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4283ce
push 0
push 0
push 0
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, eax
call edi
push 0
push 0
push 0
push 6
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x4282f9
push ebp
call edi
jmp 0x4283ce
mov edx, dword [esi + 0x464dc0]
mov ecx, 4
lea esi, [esi + 0x464dc4]
lea eax, [edx + ebx]
xor edx, edx
mov dword [esp + 0x1c], eax
lea edi, [eax + 4]
repe cmpsd dword [esi], dword es:[edi]
je 0x42832d
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4283ce
mov edi, dword [esp + 0x138]
mov ecx, dword [eax]
and edi, 0xffff
cmp ecx, edi
jb 0x428350
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4283ce
push str.imagehlp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
mov dword [esp + 0x130], 0
jne 0x428380
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4283ce
push str.CheckSumMappedFile
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
cmp eax, ecx
je 0x4283b9
mov edx, dword [esp + 0x1c]
mov dword [edx], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
push ecx
push ebx
call eax
mov edx, dword [esp + 0x10]
mov dword [eax + 0x58], edx
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret
Function at 0x4283f0
Capabilities:
Copy file
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
push ebx
call fcn.00427dd0
mov esi, dword [esp + 0x18]
add esp, 4
test esi, esi
je 0x42845f
test ebx, ebx
je 0x42845f
push 0
push esi
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
cmp eax, 0xffffffff
je 0x42845f
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
and al, 0xfe
push eax
push esi
call ebp
push ebx
call edi
and al, 0xfe
push eax
push ebx
call ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
xor edi, edi
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x428466
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 3
jl 0x428444
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp edi, 3
jge 0x42845f
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

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

Disassembly:
push ecx
mov eax, dword [0x469018]
push ebx
push esi
push edi
test eax, eax
jne 0x4285b5
push str.cryptdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x42856b
push str.cryptdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MD5Init
push esi
call edi
push str.MD5Update
push esi
mov dword [0x469018], eax
call edi
push str.MD5Final
push esi
mov dword [0x46901c], eax
call edi
test eax, eax
mov dword [0x469020], eax
je 0x4285ae
mov eax, dword [0x46901c]
test eax, eax
je 0x4285ae
mov eax, dword [0x469018]
test eax, eax
jne 0x4285b5
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov ebx, dword [esp + 0x14]
cmp ebx, 0xffffffff
jne 0x4285c5
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov esi, eax
cmp ecx, esi
jbe 0x4285df
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4285fc
cmp eax, 0xffffffff
je 0x4285fc
lea edx, [ecx + eax]
cmp edx, esi
jbe 0x4285fa
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov esi, eax
test ecx, ecx
je 0x42860c
push 0
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call fcn.0041b540
add esp, 4
mov edi, eax
lea eax, [esp + 0xc]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x20]
push ecx
push esi
push edi
call fcn.004284b0
push edi
call fcn.0041da60
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x428870
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 8]
add ecx, 4
push ecx
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
ret 0x10
Function at 0x4288a0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
add ecx, 4
push ecx
mov ecx, dword [esp + 0xc]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
ret 0xc

Function at 0x428a60
Capabilities:
Read .ini file

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.00428b20
push 0x7fff
call fcn.0041b540
mov esi, eax
add esp, 4
test esi, esi
je 0x428b09
lea eax, [ebx + 4]
push eax
push 0x7fff
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
jle 0x428b00
push ebp
push 0
push esi
call fcn.004289c0
mov edi, eax
add esp, 0xc
test edi, edi
jle 0x428b00
lea ecx, [edi*4 + 4]
push ecx
call fcn.0041b540
mov dword [ebx + 0x110], eax
mov dword [eax], esi
mov eax, 1
add esp, 4
cmp edi, eax
jle 0x428af8
xor ecx, ecx
test ebp, ebp
jle 0x428af8
cmp byte [ecx + esi], 0
jne 0x428af3
mov ebp, dword [ebx + 0x110]
lea edx, [ecx + esi + 1]
mov dword [ebp + eax*4], edx
inc eax
cmp eax, edi
je 0x428af8
mov ebp, dword [esp + 0x10]
inc ecx
cmp ecx, ebp
jl 0x428ad6
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push esi
call fcn.0041da60
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x428ea0
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0x464ee8
push 1
push 0
push 0x464ed8
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x428efa
mov eax, dword [esp + 4]
lea edx, [esp]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jl 0x428efa
mov eax, dword [esp]
lea edx, [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esp]
test eax, eax
je 0x428f08
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 4]
test eax, eax
je 0x428f16
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 8]
add esp, 0xc
ret