joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a2b
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push 0xc2
push 0
push edi
call fcn.004058a0
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x401b8d
push dword [ebp + 8]
lea eax, [ebp - 0x100]
push eax
call fcn.00405640
pop ecx
pop ecx
xor edx, edx
lea ecx, [ebp + edx - 0x100]
mov al, byte [ecx]
test al, al
je 0x401a80
cmp al, 0x61
jge 0x401a7a
cmp al, 0x7a
jle 0x401a7a
add al, 0x20
mov byte [ecx], al
inc edx
cmp edx, 7
jl 0x401a61
lea eax, [ebp - 0x100]
push str.rtmp:__
push eax
call fcn.004055b0
pop ecx
pop ecx
test eax, eax
je 0x401b8d
push ebx
push esi
push 0x2f
push 0x3a
lea esi, [ebp - 0xf9]
mov ebx, edi
call fcn.004019ef
mov esi, eax
cmp byte [esi], 0x3a
pop ecx
pop ecx
je 0x401abe
mov eax, 0x78f
jmp 0x401adb
push 0
push 0x2f
inc esi
lea ebx, [ebp - 0x200]
call fcn.004019ef
mov esi, eax
mov eax, ebx
push eax
call fcn.0040574e
add esp, 0xc
mov word [edi + 0x40], ax
test esi, esi
je 0x401b8b
cmp byte [esi], 0
je 0x401b8b
lea eax, [esi + 1]
mov dword [ebp + 8], eax
mov ebx, 0x413218
jmp 0x401b00
mov esi, eax
inc eax
push ebx
push eax
call fcn.004055b0
pop ecx
pop ecx
test eax, eax
jne 0x401afd
cmp dword [ebp + 8], esi
jae 0x401b25
mov ecx, dword [ebp + 8]
lea eax, [edi + 0x82]
mov dl, byte [ecx]
mov byte [eax], dl
inc eax
inc ecx
cmp ecx, esi
jb 0x401b1b
mov eax, esi
sub eax, dword [ebp + 8]
mov byte [eax + edi + 0x82], 0
test esi, esi
je 0x401b8b
cmp byte [esi], 0
je 0x401b8b
push 0
push 0x2f
inc esi
lea ebx, [ebp - 0x200]
call fcn.004019ef
mov eax, ebx
push eax
lea eax, [edi + 0x42]
push eax
call fcn.00405640
add esp, 0x10
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x401b8b
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
movzx ecx, byte [eax + 3]
push ecx
movzx ecx, byte [eax + 2]
push ecx
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
push str._d._d._d._d
push edi
call fcn.00403e01
add esp, 0x18
pop esi
pop ebx
mov eax, edi
leave
ret

