joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bebb0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4bec53
test eax, eax
jbe 0x4bec53
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4bec53
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4bebfe
xor esi, esi
jmp 0x4bec04
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4bec2f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004276a0
add esi, eax
push esi
mov ebx, esi
call fcn.004276a0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4bec10
pop ebp
test edi, edi
pop edi
jne 0x4bec53
test ebx, ebx
je 0x4bec53
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004db7f0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x4bed95
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4beead
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4beead
mov eax, dword [esi + 0x3c]
push eax
call fcn.004eeb7e
mov esi, eax
test esi, esi
je 0x4beead
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4beead
mov ecx, esi
call fcn.004bed00
cmp edi, eax
jge 0x4beead
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4bee33
mov dword [esp + 0x34], 1
jmp 0x4bee8e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4beead
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004bd5a0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x4c9000
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5236e8
push 0x4dce54
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp - 0x20]
push 1
push esi
push esi
mov eax, dword [ebp - 0x28]
push eax
call fcn.004dadb0
sub eax, esi
sbb edx, edi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x24]
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c91b0
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x9c
push eax
call esi
test eax, eax
jne 0x4c91f1
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call esi
test eax, eax
je 0x4c925e
cmp dword [esp + 0x1c], 2
jne 0x4c925e
cmp dword [esp + 0x10], 5
jne 0x4c925e
cmp dword [esp + 0x14], 1
jne 0x4c925e
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4c9248
push str.IsWow64Process
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4c9239
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
jmp 0x4c9241
mov dword [esp + 8], 0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 8]
test eax, eax
je 0x4c925e
pop edi
mov eax, 1
pop esi
add esp, 0xa0
ret
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret
Function at 0x4edec8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004f8e36
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4edef9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.004edf0c
pop edi
pop esi
pop ebx
ret 8

Function at 0x4ef522
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ef55a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ed4f0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ed4c8
jmp 0x4ef566
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4f0ee6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4f0f28
call fcn.004f8e36
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4f0f28
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4f0f1f
xor eax, eax
jmp 0x4f0f30
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004f0f36
pop edi
pop esi
pop ebx
ret 4

Function at 0x4f9366
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4f9394
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f93b2
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004f92cc
jmp 0x4f93b2
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4f93b2
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004f92cc
test edi, edi
mov eax, edi
jne 0x4f939c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4fc1cc
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x4fc1f4
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x4fc205
push 2
call edi
test ax, ax
jge 0x4fc205
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004eeb57
cmp dword [esi + 0x30], ebx
jne 0x4fc2df
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004eeb57
cmp eax, dword [esp + 0x34]
jne 0x4fc2df
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x4fc27b
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x4fc2c0
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x4fc2df
cmp eax, 0x205
je 0x4fc2df
cmp eax, 0x201
je 0x4fc2df
cmp eax, 0x204
je 0x4fc2df
cmp eax, ebx
jne 0x4fc2a6
cmp dword [esp + 0x1c], 0x1b
je 0x4fc2df
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x5b1724]
jbe 0x4fc2d5
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x4fc238
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x401000
Capabilities:
Packed with generic packer

