joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401190
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 0x4011a9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4011bd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4011de
cmp esi, eax
jae 0x4011b7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4011d0
cmp esi, eax
jae 0x4011b7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4043f0
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x47bfdb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2cc
mov eax, dword [0x4a8ae4]
xor eax, esp
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x2d8], eax
mov esi, ecx
call fcn.00476002
mov edi, dword [eax + 4]
call fcn.00476002
call fcn.00476002
mov eax, dword [eax + 0xc]
mov ebx, dword [sym.imp.USER32.dll_LoadIconW]
push 0x82
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_DestroyIcon]
mov dword [esp + 0x10], eax
cmp dword [edi + 0x13a4], 4
jne 0x404521
push 0x4111
push 0x2b4
lea eax, [esp + 0x2c]
push eax
push 0x10
push str.Doesnt_matter
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [esp + 0x24]
push 0x83
push 0
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call ebx
push 0x8c
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call ebx
push 4
push 0
push 0x19
push 0x10
push 0x10
lea ecx, [esi + 0x98]
mov dword [esp + 0x2c], eax
call fcn.0045b33d
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x9c]
mov ebx, dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push edx
push 0xffffffffffffffff
push eax
call ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x9c]
push ecx
push 0xffffffffffffffff
push edx
mov dword [esi + 0xe8], eax
call ebx
push edi
mov dword [esi + 0xe4], eax
mov eax, dword [esi + 0x9c]
push 0xffffffffffffffff
push eax
call ebx
mov ecx, dword [esi + 0x9c]
push edi
push 0xffffffffffffffff
push ecx
mov dword [esi + 0xdc], eax
call ebx
push edi
mov dword [esi + 0xe0], eax
call ebp
mov edx, dword [esp + 0x18]
push edx
call ebp
mov eax, dword [esp + 0x14]
push eax
call ebp
jmp 0x404592
lea ecx, [esp + 0x1c]
call fcn.004246b0
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x2e8], 0
call fcn.00424810
mov ecx, dword [esp + 0x10]
push ecx
push 0xffffffffffffffff
push eax
mov dword [esi + 0x9c], eax
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov dword [esi + 0xe4], eax
mov edx, dword [edi + 0x1300]
mov dword [esi + 0xe8], edx
mov eax, dword [edi + 0xc4]
mov dword [esi + 0xdc], eax
mov ecx, dword [edi + 0xc4]
mov dword [esi + 0xe0], ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2e4], 0xffffffff
call fcn.004246d0
mov edx, dword [esp + 0x10]
push edx
call ebp
lea eax, [esi + 0x98]
test eax, eax
je 0x4045a6
mov eax, dword [eax + 4]
push eax
mov eax, dword [esi + 0x1c]
push 0
push 0x1109
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call fcn.0045b280
mov ecx, dword [esp + 0x2dc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x2cc]
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0044a318
add esp, 0x2d8
ret
Function at 0x404780
Capabilities:
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47c068
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebx, dword [edi + 0xac]
mov ebp, dword [esp + 0x20]
xor esi, esi
dec ebx
cmp ebx, 0xffffffff
mov dword [esp + 0x18], esi
je 0x404833
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4047fd
add ebp, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4047e3
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
test ebx, ebx
jl 0x404833
test esi, esi
jl 0x4048aa
cmp esi, dword [edi + 0xac]
jge 0x4048aa
mov eax, dword [edi + 0xa8]
lea eax, [eax + esi*4]
mov eax, dword [eax]
push eax
push ebp
call fcn.0044a53d
add esp, 8
test eax, eax
je 0x40486d
inc esi
cmp esi, ebx
jle 0x404801
add ebp, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404856
mov ecx, dword [ebp]
mov eax, dword [ecx]
push ebp
call dword [eax + 4]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
add ebp, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404890
mov ecx, dword [ebp]
mov eax, dword [ecx]
push ebp
call dword [eax + 4]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 4
call fcn.0045a790
int3
Function at 0x407e70
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x47c3f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x230
mov eax, dword [0x4a8ae4]
xor eax, esp
push ebx
push ebp
mov ebp, dword [esp + 0x24c]
push esi
mov dword [esp + 0x238], eax
push edi
xor ebx, ebx
mov dword [esp + 0x248], ebx
call fcn.00476002
mov ecx, dword [eax + 4]
call fcn.00461e2e
mov esi, dword [esp + 0x250]
xor eax, eax
mov word [esp + 0x34], bx
mov ecx, 0x81
lea edi, [esp + 0x36]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
mov byte [esp + 0x248], 1
jge 0x407f0b
push 0x104
lea ecx, [esp + 0x254]
call fcn.00401520
mov esi, dword [esp + 0x250]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
cmp ebp, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], ebx
mov word [esp + 0x30], ax
je 0x407f45
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x14], ecx
mov word [esp + 0x24], 0x14
mov dword [esp + 0x18], 3
mov ebp, dword [esi - 4]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, ebp
sub eax, 0x104
or eax, ecx
jge 0x407f82
push 0x104
lea ecx, [esp + 0x254]
call fcn.00401520
mov esi, dword [esp + 0x250]
lea edx, [esp + 0x34]
push esi
push edx
call fcn.0044a5c9
add esp, 8
lea ecx, [esp + 0x14]
lea eax, [esp + 0x34]
push ecx
mov dword [esp + 0x20], eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
call fcn.00476002
mov ecx, dword [eax + 4]
call fcn.00461e58
mov byte [esp + 0x248], bl
call fcn.00476002
mov ecx, dword [eax + 4]
call fcn.00461e43
lea eax, [esi - 0x10]
mov dword [esp + 0x248], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop edi
pop esi
pop ebp
pop ebx
jg 0x407fed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0044a318
add esp, 0x23c
ret
Function at 0x408390
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47c408
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00405280
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401570
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x408422
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40dc50
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x14
mov eax, dword [0x4a8ae4]
mov ecx, dword [esp + 0x18]
xor eax, esp
xor edx, edx
push edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 8], edx
mov dword [esp + 0xc], edx
lea edx, [esp + 4]
push edx
mov edx, dword [eax + 4]
push edx
push eax
push 0xc
lea eax, [esp + 0x18]
push eax
push 0x2d1400
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0044a318
add esp, 0x14
ret 8

