joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421fe0
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0
push ecx
push 0x424c20
push 0
push 0
call fcn.0045233c
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
add esp, 0x18
test eax, eax
mov dword [ecx + 0x2080], edx
jne 0x422018
pop ecx
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ecx
ret 4

Function at 0x422330
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x98
push ebx
push ebp
mov ebp, dword [esp + 0xa4]
push esi
push edi
mov edi, dword [esp + 0xb0]
push edi
push ebp
call dword [sym.imp.WSOCK32.dll_gethostname]
test eax, eax
je 0x422370
push edi
push 0x4736a0
push ebp
call fcn.0042f1a0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 8
push ebp
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
jne 0x4223c1
call fcn.00445640
test eax, eax
push edi
je 0x4223a6
push 0x473684
push ebp
call fcn.0042f1f0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 8
push 0x473668
push ebp
call fcn.0042f1f0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 8
call fcn.00445640
test eax, eax
push edi
je 0x4223d2
push 0x46f06c
jmp 0x4223d7
push 0x473664
push ebp
call fcn.0042f1f0
mov eax, dword [esi + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
cmp dword [eax], 0
je 0x4224cc
mov dword [esp + 0x10], 0
jmp 0x422400
mov esi, dword [esp + 0x14]
movsx ecx, word [esi + 0xa]
mov edx, dword [esp + 0x10]
lea edi, [esp + 0x1c]
mov esi, dword [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea edx, [esp + 0x2c]
push 0x473660
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x28]
push eax
call ebx
push ebp
mov esi, eax
call ebx
mov ecx, dword [esp + 0xb0]
dec ecx
sub ecx, eax
cmp esi, ecx
jge 0x4224b0
mov esi, dword [esp + 0xb0]
lea edx, [esp + 0x28]
push esi
push edx
push ebp
call fcn.0042f1f0
add esp, 0xc
push ebp
call ebx
cmp byte [eax + ebp - 1], 0x2e
jne 0x42247e
push ebp
call ebx
mov byte [eax + ebp - 1], 0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + edx + 4]
test eax, eax
je 0x4224b0
call fcn.00445640
test eax, eax
push esi
je 0x4224a2
push 0x46f06c
jmp 0x4224a7
push 0x47365c
push ebp
call fcn.0042f1f0
add esp, 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add ecx, 4
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], ecx
cmp dword [ecx + eax], 0
jne 0x4223fc
push ebp
call ebx
cmp byte [eax + ebp - 1], 0xa
jne 0x4224de
push ebp
call ebx
mov byte [eax + ebp - 1], 0
push ebp
call ebx
cmp byte [eax + ebp - 1], 0xd
jne 0x4224f0
push ebp
call ebx
mov byte [eax + ebp - 1], 0
push ebp
call ebx
cmp byte [eax + ebp - 1], 0x2c
jne 0x422502
push ebp
call ebx
mov byte [eax + ebp - 1], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 8
Function at 0x422640
Capabilities:
Create thread
Get common file path
Read .ini file

Disassembly:
sub esp, 0x108
lea eax, [esp + 4]
push ebp
push esi
push edi
push 0x104
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea ecx, [esp + 0x14]
push 0x469570
push ecx
call fcn.0042f1f0
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 1
push 0x4736d0
push 0x46954c
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4226bd
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0
push esi
push 0x422710
push 0
push 0
call fcn.0045233c
add esp, 0x18
test eax, eax
je 0x4226bd
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x4736b8
push 0x46954c
call edi
test eax, eax
je 0x4226fc
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 0
push edx
push 0
push esi
push 0x422ae0
push 0
push 0
call fcn.0045233c
add esp, 0x18
test eax, eax
je 0x4226fc
push eax
call ebp
pop edi
pop esi
pop ebp
add esp, 0x108
ret

