joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42896f
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x428988
or eax, 0xffffffff
jmp 0x4289e9
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4289e5
push 0x3d
push esi
call fcn.00428b44
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4289e5
cmp esi, eax
je 0x4289e5
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x531118]
sete cl
cmp eax, dword [0x53111c]
mov dword [ebp - 8], ecx
jne 0x4289cb
mov edi, eax
call fcn.0042890e
mov dword [0x531118], eax
cmp eax, ebx
jne 0x428a24
cmp dword [ebp + 0xc], ebx
je 0x4289ed
cmp dword [0x531120], ebx
je 0x4289ed
call fcn.004283b8
test eax, eax
je 0x428a24
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4289f6
xor eax, eax
jmp 0x4289e8
push 4
call fcn.0041e260
cmp eax, ebx
pop ecx
mov dword [0x531118], eax
je 0x4289e5
mov dword [eax], ebx
cmp dword [0x531120], ebx
jne 0x428a24
push 4
call fcn.0041e260
cmp eax, ebx
pop ecx
mov dword [0x531120], eax
je 0x4289e5
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x531118]
call fcn.004288c1
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x428a85
cmp dword [esi], ebx
je 0x428a85
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0041e272
cmp dword [ebp - 8], ebx
pop ecx
jne 0x428a68
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x428ac6
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x428a5f
mov eax, edi
shl eax, 2
push eax
push dword [0x531118]
call fcn.0041e2e3
cmp eax, ebx
pop ecx
pop ecx
je 0x428ac6
jmp 0x428ac1
cmp dword [ebp - 8], ebx
jne 0x428b31
cmp edi, ebx
jge 0x428a94
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x531118]
call fcn.0041e2e3
cmp eax, ebx
pop ecx
pop ecx
je 0x4289e5
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x531118], eax
cmp dword [ebp + 0xc], ebx
je 0x428b1b
push dword [ebp - 4]
call fcn.0041ea20
inc eax
inc eax
push eax
call fcn.0041e260
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x428b1b
push dword [ebp - 4]
push esi
call fcn.0041ee10
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x428b14
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0041e272
pop ecx
cmp dword [ebp - 8], ebx
je 0x428b29
push dword [ebp - 4]
call fcn.0041e272
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4289e8
push dword [ebp - 4]
call fcn.0041e272
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4289f2
Function at 0x453a70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9950
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4d0084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 8]
mov esi, dword [ecx + 4]
mov edi, dword [ecx]
sub esi, edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov eax, 0x88888889
imul esi
add edx, esi
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x453ad6
add ecx, 0x2c
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.00459d40
mov eax, dword [ebp - 0x34]
jmp 0x453c2f
mov edx, dword [ecx + 0x20]
mov eax, dword [ecx + 0x24]
cmp edx, eax
jge 0x453aea
test byte [ecx + 0x44], 2
jne 0x453c4c
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 1
mov ecx, dword [ecx + 0x3c]
test esi, esi
je 0x453b2d
nop dword [eax]
add ecx, dword [edi + 0x14]
cmp dword [edi], 0xfffffffe
jne 0x453b22
mov eax, dword [edi + 0x38]
cmp ecx, eax
cmovae eax, ecx
mov ecx, eax
add ecx, dword [edi + 0x2c]
add edi, 0x78
sub esi, 1
jne 0x453b10
push ecx
lea ecx, [ebp - 0x28]
call fcn.00444090
mov esi, dword [ebp - 0x2c]
cmp dword [esi + 0x40], 8
lea ecx, [esi + 0x2c]
jb 0x453b45
mov ecx, dword [esi + 0x2c]
push dword [esi + 0x3c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00459bb0
mov edi, dword [esi]
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov eax, 0x88888889
mov ecx, dword [esi + 4]
sub ecx, edi
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x453c09
xor eax, eax
mov dword [ebp - 0x2c], eax
nop dword [eax + eax]
add eax, edi
cmp dword [eax + 0x18], 8
lea ecx, [eax + 4]
jb 0x453b8e
mov ecx, dword [eax + 4]
push dword [eax + 0x14]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00459bb0
mov eax, dword [ebp - 0x2c]
cmp dword [edi + eax], 0xfffffffe
jne 0x453bc2
mov ecx, dword [edi + eax + 0x38]
mov edx, dword [ebp - 0x18]
cmp ecx, edx
jbe 0x453bc2
movzx eax, word [edi + eax + 0x48]
sub ecx, edx
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.004544f0
mov eax, dword [ebp - 0x2c]
add eax, edi
cmp dword [eax + 0x30], 8
lea ecx, [eax + 0x1c]
jb 0x453bd0
mov ecx, dword [eax + 0x1c]
push dword [eax + 0x2c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00459bb0
mov ecx, dword [esi + 4]
mov eax, 0x88888889
mov edi, dword [esi]
sub ecx, edi
inc dword [ebp - 0x30]
add dword [ebp - 0x2c], 0x78
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
jb 0x453b80
mov eax, dword [ebp - 0x34]
movups xmm0, xmmword [ebp - 0x28]
mov byte [esi + 0x28], 1
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [eax + 0x10], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004785e6
mov esp, ebp
pop ebp
ret 4
push eax
push edx
lea ecx, [ebp - 0x48]
call fcn.00459c40
mov ecx, eax
mov dword [ebp - 4], 0
call 0x454aa0
int3
Function at 0x454cf0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
ja 0x454cb8
inc ebp
mov edi, dword [eax - 0x3a]
inc ebp
invalid
jb 0x454cc0
inc ebp
lea edi, [edx - 0x3a]
inc ebp
invalid
jae 0x454cc8
inc ebp
invalid
push edi
mov byte [ebp - 0x70], 0x16
call fcn.0045482a
jo 0x454cfe
ja 0x454cb8
inc ebp
mov edi, dword [eax - 0x3a]
inc ebp
invalid
inc ebp
invalid
popal
inc ecx
lea eax, [ebp - 0x84]
push eax
call fcn.0045483a
push eax
push esi
push dword [ebp + 8]
call fcn.004547ef
add esp, 0x10
mov dword [ebp - 0xc0], eax
push 0x40
push 0x1000
push dword [ebp + 0xc]
push ebx
call dword [ebp - 0x88]
mov esi, eax
cmp esi, ebx
je 0x455023
push dword [ebp - 0xb4]
push dword [ebp + 0x10]
push esi
call fcn.0045479b
add esp, 0xc
cmp word [edi + 6], bx
mov dword [ebp + 0xc], ebx
jbe 0x454d9a
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.0045479b
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x454d67
adc al, 0x8b
inc eax
or al, 3
dec ebp
adc byte [ebx], al
invalid
call fcn.0045482a
dec edx
jge 0x454d7a
xchg ecx, eax
mov edi, dword [esi + 0x3c]
add edi, esi
mov dword [ebp - 0x88], edi
mov eax, dword [edi + 0x80]
cmp eax, ebx
je 0x455019
add eax, esi
mov dword [ebp - 0x44], eax
cmp dword [eax + 4], ebx
jne 0x454dcf
cmp dword [eax + 0xc], ebx
je 0x454e72
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.0045482a
int3
call fcn.0045482a
mov edx, dword [esp + edx*8 - 0x5f7874aa]
add byte [eax], al
add byte [ebx], bh
ret
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x409a20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7000]
push edi
or ebp, 0xffffffff
jmp 0x409a42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x409a49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x409a38
mov eax, 1
add ebx, ebx
jne 0x409a5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x409a50
jne 0x409a6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x409a50
xor ecx, ecx
sub eax, 3
jb 0x409a80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x409af2
mov ebp, eax
add ebx, ebx
jne 0x409a8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x409a98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x409abc
inc ecx
add ebx, ebx
jne 0x409aa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x409a9d
jne 0x409ab9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x409a9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x409adc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x409acd
jmp 0x409a3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x409adc
add edi, ecx
jmp 0x409a3e
pop esi
mov edi, esi
mov ecx, 0x1f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x409afa
cmp byte [edi], 0
jne 0x409afa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x409aff
lea edi, [esi + 0x7000]
mov eax, dword [edi]
or eax, eax
je 0x409b6e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb1f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb244]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x409b2c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb24c]
or eax, eax
je 0x409b68
mov dword [ebx], eax
add ebx, 4
jmp 0x409b49
call dword [esi + 0xb248]
mov ebp, dword [esi + 0xb250]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x409ba2
sub esp, 0xffffff80
jmp 0x401d10
Function at 0x401287
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xe8
push ebx
push esi
mov esi, dword [ebp + 0x78]
push edi
push dword [ebp + 0x7c]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push dword [esi + 0x18]
call edi
push 9
push dword [esi + 0x18]
mov dword [ebp + 0x6c], eax
call edi
mov dword [ebp + 0x78], eax
push 0x64
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0x6c]
xor ebx, ebx
mov word [ebp - 0x78], bx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0x78]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [ebp + 0x64]
push eax
push dword [esi + 0x18]
mov dword [ebp + 0x64], ebx
mov dword [ebp + 0x68], ebx
call dword [sym.imp.USER32.dll_ClientToScreen]
xor eax, eax
lea edi, [ebp + 0x54]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp + 0x54]
push eax
push dword [ebp + 0x6c]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp + 0x58]
mov eax, dword [ebp + 0x54]
mov edi, dword [ebp + 0x60]
mov esi, dword [ebp + 0x5c]
push 4
sub edi, ecx
sub ecx, dword [ebp + 0x68]
push edi
sub esi, eax
sub eax, dword [ebp + 0x64]
push esi
push ecx
push eax
push ebx
push dword [ebp + 0x78]
mov dword [ebp + 0x54], eax
mov dword [ebp + 0x58], ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push edi
push esi
push dword [ebp + 0x58]
push dword [ebp + 0x54]
push dword [ebp + 0x78]
call dword [sym.imp.USER32.dll_MoveWindow]
push ebx
push dword [ebp + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret
Function at 0x40395f
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
push edi
xor edi, edi
test eax, eax
je 0x403977
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [edi + 0x2d0]
push eax
mov ecx, esi
call fcn.00443fa0
test edi, edi
jg 0x403a02
mov eax, dword [esi]
and word [eax], 0
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebp
mov ebp, 0x208
push ebp
push eax
push 0x4bcd24
call ebx
mov edi, eax
test edi, edi
jg 0x4039f1
mov eax, dword [esi]
push ebp
push eax
push 0x4bcd18
call ebx
mov edi, eax
test edi, edi
jg 0x4039f1
push 0
push 0x24
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
jle 0x403a01
mov eax, dword [esi]
push 0x4bcd0c
lea eax, [eax + edi*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
add edi, 5
test edi, edi
jle 0x403a01
mov eax, dword [esi]
mov word [eax + edi*2], 0x5c
mov eax, dword [esi]
inc edi
and word [eax + edi*2], 0
pop ebp
push dword [esi]
mov ebx, 0x4d80e8
mov ecx, ebx
call fcn.0041cd41
test edi, edi
jle 0x403a20
push dword [esi]
call fcn.004a9676
test eax, eax
pop ecx
jne 0x403a4e
push 0
push 0x24
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.TEMP_
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [esi]
mov ecx, ebx
call fcn.0041cd41
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x403e41
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
and word [ebp - 0x44], 0
push 0x20
lea eax, [ebp - 0x44]
push eax
push str.LC_ALL
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp word [ebp - 0x44], 0
jne 0x403e77
push 0x20
lea eax, [ebp - 0x44]
push eax
push 0xb
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp word [ebp - 0x44], 0
lea eax, [ebp - 0x44]
jne 0x403e86
mov eax, 0x4bcf1c
push eax
mov ecx, 0x4d7c94
call fcn.0044ce38
push dword [0x4d7c94]
call fcn.00444bbe
cmp eax, 1
pop ecx
jle 0x403ea8
mov word [0x4d7c0c], ax
leave
ret

Function at 0x404002
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetLastInputInfo]
lea eax, [ebp - 8]
xor ebx, ebx
push eax
mov dword [ebp - 8], 8
mov dword [ebp - 4], ebx
call edi
mov eax, dword [ebp - 4]
mov ecx, eax
sub ecx, dword [0x4d7c48]
test ecx, ecx
jle 0x404035
mov dword [0x4d7c48], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [0x4d7c48], eax
jmp 0x40406d
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], ebx
call edi
call esi
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jb 0x404065
sub eax, dword [0x4d7c48]
cmp eax, dword [ebp + 8]
jae 0x404075
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x4d62ec], bl
jg 0x404045
mov eax, dword [ebp - 4]
mov ecx, eax
sub ecx, dword [0x4d7c48]
pop esi
test ecx, ecx
jle 0x40408a
mov dword [0x4d7c48], eax
xor eax, eax
cmp byte [0x4d62ec], bl
pop edi
setg al
pop ebx
leave
ret

