joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c4870
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c48a8
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.004c2917
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c28ef
jmp 0x4c48b4
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c5f6a
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 0x4c5fac
call fcn.004cb8de
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x4c5fac
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x4c5fa3
xor eax, eax
jmp 0x4c5fb4
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c5fba
pop edi
pop esi
pop ebx
ret 4

Function at 0x4cbe0e
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 0x4cbe3c
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x4cbe5a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004cbd74
jmp 0x4cbe5a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4cbe5a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004cbd74
test edi, edi
mov eax, edi
jne 0x4cbe44
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4024a0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x264]
mov dword [ebp - 8], 1
push eax
mov eax, dword [ebp - 4]
dec eax
push ebx
neg eax
sbb eax, eax
push ebx
and al, 0xeb
mov word [ebp - 0x264], bx
add eax, 0x17
push eax
push dword [ebp - 0xc]
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4025b3
lea ecx, [ebp - 0x264]
call fcn.00401448
mov edx, dword [0x408150]
lea ecx, [ebp - 0x264]
call fcn.004013af
cmp dword [ebp - 4], ebx
je 0x402516
lea ecx, [ebp - 0x264]
call fcn.004020e0
lea ecx, [ebp - 0x264]
call fcn.00401448
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor edi, edi
lea esi, [ebp + eax*2 - 0x264]
cmp edi, ebx
mov edx, str.7_Zip_File_Manager.lnk
je 0x402545
mov edx, str.7_Zip_Help.lnk
mov ecx, esi
call fcn.00401312
lea eax, [ebp - 0x4bc]
push 0x40a44c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp edi, ebx
mov edx, str.7zFM.exe
je 0x40256c
mov edx, str.7_zip.chm
lea ecx, [ebp - 0x4bc]
call fcn.004013af
cmp dword [ebp - 4], ebx
jne 0x40258b
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4025a3
lea edx, [ebp - 0x4bc]
lea ecx, [ebp - 0x264]
call fcn.004025c5
test eax, eax
je 0x4025a3
mov dword [ebp - 8], ebx
inc edi
cmp edi, 2
jb 0x402537
cmp dword [ebp - 4], ebx
je 0x4025b3
cmp dword [ebp - 8], ebx
jne 0x4025c0
inc dword [ebp - 4]
cmp dword [ebp - 4], 3
jb 0x4024b4
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404bcf
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosb byte es:[edi], al
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
test dword [edi + 0x30fffffc], ebx
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21

Function at 0x404c09
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosb byte es:[edi], al
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
test dword [edi + 0x30fffffc], ebx
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
Function at 0x404c11
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosb byte es:[edi], al
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
test dword [edi + 0x30fffffc], ebx
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
Function at 0x401058
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x82
call fcn.0040afac
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x40109d
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x426f90
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x426f90]
xor cx, word [edx*2 + 0x426f90]
inc edx
mov word [edi + edx*2 + 0x426f8e], cx
cmp edx, dword [ebp + 0xc]
jl 0x40107d
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8

Function at 0x4020d4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x66
call fcn.0040afac
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x402116
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x426b98
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x426b98]
xor cx, word [edx*2 + 0x426b98]
inc edx
mov word [edi + edx*2 + 0x426b96], cx
cmp edx, dword [ebp + 0xc]
jl 0x4020f6
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8
Function at 0x4021e9
Capabilities:
Create process on windows

