joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409480
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fd8d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x43f440]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 0xf8]
lea ebx, [esi + 0xf8]
test edi, edi
jne 0x4094c4
xor al, al
jmp 0x409672
cmp edi, 0x409
jne 0x4094da
call fcn.00408f60
cmp eax, edi
mov dword [ebx], eax
mov ecx, edi
cmove edi, ecx
call fcn.00401e80
mov ecx, eax
test ecx, ecx
je 0x40968e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [esi + 4]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push str.Software_s
push eax
call fcn.00402f40
mov esi, dword [ebp - 0x1c]
add esp, 0xc
mov ecx, 0x4439b9
push 0
push edi
push str.Language
push esi
push 0x80000001
call fcn.00408b90
push 0
push edi
push str.Language
push esi
push 0x80000002
mov ecx, 0x4439b9
call fcn.00408b90
push 0
push edi
push str.InstallerLanguageDWORD
push str.SoftwareProcessLasso
push 0x80000001
mov ecx, 0x4439b9
call fcn.00408b90
push 0
push edi
push str.InstallerLanguageDWORD
push str.SoftwareProcessLasso
push 0x80000002
mov ecx, 0x4439b9
call fcn.00408b90
push 0
push edi
push str.Language
push str.SoftwareProcessLasso
push 0x80000001
mov ecx, 0x4439b9
call fcn.00408b90
push 0
push edi
push str.Language
push str.SoftwareProcessLasso
push 0x80000002
mov ecx, 0x4439b9
call fcn.00408b90
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push 0x4431b8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [ebp - 0x20]
test eax, eax
jne 0x409602
push 4
push ebx
push 3
push eax
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push 0x4431b8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40964f
push 4
push ebx
push 3
push eax
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
jmp 0x409651
xor bl, bl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x409670
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c6ac
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401f80
int3
Function at 0x409bc0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fea4
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [0x43f440]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
mov dword [ebp - 0x820], 0
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x409dd0
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.0041e180
add esp, 0xc
lea eax, [ebp - 0x810]
push 0x3ff
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x409dd0
lea eax, [ebp - 0x810]
mov dword [ebp - 0x814], 0
push eax
lea ecx, [ebp - 0x814]
call fcn.004015f0
mov eax, dword [ebp - 0x814]
mov dword [ebp - 4], 1
mov dword [ebp - 0x81c], 0
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x409c86
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x409c9c
call fcn.00401e80
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x409dee
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x820], 1
mov dword [ebp - 0x81c], eax
mov eax, dword [ebp - 0x814]
push dword [eax - 0xc]
push eax
push 3
lea eax, [ebp - 0x81c]
push 0x4315e8
push eax
call fcn.00409ae0
add esp, 0x14
mov esi, dword [ebp - 0x81c]
mov ecx, dword [esi - 0x10]
lea ebx, [esi - 0x10]
mov byte [ebp - 4], 2
mov dword [ebp - 0x818], 0
test ecx, ecx
je 0x409cfd
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x409d13
call fcn.00401e80
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x409df8
mov eax, dword [ecx]
call dword [eax + 0xc]
push 4
push str.__a_
push dword [esi - 0xc]
add eax, 0x10
mov dword [ebp - 0x820], 3
mov dword [ebp - 0x818], eax
lea eax, [ebp - 0x818]
push esi
push eax
call fcn.00409ae0
add esp, 0x14
lea eax, [ebp - 0x818]
lea ecx, [ebp - 0x814]
push eax
call fcn.004024b0
mov edx, dword [ebp - 0x818]
or esi, 0xffffffff
mov dword [ebp - 0x820], 1
add edx, 0xfffffff0
mov byte [ebp - 4], 1
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409d85
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x409d9d
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x814]
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [ebp - 0x814]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x409dcc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
jmp 0x409dd2
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c6ac
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401f80
push 0x80004005
call fcn.00401f80
int3
Function at 0x40ba30
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430101
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x43f440]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x444644]
mov edi, dword [ebp + 8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x443b7c]
cmp eax, dword [ecx + 4]
jg 0x40bb67
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
test eax, eax
jne 0x40bafd
mov dword [ebp - 0x14], eax
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0xcab
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, 0x4a7
mov dword [ebp - 0x18], 8
nop dword [eax]
push 0
push esi
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push esi
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
inc esi
sub dword [ebp - 0x18], 1
jne 0x40bac0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c6ac
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x14], 1
jb 0x40ba96
mov ecx, 0x443b18
call fcn.00407d10
cmp eax, 1
ja 0x40ba96
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, 0x4a7
nop dword [eax]
lea eax, [esi - 0x4a7]
cmp eax, dword [ebp - 0x14]
ja 0x40bb3c
push 1
push esi
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
jmp 0x40bb4b
push 0
push esi
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push esi
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
inc esi
lea eax, [esi - 0x4a7]
cmp eax, 8
jb 0x40bb20
jmp 0x40bae1
push 0x443b7c
call fcn.0041c17c
add esp, 4
cmp dword [0x443b7c], 0xffffffff
jne 0x40ba7e
mov ecx, 0x443b18
mov dword [ebp - 4], 0
call fcn.00407390
push 0x430d40
call fcn.0041c41c
push 0x443b7c
mov dword [ebp - 4], 0xffffffff
call fcn.0041c12b
add esp, 8
jmp 0x40ba7e
Function at 0x40bbc0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430145
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x43f440]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push eax
push edi
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
je 0x40bd31
push ebx
call fcn.00409aa0
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.0041e180
add esp, 0x10
lea ecx, [ebp - 0x74]
call fcn.00407390
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0
call fcn.00407d10
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x80], eax
cmp eax, 1
ja 0x40bc7d
push 0
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push ebx
call edi
mov ebx, dword [ebp - 0x7c]
push 0
push dword [ebp - 0x78]
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
push 0
push dword [ebp - 0x78]
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call edi
jmp 0x40bd29
push 1
push ebx
call esi
push 1
push dword [ebp - 0x78]
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
call fcn.00401e80
mov ecx, eax
test ecx, ecx
je 0x40bd4d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 1
push 0x431628
push eax
call fcn.00402f40
add esp, 8
push dword [ebp - 0x78]
push 0
push 0x143
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
push edi
lea eax, [ebp - 0x78]
push 0x431630
push eax
call fcn.00402f40
mov esi, dword [ebp - 0x78]
add esp, 0xc
push esi
push 0
push 0x143
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
inc edi
cmp edi, dword [ebp - 0x80]
jb 0x40bcd3
push 0
push 0
push 0x14e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40bd29
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x74]
call fcn.004074f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c6ac
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401f80
int3
Function at 0x413200
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430500
mov eax, dword fs:[0]
push eax
sub esp, 0x80c
mov eax, dword [0x43f440]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x818], edi
call fcn.00401e80
mov ecx, eax
test ecx, ecx
je 0x413425
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
lea eax, [ebp - 0x814]
mov dword [ebp - 4], 0
push eax
push 0x80000002
mov ecx, esi
call fcn.00412ef0
cmp al, 1
je 0x413392
lea eax, [ebp - 0x814]
mov ecx, esi
push eax
push 0x80000001
call fcn.00412ef0
cmp al, 1
je 0x413392
call fcn.0041b360
push 0x800
mov bl, al
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.0041e180
add esp, 0xc
mov eax, 0x23
test bl, bl
mov ecx, 0x1c
cmovne ecx, eax
lea eax, [ebp - 0x810]
push 1
push ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x413383
mov ebx, dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [ebp - 0x810]
push 0
push eax
push 0
call ebx
lea edi, [ebp - 0x810]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4132f5
push 0
lea eax, [ebp - 0x810]
mov ecx, 7
push eax
mov esi, 0x431598
rep movsd dword es:[edi], dword [esi]
push 0
call ebx
lea ecx, [ebp - 0x810]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x413323
mov eax, dword [str.config]
mov dword [ecx], eax
mov eax, dword [0x4348ac]
mov dword [ecx + 4], eax
mov eax, dword [0x4348b0]
mov dword [ecx + 8], eax
mov eax, dword [0x4348b4]
mov dword [ecx + 0xc], eax
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413357
mov edi, dword [ebp - 0x818]
lea eax, [ebp - 0x810]
sub ecx, edx
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00401840
mov esi, dword [ebp - 0x814]
jmp 0x4133df
mov ecx, edi
call fcn.004019b0
mov esi, dword [ebp - 0x814]
jmp 0x4133df
mov esi, dword [ebp - 0x814]
cmp dword [esi - 0xc], 0
jl 0x4133b9
push str.config
push esi
call fcn.0041d927
add esp, 8
test eax, eax
je 0x4133b9
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x4133d1
push 7
push str.config
lea ecx, [ebp - 0x814]
call fcn.00403bd0
mov esi, dword [ebp - 0x814]
lea eax, [ebp - 0x814]
mov ecx, edi
push eax
call fcn.004024b0
push edi
call fcn.00406560
add esp, 4
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x413407
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c6ac
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00401f80
int3
Function at 0x413430
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430540
mov eax, dword fs:[0]
push eax
mov eax, 0x2014
call fcn.0041c810
mov eax, dword [0x43f440]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.004019b0
lea eax, [ebp - 0x2018]
mov dword [ebp - 0x2018], 0
push eax
mov ecx, esi
call fcn.00413640
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push dword [ebp - 0x2018]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4134be
mov ecx, edi
call fcn.004019b0
jmp 0x4135f0
lea eax, [ebp - 0x201c]
mov dword [ebp - 0x201c], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0x1000
jae 0x4135e2
cmp dword [ebp - 0x201c], 0
jne 0x4135e2
test ebx, ebx
jne 0x41350a
mov ecx, edi
call fcn.004019b0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x4135f2
push 0x2002
lea eax, [ebp - 0x2014]
push 0
push eax
call fcn.0041e180
add esp, 0xc
mov dword [ebp - 0x2020], 0
lea eax, [ebp - 0x2020]
push 0
push eax
push ebx
lea eax, [ebp - 0x2014]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4135e9
lea ecx, [ebp - 0x2014]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413553
sub ecx, edx
lea eax, [ebp - 0x2014]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00401840
push 0x431414
push 0x434958
mov ecx, edi
call fcn.004082c0
push 0x431414
push 0x4318a4
mov ecx, edi
call fcn.004082c0
push 0x431414
push 0x43b0ac
mov ecx, edi
call fcn.004082c0
push 0x431414
push 0x431554
mov ecx, edi
call fcn.004082c0
push 0x431414
push 0x43a6ec
mov ecx, edi
call fcn.004082c0
push 0x431414
push 0x43495c
mov ecx, edi
call fcn.004082c0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x4135f2
mov ecx, edi
call fcn.004019b0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
mov eax, dword [ebp - 0x2018]
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x413617
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c6ac
mov esp, ebp
pop ebp
ret 4
Function at 0x413a20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fedd
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x43f440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x3054]
test eax, eax
je 0x413ac1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x3054], 0
call fcn.00401e80
mov ecx, eax
test ecx, ecx
je 0x413ad3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.00412dc0
push 9
push str..pl_lock
lea ecx, [ebp - 0x10]
call fcn.00403bd0
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x413ac1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401f80
int3
Function at 0x41cf12
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41cf51
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41cf51
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41cf51
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41cf51
cmp dword [ecx + 0x74], 0xe
jbe 0x41cf51
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4277bc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4385cc
push 0x4385c4
push str.FlsAlloc
push 0x1f
call fcn.004276f7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4277f0
push dword [ebp + 8]
mov ecx, esi
call dword [0x43131c]
call esi
jmp 0x4277f6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42783a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4385dc
push 0x4385d4
push str.FlsGetValue
push 0x21
call fcn.004276f7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x427871
push dword [ebp + 8]
mov ecx, esi
call dword [0x43131c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x427879
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4385e4
push 0x4385dc
push str.FlsSetValue
push 0x22
call fcn.004276f7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4278b3
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43131c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x429034
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x43f440]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x42907f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004291cf
test al, al
jne 0x429079
sub edx, 2
cmp edx, edi
jne 0x42905f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4290a1
lea eax, [edi + 2]
cmp edx, eax
je 0x4290a1
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00428f80
add esp, 0x10
jmp 0x42919b
push esi
lea ecx, [ebp - 0x255]
call fcn.004291cf
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4290e4
push dword [ebp - 0x25c]
jmp 0x429091
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x429121
cmp word [ebp - 0x226], 0
je 0x429142
cmp word [ebp - 0x226], ax
jne 0x429121
cmp word [ebp - 0x224], 0
je 0x429142
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00428f80
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x42918e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4290fb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x429176
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x42919b
push 0x428db0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0042d6f0
add esp, 0x10
jmp 0x42916b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c6ac
leave
ret
Function at 0x42f4d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42f4fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42f4fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402a74
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004040d0
test esi, esi
jne 0x402aaa
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004041c0
jmp 0x402ac8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402988
mov edi, eax
test esi, esi
je 0x402ac8
cmp dword [ebx], 0
je 0x402ac8
dec esi
jmp 0x402ab1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4031f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x47a020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403288
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403268
xor eax, eax
push ebp
push 0x403261
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4032a4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403268
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x47a020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x47a020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403f54
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47c04c], 0
je 0x403fb5
cmp word [0x47c220], 0xd7b2
jne 0x403f7d
cmp dword [0x47c228], 0
jbe 0x403f7d
mov eax, 0x47c21c
call dword [0x47c238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47a06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403fdc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47a030], 0
jne 0x403fd1
push 0
push 0x47a064
push 0x47a06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret