joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b938
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x616780]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x128
xor edi, edi
push edi
push esi
call fcn.00579c10
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.0058d710
push eax
call fcn.00404990
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x5c3e60]
je 0x45ba96
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x45baaa
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x45baaa
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
je 0x45b9f4
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x45b9e8
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.0045b73f
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x45b9ef
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x45b9f6
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.0044e3d7
test eax, eax
je 0x45ba1d
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.0044dcec
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x45ba21
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.0044e3d7
test eax, eax
je 0x45ba48
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.0044dcec
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x45ba4c
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.0044e3d7
test eax, eax
je 0x45ba74
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.0044dcec
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x45ba76
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x45ba88
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x45ba96
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057837f
leave
ret 4
xor eax, eax
jmp 0x45ba99
Function at 0x45bc18
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.0058f2eb
pop ecx
test eax, eax
jne 0x45bc5a
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00445dff
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x45bc20
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret
Function at 0x4784f4
Capabilities:
Get file system object information

Disassembly:
push 0x398
mov eax, 0x5a9021
call fcn.00578b7a
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3a0], edi
test ecx, ecx
je 0x478685
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x478657
sub eax, 1
je 0x478573
sub eax, 1
je 0x47854b
sub eax, 1
je 0x478573
push 0x5b81db
mov ecx, edi
call fcn.004318b0
mov eax, edi
call fcn.00578b29
ret 0x10
push 0x408
push 0x160
lea eax, [ebp - 0x39c]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x478535
lea eax, [ebp - 0x28c]
push eax
jmp 0x47853a
lea eax, [ebp - 0x114]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x478535
push esi
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], esi
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x238], esi
push eax
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], esi
call fcn.0045baae
test eax, eax
je 0x478535
lea ecx, [ebp - 0x3a0]
call fcn.004033c0
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x47860d
test byte [ebp - 0x21c], 0x18
jne 0x47862f
mov eax, dword [ebx]
lea ecx, [ebp - 0x3a0]
push ecx
push dword [ebp - 0x220]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
push dword [ebp - 0x224]
call dword [0x5b5a74]
mov ecx, ebx
call esi
jmp 0x47862f
mov eax, dword [ebx]
lea ecx, [ebp - 0x3a0]
push ecx
lea ecx, [ebp - 0x234]
push ecx
mov esi, dword [eax + 0x1a4]
mov ecx, esi
call dword [0x5b5a74]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x3a0]
add eax, 0xfffffff0
push eax
call fcn.00402b40
pop ecx
mov ecx, dword [ebp - 0x3a0]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.00432367
jmp 0x478541
push 0x208
push 0x160
lea eax, [ebp - 0x39c]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x478535
lea eax, [ebp - 0x390]
jmp 0x478570
call fcn.00431650
int3

Function at 0x4787fd
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.004c60b2
call fcn.0043f111
cmp dword [eax + 0x14], 0
jne 0x478818
mov ecx, esi
pop esi
jmp fcn.00477b16
pop esi
ret

Function at 0x479193
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x616780]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x168], esi
test eax, eax
je 0x4791fd
push 0x208
push 0x160
lea ecx, [ebp - 0x164]
push ecx
push 0
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, esi
test eax, eax
je 0x4791e2
lea eax, [ebp - 0x158]
push eax
jmp 0x4791e7
push 0x5c7638
call fcn.004318b0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0057837f
leave
ret 8
call fcn.00431650
int3

