joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4031ef
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
push edi
push str.SETUPAPI
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 4], edi
je 0x40334e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetupGetFileCompressionInfoA
push edi
call esi
push str.SetupDecompressOrCopyFileA
push edi
mov dword [0x406dc4], eax
call esi
cmp dword [0x406dc4], ebx
mov dword [0x406dc8], eax
je 0x40333b
cmp eax, ebx
je 0x40333b
push str.MyFree
push edi
call esi
push ebx
mov dword [0x406dcc], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [ebp + 8]
push 0x406c9c
push esi
mov dword [ebp - 8], eax
call fcn.00403b08
pop ecx
mov edx, eax
mov al, byte [0x406dd0]
pop ecx
neg edx
push 0x4a
mov byte [ebp - 0x140], al
sbb edx, edx
pop ecx
xor eax, eax
lea edi, [ebp - 0x13f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
neg edx
neg edx
stosb byte es:[edi], al
sbb edx, edx
mov dword [ebp - 0xc], esi
lea eax, [ebp - 0x140]
mov esi, 0x12a
and edx, 2
push eax
push esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, esi
jae 0x403321
cmp byte [ebp - 0x140], bl
je 0x403321
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x141], 0x5c
lea eax, [ebp + eax - 0x141]
je 0x4032e7
inc eax
mov byte [eax], 0x5c
mov byte [eax + 1], bl
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x140]
push eax
push 0x403358
push str.PART
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov ecx, dword [ebp - 0x14]
xor eax, eax
cmp dword [ebp - 0x10], ebx
setne al
lea eax, [eax + ecx*2]
mov eax, dword [eax*4 + 0x4053d4]
cmp eax, 4
mov dword [ebp - 0x14], eax
jne 0x4032ea
push dword [ebp - 4]
mov dword [0x406dc4], ebx
mov dword [0x406dc8], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x10]
jmp 0x403351
push edi
mov dword [0x406dc4], ebx
mov dword [0x406dc8], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 8
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4036e9
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push 1
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, eax
cmp ebx, edi
jne 0x40370b
xor eax, eax
jmp 0x40376e
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
lea edi, [esi + 4]
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x10]
push 4
push eax
push 0x40378e
push 0
push 0
call fcn.00403c8f
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x40374a
and dword [edi], eax
xor esi, esi
jmp 0x403765
mov ecx, dword [ebp + 0x10]
mov eax, dword [edi]
mov dword [ecx], eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x403c8f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x403e6c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 8]
push ebx
push eax
xor ebx, ebx
push 0x20019
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403e91
xor eax, eax
jmp 0x403eee
push esi
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 4]
push ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
or edi, 0xffffffff
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x403edc
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x18]
jge 0x403edc
lea eax, [ebp + 0xc]
inc dword [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, ebx
je 0x403edc
mov eax, dword [ebp + 0x14]
mov byte [eax], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, ebx
pop edi
pop esi
sete al
pop ebx
leave
ret
Function at 0x403fb8
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x14], edi
jne 0x40400b
lea eax, [ebp + 0xc]
push eax
push 0x2001f
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
je 0x403fed
xor ecx, ecx
cmp eax, 2
sete cl
mov eax, ecx
jmp 0x40406d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, edi
je 0x404006
cmp eax, 2
je 0x404006
xor esi, esi
jmp 0x404054
push 1
pop esi
jmp 0x404054
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x404030
xor eax, eax
jmp 0x40406d
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x14]
push 1
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [ebp + 0x18], edi
je 0x404062
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
ret

Function at 0x4040ec
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x4040ff
or dword [eax], 0xffffffff
push edi
push 0x8000080
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404191
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, edi
jbe 0x40418a
cmp dword [ebp + 8], edi
jne 0x40418a
mov eax, dword [ebp + 0x10]
add eax, esi
push eax
call fcn.004039be
cmp eax, edi
pop ecx
mov dword [ebp - 4], eax
je 0x40418a
lea ecx, [ebp + 0x10]
push edi
push ecx
push esi
push eax
push ebx
mov dword [ebp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404181
cmp dword [ebp + 0x10], esi
jne 0x404181
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x404175
mov dword [eax], ebx
jmp 0x40417c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x404198
push dword [ebp - 4]
call fcn.004039c9
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x106d1058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x106d11a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x106d107e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x106d106a
add dl, dl
jne 0x106d1089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x106d10dc
xor eax, eax
add dl, dl
jne 0x106d1096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x106d117d
add dl, dl
jne 0x106d10a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106d10b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106d10bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106d10c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x106d10d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x106d1075
mov eax, 1
add dl, dl
jne 0x106d10ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106d10f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x106d10e1
sub eax, ebx
mov ebx, 1
jne 0x106d1128
mov ecx, 1
add dl, dl
jne 0x106d110e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x106d1119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x106d1105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x106d1075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x106d113f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x106d114a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x106d1136
cmp eax, 0x7d00
jae 0x106d116d
cmp eax, 0x500
jb 0x106d1168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x106d1075
cmp eax, 0x7f
ja 0x106d1170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x106d1075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x106d119e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x106d1075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4025e4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402623
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402623
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402623
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402623
cmp dword [ecx + 0x74], 0xe
jbe 0x402623
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10004b77
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x10007cc0
call fcn.10007bb3
mov ebx, ecx
lea eax, [ebp - 0x14]
xor ecx, ecx
push eax
push 0x20019
push ecx
push str.CLSID
mov dword [ebp - 4], ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0x80000000
mov dword [ebp - 0x14], ecx
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x10004c1f
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
and dword [ebp - 0x10], 0
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0x14]
call edi
push 4
pop ebx
test eax, eax
jne 0x10004c11
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0x10008c80
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10004c11
cmp dword [ebp - 0x18], ebx
jne 0x10004c11
mov edi, dword [ebp - 0x1c]
cmp edi, 3
ja 0x10004c11
mov byte [ebp - 4], 2
cmp dword [ebp - 0x10], eax
je 0x10004c21
push dword [ebp - 0x10]
call esi
jmp 0x10004c21
mov byte [ebp - 4], bl
cmp dword [ebp - 0x10], 0
je 0x10004c1f
push dword [ebp - 0x10]
call esi
xor edi, edi
mov dword [ebp - 4], 5
cmp dword [ebp - 0x14], 0
je 0x10004c33
push dword [ebp - 0x14]
call esi
mov eax, edi
call fcn.10007b93
ret
Function at 0x10004f27
Capabilities:
Query or enumerate registry value

