joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ad57
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1002f060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x418], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x414], eax
xor eax, eax
mov edi, edx
mov dword [ebp - 0x40c], eax
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x408], eax
cmp edi, eax
je 0x1000adfe
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x410]
inc eax
push ecx
mov dword [ebp - 0x410], eax
call fcn.10009cd9
pop ecx
test eax, eax
js 0x1000adfe
mov ebx, dword [ebp - 0x410]
cmp ebx, 0x400
jg 0x1000ade2
push ebx
call fcn.10009d09
pop ecx
test al, al
je 0x1000ade2
mov eax, ebx
call fcn.1001d9d0
mov eax, esp
jmp 0x1000adef
mov eax, ebx
lea esi, [ebp - 0x40c]
call fcn.10009d75
push 3
push ebx
push edi
mov esi, eax
call fcn.100096ca
test eax, eax
jne 0x1000ae43
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x1000ae17
lea eax, [ebp - 0x408]
call fcn.10009689
cmp dword [ebp - 0x40c], 0
je 0x1000ae39
mov eax, dword [ebp - 0x40c]
mov esi, dword [eax]
push eax
mov dword [ebp - 0x40c], esi
call fcn.1001a512
pop ecx
test esi, esi
jne 0x1000ae20
mov eax, 0x8007000e
jmp 0x1000af62
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
test ebx, ebx
jne 0x1000ae60
call fcn.10009692
mov edi, eax
jmp 0x1000af25
push dword [ebp - 0x414]
push dword [ebp - 0x418]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x1000ae83
call fcn.10009692
jmp 0x1000af1c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1000ae79
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x1000aea9
mov edi, 0x8007000e
jmp 0x1000af1e
xor ecx, ecx
ja 0x1000aeb2
cmp eax, 0xffffffff
jbe 0x1000aebc
push 0x80070216
call fcn.10002d8c
cmp eax, 0x400
jbe 0x1000aed2
push eax
lea eax, [ebp - 0x408]
push eax
call fcn.100096a7
jmp 0x1000aede
lea eax, [ebp - 0x404]
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], 0
je 0x1000aea2
push esi
push edi
push esi
push dword [ebp - 0x408]
call fcn.1001a637
push eax
call fcn.1000a228
mov eax, dword [ebp - 0x408]
add esp, 0x14
push dword [ebp + 0x10]
mov byte [eax + esi], 0
mov ecx, dword [ebp - 0x408]
lea edx, [ebp - 0x420]
call fcn.1000ac07
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x1000af3e
lea eax, [ebp - 0x408]
call fcn.10009689
cmp dword [ebp - 0x40c], 0
je 0x1000af60
mov eax, dword [ebp - 0x40c]
mov esi, dword [eax]
push eax
mov dword [ebp - 0x40c], esi
call fcn.1001a512
pop ecx
test esi, esi
jne 0x1000af47
mov eax, edi
lea esp, [ebp - 0x42c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10017a76
leave
ret 0xc
Function at 0x1000cf71
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
mov eax, dword [0x1002f060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x134], eax
push str.rundll32
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, 0x104
push esi
lea eax, [ebp - 0x127]
push eax
push dword [0x100331b4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1000d0a5
push esi
lea eax, [ebp - 0x127]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
dec eax
cmp eax, 0x102
ja 0x1000d0a5
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._Update
lea eax, [ebp - 0x130]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call edi
lea ecx, [ebp - 0x130]
push ecx
mov dword [ebp - 0x138], eax
call edi
mov ecx, dword [ebp - 0x138]
add ecx, eax
cmp ecx, 0x12c
jae 0x1000d0a5
push ebx
lea eax, [ebp - 0x130]
push eax
call esi
push 0x40
xor esi, esi
lea eax, [ebp - 0x188]
push esi
push eax
mov dword [ebp - 0x18c], 0x44
call fcn.1001a2a0
add esp, 0xc
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x18c]
push eax
push esi
push esi
push 0x20
push esi
push esi
push esi
lea eax, [ebp - 0x130]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1000d0a5
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x144], esi
je 0x1000d082
push dword [ebp - 0x144]
call edi
cmp dword [ebp - 0x148], esi
je 0x1000d092
push dword [ebp - 0x148]
call edi
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 0x134]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x1000d0a7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10017a76
leave
ret
Function at 0x1000deb6
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
cmp edi, ecx
je 0x1000ddc0
add edi, 0xffffff90
jmp 0x1000ddc2
xor edi, edi
mov eax, dword [edi + 0x10]
cmp eax, ecx
jne 0x1000ddde
cmp dword [ebp + 0x14], ecx
je 0x1000de2f
xor al, al
test al, al
jne 0x1000de2f
mov eax, 0x8000ffff
jmp case.default.0x1000de5c
mov ebx, dword [ebp + 0x14]
cmp ebx, ecx
je 0x1000ddce
lea edx, [esp + 0x10]
push edx
mov esi, 0x10027f60
push esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax]
push eax
call dword [ecx]
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
push ecx
push esi
push ebx
call dword [eax]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
sete bl
test eax, eax
je 0x1000de1d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000de2b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
jmp 0x1000ddd0
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x1000de4b
push dword [ebp + 0x20]
lea eax, [edi + 0x70]
call fcn.1000df1d
mov eax, 0x40180
jmp case.default.0x1000de5c
add ecx, 7
mov eax, 0x80004001
cmp ecx, 7
ja case.default.0x1000de5c
jmp dword [ecx*4 + 0x1000deee]
push dword [ebp + 0x20]
lea eax, [edi + 0x70]
call fcn.1000df1d
jmp case.default.0x1000de5c
add edi, 0x70
je 0x1000de7a
lea ecx, [edi - 0x70]
jmp 0x1000de7c
xor ecx, ecx
push dword [ebp + 0x20]
push 0xffffffffffffffff
call fcn.1000e13a
test eax, eax
js case.default.0x1000de5c
xor eax, eax
jmp case.default.0x1000de5c
push dword [ebp + 0x20]
lea eax, [edi + 0x70]
call fcn.1000df86
jmp case.default.0x1000de5c
add edi, 0x70
je 0x1000dea5
lea ecx, [edi - 0x70]
jmp 0x1000dea7
xor ecx, ecx
xor eax, eax
test byte [ecx + 0x44], 8
jne case.default.0x1000de5c
push dword [ebp + 0x20]
push 0xfffffffffffffffc
jmp 0x1000de81
add edi, 0x70
je 0x1000dec0
lea esi, [edi - 0x70]
jmp 0x1000dec2
xor esi, esi
lea eax, [esi + 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, dword [esi + 0x4c]
test esi, esi
je case.0x1000de5c.6
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x1000de5c.6
mov eax, 0x40181
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x100104fc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea ecx, [edi + 0xc]
call fcn.10001a6b
test eax, eax
je 0x1001062f
mov eax, dword [ebp + 8]
add eax, 0x18
push 0x2f
push eax
call fcn.1001a9f0
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x1001061c
mov ebx, 0x10033210
push ebx
mov esi, 0x105
push esi
call fcn.10017ff4
push ebx
push esi
mov dword [edi + 0x80], eax
call fcn.10017ff4
mov ecx, dword [edi + 0x80]
xor ebx, ebx
add esp, 0x10
mov dword [edi + 0x84], eax
cmp ecx, ebx
je 0x100105ec
cmp eax, ebx
je 0x100105ec
push 0x104
push ecx
push dword [0x100331b4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x100105ec
mov eax, dword [edi + 0x80]
push 0x5c
push eax
call fcn.1001a9f0
pop ecx
pop ecx
cmp eax, ebx
je 0x100105ec
mov byte [eax], bl
mov eax, dword [edi + 0x80]
push 0x5c
push eax
call fcn.1001a9f0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ecx
pop ecx
push str._setups_
push eax
call esi
push ebx
push dword [edi + 0x80]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [edi + 0x80]
push dword [edi + 0x84]
call esi
push dword [ebp + 0xc]
mov eax, dword [ebp - 4]
push dword [ebp + 8]
inc eax
push eax
mov eax, edi
call fcn.10010648
test eax, eax
je 0x100105ec
xor eax, eax
inc eax
jmp 0x10010642
push dword [edi + 0x80]
call fcn.10017a6b
pop ecx
push dword [edi + 0x84]
call fcn.10017a6b
pop ecx
mov dword [edi + 0x80], ebx
mov dword [edi + 0x88], ebx
mov dword [edi + 0x84], ebx
mov dword [edi + 0x8c], ebx
mov eax, dword [ebp + 0x10]
lea esi, [edi + 0xc]
mov dword [eax], 0xffffff36
call fcn.10001c6d
jmp 0x10010638
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xffffff35
lea esi, [edi + 0x28]
call fcn.10002628
xor eax, eax
pop esi
pop ebx
leave
ret 0xc
Function at 0x10010ee0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x1002f060]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 1
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, edx
mov dword [ebp - 0x500], ecx
mov edi, eax
jle 0x10010f2a
push dword [esi + 0x94]
push eax
lea eax, [ebp - 0x4fc]
push str._s__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edi, [ebp - 0x4fc]
call fcn.10001a22
test eax, eax
jne 0x10010f5f
mov ecx, esi
cmp dword [ebp + 0x10], eax
je 0x10010f49
mov dword [ebx + 4], 0xffffff34
push eax
call fcn.100116ff
jmp 0x10010f57
mov dword [ebx], 0xffffff34
push 7
pop eax
call fcn.10011a75
xor eax, eax
inc eax
jmp 0x100110d0
push 1
push dword [esi + 0x7c]
lea eax, [esi + 0xc]
push dword [esi + 0x98]
lea edx, [ebp - 0x114]
push eax
mov ecx, edi
call fcn.10001e63
test eax, eax
jne 0x10011017
xor edi, edi
cmp dword [esi + 0x9c], edi
jle 0x10010fc3
push 0xffffffffffffffff
push dword [esi + 0x60]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x10010fc3
mov eax, dword [esi + 0xa8]
mov dword [ebx + 0x10], eax
push dword [esi + 0x60]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0x1f5
push dword [esi + 0x78]
push 1
push 1
call fcn.100025ce
add esp, 0x10
mov eax, dword [esi + 0x9c]
cmp eax, edi
je 0x10011005
cmp dword [ebx + 0x408], eax
jle 0x10010fda
cmp eax, 5
jl 0x10011005
cmp dword [ebp + 0x10], edi
je 0x10010fe8
mov dword [ebx + 4], 0xffffff32
jmp 0x10010fee
mov dword [ebx], 0xffffff32
mov ecx, esi
cmp dword [ebp + 0x10], edi
je 0x10010f4f
mov dword [esi + 0x9c], edi
push edi
jmp 0x10010f42
inc eax
mov dword [esi + 0x9c], eax
mov dword [esi + 0x98], edi
jmp 0x10010f57
push 0xffffffffffffffff
push dword [esi + 0x60]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x10011039
mov eax, dword [ebx + 0x10]
push dword [esi + 0x60]
mov dword [esi + 0xa8], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
inc dword [esi + 0x94]
mov ecx, dword [esi + 0x94]
and dword [esi + 0x9c], 0
cmp ecx, dword [ebp + 0xc]
jge 0x100110c5
xor edx, edx
cmp dword [ebx + 0x410], edx
je 0x100110af
mov ecx, dword [esi + 0x90]
cmp eax, ecx
jb 0x10011073
sub eax, ecx
add eax, eax
jmp 0x10011079
sub eax, ecx
lea eax, [eax + eax - 2]
cmp eax, 0x64
jae 0x10011083
push 0x64
pop eax
jmp 0x1001108e
mov ecx, 0xea60
cmp eax, ecx
jbe 0x1001108e
mov eax, ecx
cmp dword [esi + 0xc8], edx
jne 0x10010f57
push edx
push eax
push edx
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0xc8], eax
jmp 0x10010f57
mov dword [esi + 0x98], 1
call edi
mov dword [esi + 0x90], eax
xor eax, eax
jmp 0x100110d0
mov ecx, dword [ebp - 0x500]
xor eax, eax
inc eax
mov dword [ecx], eax
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.10017a76
leave
ret 0xc
Function at 0x100112d5
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x91c
mov eax, dword [0x1002f060]
xor eax, esp
mov dword [esp + 0x918], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor esi, esi
push esi
push 0x8000080
push 2
push esi
push esi
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebp + 0x14]
push 0x40000000
push eax
mov dword [esp + 0x34], ecx
call edi
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x1001147b
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], esi
cmp dword [ebp + 0x10], esi
jle 0x10011456
cmp dword [esp + 0xc], esi
je 0x10011456
cmp dword [ebp + 0x10], 1
mov ecx, dword [esp + 0x2c]
jle 0x10011379
push dword [esp + 0x14]
lea eax, [esp + 0x13c]
push ecx
push str._s__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x138]
mov eax, dword [esp + 0x28]
push esi
push esi
push esi
add eax, 0xc
push eax
lea edx, [esp + 0x40]
call fcn.10001e63
test eax, eax
je 0x10011452
push esi
push 0x8000000
push 3
push esi
push 1
push SysReAllocString
lea eax, [esp + 0x48]
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10011452
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], esi
cmp eax, esi
jbe 0x10011438
mov eax, dword [esp + 0x18]
push esi
mov dword [eax], esi
lea eax, [esp + 0x14]
push eax
push 0x400
lea eax, [esp + 0x52c]
push eax
push ebx
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10011434
cmp dword [esp + 0x10], esi
je 0x10011434
push esi
push dword [esp + 0x1c]
lea eax, [esp + 0x528]
push dword [esp + 0x18]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10011434
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx]
jne 0x10011434
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x24]
jb 0x100113cb
jmp 0x10011438
mov dword [esp + 0xc], esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, dword [ebp + 0x10]
jl 0x10011343
jmp 0x10011456
mov dword [esp + 0xc], esi
push esi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
push dword [esp + 0x1c]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xc], esi
je 0x1001147b
xor eax, eax
jmp 0x1001147e
xor eax, eax
inc eax
mov ecx, dword [esp + 0x924]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10017a76
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1001177f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
sub esp, 0x54
push ebx
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0x18]
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
cmp byte [eax], bl
je 0x10011801
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
push 0x10033210
push dword [ebp + 0xc]
mov esi, eax
call edi
lea eax, [eax + esi + 0xa]
push eax
call fcn.10017ff4
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x10011869
mov eax, dword [ebp + 8]
cmp byte [eax], 0x22
push eax
jne 0x100117db
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x100117f0
lea eax, [edi + 1]
push eax
mov byte [edi], 0x22
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov byte [esi + edi + 1], 0x22
add esi, 2
push dword [ebp + 0xc]
lea eax, [esi + edi]
mov byte [eax], 0x20
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x40
lea eax, [ebp - 0x50]
push ebx
push eax
mov dword [ebp - 0x54], 0x44
call fcn.1001a2a0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10011887
cmp dword [ebp - 0xc], ebx
je 0x10011840
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 0x20]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x1c]
mov dword [eax], ecx
cmp esi, ebx
je 0x10011877
push dword [ebp + 0x24]
mov edx, dword [ebp + 0x10]
call fcn.10016e70
test eax, eax
jne 0x10011877
mov eax, dword [ebp + 0x14]
mov dword [eax], 0xffffff2d
jmp 0x10011872
mov eax, dword [ebp + 0x14]
mov dword [eax], 0xffffff38
xor eax, eax
inc eax
jmp 0x10011898
cmp edi, dword [ebp + 8]
je 0x10011883
push edi
call fcn.10017a6b
pop ecx
xor eax, eax
jmp 0x10011898
mov ecx, dword [ebp + 0x18]
xor eax, eax
inc eax
mov dword [ecx], eax
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0xffffff2e
pop edi
pop esi
pop ebx
leave
ret 0x20
Function at 0x10012204
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x1002f060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100340dc]
push ebx
push edi
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x25c]
push eax
mov edi, ecx
xor ebx, ebx
push 0x12c
mov dword [ebp - 0x26c], edi
mov byte [ebp - 0x25c], bl
mov byte [ebp - 0x130], bl
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
dec eax
cmp eax, 0x12a
ja 0x10012276
cmp byte [ebp - 0x25c], bl
je 0x10012276
lea eax, [ebp - 0x130]
push eax
push ebx
push 0x10029f70
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov dword [ebp - 0x268], ebx
cmp dword [edi], ebx
je 0x100123be
push esi
mov esi, edi
cmp dword [esi + 4], ebx
je 0x100123bd
movzx eax, word [esi + 4]
push ebx
push ebx
push ebx
push ebx
push eax
push dword [ebp - 0x264]
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [esi + 0x10], eax
cmp eax, ebx
jne 0x100123a4
cmp byte [ebp - 0x130], bl
je 0x100123a4
movzx eax, word [esi + 4]
push str.TEMP
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x260], eax
cmp eax, ebx
je 0x100123a4
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
jbe 0x1001239e
push dword [ebp - 0x260]
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x1001239e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x270], eax
cmp eax, ebx
je 0x1001239e
push 0x20
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x274], eax
cmp eax, 0xffffffff
je 0x1001239e
push ebx
lea ecx, [ebp - 0x260]
push ecx
push edi
push dword [ebp - 0x270]
mov dword [ebp - 0x260], ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x260], edi
jne 0x1001239e
push 0x10
push ebx
push ebx
push ebx
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [esi + 0x10], eax
mov edi, dword [ebp - 0x26c]
inc dword [ebp - 0x268]
mov esi, dword [ebp - 0x268]
imul esi, esi, 0x14
add esi, edi
cmp dword [esi], ebx
jne 0x10012287
pop esi
cmp byte [ebp - 0x130], bl
pop edi
pop ebx
je 0x100123d5
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.10017a76
leave
ret
Function at 0x10012a19
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push 0
push 0x7d
push dword [ebp + 8]
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
push 0
push 0xe0
push dword [ebp + 8]
call esi
push eax
call edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x100137e1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [ebp + 8]
xor ebx, ebx
shr eax, 0x10
xor ecx, ecx
xor esi, esi
inc ebx
mov dword [ebp - 4], eax
cmp cx, ax
jne 0x1001388b
movzx eax, word [ebp + 8]
dec eax
je 0x100138bb
dec eax
je 0x100138b2
sub eax, 4
je 0x1001386a
sub eax, 0x6d
je 0x1001385e
sub eax, 0xa
je 0x10013853
sub eax, 7
je 0x1001382f
sub eax, 0x12
jne 0x1001388b
push 2
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp eax, esi
je 0x10013848
push 0x1002a0e4
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push esi
push esi
push esi
push dword [0x1003012c]
jmp 0x10013881
push edi
call fcn.10013935
jmp 0x1001390e
push esi
push esi
push esi
mov dword [0x1003012c], ebx
push ebx
jmp 0x10013881
mov eax, dword [0x100340d0]
push 2
pop ecx
push eax
push eax
push dword [0x100340cc]
mov dword [0x1003012c], ecx
push ecx
mov ecx, edi
call fcn.10011e4b
add esp, 0x10
mov eax, dword [ebp + 8]
push 0x77
pop ecx
cmp cx, ax
jne 0x100138c2
xor eax, eax
cmp ax, word [ebp - 4]
jne 0x1001390c
push ebx
push esi
push esi
push str.http:__eula.mindspark.com_ask_pp.html_
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, ebx
jmp 0x1001390e
mov eax, edi
call fcn.10013a39
jmp 0x1001390e
call fcn.10013a79
jmp 0x1001390e
mov ecx, 0x93
cmp cx, ax
jne 0x100138de
xor eax, eax
cmp ax, word [ebp - 4]
jne 0x1001390c
push ebx
push esi
push esi
push str.http:__www.mindspark.com_faq.html_
jmp 0x100138a6
mov ecx, 0xe1
cmp cx, ax
jne 0x100138fa
xor eax, eax
cmp ax, word [ebp - 4]
jne 0x1001390c
push ebx
push esi
push esi
push str.http:__eula.mindspark.com_ask__
jmp 0x100138a6
mov ecx, 0xe2
cmp cx, ax
jne 0x10013915
xor eax, eax
cmp ax, word [ebp - 4]
je 0x100138b2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov ecx, 0xa9e9
cmp cx, ax
jne 0x1001390c
xor eax, eax
cmp ax, word [ebp - 4]
jne 0x1001390c
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x100138ae
Function at 0x10013e79
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f8
mov eax, dword [0x1002f060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
cmp eax, edi
je 0x10013f07
cmp dword [eax + 4], 0x6f
jne 0x10013f07
cmp dword [eax + 8], 0x70b
jne 0x10013f07
cmp dword [eax + 0xc], 0x202
jne 0x10013f07
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
push esi
mov esi, eax
sub esi, ecx
cmp esi, 0x3e8
jae 0x10013f06
mov dword [ebp - 0x3f4], eax
lea eax, [ebp - 0x3ec]
mov dword [ebp - 0x3f0], eax
lea eax, [ebp - 0x3f8]
push eax
push edi
push 0x44b
push 0x6f
push edx
mov dword [ebp - 0x3f8], ecx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
cmp esi, eax
jne 0x10013f06
push 1
push edi
push edi
lea eax, [ebp - 0x3ec]
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.10017a76
leave
ret 4