Function at 0x401b91
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
call ebx
mov esi, dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xor edi, edi
push edi
inc eax
push eax
push dword [ebp + 0xc]
jmp 0x401bee
jle 0x401bba
add edi, eax
cmp edi, dword [ebp + 0x10]
jne 0x401bc3
test eax, eax
js 0x401bf7
call ebx
cmp eax, dword [ebp - 4]
jae 0x401bd0
sub eax, dword [ebp - 4]
dec eax
jmp 0x401bd3
sub eax, dword [ebp - 4]
cmp eax, 0x1388
jae 0x401bf7
cmp edi, dword [ebp + 0x10]
jg 0x401bf7
mov eax, dword [ebp + 0x10]
sub eax, edi
inc eax
push 0
push eax
mov eax, dword [ebp + 0xc]
add eax, edi
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x401bb6
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4030e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x465ff8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x478ec8]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x478ec8]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
call fcn.00403950
test eax, eax
jne 0x40313f
push 0x20
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004032b0
add esp, 4
jmp 0x403290
xor esi, esi
mov dword [esp + 0x14], 0xffffffff
xor edi, edi
jmp 0x403152
xor esi, esi
push 0x200
mov dword [esp + 0x44], vtable.RDDevice.0
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x54], esi
call fcn.0042ff51
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 4
push 0x46fc50
push eax
mov dword [esp + 0x54], eax
call ebx
mov dword [esp + 0x70], esi
push edi
lea esi, [esp + 0x44]
call fcn.0040fb90
test eax, eax
jne 0x4031e0
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x48]
cmp eax, 0xffffffff
mov esi, 1
je 0x4031be
test eax, eax
je 0x4031be
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
mov edx, dword [esp + 0x4c]
push 0x46fc50
push edx
call ebx
cmp dword [esp + 0x44], 0
je 0x4031d9
test esi, esi
je 0x403260
mov eax, dword [esp + 0x4c]
push eax
jmp 0x40324a
push 0x18
push 0
push 0x70000
lea ebx, [esp + 0x30]
xor ecx, ecx
lea esi, [esp + 0x4c]
call fcn.0040fd40
test eax, eax
je 0x40322c
cmp dword [esp + 0x2c], 0xc
jne 0x40322c
push edi
call fcn.00414f30
add esp, 4
test eax, eax
mov dword [esp + 0x70], 0xffffffff
mov dword [esp + 0x40], vtable.RDDevice.0
je 0x403276
call fcn.0040fce0
mov ecx, dword [esp + 0x4c]
push ecx
jmp 0x40324a
mov dword [esp + 0x70], 0xffffffff
lea esi, [esp + 0x40]
mov dword [esp + 0x40], vtable.RDDevice.0
call fcn.0040fce0
mov edx, dword [esp + 0x4c]
push edx
call fcn.004410ea
add edi, 1
add esp, 4
cmp edi, 0x20
jb 0x403150
jmp 0x40328c
lea edi, [esp + 0x18]
call fcn.00414c30
push 0x474aec
mov eax, edi
push eax
call fcn.00441455
mov dword [esp + 0x14], edi
call fcn.0040fce0
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.004410ea
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00440e94
mov esp, ebp
pop ebp
ret
Function at 0x403950
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x465f98
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x478ec8]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x478ec8]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor edi, edi
cmp dword [0x47a410], edi
jne 0x403996
mov eax, dword [0x47a40c]
jmp 0x403af1
push 0x20
lea eax, [esp + 0x58]
push eax
mov dword [0x47a410], edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebx, vtable.RDDevice.0
or ebp, 0xffffffff
push 0x200
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], edi
call fcn.0042ff51
add esp, 4
push 0x46fc50
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [esp + 0x80], edi
mov ecx, dword [esp + 0x54]
push ecx
lea esi, [esp + 0x18]
call fcn.0040fc20
cmp eax, edi
jne 0x403a21
mov dword [esp + 0x80], ebp
mov dword [0x47a40c], edi
mov dword [esp + 0x14], ebx
call fcn.0040fce0
mov edx, dword [esp + 0x20]
push edx
call fcn.004410ea
add esp, 4
xor eax, eax
jmp 0x403af1
push 0xc
push edi
push 0x2d1080
lea ebx, [esp + 0x34]
xor ecx, ecx
call fcn.0040fd40
cmp eax, edi
je 0x403a76
mov eax, dword [esp + 0x2c]
cmp eax, ebp
je 0x403a76
push eax
call fcn.00414f30
mov dword [esp + 0x84], ebp
add esp, 4
lea esi, [esp + 0x14]
mov dword [0x47a40c], eax
mov edi, eax
mov dword [esp + 0x14], vtable.RDDevice.0
call fcn.0040fce0
mov eax, dword [esp + 0x20]
push eax
call fcn.004410ea
mov eax, edi
jmp 0x403aee
push 0x20
push edi
push 0x560000
lea ebx, [esp + 0x40]
xor ecx, ecx
lea esi, [esp + 0x20]
call fcn.0040fd40
cmp eax, edi
je 0x403abd
mov eax, dword [esp + 0x3c]
cmp eax, ebp
je 0x403abd
push eax
call fcn.00414f30
add esp, 4
lea ecx, [esp + 0x14]
mov dword [0x47a40c], eax
mov esi, eax
mov dword [esp + 0x80], ebp
call fcn.0040f810
mov eax, esi
jmp 0x403af1
mov dword [esp + 0x80], ebp
lea esi, [esp + 0x14]
mov dword [0x47a40c], 1
mov dword [esp + 0x14], vtable.RDDevice.0
call fcn.0040fce0
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004410ea
mov eax, 1
add esp, 4
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00440e94
add esp, 0x70
ret
Function at 0x406690
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
cmp dword [ebp + 0x18], 0
jne 0x4066a1
xor eax, eax
pop ebp
ret 0xc
cmp dword [ebp + 0x1c], 0
jne 0x40669b
cmp dword [ebp + 0x20], 0
jne 0x40669b
cmp dword [esp + 0x10], 0
je 0x40669b
test ebx, ebx
je 0x40669b
mov eax, dword [ebx]
test eax, eax
je 0x40669b
push esi
lea esi, [eax - 1]
shr esi, 9
add esi, 1
push edi
shl esi, 9
push esi
call fcn.0042ff51
mov edi, eax
add esp, 4
test edi, edi
je 0x406784
push esi
push 0
push edi
call fcn.00441070
mov ecx, dword [ebx]
mov eax, dword [esp + 0x24]
sub ecx, 1
add esp, 0xc
shr ecx, 9
push eax
add ecx, 1
mov edx, edi
mov eax, ebp
call fcn.004064f0
test eax, eax
je 0x40677b
mov ebp, dword [esp + 0x14]
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40677b
mov edx, dword [ebx]
push 0
lea ecx, [esp + 0x14]
push ecx
push edx
push edi
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40676d
mov eax, dword [esp + 0x10]
cmp eax, dword [ebx]
jne 0x40676d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004410ea
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebp
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call fcn.004410ea
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebp
ret 0xc

