joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405f40
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4b21e3
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x4f4930]
xor eax, esp
mov dword [esp + 0x26c], eax
push ebx
push ebp
push esi
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0x284]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x28c], ebx
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x18], ax
push ebx
lea eax, [esp + 0x29c]
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
call fcn.00406460
push 1
mov eax, 0x4cb7d0
lea ecx, [esp + 0x14]
mov byte [esp + 0x290], 1
call fcn.00406510
mov eax, esi
lea edx, [eax + 2]
jmp 0x405fd0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405fd0
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [esp + 0x14]
call fcn.00406510
push 6
mov eax, str..scpf
lea ecx, [esp + 0x14]
call fcn.00406510
mov eax, dword [esp + 0x14]
mov ebp, 8
cmp dword [esp + 0x28], ebp
jae 0x40600e
lea eax, [esp + 0x14]
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406067
cmp dword [esp + 0x28], ebp
jb 0x406034
mov edx, dword [esp + 0x14]
push edx
call fcn.0046fda3
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], ax
cmp dword [esp + 0x2ac], ebp
jb 0x406060
mov ecx, dword [esp + 0x298]
push ecx
call fcn.0046fda3
add esp, 4
xor al, al
jmp 0x4060f3
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x29c]
mov ecx, edi
call fcn.00406460
push 1
mov eax, 0x4cb7d0
mov ecx, edi
call fcn.00406510
lea eax, [esp + 0x58]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406090
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x5c]
mov ecx, edi
call fcn.00406510
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x28], ebp
jb 0x4060c5
mov edx, dword [esp + 0x14]
push edx
call fcn.0046fda3
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], ax
cmp dword [esp + 0x2ac], ebp
jb 0x4060f1
mov ecx, dword [esp + 0x298]
push ecx
call fcn.0046fda3
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x284]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x26c]
xor ecx, esp
call fcn.0046fdae
add esp, 0x280
ret 0x1c

Function at 0x407050
Capabilities:
Create thread

Disassembly:
sub esp, 8
push esi
call fcn.004093f0
mov esi, eax
call fcn.00452d20
test al, al
je 0x407072
push 0
push 0x4fe158
mov ecx, esi
call fcn.004094d0
push 0
push 0x400
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [0x4fe200], eax
mov esi, 0x4fe218
lea ecx, [ecx]
lea eax, [esp + 8]
push eax
push 0
push 0x4fe158
push 0x409e90
push 0
push 0
mov dword [esp + 0x20], 0
call fcn.00470bba
mov dword [esi], eax
add esi, 4
add esp, 0x18
cmp esi, 0x4fe240
jl 0x407090
mov al, 1
pop esi
add esp, 8
ret
Function at 0x4070d0
Capabilities:
Create thread
Delete file
Get common file path