Disassembly:
push 8
mov eax, 0x10007d2c
call fcn.10007bb3
cmp byte [0x1000b99c], 0
je 0x10004f46
mov eax, dword [0x1000b9a0]
jmp 0x1000501c
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwarePoliciesMicrosoftSecurity
mov dword [ebp - 4], esi
push 0x80000001
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10004f96
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
push 0x1000b9a0
push esi
push esi
push str.CLSIDInterfaceTest
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10004f96
cmp dword [ebp - 0x14], 4
je 0x10004fef
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], esi
test eax, eax
je 0x10004fa7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftSecurity
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10004ff7
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
push 0x1000b9a0
push esi
push esi
push str.CLSIDInterfaceTest
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10004ff7
cmp dword [ebp - 0x14], 4
jne 0x10004ff7
mov esi, dword [0x1000b9a0]
jmp 0x10004ffd
mov dword [0x1000b9a0], esi
mov al, 1
mov dword [ebp - 4], 3
cmp dword [ebp - 0x10], 0
mov byte [0x1000b99c], al
je 0x1000501a
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.10007b93
ret

Function at 0x10005e52
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x10005e61
pop dword [ebp - 0x4c]
mov eax, 0x32c05f17
add eax, 0xdd3fff4a
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x81c73377
sub dword [ebp - 0x5c], 0x3374ee2c
mov dword [ebp - 0x58], 0x698e9249
sub dword [ebp - 0x58], 0x375b4604
mov dword [ebp - 0x54], 0x82996ae1
sub dword [ebp - 0x54], 0x364d26b3
mov dword [ebp - 0x50], 0xa52939dd
add dword [ebp - 0x50], 0x5ad6c623
lea eax, [ebp - 0x5c]
push eax
mov eax, 0xda704014
add eax, 0x35904088
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xd5aa101d
sub dword [ebp - 0x5c], 0x6137a6c7
mov dword [ebp - 0x58], 0xa966754a
sub dword [ebp - 0x58], 0x67fa13d5
mov dword [ebp - 0x54], 0x579d096b
add dword [ebp - 0x54], 0xbd26301
mov dword [ebp - 0x50], 0x5ea1c16c
sub dword [ebp - 0x50], 0x5ea1c16c
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x35261
push 0
call eax
mov ecx, 0x6d4c7777
sub ecx, 0x6d4c385b
xor esi, esi
add esi, eax
mov edi, 0x1000dc00
add edi, dword [ebp - 0x4c]
mov ebx, 0xcbf8dfc7
add ebx, 0xa9352350
add dword [ebp - 0x10], 0x68d2065b
mov edx, dword [edi]
xor dword [ebp - 0x10], edx
add edx, ebx
mov dword [esi], edx
xor dword [ebp - 0x10], eax
add esi, 0xed6e1c10
sub esi, 0xed6e1c0c
add edi, 4
loop 0x10005f7a
add eax, 0x90a8a2db
sub eax, 0x90a7b398
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x4c]
call 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 0x10016c9
Capabilities:
Accept command line arguments
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x698
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.010016b0
xor esi, esi
jmp 0x1001701
cmp ax, 0x20
jne 0x10016ef
inc ebx
inc ebx
jmp 0x1001703
cmp ax, 0x2d
je 0x10016fb
cmp ax, 0x2f
jne 0x100170d
push ebx
call fcn.010016b0
mov ebx, eax
mov ax, word [ebx]
cmp ax, si
jne 0x10016e5
jmp 0x1001716
push ebx
call fcn.010016b0
mov word [eax], si
push 0x100116c
lea eax, [ebp - 0x698]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov word [ebp - 0x25c], si
mov ecx, 0x81
lea edi, [ebp - 0x25a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x104
push edi
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
je 0x1001899
cmp eax, edi
ja 0x1001899
add eax, eax
cmp word [ebp + eax - 0x25e], 0x5c
je 0x1001782
mov word [ebp + eax - 0x25c], 0x5c
mov word [ebp + eax - 0x25a], si
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x1001184
lea eax, [ebp - 0x25c]
push eax
call esi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 3
push edi
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x10017ca
lea eax, [ebp - 0x25c]
push eax
push 0x64
call fcn.010014f7
pop ecx
jmp 0x10018a0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x698]
push eax
call esi
cmp word [ebx], di
je 0x10017fe
push 0x10011a0
lea eax, [ebp - 0x698]
push eax
call esi
push ebx
lea eax, [ebp - 0x698]
push eax
call esi
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
xor eax, eax
push eax
push eax
push 0x20
push eax
push eax
push eax
lea ecx, [ebp - 0x698]
push ecx
push eax
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], 0xa
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1001866
push 0x1f4
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
jmp 0x10018a1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1001876
call esi
jmp 0x1001882
call esi
and eax, 0xffff
or eax, 0x80070000
push 0x67
push eax
push 0xd0
push 0x10011b8
call fcn.01001535
add esp, 0x10
jmp 0x10018a1
push 0x66
call fcn.010014f7
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x40149b
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 0x14], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x14]
push edi
mov dword [ebp - 0x34], esi
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [ebp - 8], eax
mov eax, dword [0x41b5d0]
mov dword [ebp - 0x28], eax
mov eax, dword [0x41b5d4]
mov dword [ebp - 0x30], eax
call fcn.00401494
mov edi, dword [ebp - 0x14]
mov eax, dword [0x41b5d8]
add edi, 0x23f
mov dword [ebp - 0x20], eax
mov eax, dword [0x41b5dc]
push 0x20
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], eax
pop esi
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov edx, dword [ebp - 8]
mov eax, edx
mov ecx, dword [0x2d5ebac]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x401524
push 0x418248
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [0x2d5ebac]
add eax, dword [ebp - 0x20]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x2d5eba8]
mov dword [ebp - 0x1c], 0xedeb2e40
cmove eax, dword [ebp - 0x1c]
and dword [ebp - 0x1c], 0
cmp ecx, 0x3eb
mov dword [0x2d5eba8], eax
mov eax, dword [0x2d5eb00]
cmove eax, dword [ebp - 0x1c]
mov dword [0x2d5eb00], eax
lea eax, [edi + edx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov dword [0x2d5eba4], 0xf4ea3dee
call fcn.00401471
mov ecx, dword [ebp - 0x10]
xor ecx, eax
sub ebx, ecx
mov dword [ebp - 0x10], ecx
mov eax, ebx
mov dword [ebp - 0x2c], ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
nop
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov eax, ebx
shr eax, cl
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
xor eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 8], eax
add edi, 0x61c88647
mov dword [ebp - 0x14], edi
dec esi
jne 0x4014ec
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
pop edi
mov dword [esi + 4], ebx
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4015f4
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x2d5ebac]
push esi
mov esi, eax
shr esi, 3
push edi
mov edi, dword [0x2d5eb04]
test esi, esi
je 0x40163a
push ebx
xor ebx, ebx
cmp eax, 0x959
jne 0x401625
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, edi
call fcn.0040149b
add edi, 8
dec esi
je 0x401639
mov eax, dword [0x2d5ebac]
jmp 0x40160d
pop ebx
pop edi
pop esi
ret 4
Function at 0x40cb28
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a36c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00404e05
mov dword [ebp - 0x14], eax
cmp dword [0x465260], esi
jne 0x40cc1b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40cba8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40ccfb
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40ccfb
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ccfb
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x465260], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x465264], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x465268], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x465270], eax
test eax, eax
je 0x40cc18
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46526c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40cc40
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40cc33
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40cc55
push 4
pop eax
jmp 0x40ccfd
cmp dword [ebp - 0x14], esi
je 0x40cc55
push dword [0x465260]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40cc3a
mov eax, dword [0x46526c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40ccb3
cmp dword [0x465270], edi
je 0x40ccb3
push eax
call ebx
push dword [0x465270]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40ccb3
test eax, eax
je 0x40ccb3
call ecx
test eax, eax
je 0x40cca8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40cca8
test byte [ebp - 8], 1
jne 0x40ccb3
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40cce3
mov eax, dword [0x465264]
cmp eax, edi
je 0x40cce0
push eax
call ebx
test eax, eax
je 0x40cce0
call eax
mov esi, eax
test esi, esi
je 0x40cce0
mov eax, dword [0x465268]
cmp eax, edi
je 0x40cce0
push eax
call ebx
test eax, eax
je 0x40cce0
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x465260]
call ebx
test eax, eax
je 0x40ccfb
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40ccfd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004040eb
mov esp, ebp
pop ebp
ret
Function at 0x483d22
Capabilities:
Parse pe header

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