Function at 0x40fae0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x258
mov eax, dword [0x478ec8]
xor eax, esp
mov dword [esp + 0x254], eax
mov eax, dword [0x46fb98]
push esi
push edi
push 0x3a
mov esi, ecx
mov cx, word [0x46fb9c]
lea edx, [esp + 0x22]
push 0
push edx
mov dword [esp + 0x24], eax
mov word [esp + 0x28], cx
call fcn.00441070
movsx ax, byte [esp + 0x270]
add esp, 0xc
push 0x100
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x20]
push edx
mov word [esp + 0x24], ax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x40fb51
lea eax, [esp + 0x58]
push eax
call fcn.0040f920
jmp 0x40fb6f
cmp dword [esi + 4], 0
je 0x40fb6d
lea edi, [esp + 0xc]
call fcn.00414c30
push 0x474aec
mov ecx, edi
push ecx
call fcn.00441455
xor eax, eax
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
xor ecx, esp
call fcn.00440e94
add esp, 0x258
ret 4
Function at 0x40ff80
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x238
mov eax, dword [0x478ec8]
xor eax, esp
mov dword [esp + 0x230], eax
mov eax, dword [esi + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x250]
push edi
push 0x46fc50
mov ebx, ecx
push eax
mov dword [esp + 0x14], 0
mov edi, 1
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x410074
mov eax, dword [esp + 0x24c]
mov ecx, dword [esp + 0x250]
shld ecx, eax, 9
push 0
push 0
push ecx
mov ecx, dword [esi + 8]
shl eax, 9
push eax
push ecx
shl ebx, 9
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
cmp dword [esi + 4], 0
mov edi, eax
je 0x410012
test edi, edi
jne 0x41001a
lea edi, [esp + 0x14]
call fcn.00414c30
push 0x474aec
mov edx, edi
push edx
call fcn.00441455
test edi, edi
je 0x410175
cmp dword [esp + 0x248], 0
push 0
je 0x410039
mov ecx, dword [esi + 8]
lea eax, [esp + 0x10]
push eax
push ebx
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x41004a
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
push edx
push ebx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esi + 4], 0
mov edi, eax
je 0x410175
test edi, edi
jne 0x410175
lea edi, [esp + 0x14]
call fcn.00414c30
push 0x474aec
mov ecx, edi
push ecx
call fcn.00441455
mov edx, dword [esi + 0xc]
push edx
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x228], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
test ebx, ebx
jbe 0x410175
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test edi, edi
je 0x410175
mov ecx, dword [esp + 0x24c]
mov edx, dword [esp + 0x250]
mov dword [esp + 0x228], ecx
mov ecx, dword [esp + 0x10]
cmp ecx, 0x40
mov dword [esp + 0x234], ebp
mov dword [esp + 0x22c], edx
jbe 0x4100d5
mov ecx, 0x40
mov eax, dword [esi + 0x10]
neg eax
sbb eax, eax
and eax, 0xffffffb4
add eax, 0x22205c
cmp dword [esp + 0x248], 0
mov dword [esp + 0x230], ecx
push 0
je 0x41011c
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0x218
lea edx, [esp + 0x34]
push edx
push eax
mov eax, dword [esi + 8]
mov dword [esp + 0x240], 1
push eax
jmp 0x410140
lea edx, [esp + 0x10]
push edx
mov edx, dword [esi + 8]
shl ecx, 9
push ecx
push ebp
push 0x218
lea ecx, [esp + 0x34]
push ecx
push eax
mov dword [esp + 0x240], 0
push edx
call ebx
cmp dword [esi + 4], 0
mov edi, eax
je 0x41014e
test edi, edi
je 0x410191
mov eax, dword [esp + 0x230]
mov ecx, eax
shl ecx, 9
add ebp, ecx
add dword [esp + 0x24c], eax
adc dword [esp + 0x250], 0
sub dword [esp + 0x10], eax
jne 0x41009c
mov ecx, dword [esp + 0x23c]
mov eax, edi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00440e94
add esp, 0x238
ret 0x10
lea edi, [esp + 0x14]
call fcn.00414c30
push 0x474aec
mov edx, edi
push edx
call fcn.00441455
int3
Function at 0x413870
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x46559b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x478ec8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00431dc7
push 4
mov dword [esp + 0x24], 0
call fcn.00442470
mov edi, eax
add esp, 4
test edi, edi
je 0x4138f4
call fcn.004301e4
mov dword [edi], eax
call fcn.004300ba
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0042ffae
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4138e9
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0042ffcf
jmp 0x4138f6
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x414c30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x465ec8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x478ec8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0xc]
push ecx
mov esi, eax
call fcn.00412af0
mov esi, 0x10
mov dword [esp + 0x30], 0
cmp dword [eax + 0x18], esi
jb 0x414c81
mov edx, dword [eax + 4]
mov dword [esp + 8], edx
jmp 0x414c88
add eax, 4
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
mov ecx, edi
call fcn.00442242
cmp dword [esp + 0x24], esi
jb 0x414ca7
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00440ac8
add esp, 4
mov eax, edi
mov dword [edi], vtable.win32exception.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret
Function at 0x414d80
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x18
mov eax, dword [0x478ec8]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 3
push edi
push eax
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414dc3
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00440e94
add esp, 0x18
ret
push ebx
push 8
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call fcn.00444ee6
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x414e05
push edi
lea edx, [esp + 0x14]
push edx
push 8
push ebx
push 0xc
lea eax, [esp + 0x28]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x414e20
push ebx
call fcn.00444bb7
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00440e94
add esp, 0x18
ret
push ebp
mov ebp, dword [ebx + 4]
push ebp
call fcn.00444ee6
mov edi, eax
add esp, 4
test edi, edi
jne 0x414e58
push ebx
call fcn.00444bb7
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00440e94
add esp, 0x18
ret
push 0
lea ecx, [esp + 0x18]
push ecx
push ebp
push edi
push 0xc
lea edx, [esp + 0x2c]
push edx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
push ebx
jne 0x414ea3
call fcn.00444bb7
push edi
call fcn.00444bb7
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00440e94
add esp, 0x18
ret
mov eax, dword [edi + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
call fcn.00444bb7
push edi
call fcn.00444bb7
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.00440e94
add esp, 0x18
ret
Function at 0x418460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x418479
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4184b4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4184b0
lea ebx, [ebx]
cmp esi, eax
jae 0x4184b4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4184a0
cmp esi, eax
jb 0x4184ba
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x419c80
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x462af8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x478ec8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [0x47aaac]
mov edx, dword [eax + 0xc]
mov ecx, 0x47aaac
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
lea eax, [esp + 0xc]
push eax
push str.SOFTWARE
push closesocket
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
je 0x419d16
lea eax, [esi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419d02
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret
mov dword [esp + 0x14], 0x104
mov dword [esp + 0x18], 1
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x419d4c
push 0x104
lea ecx, [esp + 0x14]
call fcn.00416be0
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push esi
lea edx, [esp + 0x20]
push edx
push 0
push str.InstallAPPOnly
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov ecx, dword [esp + 0xc]
push ecx
je 0x419d95
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x419cf6
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x419da3
xor eax, eax
jmp 0x419db5
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x419da8
sub eax, edx
js 0x419e15
cmp eax, dword [esi - 8]
jg 0x419e15
push 0x4674cc
mov dword [esi - 0xc], eax
push esi
mov byte [eax + esi], 0
call fcn.00441057
add esp, 8
test eax, eax
sete al
test al, al
je 0x419ddd
mov edi, 1
lea eax, [esi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x419e01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret
push 0x80070057
call fcn.00401580
int3
Function at 0x41a900
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x462c38
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x478ec8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [esp + 0x24]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [0x47aaac]
mov edx, dword [eax + 0xc]
mov ecx, 0x47aaac
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [esi]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push eax
mov dword [esp + 0x20], 0
call ebp
test eax, eax
je 0x41a98f
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a988
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x41aa96
mov eax, dword [esi]
push 0x5c
push eax
call fcn.0044245d
add esp, 8
test eax, eax
je 0x41aa42
sub eax, dword [esi]
mov edi, eax
cmp edi, 0xffffffff
je 0x41aa42
push esi
lea ecx, [esp + 0x28]
call fcn.00416a40
mov ecx, dword [esi]
mov eax, dword [ecx - 0xc]
sub eax, edi
push eax
push edi
lea ecx, [esp + 0x2c]
call fcn.00419730
lea edx, [esp + 0x24]
push edx
mov ecx, ebx
call fcn.0041a900
test al, al
je 0x41aa6c
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x41aa0d
add eax, 0xffffffff
push eax
lea ecx, [esp + 0x28]
call fcn.004197e0
cmp al, 0x5c
jne 0x41aa0d
lea ecx, [esp + 0x24]
call fcn.00401640
mov al, 1
jmp 0x41aa96
mov eax, dword [esi]
push eax
call ebp
test eax, eax
jne 0x41a9fd
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41aa35
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x24]
call fcn.00401640
jmp 0x41aa94
lea ecx, [esp + 0x24]
call fcn.00401640
mov al, 1
jmp 0x41aa96
mov esi, dword [esi]
push esi
call ebp
test eax, eax
je 0x41aa6c
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x1c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x41a97c
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x1c], 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41aa94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4