Function at 0x422fd0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00445b80
test eax, eax
je 0x423019
mov eax, dword [0x481a98]
test eax, eax
jne 0x423019
mov eax, dword [esi + 8]
test eax, eax
jne 0x423019
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push esi
push 0x422e50
push 0
push 0
call fcn.0045233c
add esp, 0x18
test eax, eax
je 0x423019
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ecx
ret
Function at 0x423020
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x208
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x423192
mov eax, dword [0x481914]
test eax, eax
je 0x423192
mov al, byte [0x481910]
mov ecx, 0x40
mov byte [esp + 0xc], al
xor eax, eax
lea edi, [esp + 0xd]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x10]
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea edx, [esp + 0x10]
push 0x469570
push edx
call fcn.0042f1f0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0
push 0x4738cc
push 0x46954c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
jne 0x423192
call fcn.004457a0
test eax, eax
je 0x4230b8
mov eax, dword [0x481a98]
test eax, eax
je 0x423192
call fcn.004457a0
test eax, eax
jne 0x4230ef
call fcn.00445b80
test eax, eax
je 0x4230ef
mov eax, dword [0x481a98]
test eax, eax
jne 0x4230ef
mov esi, dword [esi + 8]
test esi, esi
je 0x423192
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebx
add esp, 0x208
ret
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [0x481914]
push ecx
call dword [sym.imp.USER32.dll_SetClipboardViewer]
mov dword [esi + 0x10], eax
mov ecx, dword [0x481914]
cmp eax, ecx
jne 0x423118
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x3e5
jne 0x42312a
xor ebx, ebx
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x42318b
test ebx, ebx
je 0x42318b
mov dl, byte [0x481910]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], dl
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x114]
push 0x473894
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x11c]
push ebx
push ecx
call fcn.00446e00
add esp, 0x14
mov dword [esi + 0x14], 0
pop edi
pop esi
pop ebx
add esp, 0x208
ret
mov dword [esi + 0x14], 1
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x4231a0
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x208
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x4232c4
mov eax, dword [0x481914]
test eax, eax
je 0x4232c4
mov al, byte [0x481910]
mov ecx, 0x40
mov byte [esp + 0xc], al
xor eax, eax
lea edi, [esp + 0xd]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x10]
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea edx, [esp + 0x10]
push 0x469570
push edx
call fcn.0042f1f0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0
push 0x4738cc
push 0x46954c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
jne 0x4232c4
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [0x481914]
push ecx
call dword [sym.imp.USER32.dll_SetClipboardViewer]
mov dword [ebx + 0x10], eax
mov ecx, dword [0x481914]
cmp eax, ecx
jne 0x42324a
mov dword [ebx + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x3e5
jne 0x42325c
xor esi, esi
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x4232bd
test esi, esi
je 0x4232bd
mov dl, byte [0x481910]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], dl
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x114]
push 0x4738e0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x11c]
push esi
push ecx
call fcn.00446e00
add esp, 0x14
mov dword [ebx + 0x14], 0
pop edi
pop esi
pop ebx
add esp, 0x208
ret
mov dword [ebx + 0x14], 1
pop edi
pop esi
pop ebx
add esp, 0x208
ret

Function at 0x423310
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0
push ecx
push 0x423340
push 0
push 0
call fcn.0045233c
add esp, 0x18
test eax, eax
je 0x42333d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret

Function at 0x423470
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov al, byte [0x481910]
push ebx
push esi
push edi
mov byte [esp + 0xc], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ebx, ebx
stosb byte es:[edi], al
call fcn.0042b620
mov esi, eax
test esi, esi
je 0x4234a8
push ebx
call fcn.0042b5e0
add esp, 4
lea ecx, [esp + 0xc]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0xb], 0x5c
je 0x4234e1
push 0x104
lea eax, [esp + 0x10]
push 0x4695f4
push eax
call fcn.0042f1f0
add esp, 0xc
test esi, esi
push 0x104
je 0x4234f6
lea ecx, [esp + 0x10]
push 0x473944
push ecx
jmp 0x423500
lea edx, [esp + 0x10]
push 0x473930
push edx
call fcn.0042f1f0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
call fcn.0042c8a0
add esp, 4
cmp edx, 0x10000
jb 0x423529
ja 0x423524
cmp eax, 1
jb 0x423529
mov ebx, 1
test esi, esi
je 0x423537
push 1
call fcn.0042b5e0
add esp, 4
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x423550
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov al, byte [0x481910]
push esi
push edi
mov byte [esp + 8], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.0042b620
mov edi, eax
test edi, edi
je 0x423587
push esi
call fcn.0042b5e0
add esp, 4
lea ecx, [esp + 8]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 7], 0x5c
je 0x4235c0
push 0x104
lea eax, [esp + 0xc]
push 0x4695f4
push eax
call fcn.0042f1f0
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push 0x47395c
push ecx
call fcn.0042f1f0
lea edx, [esp + 0x14]
push edx
call fcn.0042c8a0
add esp, 0x10
cmp edx, 0x10001
jb 0x4235f4
ja 0x4235ef
test eax, eax
jb 0x4235f4
mov esi, 1
test edi, edi
je 0x423602
push 1
call fcn.0042b5e0
add esp, 4
mov eax, esi
pop edi
pop esi
add esp, 0x104
ret