Function at 0x4796e2
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00402a20
call fcn.0043f111
cmp dword [eax + 0x14], 0
jne 0x4796fd
mov ecx, esi
pop esi
jmp fcn.00478f3d
pop esi
ret
Function at 0x480f8e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x480fa7
call fcn.0043f0bd
mov esi, dword [eax + 0xc]
push 0x5c80bc
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x480fe9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x480fe9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x480fe9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00480ff2
jmp 0x480feb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x51be08
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x51be3e
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.004365cc
test eax, eax
je 0x51be26
mov eax, dword [eax + 0x20]
push 1
push edi
push ebx
push esi
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
pop edi
sbb eax, eax
pop ebx
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x53b2e4
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x5abf82
call fcn.00578b47
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x53b3ca
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x53b3ca
cmp esi, 0x43
je 0x53b326
cmp esi, 0x2d
jne 0x53b3ca
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x53b3ca
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.004033c0
movzx eax, byte [edi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [edi + 0xe5]
push eax
movzx eax, byte [edi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.004037d0
mov esi, dword [ebp - 0x10]
add esp, 0x14
lea eax, [esi - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x53b3b8
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x53b3b8
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
call fcn.00432367
push ebx
mov ecx, edi
call fcn.00539636
call fcn.00578b15
ret 4

Function at 0x57903d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x57907c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x57907c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x57907c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x57907c
cmp dword [ecx + 0x74], 0xe
jbe 0x57907c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x58b058
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x61fcf8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x58b098
cmp byte [ebx], 0xa
jne 0x58b098
or byte [eax + edi + 0x28], 4
jmp 0x58b09d
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x58b19b
mov al, byte [edx]
cmp al, 0x1a
je 0x58b17d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x58b0cc
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x58b0f1
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x58b0fb
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x58b0ae
jmp 0x58b19b
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x58b178
cmp dword [ebp - 0xc], 0
je 0x58b178
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x61fcf8]
test byte [eax + edi + 0x28], 0x48
je 0x58b152
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x58b13d
mov byte [esi], dl
jmp 0x58b14e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x61fcf8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x58b19b
cmp byte [ebp - 1], 0xa
jne 0x58b161
cmp esi, ebx
jne 0x58b161
mov byte [esi], 0xa
jmp 0x58b19a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0058affa
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x58b19b
mov byte [esi], 0xd
jmp 0x58b19a
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x61fcf8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x58b197
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x58b19b
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x58b1a4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x61fcf8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x58b1e7
cmp word [esi], dx
jne 0x58b1e7
or byte [edi + eax + 0x28], 4
jmp 0x58b1ec
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x58b33f
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x58b31f
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x58b22e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x58b264
cmp eax, edx
jae 0x58b270
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x58b206
jmp 0x58b33f
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x58b31b
cmp dword [ebp - 0x14], 0
je 0x58b31b
mov eax, dword [ebx*4 + 0x61fcf8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x58b2f3
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x58b2bc
mov word [esi], cx
jmp 0x58b2ef
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x61fcf8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x61fcf8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x61fcf8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x58b33f
pop ebx
cmp word [ebp - 4], bx
jne 0x58b304
cmp esi, dword [ebp + 0xc]
jne 0x58b304
mov word [esi], bx
jmp 0x58b33c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0058affa
add esp, 0x10
cmp word [ebp - 4], bx
je 0x58b33f
push 0xd
jmp 0x58b338
mov ecx, dword [ebx*4 + 0x61fcf8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x58b336
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x58b33f
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x594b51
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5e96d8
push 0x5e96d0
push str.FlsAlloc
push 0x1e
call fcn.0059497e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x594b85
push dword [ebp + 8]
mov ecx, esi
call dword [0x5b5a74]
call esi
jmp 0x594b8b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x594bcf
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5e96e8
push 0x5e96e0
push str.FlsGetValue
push 0x20
call fcn.0059497e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x594c06
push dword [ebp + 8]
mov ecx, esi
call dword [0x5b5a74]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x597320
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0059729c
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x597498
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x597498
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x597447
jg 0x597379
test eax, eax
je 0x59743d
push 1
push 0x1000
call fcn.0059671c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x59739f
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x597434
push 0x8000
push ebx
call fcn.005926b3
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5973cb
jg 0x5973c6
cmp ecx, 0x1000
jb 0x5973cb
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0058c2be
add esp, 0x10
cmp eax, 0xffffffff
je 0x597410
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x5973c6
jl 0x5973f7
test ecx, ecx
jne 0x5973b8
push dword [ebp - 0xc]
push ebx
call fcn.005926b3
push esi
call fcn.00593fc1
add esp, 0xc
xor edi, edi
jmp 0x5974a9
cmp byte [edi + 0x24], 0
je 0x597427
cmp dword [edi + 0x20], 5
jne 0x597427
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x597432
mov edi, dword [edi + 0x18]
jmp 0x597434
xor edi, edi
push esi
call fcn.00593fc1
pop ecx
jmp 0x5974a9
test ecx, ecx
jg 0x597409
jl 0x597447
test eax, eax
jae 0x597409
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0058affa
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x59746a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x597409
jmp 0x5974a1
push ebx
call fcn.00590c92
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x597409
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x5974a9
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x5974a6
mov edi, dword [edi + 0x18]
jmp 0x5974a9
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0058affa
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x59b10c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x59b1a9
push ebx
push esi
call fcn.0059b0d5
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.005971b3
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x59b156
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x59b1a8
push edi
push eax
call fcn.0059468f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x59b176
call fcn.00593fc1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x59b1a7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.005971b3
add esp, 0x20
test eax, eax
jne 0x59b195
push edi
call fcn.00593fc1
jmp 0x59b19d
push ebx
call fcn.00593fc1
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x59b1ac
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x59b1bd
pop esi
ret
push ebx
push edi
push esi
call fcn.0059b0d5
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0059468f
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x59b1e5
push ebx
push esi
push edi
call fcn.00579d70
add esp, 0xc
push 0
call fcn.00593fc1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x59b5a9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0059b1fa

Function at 0x5a2ce0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5a2d0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5a2d0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4039a5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x4039b8
push 0x80004005
call fcn.00404b6b
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4039bf
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x403aae
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x47d874]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea edx, [ebp - 0x214]
push edx
push 0x2001f
mov eax, ecx
mov ecx, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x220], eax
mov eax, dword [eax]
push ecx
push eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x403bcb
xor eax, eax
cmp dword [ebp - 0x210], esi
je 0x403b1c
push dword [ebp - 0x210]
call ebx
cmp eax, esi
mov ecx, dword [ebp - 0x214]
mov edi, eax
mov dword [ebp - 0x210], ecx
jne 0x403bcb
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push ecx
jmp 0x403b8f
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
call fcn.00403aae
cmp eax, esi
mov dword [ebp - 0x214], eax
jne 0x403bee
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 0x100
call edi
test eax, eax
je 0x403b54
cmp dword [ebp - 0x210], esi
je 0x403bb5
push dword [ebp - 0x210]
call ebx
mov dword [ebp - 0x210], esi
push dword [ebp - 0x21c]
mov eax, dword [ebp - 0x220]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 0x210], esi
je 0x403bdb
push dword [ebp - 0x210]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044e472
leave
ret 4
cmp dword [ebp - 0x210], esi
je 0x403bfe
push dword [ebp - 0x210]
call ebx
mov eax, dword [ebp - 0x214]
jmp 0x403bdd

Function at 0x409aaa
Capabilities:
Create thread

Disassembly:
lea eax, [esi + 8]
push eax
push 0
push esi
push 0x40998a
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 4], eax
jne 0x409aca
xor al, al
ret
push edi
xor edi, edi
cmp dword [esi + 0xc], 0
jne 0x409ae1
push 0x19
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x64
jl 0x409acd
mov al, 1
pop edi
ret
Function at 0x409b8c
Capabilities:
Get graphical window text