Disassembly:
sub esp, 0x428
mov eax, dword [0x4f4930]
xor eax, esp
mov dword [esp + 0x424], eax
cmp byte [esp + 0x42c], 0
push ebx
push ebp
push esi
push edi
mov dword [0x4fe208], 1
jne 0x40730e
mov ecx, dword [0x4fe180]
mov eax, dword [0x4fe17c]
mov ebx, ecx
sub ebx, eax
sar ebx, 2
xor esi, esi
test ebx, ebx
jle 0x4072e0
mov edx, ecx
sub edx, eax
sar edx, 2
cmp esi, edx
jb 0x407137
call fcn.00470dee
mov ecx, dword [0x4fe180]
mov eax, dword [0x4fe17c]
mov edx, dword [eax + esi*4]
cmp dword [edx + 0x38], 1
je 0x407168
mov edx, ecx
sub edx, eax
sar edx, 2
cmp esi, edx
jb 0x40715b
call fcn.00470dee
mov ecx, dword [0x4fe180]
mov eax, dword [0x4fe17c]
mov edx, dword [eax + esi*4]
cmp dword [edx + 0x38], 2
jne 0x4072d7
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jb 0x40717b
call fcn.00470dee
mov eax, dword [0x4fe17c]
mov eax, dword [eax + esi*4]
cmp dword [eax + 0x2c], 0
jne 0x40722c
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x232]
push edx
mov word [esp + 0x234], cx
call fcn.00476c30
add esp, 0xc
lea eax, [esp + 0x228]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x2a]
push edx
mov word [esp + 0x2c], cx
call fcn.00476c30
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push 0
push str.sgbdl_
lea ecx, [esp + 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [0x4fe180]
sub eax, dword [0x4fe17c]
sar eax, 2
cmp esi, eax
jb 0x407211
call fcn.00470dee
mov ecx, dword [0x4fe17c]
lea edx, [esp + 0x20]
push edx
lea edi, [ecx + esi*4]
call fcn.0047205c
mov ecx, dword [edi]
add esp, 4
mov dword [ecx + 0x2c], eax
push 0x4fe1e8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x4fe180]
sub edx, dword [0x4fe17c]
sar edx, 2
cmp esi, edx
jb 0x40724f
call fcn.00470dee
mov edx, dword [0x4fe1ac]
mov eax, dword [0x4fe17c]
lea ebp, [eax + esi*4]
test edx, edx
jne 0x407265
xor ecx, ecx
jmp 0x407270
mov ecx, dword [0x4fe1b4]
sub ecx, edx
sar ecx, 2
mov eax, dword [0x4fe1b0]
mov edi, eax
sub edi, edx
sar edi, 2
cmp edi, ecx
jae 0x40728f
mov ecx, dword [ebp]
mov dword [eax], ecx
add eax, 4
mov dword [0x4fe1b0], eax
jmp 0x4072b1
mov edi, eax
cmp edx, eax
jbe 0x40729a
call fcn.00470dee
mov eax, dword [0x4fe1a0]
push edi
push eax
push ebp
lea edx, [esp + 0x24]
push edx
mov eax, 0x4fe1a0
call fcn.0040d030
push 0x4fe1e8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x4fe200]
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov ecx, dword [0x4fe180]
mov eax, dword [0x4fe17c]
inc esi
cmp esi, ebx
jl 0x40711c
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x4fe158
push 0x409a90
push 0
push 0
mov dword [esp + 0x2c], 0
call fcn.00470bba
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407318
push 0x4fe158
call fcn.00409ab0
mov ecx, dword [esp + 0x434]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.0046fdae
add esp, 0x428
ret 4
Function at 0x4087a0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x424
mov eax, dword [0x4f4930]
xor eax, esp
mov dword [esp + 0x41c], eax
push ebx
push edi
mov dword [esp + 0xc], esi
test esi, esi
jne 0x4087d7
xor al, al
pop edi
pop ebx
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.0046fdae
add esp, 0x424
ret
cmp dword [esi + 0x40], 0
jne 0x4087e4
mov dword [esi + 0x40], 0x4fe158
cmp dword [esi + 0x2c], 0
jne 0x408870
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x222]
push ecx
mov word [esp + 0x224], ax
call fcn.00476c30
add esp, 0xc
lea edx, [esp + 0x218]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.00476c30
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0
push str.sgbdl_
lea eax, [esp + 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 0x10]
push edx
call fcn.0047205c
add esp, 4
mov dword [esi + 0x2c], eax
cmp dword [esi + 0x48], 2
jne 0x40889b
push esi
push 0x4fe158
call fcn.0040ae60
test al, al
je 0x40889b
push esi
mov eax, 0x4fe158
call fcn.0040ac10
push esi
mov eax, 0x4fe158
call fcn.00407f50
push 0x4fe1e8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebx, [esp + 0xc]
mov edi, 0x4fe1a0
mov dword [esi + 0x38], 1
call fcn.0043b650
push 0x4fe1e8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x4fe200]
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov eax, dword [0x4fb764]
test eax, eax
je 0x4088f5
mov ecx, dword [eax + 0x124]
push 0
push 0
push 0x8004
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x424]
pop edi
pop ebx
xor ecx, esp
mov al, 1
call fcn.0046fdae
add esp, 0x424
ret
Function at 0x40ac10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
cmp dword [esp + 0x14], 0
push ebx
push ebp
push esi
push edi
mov esi, eax
je 0x40acc3
lea eax, [esi + 0x78]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esi + 0x3c]
add esi, 0x30
cmp ebx, dword [esi + 0x10]
jbe 0x40ac42
call fcn.00470dee
mov edi, dword [esi]
mov ebp, dword [esi + 0x10]
cmp dword [esi + 0xc], ebp
jbe 0x40ac51
call fcn.00470dee
mov eax, dword [esi]
test edi, edi
je 0x40ac5b
cmp edi, eax
je 0x40ac60
call fcn.00470dee
cmp ebx, ebp
je 0x40acae
test edi, edi
jne 0x40ac9b
call fcn.00470dee
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x40ac79
call fcn.00470dee
mov eax, dword [esp + 0x24]
cmp dword [ebx], eax
je 0x40aca3
test edi, edi
jne 0x40ac9f
call fcn.00470dee
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x40ac96
call fcn.00470dee
add ebx, 4
jmp 0x40ac44
mov eax, dword [edi]
jmp 0x40ac6f
mov eax, dword [edi]
jmp 0x40ac8c
push ebx
push edi
lea edi, [esp + 0x20]
call fcn.0043b6b0
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
mov dword [esp + 4], ecx
jmp dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x40be50
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
sub eax, dword [edi*4 + 0x4fe470]
cmp eax, 0x1388
jb 0x40be6e
inc dword [edi*4 + 0x4fe468]
inc dword [esi*4 + 0x4fe460]
call ebp
mov dword [esi*4 + 0x4fe470], eax
mov byte [0x4fe450], 1
pop ebp
ret
Function at 0x40dd30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4b20e6
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4f4930]
xor eax, esp
mov dword [esp + 0x24c], eax
push esi
push edi
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0x25c]
mov dword fs:[0], eax
mov byte [ebx], 0
call fcn.00419890
lea ecx, [esp + 0x134]
mov esi, eax
call fcn.0041ead0
cmp byte [esi + 0x128], 0
je 0x40dd8d
add esi, 0x18
jmp 0x40dd90
mov esi, dword [esi + 0x14]
lea eax, [esi + 4]
lea edx, [esp + 0x134]
call fcn.0041ed00
push 0
push 0
push 0
push 0
push 0
push str.SGDownload.exe
lea ecx, [esp + 0x28]
mov dword [esp + 0x27c], 6
call fcn.0041be00
cmp byte [esp + 0x12c], 0
lea eax, [esp + 0x1c]
jne 0x40ddd4
mov eax, dword [esp + 0x18]
cmp word [eax + 4], 0x2e
jne 0x40dded
lea ecx, [esp + 0x10]
lea esi, [esp + 0x134]
call fcn.0041ce30
jmp 0x40ddfe
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x138]
call fcn.0041c430
cmp byte [esp + 0x12c], 0
mov esi, 0x4d4d70
mov dword [esp + 0x10], esi
jne 0x40de26
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
cmp eax, ecx
je 0x40de26
push eax
call fcn.00470027
add esp, 4
cmp byte [esp + 0x250], 0
lea eax, [esp + 0x140]
jne 0x40de3e
mov eax, dword [esp + 0x13c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40de78
shr eax, 4
not al
and al, 1
je 0x40de78
cmp byte [esp + 0x250], 0
lea eax, [esp + 0x140]
jne 0x40de6e
mov eax, dword [esp + 0x13c]
lea edi, [eax + 4]
call fcn.00454ba0
mov byte [ebx], al
cmp byte [esp + 0x250], 0
mov dword [esp + 0x134], esi
jne 0x40dea4
mov eax, dword [esp + 0x13c]
lea edx, [esp + 0x140]
cmp eax, edx
je 0x40dea4
push eax
call fcn.00470027
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.0046fdae
add esp, 0x25c
ret
Function at 0x413ce0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4f4930]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
mov ebp, dword [esp + 0x214]
test edi, edi
je 0x413d98
test ebx, ebx
je 0x413d98
push esi
push 0x2f
push edi
call fcn.0047030c
mov esi, eax
add esp, 8
test esi, esi
jne 0x413d2f
push 0x5c
push edi
call fcn.0047030c
mov esi, eax
add esp, 8
test esi, esi
je 0x413d34
add esi, 2
jmp 0x413d39
mov esi, str.icon.png
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00476c30
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
push ebp
lea eax, [esp + 0x10]
push eax
push str._s_s__s
push 0x104
push ebx
call fcn.0046fdbd
add esp, 0x18
pop esi
mov al, 1
pop ebp
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0046fdae
add esp, 0x20c
ret 4
mov ecx, dword [esp + 0x20c]
pop ebp
xor ecx, esp
xor al, al
call fcn.0046fdae
add esp, 0x20c
ret 4
Function at 0x4165a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b209b
mov eax, dword fs:[0]
push eax
sub esp, 0x330
mov eax, dword [0x4f4930]
xor eax, esp
mov dword [esp + 0x32c], eax
push esi
push edi
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0x33c]
mov dword fs:[0], eax
xor eax, eax
push 0x206
mov edi, ecx
push eax
lea ecx, [esp + 0x13a]
push ecx
mov esi, edx
mov word [esp + 0x13c], ax
call fcn.00476c30
add esp, 0xc
lea edx, [esp + 0x130]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x41664d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.0041a480
mov esi, eax
push 0x4d3d50
push 0x4d4204
mov edx, esi
call fcn.0041f080
push edi
push 0x4d4d4c
mov edx, esi
call fcn.0041f080
add esp, 0x10
xor al, al
jmp 0x4166fb
lea eax, [esp + 0x130]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416657
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x12e], 0x5c
jne 0x416699
lea eax, [esp + 0x130]
lea edx, [eax + 2]
jmp 0x416680
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416680
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x12e], cx
lea ecx, [esp + 0xc]
call fcn.0041ead0
lea eax, [esp + 0x130]
lea edx, [esp + 0xc]
call fcn.0041ed00
cmp byte [esp + 0x128], 0
lea eax, [esp + 0x18]
jne 0x4166c4
mov eax, dword [esp + 0x14]
add eax, 4
lea edx, [edi + 0x130]
call fcn.0041ed00
cmp byte [esp + 0x128], 0
mov dword [esp + 0xc], 0x4d4d70
jne 0x4166f9
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
cmp eax, edx
je 0x4166f9
push eax
call fcn.00470027
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x33c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x32c]
xor ecx, esp
call fcn.0046fdae
add esp, 0x33c
ret
Function at 0x417270
Capabilities:
Accept command line arguments

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
call edi
call edi
lea edx, [esi + 0x4d4]
call fcn.0041ed00
cmp byte [esi + 0x5f0], 0
lea eax, [esi + 0x4e0]
jne 0x41729e
mov eax, dword [esi + 0x4dc]
add esi, 0x5f8
add eax, 4
mov edx, esi
call fcn.0041ed00
mov eax, esi
call fcn.0041f410
pop edi
mov al, 1
pop esi
ret
Function at 0x41b170
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov ebx, eax
mov eax, dword [esp + 0x20]
mov esi, ecx
mov ecx, dword [eax]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esi + 4]
push eax
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x20]
push ecx
push 0
push ebx
push edx
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x41b29b
test ebx, ebx
je 0x41b247
cmp word [ebx], 0
je 0x41b247
cmp byte [esi + 0x128], 0
je 0x41b1d9
add esi, 0x18
mov dword [esp + 0x20], esi
jmp 0x41b1e0
mov eax, dword [esi + 0x14]
mov dword [esp + 0x20], eax
mov ecx, ebp
call fcn.0041a480
mov esi, eax
call fcn.0041a720
mov ecx, ebp
call fcn.0041a480
mov esi, eax
push 0x4d4548
push 0x4d4204
mov edx, esi
call fcn.0041f080
mov ecx, dword [esp + 0x28]
add ecx, 4
push ecx
push 0x4d4204
mov edx, esi
call fcn.0041f080
push 0x4cb7d0
push 0x4d4204
mov edx, esi
call fcn.0041f080
push ebx
push 0x4d4204
mov edx, esi
call fcn.0041f080
add esp, 0x20
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 0x10
cmp byte [esi + 0x128], 0
lea ebx, [esi + 0x18]
jne 0x41b256
mov ebx, dword [esi + 0x14]
mov ecx, ebp
call fcn.0041a480
mov esi, eax
call fcn.0041a720
mov ecx, ebp
call fcn.0041a480
mov esi, eax
push 0x4d4548
push 0x4d4204
mov edx, esi
call fcn.0041f080
add ebx, 4
push ebx
push 0x4d4204
mov edx, esi
call fcn.0041f080
add esp, 0x10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 0x10
mov edx, dword [esp + 0x18]
cmp edx, dword [esp + 0x24]
je 0x41b37c
test ebx, ebx
je 0x41b334
cmp word [ebx], 0
je 0x41b334
cmp byte [esi + 0x128], 0
je 0x41b2c9
add esi, 0x18
mov dword [esp + 0x20], esi
jmp 0x41b2d0
mov eax, dword [esi + 0x14]
mov dword [esp + 0x20], eax
mov ecx, ebp
call fcn.0041a480
xor edi, edi
mov esi, eax
call fcn.0041a720
mov ecx, ebp
call fcn.0041a480
mov esi, eax
push 0x4d4558
push 0x4d4204
mov edx, esi
call fcn.0041f080
mov ecx, dword [esp + 0x28]
add ecx, 4
add esp, 8
push ecx
mov ecx, esi
call fcn.0041a870
mov esi, eax
push 0x4cb7d0
push 0x4d4204
mov edx, esi
call fcn.0041f080
add esp, 8
push ebx
mov ecx, esi
call fcn.0041a870
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 0x10
cmp byte [esi + 0x128], 0
je 0x41b342
add esi, 0x18
jmp 0x41b345
mov esi, dword [esi + 0x14]
mov ecx, ebp
call fcn.0041a480
mov edi, eax
push 0x4d4558
push 0x4d4204
mov edx, edi
call fcn.0041f080
add esi, 4
push esi
push 0x4d4204
mov edx, edi
call fcn.0041f080
add esp, 0x10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 0x10
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword [eax], edx
mov al, 1
pop ebx
pop ecx
ret 0x10
Function at 0x41b390
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x41b4af
test ebx, ebx
je 0x41b45c
cmp word [ebx], 0
je 0x41b45c
cmp byte [esi + 0x128], 0
je 0x41b3de
add esi, 0x18
mov dword [esp + 0x1c], esi
jmp 0x41b3e5
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x1c], ecx
mov ecx, ebp
call fcn.0041a480
mov esi, eax
call fcn.0041a720
mov ecx, ebp
call fcn.0041a480
mov esi, eax
push 0x4d4570
push 0x4d4204
mov edx, esi
call fcn.0041f080
mov edx, dword [esp + 0x24]
add edx, 4
push edx
push 0x4d4204
mov edx, esi
call fcn.0041f080
push 0x4d4588
push 0x4d4204
mov edx, esi
call fcn.0041f080
push ebx
push 0x4d4204
mov edx, esi
call fcn.0041f080
push 0x4d4590
push 0x4d4204
mov edx, esi
call fcn.0041f080
add esp, 0x28
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0xc
cmp byte [esi + 0x128], 0
lea ebx, [esi + 0x18]
jne 0x41b46b
mov ebx, dword [esi + 0x14]
mov ecx, ebp
call fcn.0041a480
mov esi, eax
call fcn.0041a720
mov ecx, ebp
call fcn.0041a480
mov esi, eax
push 0x4d4570
push 0x4d4204
mov edx, esi
call fcn.0041f080
add ebx, 4
push ebx
push 0x4d4204
mov edx, esi
call fcn.0041f080
add esp, 0x10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0xc
Function at 0x41b4c0
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x12c
mov eax, dword [0x4f4930]
xor eax, esp
mov dword [esp + 0x128], eax
push ebp
mov ebp, dword [esp + 0x134]
push esi
push edi
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 4]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
test edi, edi
je 0x41b602
cmp byte [esp + 0x140], 0
jne 0x41b510
cmp edi, 2
je 0x41b602
cmp edi, 5
jne 0x41b588
lea ecx, [esi + 0xc]
push ecx
lea ecx, [esp + 0x14]
call fcn.0041eb80
push 0x4cb7d0
push 0x4d4204
lea edx, [esp + 0x18]
call fcn.0041f080
push ebx
push 0x4d4204
lea edx, [esp + 0x20]
call fcn.0041f080
add esp, 0x10
cmp byte [esp + 0x12c], 0
lea eax, [esp + 0x1c]
jne 0x41b559
mov eax, dword [esp + 0x18]
push 0
push 0x10000000
add eax, 4
push 4
push eax
call fcn.00423e10
mov edx, dword [esi + 4]
add esp, 0x10
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.0041ec80
test edi, edi
je 0x41b602
cmp byte [esi + 0x128], 0
je 0x41b59a
add esi, 0x18
mov dword [esp + 0xc], esi
jmp 0x41b5a1
mov eax, dword [esi + 0x14]
mov dword [esp + 0xc], eax
mov ecx, ebp
call fcn.0041a480
mov esi, eax
call fcn.0041a720
mov ecx, ebp
call fcn.0041a480
mov esi, eax
push 0x4d4598
push 0x4d4204
mov edx, esi
call fcn.0041f080
mov ecx, dword [esp + 0x14]
add ecx, 4
push ecx
push 0x4d4204
mov edx, esi
call fcn.0041f080
push 0x4cb7d0
push 0x4d4204
mov edx, esi
call fcn.0041f080
push ebx
push 0x4d4204
mov edx, esi
call fcn.0041f080
add esp, 0x20
xor al, al
jmp 0x41b604
mov al, 1
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0046fdae
add esp, 0x12c
ret 8