Disassembly:
push 0x868
mov eax, 0x41d95a
call fcn.0040ee0e
mov ebx, ecx
mov edi, edx
mov esi, dword [ebp + 8]
mov byte [ebp - 0x831], 1
and dword [ebp - 4], 0
mov dword [ebp - 0x874], 0x3c
mov dword [ebp - 0x870], 0x8040
push 4
push 0x4265c0
call fcn.004020d4
mov dword [ebp - 0x868], eax
push 8
pop edx
cmp dword [edi + 0x14], edx
jb 0x40223c
mov eax, dword [edi]
jmp 0x40223e
mov eax, edi
mov dword [ebp - 0x864], eax
mov ecx, dword [esi + 0x14]
cmp ecx, edx
jb 0x40224f
mov eax, dword [esi]
jmp 0x402251
mov eax, esi
mov dword [ebp - 0x860], eax
cmp dword [ebx + 0x14], edx
jb 0x402260
mov eax, dword [ebx]
jmp 0x402262
mov eax, ebx
mov dword [ebp - 0x85c], eax
and dword [ebp - 0x858], 0
mov dword [ebp - 0x854], 0x1d
cmp ecx, edx
jb 0x40227f
mov esi, dword [esi]
cmp dword [edi + 0x14], edx
jb 0x402288
mov eax, dword [edi]
jmp 0x40228a
mov eax, edi
push esi
push eax
push 0xe
push 0x4265c8
call fcn.004020d4
push eax
lea eax, [ebp - 0x814]
push eax
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
call edi
add esp, 0x10
lea eax, [ebp - 0x814]
push eax
lea esi, [ebp - 0x830]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
xor ebx, ebx
push ebx
push 1
mov ecx, esi
call fcn.00401455
lea eax, [ebp - 0x874]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x402393
cmp dword [ebp - 0x83c], ebx
je 0x40234f
push dword [ebp - 0x83c]
push 0x15
push 0x4265e4
call fcn.004020d4
push eax
lea eax, [ebp - 0x814]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x814]
push eax
lea esi, [ebp - 0x830]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
push 0xffffffffffffffff
push dword [ebp - 0x83c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x83c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4023db
push 0x422928
push 0x19
push 0x426610
call fcn.004020d4
push eax
lea eax, [ebp - 0x814]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x814]
push eax
lea esi, [ebp - 0x830]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
jmp 0x4023db
cmp byte [0x4282cc], bl
je 0x4023db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x11
push 0x426644
call fcn.004020d4
push eax
lea eax, [ebp - 0x814]
push eax
call edi
add esp, 0xc
push 0x40000
push 3
push 0x426668
call fcn.004020d4
push eax
lea eax, [ebp - 0x814]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x831]
call fcn.0040ee5b
ret 4
Function at 0x402538
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x12
push 0x426ac4
call fcn.004020d4
push eax
lea esi, [ebp - 0x420]
call fcn.004012ca
xor ebx, ebx
cmp byte [0x4282cc], bl
je 0x402584
push 8
push 0x426ae8
call fcn.004020d4
push eax
mov eax, esi
push eax
call fcn.0040131e
cmp dword [ebp + 0x38], 8
mov eax, dword [ebp + 0x24]
jae 0x402590
lea eax, [ebp + 0x24]
push eax
push 0x13
push 0x426af8
call fcn.004020d4
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
lea esi, [ebp - 0x43c]
call fcn.004012ca
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x4025cc
lea eax, [ebp + 8]
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x444], eax
cmp eax, ebx
je 0x402681
cmp dword [ebp - 0x40c], 8
mov eax, dword [ebp - 0x420]
jae 0x4025fa
lea eax, [ebp - 0x420]
push edi
push ebx
push 0x50
push eax
push dword [ebp - 0x444]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp - 0x440], eax
cmp eax, ebx
je 0x402678
cmp dword [ebp - 0x428], 8
mov eax, dword [ebp - 0x43c]
jae 0x402630
lea eax, [ebp - 0x43c]
push ebx
push ebx
push ebx
push ebx
push eax
push 3
push 0x426b20
call fcn.004020d4
push eax
push dword [ebp - 0x440]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
cmp esi, ebx
je 0x402670
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x40266d
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
push esi
call edi
push dword [ebp - 0x440]
call edi
push dword [ebp - 0x444]
call edi
pop edi
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x43c]
call fcn.00401455
push ebx
push esi
lea ecx, [ebp - 0x420]
call fcn.00401455
push ebx
push esi
lea ecx, [ebp + 8]
call fcn.00401455
push ebx
push esi
lea ecx, [ebp + 0x24]
call fcn.00401455
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bbb2
leave
ret 0x38
Function at 0x404363
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0xffff
mov eax, ebx
push edi
mov edi, ecx
cmp ax, si
jne 0x40438e
xor eax, eax
jmp 0x4044f6
mov ecx, dword [edi + 0x24]
cmp dword [ecx], 0
je 0x4043bb
mov eax, dword [edi + 0x34]
mov ecx, dword [ecx]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x4043bb
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 2]
mov dword [edi], ecx
mov word [eax], si
mov ax, si
jmp 0x4044f6
cmp dword [edi + 0x54], 0
jne 0x4043c8
mov eax, ebx
jmp 0x4044f6
mov eax, edi
call fcn.00405858
cmp dword [edi + 0x44], 0
jne 0x4043ee
push dword [edi + 0x54]
push esi
call fcn.0040c40a
pop ecx
cmp ax, bx
pop ecx
movzx eax, si
jne 0x4044f6
jmp 0x4043c1
movzx eax, si
lea esi, [ebp - 0x20]
mov dword [ebp - 0x24], eax
call fcn.004051b1
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x40449b
lea eax, [ebp - 0x20]
mov edx, eax
add eax, dword [ebp - 0x10]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x28]
push ebx
push eax
push edx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x22]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x14]
xor ebx, ebx
cmp eax, ebx
jl 0x4044e6
cmp eax, 1
jg 0x4044a3
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x40444a
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x28]
sub esi, eax
je 0x404470
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x40445d
lea eax, [ebp - 0x20]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.0040d9d2
add esp, 0x10
cmp esi, eax
jne 0x4044e6
lea eax, [ebp - 0x24]
mov byte [edi + 0x4a], 1
cmp dword [ebp - 0x2c], eax
jne 0x4044d5
cmp esi, ebx
ja 0x4043fc
cmp dword [ebp - 0x10], 0x20
push ebx
jae 0x4044e7
push 8
pop ebx
lea esi, [ebp - 0x20]
call fcn.004051f5
jmp 0x4043fc
mov edx, dword [ebp - 0x20]
jmp 0x40440e
cmp eax, 3
jne 0x4044e6
push dword [edi + 0x54]
push dword [ebp - 0x24]
call fcn.0040c40a
movzx esi, word [ebp + 8]
pop ecx
pop ecx
mov ecx, 0xffff
cmp ax, cx
jne 0x4044c5
mov esi, ecx
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.004052e5
jmp 0x4043b3
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.004052e5
mov ax, word [ebp + 8]
jmp 0x4044f6
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.004052e5
mov eax, 0xffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bbb2
leave
ret 4
Function at 0x405760
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [edi + 0x44], 0
push esi
je 0x405849
cmp byte [edi + 0x4a], 0
je 0x405849
mov eax, dword [edi]
mov esi, 0xffff
push esi
mov ecx, edi
call dword [eax + 0xc]
cmp si, ax
jne 0x40579e
xor al, al
jmp 0x40584b
lea esi, [ebp - 0x20]
call fcn.004051b1
push ebx
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x4057eb
lea eax, [ebp - 0x20]
mov edx, eax
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x24]
push ebx
mov ebx, dword [ebp - 0x10]
add eax, ebx
push eax
push edx
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x18]
sub eax, 0
je 0x4057f0
dec eax
je 0x4057f4
dec eax
dec eax
je 0x405845
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.004052e5
mov al, bl
pop ebx
jmp 0x40584b
mov edx, dword [ebp - 0x20]
jmp 0x4057b5
mov byte [edi + 0x4a], 0
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x405800
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x24]
sub esi, eax
je 0x405826
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x405813
lea eax, [ebp - 0x20]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.0040d9d2
add esp, 0x10
cmp esi, eax
jne 0x4057d8
cmp byte [edi + 0x4a], 0
je 0x405845
test esi, esi
jne 0x4057a7
push esi
push 8
pop ebx
lea esi, [ebp - 0x20]
call fcn.004051f5
jmp 0x4057a7
mov bl, 1
jmp 0x4057da
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040bbb2
leave
ret
Function at 0x406634
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c0
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ecx, 0x80000002
mov dword [ebp - 0x4bc], edi
mov dword [ebp - 0x4ac], ecx
jb 0x40666a
mov eax, dword [eax]
lea edx, [ebp - 0x4ac]
push edx
push 0x20019
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x406783
push 0x422918
push edi
call fcn.0040131e
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x4b0], 1
mov dword [ebp - 0x4b4], 0x400
jb 0x4066b3
mov eax, dword [esi]
jmp 0x4066b5
mov eax, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x4b4]
push ecx
lea ecx, [ebp - 0x48c]
push ecx
lea ecx, [ebp - 0x4b0]
push ecx
push 0
push eax
push dword [ebp - 0x4ac]
call edi
mov ebx, eax
test ebx, ebx
jne 0x406783
push 4
pop eax
cmp dword [ebp - 0x4b0], eax
je 0x406704
lea eax, [ebp - 0x48c]
push eax
push dword [ebp - 0x4bc]
call fcn.0040131e
jmp 0x406783
and dword [ebp - 0x4b8], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x4b4], eax
jb 0x406719
mov esi, dword [esi]
lea eax, [ebp - 0x4b4]
push eax
lea eax, [ebp - 0x4b8]
push eax
lea eax, [ebp - 0x4b0]
push eax
push 0
push esi
push dword [ebp - 0x4ac]
call edi
mov ebx, eax
test ebx, ebx
jne 0x406783
push eax
push dword [ebp - 0x4b8]
lea eax, [ebp - 0x8c]
push 0x422bb4
push 0x40
push eax
call fcn.00406618
add esp, 0x14
lea eax, [ebp - 0x8c]
push eax
lea esi, [ebp - 0x4a8]
call fcn.004012ca
mov edi, dword [ebp - 0x4bc]
call fcn.00401370
push ebx
push 1
mov ecx, esi
call fcn.00401455
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040bbb2
leave
ret 4