Disassembly:
mov eax, 0x75a894
push eax
push dword fs:[0]
test al, 0x75
add byte [eax + 0x64], dl
push dword [0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x401080
arpl word [edx + esi], si
adc ebx, dword [edi - 0x54]
xchg ebx, eax
neg dl
push cs
dec ecx
mov eax, 0x7fb97088
add ah, ah
aam 0xeb
jp 0x40109d
mov byte [eax - 0x47], dh
jg 0x401033
mov ecx, 0xd4e4027f
in al, 0xd4
jmp 0x4010af
test eax, 0xcf33638c
adc ch, bl
js 0x400fd0
sbb ch, ah
daa
stosd dword es:[edi], eax
mov dword [0x540fb128], eax
xchg edi, eax
inc ecx
and dword [esi + esi*8 - 0x78], ebp
rcr byte [eax - 0x2e], 0xa4
sti
push ss
scasd eax, dword es:[edi]
jne 0x40108b
jl 0x40102c
salc
pushal
jbe 0x401085
daa
xchg esp, eax
lcall 0xa4e8, 0x1020bb2d
mov ebx, 0xa4e81020
push eax
in eax, dx
xor bl, ah
sti
bnd jg 0x401002
popal
lea ebp, [edx - 0x70bb56c6]
push ds
pop ss
cmp dword [eax + ebx*8 + 0x46], eax
and byte [eax - 0x702274c0], al
pop eax
test al, 0xc5
fisttp qword [edi + 0x3dc5a858]
lahf
mov ah, 0xc2
sub ecx, dword [0x6e1df55c]
cmp eax, 0x2bc2b49f
or eax, 0x6e1df55c
pop esp
cmc
sbb eax, 0x97530b6e
or edx, dword [ebx - 0x69]
in al, 0x34
sub dword [edi], edx
stosd dword es:[edi], eax
loop 0x4010a6
shr byte [edx - 0x45d61c4d], 1
arpl word [edi - 0x278de9a], dx
sub dword [edx + 0x21669763], edi
xchg ebp, edi
jo 0x4010b7
adc byte [ebx - 0x7b], dh
jae 0x40102e
xlatb
in al, dx
scasd eax, dword es:[edi]
rol dword [0xffffd0cf], 1
fisub dword [edx + 0x3d]
xchg edi, eax
xchg ebp, eax
push 0xa7e35ce0
iretd
loopne 0x401115
jecxz 0x401062
jmp 0x4010fb
inc edi
inc ebp
invalid
mov eax, dword [edi]
jmp 0x4010de
push es
aas
dec esp
sbb al, 0xb2
or ecx, esi
pushal
jp 0x40110e
xchg dword [edi], edi
push ebp
arpl word [edx], bx
xchg ebp, eax
and dword [ecx + 0x73], 0x27
push esi
leave
adc bh, byte [0xf1cfcb47]
mov ecx, dword [esi + 0x2afe0d5e]
push ebx
lcall 0x58e9, 0xe192ed67
pop eax
outsb dx, byte [esi]
sub byte [eax + 0x15], ah
mov ecx, 0x775fedc3
test byte [eax + 0x35], ch
setb byte [edi + eax*8 - 0x62]
inc edi
in eax, dx
sub cl, byte [eax - 0x71]
jbe 0x401126
dec edi
iretd
Function at 0x401a32
Capabilities:
Enumerate processes

Disassembly:
push ebx
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, 0x22c
push edi
mov ebx, eax
call fcn.0040973e
pop ecx
mov esi, eax
push esi
push ebx
mov dword [esi], edi
call sub.KERNEL32.dll_Process32FirstW
push esi
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x401a80
lea edi, [esi + 0x24]
push edi
push dword [esp + 0x14]
call fcn.0040a635
test eax, eax
pop ecx
pop ecx
je 0x401a91
push esi
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x401a65
xor esi, esi
lea ecx, [esp + 0x10]
call fcn.00401869
pop edi
mov eax, esi
pop esi
pop ebx
ret
push dword [esi + 8]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
inc esi
jmp 0x401a82

Function at 0x4022c0
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x14]
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, esi
call fcn.0040112c
xor edi, edi
test eax, eax
ja 0x4022f7
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push edi
push 0x30
push edi
push edi
push eax
call dword [ecx + 0x18]
push ebx
jmp 0x4023a5
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 4]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
cmp dword [eax + 0xc], edi
jne 0x402347
mov dword [eax + 0xc], 3
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 4]
mov ebx, dword [ebp + 8]
lea eax, [eax + eax*4]
push ebx
lea eax, [ecx + eax*4]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
push edi
push ecx
push eax
push edi
call sub.urlmon.dll_URLDownloadToFileW
mov ecx, dword [esi + 4]
test eax, eax
mov eax, dword [esi + 0x10]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
jne 0x402369
mov dword [eax + 0xc], 1
jmp 0x40237f
cmp dword [eax + 0xc], 2
jne 0x40238a
push 3
pop ecx
cmp dword [eax + 0x10], ecx
jg 0x40238a
inc dword [eax + 0x10]
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 0xc], ecx
jmp 0x40230f
mov dword [eax + 0xc], 2
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 4]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
inc dword [eax + 0x10]
mov eax, dword [ebx]
push edi
push 0x30
push edi
push edi
push ebx
call dword [eax + 0x18]
mov ebx, dword [esi + 0x10]
mov ecx, esi
call fcn.0040112c
dec eax
cmp ebx, eax
jne 0x40239e
mov dword [esi + 0x10], edi
jmp 0x4023a2
inc ebx
mov dword [esi + 0x10], ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40288b
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi + 0x30], eax
xor eax, eax
push eax
push eax
push esi
push 0x40246c
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x34], eax
pop esi
ret 4
Function at 0x40340f
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push ebx
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, 0x22c
push edi
mov ebx, eax
call fcn.0040973e
pop ecx
mov esi, eax
push esi
push ebx
mov dword [esi], edi
call sub.KERNEL32.dll_Process32FirstW
xor edi, edi
jmp 0x403479
lea eax, [esi + 0x24]
push eax
push dword [esp + 0x14]
call fcn.0040a635
test eax, eax
pop ecx
pop ecx
jne 0x403479
push dword [esi + 8]
inc edi
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp edi, 1
jne 0x40349c
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
push eax
call fcn.004031eb
call fcn.00401a32
pop ecx
push esi
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x403438
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
lea ecx, [esp + 0x10]
call fcn.00401869
pop edi
mov eax, esi
pop esi
pop ebx
ret
xor esi, esi
inc esi
jmp 0x40348d
Function at 0x4047be
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.00404703
cmp eax, esi
jne 0x404836
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4047ff
lea eax, [ebp - 0x210]
push eax
call fcn.004047be
cmp eax, esi
jne 0x404835
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 0x100
call edi
test eax, eax
lea ecx, [ebp - 4]
je 0x4047ef
call fcn.004046ec
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 4]
mov esi, eax
call fcn.004046ec
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x404b13
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
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 0x404b1e
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8
Function at 0x407679
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 4]
call fcn.004031eb
push 0x5c
pop edi
push edi
push 0x2f
lea ecx, [ebp - 4]
call fcn.0040267a
mov esi, dword [ebp - 4]
mov eax, dword [esi - 8]
cmp word [esi + eax*2 - 2], di
je 0x4076bd
lea eax, [ebp - 8]
push eax
push 1
lea ecx, [ebp - 4]
mov dword [ebp - 8], edi
call fcn.0040194c
mov esi, dword [ebp - 4]
mov eax, dword [0x415050]
xor ebx, ebx
cmp dword [esi - 8], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
jle 0x407708
xor eax, eax
mov ax, word [esi + ebx*2]
cmp ax, di
je 0x4076e5
mov dword [ebp - 0xc], eax
jmp 0x4076f4
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004075bc
mov dword [ebp - 0xc], edi
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push 1
call fcn.0040194c
inc ebx
cmp ebx, dword [esi - 8]
jl 0x4076d5
mov esi, dword [ebp - 0x18]
jmp 0x40772a
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407727
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x407758
add esi, 4
cmp esi, dword [ebp - 0x14]
jne 0x40770d
mov bl, 1
lea ecx, [ebp - 8]
call fcn.00401869
lea ecx, [ebp - 0x1c]
call fcn.0040668e
lea ecx, [ebp - 4]
call fcn.00401869
lea ecx, [ebp + 8]
call fcn.00401869
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
xor bl, bl
jmp 0x407731
Function at 0x40775c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
push edi
push dword [ebp + 0x14]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004017bb
mov eax, dword [0x415050]
mov dword [ebp + 0x14], eax
push 0x104
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp + 0x14]
call fcn.004029ff
push ecx
lea eax, [ebp + 0x14]
mov ecx, esp
push eax
call fcn.004031eb
lea eax, [ebp + 0xc]
push eax
call fcn.00401f17
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x14]
call fcn.004029af
lea ecx, [ebp + 0xc]
call fcn.00401869
lea eax, [ebp + 0x14]
push eax
lea ecx, [esi + 0x44]
call fcn.004029af
xor ebx, ebx
push ebx
push 0x1c
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
push str._sTempgsie
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x20c]
lea edi, [esi + 0x40]
push eax
mov ecx, edi
call fcn.004029ff
push ecx
mov ecx, esp
push edi
call fcn.004031eb
call fcn.00407679
pop ecx
push dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
call fcn.0040321e
push ebx
push 0x412b14
lea ecx, [ebp + 0xc]
call fcn.00401837
cmp eax, ebx
jg 0x407852
xor bl, bl
jmp 0x40792e
add eax, 3
push eax
push 0x412b10
lea ecx, [ebp + 0xc]
call fcn.00401837
mov ebx, eax
push ebx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp + 0xc]
call fcn.0040327b
push eax
lea ecx, [esi + 0x48]
call fcn.004029af
lea ecx, [ebp + 8]
call fcn.00401869
push str.silent:1
lea ecx, [ebp + 0x10]
call fcn.0040321e
push str.silent:0
lea ecx, [ebp + 8]
call fcn.0040321e
push 0x412ad8
lea ecx, [ebp - 4]
call fcn.0040321e
lea ecx, [ebp + 0x10]
call fcn.00401eae
push dword [ebp + 0x10]
mov edi, dword [sym.imp.USER32.dll_CharLowerW]
call edi
lea ecx, [ebp + 8]
call fcn.00401eae
push dword [ebp + 8]
call edi
push ebx
push dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
call fcn.00401837
test eax, eax
jl 0x4078e3
mov dword [esi + 0x3c], 1
jmp 0x407910
push ebx
push dword [ebp + 8]
lea ecx, [ebp + 0xc]
call fcn.00401837
test eax, eax
jl 0x4078f9
and dword [esi + 0x3c], 0
jmp 0x407910
push ebx
push dword [ebp - 4]
lea ecx, [ebp + 0xc]
call fcn.00401837
test eax, eax
jl 0x407914
mov dword [esi + 0x3c], 2
mov bl, 1
jmp 0x407916
xor bl, bl
lea ecx, [ebp - 4]
call fcn.00401869
lea ecx, [ebp + 8]
call fcn.00401869
lea ecx, [ebp + 0x10]
call fcn.00401869
lea ecx, [ebp + 0xc]
call fcn.00401869
lea ecx, [ebp + 0x14]
call fcn.00401869
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 0x10
Function at 0x407947
Capabilities:
Copy file
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esi + 0xc]
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ebx
call fcn.004014e4
test eax, eax
jle 0x407aca
mov eax, dword [esi + 0x10]
push ecx
add eax, ebx
mov ecx, esp
push eax
call fcn.004031eb
lea eax, [ebp - 0x1c]
push eax
call fcn.004033b7
pop ecx
pop ecx
push eax
push 0x412b78
push esi
lea eax, [ebp - 0x18]
push eax
call fcn.0040336b
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040332a
lea ecx, [ebp - 0x18]
call fcn.00401869
lea ecx, [ebp - 0x1c]
call fcn.00401869
mov eax, dword [esi + 0x10]
add eax, ebx
push ecx
add eax, 4
mov ecx, esp
push eax
call fcn.004031eb
lea eax, [ebp - 8]
push eax
call fcn.00401f17
pop ecx
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x4079f5
push ecx
lea eax, [ebp - 8]
mov ecx, esp
push eax
call fcn.004031eb
call fcn.00407679
test al, al
pop ecx
je 0x407ad4
mov eax, dword [esi + 0x10]
add eax, ebx
mov eax, dword [eax + 4]
push 0
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x407a16
or dword [ebp - 0x14], 0xffffffff
jmp 0x407aa3
mov eax, dword [esi + 0x10]
add eax, ebx
cmp word [eax + 0xc], 3
je 0x407a29
cmp word [eax + 0xc], 4
jne 0x407aa3
cmp byte [eax + 0xe], 1
jne 0x407aa3
add eax, 4
push eax
lea ecx, [ebp - 4]
call fcn.004031eb
push dword [ebp - 4]
lea eax, [ebp - 4]
push str.__s___s_
push eax
call fcn.00403317
add esp, 0xc
push 0xe
xor eax, eax
pop ecx
mov dword [ebp - 0x58], 0x3c
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x3c], 0
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x54], 0x40
mov dword [ebp - 0x48], str.regsvr32.exe
mov dword [ebp - 0x4c], str.open
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x407a90
and dword [ebp - 0x14], eax
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 4]
call fcn.00401869
lea ecx, [ebp - 8]
call fcn.00401869
lea ecx, [ebp - 0x10]
call fcn.00401869
inc dword [ebp - 0xc]
lea ecx, [esi + 0xc]
add ebx, 0x10
call fcn.004014e4
cmp dword [ebp - 0xc], eax
jl 0x40796e
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 4
lea ecx, [ebp - 8]
call fcn.00401869
lea ecx, [ebp - 0x10]
call fcn.00401869
or eax, 0xffffffff
jmp 0x407acd
Function at 0x4087da
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
add esi, 0xc4
cmp dword [esi], eax
setg al
push eax
call dword [sym.imp.USER32.dll_PostQuitMessage]
cmp dword [esi], 1
pop esi
jne 0x408819
push 1
push 0
push 0
push dword [0x415df8]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret 4