Function at 0x40de00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x4a8ae4]
push ebx
mov ebx, dword [ebp + 8]
xor eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push edi
mov dword [esp + 0x134], eax
xor eax, eax
mov ecx, 0x47
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x11c
call esi
test eax, eax
jne 0x40de72
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 0x114
call esi
test eax, eax
jne 0x40de72
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, ebp
call fcn.0044a318
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x20]
sub eax, 0
je 0x40dedf
dec eax
je 0x40debc
dec eax
jne 0x40dee5
mov eax, dword [esp + 0x14]
cmp eax, 4
ja 0x40de90
mov dword [ebx], 3
cmp eax, 5
jne 0x40deb2
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40dea5
mov dword [ebx], 4
jmp 0x40dee5
cmp eax, 1
jb 0x40dee5
mov dword [ebx], 5
jmp 0x40dee5
jbe 0x40dee5
mov dword [ebx], 6
jmp 0x40dee5
mov eax, dword [esp + 0x14]
cmp eax, 4
ja 0x40ded7
jne 0x40decf
mov eax, dword [esp + 0x18]
test eax, eax
ja 0x40ded7
mov dword [ebx], 1
jmp 0x40dee5
mov dword [ebx], 2
jmp 0x40dee5
mov dword [ebx], 0
mov ecx, dword [esp + 0x134]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0044a318
mov esp, ebp
pop ebp
ret 4
Function at 0x40eee0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47cc90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebx, dword [edi + 0xd7c]
push 0x48a050
xor ebp, ebp
push 0x48a074
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x24], ebx
call fcn.00408010
call fcn.004621d7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 1
call fcn.00408220
cmp ebx, ebp
mov dword [esp + 0x14], 0xffffffff
jle 0x40f04f
lea ebx, [edi + 0xd74]
mov dword [esp + 0x18], ebx
lea esp, [esp]
test ebp, ebp
jl 0x40f0b3
cmp ebp, dword [ebx + 8]
jge 0x40f0b3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + ebp*4]
lea eax, [eax + ebp*4]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x40efd2
mov edx, dword [edi + 0xc]
test edx, edx
lea esi, [edi + 0xc]
jl 0x40efc0
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40efc0
push eax
call fcn.00401570
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x40efb3
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
lea esi, [ebx + 0x10]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x10], esi
jmp 0x40efd2
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00403be0
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 4]
mov edi, dword [esi - 0xc]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, edi
or eax, ecx
jge 0x40eff6
push edi
lea ecx, [esp + 0x14]
call fcn.00401520
mov esi, dword [esp + 0x10]
push esi
call fcn.0044a7c3
add esp, 4
test edi, edi
jl 0x40f0a9
cmp edi, dword [esi - 8]
jg 0x40f0a9
mov eax, dword [esp + 0x30]
push eax
mov dword [esi - 0xc], edi
push esi
mov word [esi + edi*2], 0
call fcn.0044a53d
add esp, 8
test eax, eax
jne 0x40f02f
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x1c]
inc ebp
cmp ebp, eax
jl 0x40ef60
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x40f04f
push 1
push eax
mov ecx, ebx
call fcn.0045c008
lea eax, [esi - 0x10]
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f06e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f094
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
push 0x80070057
call fcn.004010a0
call fcn.0045a790
int3
Function at 0x4109b0
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x43c
mov eax, dword [0x4a8ae4]
xor eax, esp
push ebx
push esi
push edi
mov dword [esp + 0x444], eax
mov edi, ecx
call fcn.00476002
mov ebx, dword [eax + 4]
lea eax, [esp + 0x238]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x238]
push ecx
call fcn.00449da9
add esp, 4
push eax
lea edx, [esp + 0x23c]
lea esi, [edi + 0xd68]
push edx
mov ecx, esi
call fcn.00403be0
push str.GETemp
call fcn.00449da9
add esp, 4
push eax
push str.GETemp
mov ecx, esi
call fcn.004082f0
push esi
lea ecx, [edi + 0xcc]
call fcn.00403cc0
mov eax, dword [esi]
xor edi, edi
lea ecx, [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call fcn.00464fbd
test eax, eax
jne 0x410a8f
mov esi, dword [esi]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x410a8f
push 0x111
mov ecx, ebx
call fcn.0040e720
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x438]
xor ecx, esp
call fcn.0044a318
add esp, 0x43c
ret
mov ecx, dword [esp + 0x444]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0044a318
add esp, 0x43c
ret