Function at 0x406796
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x58
call fcn.0040afac
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x4067d8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x426548
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x426548]
xor cx, word [edx*2 + 0x426548]
inc edx
mov word [edi + edx*2 + 0x426546], cx
cmp edx, dword [ebp + 0xc]
jl 0x4067b8
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8
Function at 0x407043
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x390
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
push 0x4228c8
mov edi, ecx
mov dword [ebp - 0x388], esi
call fcn.004012ca
xor esi, esi
add edi, 0xa0
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x38c], esi
mov dword [ebp - 0x390], esi
mov dword [ebp - 0x380], esi
jb 0x407091
mov eax, dword [edi]
jmp 0x407093
mov eax, edi
lea ecx, [ebp - 0x38c]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
cmp ebx, esi
je 0x407156
push ebx
call fcn.0040afac
cmp dword [edi + 0x14], 8
pop ecx
mov dword [ebp - 0x384], eax
jb 0x4070c0
mov edi, dword [edi]
push eax
push ebx
push dword [ebp - 0x38c]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40714a
lea eax, [ebp - 0x390]
push eax
lea eax, [ebp - 0x380]
push eax
push 0x4228cc
push dword [ebp - 0x384]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40714a
cmp dword [ebp - 0x390], esi
je 0x40714a
mov eax, dword [ebp - 0x380]
cmp dword [eax], 0xfeef04bd
jne 0x40714a
movzx ecx, word [eax + 0xa]
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xe]
push eax
push edx
push ecx
push 8
push 0x426538
call fcn.00406796
push eax
lea eax, [ebp - 0x37c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x37c]
push eax
push dword [ebp - 0x388]
call fcn.0040131e
push dword [ebp - 0x384]
call fcn.0040d541
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x388]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bbb2
leave
ret