Disassembly:
push 0x28
mov eax, 0x46c0f7
call fcn.00454bfe
cmp dword [esi], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 0x34], eax
jne 0x409bc6
push dword [0x48021c]
call fcn.004139c0
pop ecx
call fcn.00409f5b
test eax, eax
mov dword [esi], eax
je 0x409c56
mov eax, dword [esi]
mov ecx, dword [esi + 0xc]
push dword [ebp - 0x34]
mov dword [eax + 4], ecx
mov eax, dword [esi]
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
push 7
call dword [eax + 0x24]
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004048f7
and dword [ebp - 4], 0
push str..ob_
lea ecx, [ebp - 0x2c]
call fcn.00409dfb
cmp dword [ebp - 0x14], 0x10
mov eax, dword [esi]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x28]
jae 0x409c08
lea eax, [ebp - 0x28]
mov edx, dword [ecx]
push eax
push 9
call dword [edx + 0x24]
mov eax, dword [esi]
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
push ebx
push 0xd
call dword [eax + 0x24]
mov eax, dword [esi]
push dword [ebp - 0x30]
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
push 0x13
call dword [eax + 0x24]
push 0
push 0x9ca4
push 0x111
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
test eax, eax
push 1
lea ecx, [ebp - 0x2c]
setne bl
call fcn.004045fb
mov al, bl
jmp 0x409c58
xor al, al
call fcn.00454c48
ret 8