Function at 0x423b80
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 1
mov esi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x2b54], eax
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x423610
push 0
push 0
mov dword [esp + 0x1c], 0
call fcn.0045233c
add esp, 0x18
test eax, eax
pop esi
je 0x423bc5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
pop ecx
ret

Function at 0x423bd0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push edi
push eax
xor edi, edi
lea ecx, [esi + 0x2b58]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esi + 0x2c80], eax
jne 0x423c03
pop edi
xor eax, eax
pop esi
ret 0xc
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esi + 0x2c68], edx
mov dword [esi + 0x2c74], eax
mov dword [esp + 0xc], edi
call fcn.004457a0
test eax, eax
je 0x423c32
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push 0x4238e0
jmp 0x423c3e
lea edx, [esp + 0xc]
push edx
push edi
push esi
push 0x423710
push edi
push edi
call fcn.0045233c
add esp, 0x18
cmp eax, edi
je 0x423c58
push eax
mov edi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret 0xc
Function at 0x423fd0
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x11c
push esi
push edi
lea eax, [esp + 0x20]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea ecx, [esp + 0x24]
push 0x469570
push ecx
call fcn.0042f1f0
push 0x14
lea edx, [esp + 0x1c]
push 0x473cf4
push edx
mov dword [esp + 0x20], 0
call fcn.0042f1a0
add esp, 0x18
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x20]
lea ecx, [esp + 0xc]
push eax
push 0x14
push ecx
push 0x473cf4
push 0x473ce8
push 0x46954c
call esi
lea edx, [esp + 0xc]
push edx
call fcn.004527ec
mov edi, eax
add esp, 4
cmp edi, 0xea60
jle 0x424057
mov edi, 0x2710
push 0x14
lea eax, [esp + 0x10]
push 0x473ce0
push eax
call fcn.0042f1a0
add esp, 0xc
lea ecx, [esp + 0x20]
lea edx, [esp + 0xc]
push ecx
push 0x14
push edx
push 0x473ce0
push 0x473cd4
push 0x46954c
call esi
lea eax, [esp + 0xc]
push eax
call fcn.004527ec
mov esi, eax
add esp, 4
cmp esi, 0x2710
jle 0x4240a4
mov esi, 0x9c4
lea ecx, [esp + 8]
push ecx
call fcn.00451a9f
mov eax, dword [esp + 0xc]
mov ecx, dword [0x486618]
sub eax, 0x78
add esp, 4
cmp ecx, eax
mov dword [esp + 8], eax
jle 0x4240c8
mov esi, edi
mov dword [0x486614], 1
call fcn.004459b0
test eax, eax
jne 0x4240e4
push eax
call fcn.004458a0
add esp, 4
mov eax, dword [0x486614]
test eax, eax
jne 0x424124
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004459b0
test eax, eax
jne 0x424105
push eax
call fcn.004458a0
add esp, 4
mov eax, dword [0x486614]
test eax, eax
jne 0x424132
push 0x64
call edi
push 0
call edi
sub esi, 0x64
js 0x424124
mov eax, dword [0x486614]
test eax, eax
je 0x4240f3
pop edi
mov eax, 1
pop esi
add esp, 0x11c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x11c
ret
Function at 0x424d10
Capabilities:
Reference cloudflare dns server