Function at 0x407326
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0041ace0
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x100c]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
mov byte [ebp - 0x1005], 1
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x407398
push esi
mov esi, dword [ebp - 0x100c]
push edi
shr esi, 2
xor edi, edi
test esi, esi
je 0x407396
mov eax, dword [ebp + edi*4 - 0x1004]
test eax, eax
je 0x407388
push eax
push ebx
call fcn.004073aa
test al, al
je 0x40738f
inc edi
cmp edi, esi
jb 0x407372
jmp 0x407396
mov byte [ebp - 0x1005], 0
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x1005]
xor ecx, ebp
call fcn.0040bbb2
leave
ret
Function at 0x4076d1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x14], 8
jb 0x4076d9
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4076f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4076f4
xor eax, eax
inc eax
ret
xor eax, eax
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
and dword [edi + 0x10], 0
xor eax, eax
mov esi, edx
mov dword [edi + 0x14], 7
push eax
mov dword [ebp - 0x234], esi
mov word [edi], ax
call fcn.0040e19e
push eax
call fcn.0040e16b
pop ecx
pop ecx
call fcn.0040e17d
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x22c], edx
cmp dword [esi + 0x14], 8
jb 0x407751
mov eax, dword [esi]
jmp 0x407753
mov eax, esi
push dword [ebp - 0x22c]
push eax
lea eax, [ebp - 0x20c]
push str._s_n_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
lea esi, [ebp - 0x228]
call fcn.004012ca
mov esi, eax
call fcn.00401370
push 0
push 1
lea ecx, [ebp - 0x228]
call fcn.00401455
cmp dword [edi + 0x14], 8
jb 0x4077a1
mov eax, dword [edi]
jmp 0x4077a3
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4077c4
shr eax, 4
and al, 1
je 0x4077c4
inc dword [ebp - 0x22c]
mov esi, dword [ebp - 0x234]
jmp 0x407747
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0040bbb2
leave
ret
Function at 0x4077d4
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d8
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x4d8], ecx
call fcn.0040419e
cmp dword [ebp - 0x238], 8
mov eax, dword [ebp - 0x24c]
jae 0x407814
lea eax, [ebp - 0x24c]
lea ecx, [ebp - 0x4d4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40784d
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x24c]
call fcn.00401455
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0040bbb2
leave
ret 4
push 0x422904
lea esi, [ebp - 0x284]
call fcn.004012ca
push 0x422908
lea esi, [ebp - 0x268]
call fcn.004012ca
test byte [ebp - 0x4d4], 0x10
je 0x4078cc
lea eax, [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x284]
call fcn.004062e4
test eax, eax
je 0x40792e
lea eax, [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x268]
call fcn.004062e4
test eax, eax
je 0x40792e
lea eax, [ebp - 0x4a8]
push eax
lea esi, [ebp - 0x230]
call fcn.004012ca
mov ecx, dword [ebp - 0x4d8]
mov eax, esi
push eax
call fcn.004077d4
jmp 0x40791f
cmp dword [edi + 0x14], 8
jb 0x4078d6
mov eax, dword [edi]
jmp 0x4078d8
mov eax, edi
lea ecx, [ebp - 0x4a8]
push ecx
push eax
lea eax, [ebp - 0x214]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x214]
push eax
lea esi, [ebp - 0x230]
call fcn.004012ca
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x407918
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.00401455
lea eax, [ebp - 0x4d4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40786d
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [edi + 0x14], 8
jb 0x407953
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 1
lea ecx, [ebp - 0x268]
call fcn.00401455
push 0
push 1
lea ecx, [ebp - 0x284]
call fcn.00401455
mov bl, 1
jmp 0x40782b