Function at 0x410ab0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2ec
mov eax, dword [0x4a8ae4]
push ebx
push esi
xor eax, ebp
push edi
mov dword [esp + 0x2f4], eax
push 0x104
lea eax, [esp + 0xec]
push eax
push 0
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xec]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
push esi
call fcn.004620d8
add esp, 4
mov edi, eax
push edi
push esi
push 0
lea eax, [esp + 0xf4]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x48a050
push edi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
push edi
call fcn.004620d3
xor eax, eax
mov word [esp + 0x24], 0
mov ecx, 0x31
lea edi, [esp + 0x26]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
movzx eax, si
shr ebx, 0x10
push ebx
push eax
shr esi, 0x10
push esi
lea ecx, [esp + 0x30]
push str.__d._d._d
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [esp + 0x38]
push edx
call fcn.00449da9
mov ecx, dword [esp + 0x30]
add esp, 0x1c
push eax
lea eax, [esp + 0x24]
push eax
add ecx, 0x70
call fcn.00403be0
mov ecx, dword [esp + 0x2f4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044a318
mov esp, ebp
pop ebp
ret
Function at 0x410d60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47cea0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x4a8ae4]
xor eax, esp
push ebx
push ebp
push esi
mov esi, dword [esp + 0x40]
xor ebx, ebx
push edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], ebx
call fcn.004621d7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x10], edi
mov ebp, dword [esp + 0x48]
push ebp
mov dword [esp + 0x40], ebx
call fcn.00462133
cmp eax, ebx
je 0x410dc5
push ebp
push eax
lea ecx, [esp + 0x18]
call fcn.0042b1e0
mov edi, dword [esp + 0x10]
mov ebp, 7
push edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
call fcn.00449da9
add esp, 4
push eax
push edi
lea ecx, [esp + 0x1c]
call fcn.00402410
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x1c]
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esp + 0x48], 1
mov word [esi + 4], bx
call fcn.00401f80
cmp dword [esp + 0x2c], 8
jb 0x410e1d
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004620d3
add esp, 4
lea eax, [edi - 0x10]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
mov dword [esp + 0x3c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410e4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x34]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x24]
pop ebx
xor ecx, esp
call fcn.0044a318
add esp, 0x30
ret 8
Function at 0x410e70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47cebb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x81c
mov eax, dword [0x4a8ae4]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, ebp
mov dword [ebp - 0x10], esp
xor edi, edi
push 0x489aa4
lea ecx, [ebp - 0x818]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x824], esi
mov dword [ebp - 0x818], edi
call fcn.00406210
lea eax, [ebp - 0x81c]
push eax
push 1
push edi
push str.SYSTEMCurrentControlSetServicesRemovableStorageService
mov dword [ebp - 4], edi
push reloc.SHELL32.dll_SHChangeNotifyRegister
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410f47
lea ecx, [ebp - 0x820]
push ecx
mov ecx, dword [ebp - 0x81c]
lea edx, [ebp - 0x814]
push edx
lea eax, [ebp - 0x828]
push eax
push edi
push str.ImagePath
push ecx
mov dword [ebp - 0x820], 0x3ff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 0x814]
push edx
call fcn.00449da9
add esp, 4
push eax
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x818]
call fcn.004082f0
mov ecx, dword [ebp - 0x81c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x410f80
push 0x489aa4
mov ecx, esi
call fcn.00406210
mov eax, dword [ebp - 0x818]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x410fb7
mov eax, dword [ebp - 0x818]
add eax, 0xfffffff0
push eax
mov dword [ebp - 4], edi
call fcn.00401570
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x818]
add eax, 0xfffffff0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410fc1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044a318
mov esp, ebp
pop ebp
ret
Function at 0x419660
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x6c
mov eax, dword [0x4a8ae4]
xor eax, esp
push esi
push edi
mov dword [esp + 0x70], eax
xor eax, eax
mov esi, dword [esp + 0x80]
mov word [esp + 0xc], 0
mov ecx, 0x18
lea edi, [esp + 0xe]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x7c]
stosw word es:[edi], ax
mov eax, dword [esp + 0x78]
add eax, 0x3ff
adc ecx, 0
shrd eax, ecx, 0xa
shr ecx, 0xa
push ecx
push eax
lea edx, [esp + 0x14]
push 0x48a090
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x1f
push esi
push 0
lea eax, [esp + 0x18]
push eax
push SysReAllocStringLen
push 0x400
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
push 1
lea ecx, [esp + 0xc]
push ecx
push 0xe
push 0x400
mov dword [esp + 0x18], 0x2e
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dx, word [esi]
xor edi, edi
cmp dx, word [esp + 8]
je 0x419717
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call ebx
cmp edi, eax
jge 0x419716
mov ax, word [esi + edi*2 + 2]
inc edi
cmp ax, word [esp + 0xc]
jne 0x419702
pop ebx
push 0x48ae0c
push esi
mov word [esi + edi*2], 0
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [esp + 0x70]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0044a318
add esp, 0x6c
ret 0xc