Disassembly:
mov eax, 0xc00c
call fcn.004524d0
mov ecx, dword [esp + 0xc018]
push ebx
push ebp
mov ebp, dword [esp + 0xc01c]
push esi
mov edx, ecx
push edi
mov esi, dword [esp + 0xc020]
xor eax, eax
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
xor ebx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 8]
test eax, eax
je 0x424d53
cmp eax, 0xffffffff
jne 0x424d69
push esi
call fcn.00424e40
add esp, 4
mov ebx, 1
test eax, eax
je 0x424e33
mov ecx, 0x3002
xor eax, eax
lea edi, [esp + 0x14]
push eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi + 8]
lea ecx, [esp + 0x1c]
push 0xc008
push ecx
lea edx, [esp + 0x24]
push 0xc008
push edx
push 0xb0000
push eax
mov dword [esp + 0x34], 1
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test ebx, ebx
mov edi, eax
je 0x424dcb
mov eax, dword [esi + 8]
test eax, eax
je 0x424dcb
cmp eax, 0xffffffff
je 0x424dcb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0xffffffff
test edi, edi
je 0x424e33
mov edi, 0x47428c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
dec ecx
cmp eax, ecx
jb 0x424e33
mov edi, 0x47428c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x1c]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, edx
jne 0x424e33
mov edi, 0x47428c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x1c]
push ecx
push eax
push ebp
call fcn.00452890
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc00c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc00c
ret
Function at 0x424e40
Capabilities:
Reference cloudflare dns server