Function at 0x40425f
Capabilities:
Terminate process

Disassembly:
cmp byte [0x4d62ec], 2
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x14
pop esi
je 0x404276
push esi
call edi
cmp dword [0x4d7c58], 0
je 0x404291
push 0x1e
pop esi
jmp 0x404291
cmp dword [0x4d7c4c], 0
je 0x404294
push 0xa
call edi
dec esi
jns 0x404284
mov eax, dword [0x4d7c4c]
test eax, eax
pop edi
pop esi
je 0x4042b2
push 0
push eax
mov dword [0x4d7c4c], 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov byte [0x4d62ec], 0xff
ret
Function at 0x4042ba
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 0xc]
mov esi, 0x8000004
push 0x64
push ebx
push esi
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
cmp edi, ebx
mov byte [ebp - 1], 1
je 0x4042fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40430c
mov byte [ebp - 1], bl
jmp 0x40430c
push dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov edi, eax
cmp edi, ebx
je 0x404348
push ebx
push ebx
push ebx
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov dword [0x4d7c60], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4d7c60]
cmp eax, ebx
je 0x404348
cmp byte [ebp - 1], bl
je 0x404343
push 0x64
push ebx
push eax
call fcn.004aa020
mov eax, dword [0x4d7c60]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405a60
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
jne 0x405a7c
lea ebx, [ebp - 0x14]
cmp dword [ebp + 0xc], edi
mov esi, dword [ebp + 0xc]
jne 0x405a9a
cmp dword [ebp + 8], edi
lea esi, [ebp - 0x10]
je 0x405c25
push dword [ebx]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x26c
mov ecx, ebx
call fcn.00443fa0
push esi
call fcn.0040395f
mov edi, eax
lea eax, [edi + 1]
push eax
push dword [esi]
mov dword [ebp - 0x18], edi
push dword [ebx]
call fcn.004055fd
add esp, 0x10
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xc7
jmp 0x405add
mov edi, dword [ebp - 0x18]
cmp dword [ebp + 8], 0
je 0x405b88
mov eax, dword [ebx]
lea eax, [eax + edi*2]
push 0x4bd274
mov dword [ebp - 0x1c], eax
call fcn.00440118
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [ebp + 0x14]
push str.pecmd__s._lu._lu_s_
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebx]
add esp, 0x18
xor edi, edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405b47
push edi
push edi
push 5
mov ecx, 0x4d80e8
call fcn.004159e8
dec dword [ebp - 8]
jns 0x405ada
jmp 0x405c01
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0xc], 1
je 0x405c25
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [edi + 1]
push eax
push dword [ebx]
mov dword [ebp + 8], eax
push dword [esi]
call fcn.004055fd
mov eax, dword [esi]
mov word [eax + edi*2], 0x5c
mov eax, dword [ebp + 8]
mov ecx, dword [esi]
add esp, 0xc
and word [ecx + eax*2], 0
jmp 0x405b8a
mov eax, edi
and dword [ebp + 8], 0
add eax, eax
mov dword [ebp + 0xc], eax
push dword [ebp + 0x18]
mov edi, dword [esi]
push dword [ebp + 8]
add edi, dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [ebp + 0x14]
push str.pecmd__s._lu._lu_s
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esi]
add esp, 0x18
xor edi, edi
push edi
push 0x80
push 1
push edi
push edi
push 0x40000000
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
call fcn.0040569f
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x405bfc
push edi
push edi
push 5
mov ecx, 0x4d80e8
call fcn.004159e8
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xc8
jl 0x405b93
mov eax, dword [esi]
and word [eax], di
cmp dword [ebp - 0xc], edi
jne 0x405c06
mov eax, dword [ebx]
mov word [eax], di
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x405c14
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
jmp 0x405c22
cmp dword [ebp - 4], edi
je 0x405c22
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.0043db4f
lea ecx, [ebp - 0x14]
call fcn.0043db4f
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405c3c
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push edi
push str.PECMD:MSGSVR:HWND
xor ebx, ebx
push ebx
call fcn.004042ba
pop ecx
pop ecx
call fcn.00403e41
mov byte [0x4d7c3a], 1
call fcn.00404001
call fcn.0043f9ad
push str.TaskbarButtonCreated
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push ebx
push 0x24
pop edi
mov dword [0x4d7c3c], eax
push edi
lea eax, [ebp - 0x12c]
push eax
push ebx
mov byte [ebp - 0x12c], bl
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.System32Kernel32
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.user32
mov dword [0x4d7fe8], eax
mov dword [ebp - 4], eax
call esi
push str.GDI32
mov dword [0x4d7fe4], eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4bd324
push dword [ebp - 4]
mov dword [0x4d7fec], eax
call esi
push 7
pop ecx
mov dword [ebp - 0x28], edi
push str.GetNativeSystemInfo
push dword [ebp - 4]
mov dword [0x4d7be4], eax
xor eax, eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
call esi
cmp eax, ebx
je 0x405d14
lea ecx, [ebp - 0x28]
push ecx
call eax
call fcn.0044085f
shrd eax, edx, 0x10
shr edx, 0x10
cmp word [ebp - 0x28], bx
je 0x405d64
cmp eax, 0x50000
jbe 0x405d64
push str.Wow64RevertWow64FsRedirection
push dword [ebp - 4]
call esi
push str.Wow64DisableWow64FsRedirection
push dword [ebp - 4]
mov dword [0x4d7c34], eax
call esi
cmp dword [0x4d7c34], ebx
mov dword [0x4d7c30], eax
jne 0x405d59
mov dword [0x4d7c30], ebx
mov bl, 1
mov word [0x4d7c1c], 0x100
movsx eax, bl
push str.bX64
push eax
mov esi, 0x4d80e8
push esi
mov byte [0x4d7c39], bl
call fcn.004465af
push str.ptrlen
push 4
push esi
call fcn.004465af
push str.WM_TASKBARBUTTONCREATED
push dword [0x4d7c3c]
push esi
call fcn.004465af
add esp, 0x24
pop edi
pop esi
pop ebx
leave
ret