Function at 0x419e30
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47db88
push eax
mov dword fs:[0], esp
push esi
push edi
mov dword [esp + 0x10], 0
call fcn.00476002
mov esi, dword [esp + 0x18]
mov edi, dword [eax + 4]
push 5
push 0
push 0
push esi
push 0x48a054
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x1f
jne 0x419e80
push 0x163
mov ecx, edi
call fcn.0040e720
lea eax, [esi - 0x10]
mov dword [esp + 0x10], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419ea2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 4
Function at 0x41a0d0
Capabilities:
Get file attributes
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x47db88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x234
mov eax, dword [0x4a8ae4]
xor eax, esp
push ebx
push ebp
push esi
mov dword [esp + 0x23c], eax
push edi
mov ebp, ecx
xor edi, edi
mov dword [esp + 0x24c], edi
call fcn.00476002
mov esi, dword [esp + 0x254]
mov ebx, dword [eax + 4]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp + 0x10], eax
xor eax, eax
mov word [esp + 0x38], di
mov ecx, 0x81
lea edi, [esp + 0x3a]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x1c]
stosw word es:[edi], ax
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov word [esp + 0x30], ax
mov dword [esp + 0x14], ecx
mov word [esp + 0x24], 0x11
mov dword [esp + 0x18], 3
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
jge 0x41a1a5
push 0x104
lea ecx, [esp + 0x258]
call fcn.00401520
mov esi, dword [esp + 0x254]
lea edx, [esp + 0x38]
push esi
push edx
call fcn.0044a5c9
add esp, 8
lea ecx, [esp + 0x14]
lea eax, [esp + 0x38]
push ecx
mov dword [esp + 0x20], eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [esp + 0x26], 1
jne 0x41a1f6
lea eax, [esi - 0x10]
mov dword [esp + 0x24c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41a1f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x41a24d
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x38], esp
mov edi, esp
push esi
call fcn.00401570
add eax, 0x10
add esp, 4
mov ecx, ebx
mov dword [edi], eax
call fcn.0040eee0
test byte [esp + 0x10], 0x10
je 0x41a226
mov dword [ebp + 0xa8], 1
mov dword [esp + 0x24c], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41a248
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x244]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x238]
pop ebp
pop ebx
xor ecx, esp
call fcn.0044a318
add esp, 0x240
ret 8