Disassembly:
sub esp, 0x124
mov al, byte [0x481910]
push ebx
push esi
push edi
mov byte [esp + 0x2c], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2d]
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x134]
push 0x12
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov ecx, 7
lea edi, [esp + 0x14]
lea ebx, [esi + 0xc]
push eax
push eax
rep stosd dword es:[edi], eax
push ebx
mov dword [esp + 0x20], 0x1c
call dword [fcn.00481924]
mov edi, eax
cmp edi, 0xffffffff
je 0x424f3b
lea ecx, [esp + 0x10]
push ecx
push 0
push ebx
push 0
push edi
call dword [fcn.00481928]
test eax, eax
je 0x424f3b
lea ebx, [esi + 4]
push 0
push ebx
push 0
lea edx, [esp + 0x1c]
push 0
push edx
push edi
call dword [fcn.0048192c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x424f34
mov eax, dword [ebx]
test eax, eax
je 0x424f34
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [esi], eax
jne 0x424eff
push edi
call dword [fcn.00481938]
pop edi
mov dword [ebx], 0
pop esi
xor eax, eax
pop ebx
add esp, 0x124
ret
mov dword [eax], 5
mov eax, dword [ebx]
mov ecx, dword [esi]
push 0
push 0
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push edi
call dword [fcn.0048192c]
test eax, eax
jne 0x424f47
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi], 0
mov dword [ebx], 0
push edi
call dword [fcn.00481938]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x124
ret
push edi
call dword [fcn.00481938]
mov ecx, dword [esi]
push 0
push 4
push 3
push 0
push 0
add ecx, 4
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, eax
test edx, edx
mov dword [esi + 8], edx
je 0x424fa2
cmp edx, 0xffffffff
je 0x424fa2
mov eax, dword [esi + 0x3c0]
mov ebx, 1
test eax, eax
je 0x424fb0
lea edx, [esp + 0x2c]
push 0x104
push edx
push esi
call fcn.00424d10
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x124
ret
xor ebx, ebx
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x124
ret
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x2c]
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
push eax
push 0x104
push ecx
push 0
push 0
push 0xb0190
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x425002
mov edi, 0x47428c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x2c]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, edx
je 0x42501f
lea eax, [esp + 0x2c]
push 0x104
push eax
push esi
call fcn.00424d10
add esp, 0xc
test eax, eax
je 0x42501f
mov dword [esi + 0x3c0], ebx
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x124
ret
Function at 0x426190
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x45b99e
push eax
mov eax, 0x110c
mov dword fs:[0], esp
call fcn.004524d0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1128]
mov ebp, ecx
push edi
mov ecx, esi
call fcn.0040a5c0
mov al, byte [0x481910]
mov ecx, 0x3ff
mov byte [esp + 0x11c], al
xor eax, eax
lea edi, [esp + 0x11d]
lea edx, [esi + 0x2f50]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esi + 0x2e4c]
stosb byte es:[edi], al
push ecx
push edx
lea eax, [esp + 0x20]
push 0x47455c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [esp + 0x1144]
mov ebx, dword [esp + 0x1140]
add esp, 0x10
lea ecx, [esp + 0x11c]
push edi
push ebx
push esi
push 0x1000
push ecx
mov ecx, ebp
call fcn.00426370
push 0
lea edx, [esp + 0x120]
push 0
push edx
push edi
push 4
call fcn.00446f40
mov eax, dword [esi + 0x5790]
add esp, 0x14
test eax, eax
je 0x426252
call fcn.004455e0
test eax, eax
je 0x426262
lea eax, [esp + 0x11c]
push eax
call fcn.0042ccd0
add esp, 4
push edi
push ebx
push esi
mov ecx, ebp
call fcn.00427070
mov eax, dword [0x482928]
xor ebx, ebx
cmp eax, ebx
je 0x426354
push 0x48292c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
jl 0x426354
mov al, byte [0x482a30]
test al, al
jne 0x4262b7
push 0x474558
push 0x48292c
call fcn.00452b10
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x426354
inc edi
jmp 0x4262bc
mov edi, 0x482a30
push 0x1e28
call fcn.00451b7b
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov dword [esp + 0x1124], ebx
je 0x4262e3
mov ecx, eax
call fcn.004480d0
mov esi, eax
jmp 0x4262e5
xor esi, esi
cmp esi, ebx
mov dword [esp + 0x1124], 0xffffffff
je 0x426354
push 0x48292c
mov ecx, esi
call fcn.004483f0
push 0x48292c
mov ecx, esi
call fcn.00448410
lea ecx, [esp + 0x11c]
push ecx
mov ecx, esi
call fcn.00448460
lea edx, [esp + 0x18]
mov ecx, esi
push edx
call fcn.00448440
push edi
mov ecx, esi
call fcn.00448370
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebx
push eax
push ebx
push esi
push 0x4247f0
push ebx
push ebx
call fcn.0045233c
add esp, 0x18
cmp eax, ebx
je 0x426354
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x111c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1118
ret 0xc
Function at 0x427070
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, ecx
push esi
mov ecx, ebp
call fcn.0040a5c0
mov eax, dword [0x485678]
test eax, eax
je 0x42712a
push 0x48567c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
jl 0x42712a
push 0x114c
call fcn.004520a2
mov esi, eax
add esp, 4
test esi, esi
je 0x42712a
push edi
mov ecx, 0x453
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push ebp
lea edx, [esi + 4]
push 0x1000
push edx
mov ecx, ebx
call fcn.00427130
push 0x104
lea eax, [esi + 0x1004]
push 0x48567c
push eax
call fcn.0042f1a0
mov ecx, dword [0x485780]
lea edx, [esp + 0x20]
push edx
push 0
push esi
push 0x424920
push 0
mov dword [esi + 0x1108], ecx
push 0
mov dword [esp + 0x38], 0
call fcn.0045233c
add esp, 0x24
test eax, eax
pop edi
je 0x42712a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x428860
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x128
mov al, byte [0x481910]
push esi
push edi
mov byte [esp + 0x28], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x29]
push 0x105
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [esp + eax + 0x27]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp cl, 0x5c
je 0x4288b4
lea eax, [esp + 0x28]
push 0x4695f4
push eax
call esi
lea ecx, [esp + 0x28]
push 0x474f00
push ecx
call esi
lea edx, [esp + 0x28]
push edx
call fcn.0042b3e0
add esp, 4
test eax, eax
pop edi
pop esi
jne 0x428985
lea eax, [esp + 0xc]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
lea ecx, [esp + 0x14]
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push 0
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorGroup]
push 0
push 0
lea eax, [esp + 0x14]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorSacl]
lea edx, [esp]
lea eax, [esp + 0x20]
lea ecx, [esp + 0xc]
push edx
push eax
mov dword [esp + 8], 0xc
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 1
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x428965
call fcn.00445b80
test eax, eax
je 0x428985
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x474ee0
call fcn.00446e00
add esp, 8
add esp, 0x128
ret
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x428985
and al, 0xfe
lea edx, [esp + 0x20]
or al, 2
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 0x128
ret