Function at 0x41c5e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
mov dword [edi], 0
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x41c5fd
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41c615
shr eax, 4
not al
and al, 1
jne 0x41c626
mov ecx, esi
call fcn.0041c660
test al, al
je 0x41c626
or dword [edi], 0x4000
pop edi
pop esi
ret 4

Function at 0x41c630
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp byte [ecx + 0x11c], 0
lea eax, [ecx + 0xc]
jne 0x41c63f
mov eax, dword [ecx + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41c651
xor al, al
ret
shr eax, 4
not eax
and eax, 1
ret
Function at 0x41ce80
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4b2a27
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x4f4930]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0x25c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x26c]
mov esi, ecx
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x41ced2
mov eax, dword [esi + 8]
push 2
add eax, 4
push 0x4d46a0
push eax
call fcn.0047236c
add esp, 0xc
test eax, eax
je 0x41d0d5
mov ecx, esi
call fcn.0041c660
test al, al
je 0x41cf80
cmp byte [esp + 0x270], 0
je 0x41d0d5
cmp byte [esi + 0x11c], 0
je 0x41cf18
add esi, 0xc
jmp 0x41cf1b
mov esi, dword [esi + 8]
lea ecx, [esp + 0x10]
call fcn.0041ead0
lea eax, [esi + 4]
lea edx, [esp + 0x10]
call fcn.0041ed00
push 0x4d46a8
mov ecx, ebx
mov dword [esp + 0x268], 1
call fcn.0041a480
mov edi, eax
lea eax, [esp + 0x14]
call fcn.0041a910
cmp byte [esp + 0x12c], 0
mov dword [esp + 0x10], 0x4d4d70
jne 0x41cf79
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
cmp eax, ecx
je 0x41cf79
push eax
call fcn.00470027
add esp, 4
xor al, al
jmp 0x41d0d7
lea ecx, [esp + 0x134]
call fcn.0041bda0
lea edx, [esp + 0x134]
push edx
mov ecx, esi
mov dword [esp + 0x268], 2
call fcn.0041d710
test al, al
je 0x41cfe0
lea eax, [esp + 0x134]
call fcn.0041c390
test al, al
jne 0x41cfe0
push 0
push ebx
lea ecx, [esp + 0x13c]
call fcn.0041ce80
test al, al
jne 0x41cfe0
lea ecx, [esp + 0x134]
call fcn.0041ec80
xor al, al
jmp 0x41d0d7
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x41cfef
mov eax, dword [esi + 8]
push 0
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41d097
cmp byte [esi + 0x11c], al
je 0x41d010
add esi, 0xc
jmp 0x41d013
mov esi, dword [esi + 8]
lea ecx, [esp + 0x10]
call fcn.0041ead0
lea eax, [esi + 4]
lea edx, [esp + 0x10]
call fcn.0041ed00
push 0x4d46c4
mov byte [esp + 0x268], 4
call fcn.0041a6f0
mov edi, eax
lea eax, [esp + 0x14]
call fcn.0041a910
cmp byte [esp + 0x12c], 0
mov esi, 0x4d4d70
mov dword [esp + 0x10], esi
jne 0x41d06d
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
cmp eax, ecx
je 0x41d06d
push eax
call fcn.00470027
add esp, 4
cmp byte [esp + 0x250], 0
mov dword [esp + 0x134], esi
jne 0x41cf79
mov eax, dword [esp + 0x13c]
lea edx, [esp + 0x140]
cmp eax, edx
jmp 0x41cf6e
mov eax, esi
call fcn.0041e2e0
mov eax, esi
call fcn.0041e180
cmp byte [esp + 0x250], 0
mov dword [esp + 0x134], 0x4d4d70
jne 0x41d0d5
mov eax, dword [esp + 0x13c]
lea ecx, [esp + 0x140]
cmp eax, ecx
je 0x41d0d5
push eax
call fcn.00470027
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.0046fdae
add esp, 0x258
ret 8