joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5fc7d8
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x74f8a0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x5fc876
push 0x6fb554
push 4
push eax
call fcn.00622652
push eax
call fcn.00401000
add esp, 0x10
push ebx
push edi
call fcn.0061d894
mov edi, dword [eax]
call fcn.0061d894
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0061aff6
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.0061d894
cmp dword [eax], ebx
je 0x5fc88d
call fcn.0061d894
push dword [eax]
call fcn.005ec924
pop ecx
jmp 0x5fc894
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x5fc81e
jmp 0x5fc91b
call fcn.0061d894
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
je 0x5fc917
cmp dword [ebp - 0x11c], esi
jae 0x5fc917
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x15c]
push ebx
push eax
mov dword [ebp - 0x160], 0x40
call fcn.00618760
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x5fc906
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x5fc906
lea ecx, [ebp - 0x160]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x5fc906
push ebx
push ebx
push esi
jmp 0x5fc90f
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x5fc919
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0061807e
leave
ret

Function at 0x5fdf28
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x5fdf70
call fcn.005f4aa9
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x5fdf70
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x5fdfb3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x5fdf9c
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x5fdf9c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x5fdfb0
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x602cab
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x602cc3
mov edi, dword [esi + 0xc]
jmp 0x602d03
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x602cdc
call fcn.005f4db6
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x602cf1
call fcn.005f4db6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x602d03
call fcn.005f4db6
call fcn.005f4aa9
cmp dword [eax + 0x3c], 0
je 0x602d18
push edi
mov ecx, ebx
call fcn.00601b42
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00602bd1
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x602d36
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x602d42
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x6166c8
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x74f8a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x6166fd
xor eax, eax
jmp 0x616750
lea eax, [ebp - 0x210]
push eax
call fcn.00620a9f
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x61672e
push 0x670988
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0062326b
add esp, 0xc
test eax, eax
jne 0x6166f9
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0062326b
add esp, 0xc
test eax, eax
jne 0x6166f9
lea eax, [ebp - 0x210]
push eax
call fcn.0061663a
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0061807e
leave
ret

Function at 0x61807e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x74f8a0]
jne 0x618088
repz ret
jmp fcn.0062482c
Function at 0x632812
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00624170
and dword [ebp - 4], 0
cmp dword [0x75923c], 0
mov ebx, eax
jne 0x6328c3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x632974
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x703a80
push edi
call esi
test eax, eax
je 0x632974
push eax
call fcn.006240fe
mov dword [esp], 0x703a70
push edi
mov dword [0x75923c], eax
call esi
push eax
call fcn.006240fe
mov dword [esp], 0x703a5c
push edi
mov dword [0x759240], eax
call esi
push eax
call fcn.006240fe
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x759244], eax
call esi
push eax
call fcn.006240fe
pop ecx
mov dword [0x75924c], eax
test eax, eax
je 0x6328c3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.006240fe
pop ecx
mov dword [0x759248], eax
mov eax, dword [0x759248]
cmp eax, ebx
je 0x63291b
cmp dword [0x75924c], ebx
je 0x63291b
push eax
call fcn.00624179
push dword [0x75924c]
mov esi, eax
call fcn.00624179
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x63291b
test edi, edi
je 0x63291b
call esi
test eax, eax
je 0x632912
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x632912
test byte [ebp - 0xc], 1
jne 0x63291b
or dword [ebp + 0x10], 0x200000
jmp 0x632954
mov eax, dword [0x759240]
cmp eax, ebx
je 0x632954
push eax
call fcn.00624179
pop ecx
test eax, eax
je 0x632954
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x632954
mov eax, dword [0x759244]
cmp eax, ebx
je 0x632954
push eax
call fcn.00624179
pop ecx
test eax, eax
je 0x632954
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x75923c]
call fcn.00624179
pop ecx
test eax, eax
je 0x632974
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x632976
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40be11
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x414230], 0
push esi
jne 0x40bd84
call fcn.0040bcaf
test eax, eax
je 0x40bdc7
mov eax, dword [0x414230]
cmp eax, 1
jne 0x40bda5
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40bdc7
pop esi
ret
push eax
call dword [0x414238]
test eax, eax
jne 0x40be0f
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40bdcb
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x414230]
call dword [0x414238]
mov edi, eax
test edi, edi
je 0x40bdf2
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x40be0e
lea edi, [esi + 0xff0]
push esi
push dword [0x414230]
call dword [0x414234]
add esi, 0x10
cmp esi, edi
jb 0x40bdf8
mov eax, esi
pop edi
pop esi
ret
jmp 0x40bd71

Function at 0x40bfb7
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x41411c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040bf4c
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40c006
cmp dword [ebp - 0x1c], 5
jb 0x40c01e
jmp 0x40c01a
cmp dword [ebp - 0x10], 1
jne 0x40c01e
cmp dword [ebp - 0x1c], 4
ja 0x40c01a
jne 0x40c01e
cmp dword [ebp - 0x18], 0
jbe 0x40c01e
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x40f060
call fcn.00401240
test eax, eax
jge 0x40c03f
mov byte [0x41415c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040c1b6
add ebp, 0x78
leave
ret

Function at 0x40c1b6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41411c]
jne 0x40c1c0
repz ret
jmp fcn.0040c6ce
Function at 0x1134058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.011341a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x113407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x113406a
add dl, dl
jne 0x1134089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x11340dc
xor eax, eax
add dl, dl
jne 0x1134096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x113417d
add dl, dl
jne 0x11340a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11340b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11340bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11340c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x11340d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1134075
mov eax, 1
add dl, dl
jne 0x11340ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11340f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x11340e1
sub eax, ebx
mov ebx, 1
jne 0x1134128
mov ecx, 1
add dl, dl
jne 0x113410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1134119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1134105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1134075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x113413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x113414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1134136
cmp eax, 0x7d00
jae 0x113416d
cmp eax, 0x500
jb 0x1134168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1134075
cmp eax, 0x7f
ja 0x1134170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1134075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x113419e
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 0x1134075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401a40
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x4070a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
mov eax, dword [0x462014]
xor eax, esp
mov dword [esp + 0x184], eax
push esi
push edi
push 0x104
lea eax, [esp + 0x84]
mov esi, ecx
push eax
push 0
call 0x33c0855
nop
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x407289
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x407289
push 0x44
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.004340f0
add esp, 0xc
lea eax, [esp + 0x20]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [esp + 0xa4]
push eax
call 0x33c091a
nop
test eax, eax
je 0x407289
push 4
push 0x1000
push 4
push 0
call 0x33c00ac
nop
push eax
mov dword [esp + 0x1c], eax
mov dword [eax], 0x10007
push dword [esp + 0x28]
call 0x3370118
nop
test eax, eax
je 0x407289
push 0
push 4
lea eax, [esp + 0x24]
push eax
push 0x458df8
push dword [esp + 0x30]
call 0x3370474
nop
mov eax, dword [edi + 0x34]
cmp dword [esp + 0x1c], eax
jne 0x4071ac
push 0x458dfc
push 0x458e14
call 0x33b0c07
nop
push eax
call 0x337025d
nop
push dword [esp + 0x1c]
push dword [esp + 0x24]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [esp + 0x30]
call 0x3370306
nop
mov dword [esp + 0x14], eax
test eax, eax
je 0x407289
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [esp + 0x30]
call 0x33c0741
nop
xor eax, eax
mov dword [esp + 0x10], 0
cmp ax, word [edi + 6]
jae 0x407243
mov dword [esp + 0xc], eax
call fcn.00406ef0
push eax
call 0x33a05e1
nop
mov ecx, dword [esp + 0xc]
add ecx, esi
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + 0x108]
mov eax, dword [ecx + 0x10c]
add eax, esi
push eax
mov eax, dword [ecx + 0x104]
add eax, dword [esp + 0x20]
push eax
push dword [esp + 0x30]
call 0x33c0741
nop
mov ecx, dword [esp + 0x10]
movzx eax, word [edi + 6]
inc ecx
add dword [esp + 0xc], 0x28
mov dword [esp + 0x10], ecx
cmp ecx, eax
jl 0x4071f2
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xa4]
add eax, 8
push eax
push dword [esp + 0x30]
call 0x33c0741
nop
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x28]
add eax, dword [esp + 0x14]
push ecx
mov dword [ecx + 0xb0], eax
push dword [esp + 0x28]
call 0x33706cd
nop
push dword [esp + 0x24]
call 0x33b0d00
nop
push 0x8000
push 0
push esi
call 0x33c06df
nop
mov ecx, dword [esp + 0x18c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.0041cff1
mov esp, ebp
pop ebp
ret
Function at 0x41dcc7
Capabilities:
Parse pe header

Disassembly:
push 0
call 0x34204aa
nop
test eax, eax
je 0x41dd07
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41dd07
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41dd07
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41dd07
cmp dword [ecx + 0x74], 0xe
jbe 0x41dd07
cmp dword [ecx + 0xe8], 0
je 0x41dd07
mov al, 1
ret
xor al, al
ret

Function at 0x5df8f6
Capabilities:
Execute anti-debugging instructions

Disassembly:
pushal
push eax
push edx
jge 0x5df8ff
rdtsc
jno 0x5df907
pop edx
pop eax
push eax
push edx
pushal
popal
lgs edx, [ecx - 0x44]
add byte [eax], al
add byte [edx + 0x58], bl
popal
push eax
jmp 0x5df92c
mov eax, dword [esp + 4]
jmp 0x5df940
mov eax, dword [eax]
push eax
push edx
jnp 0x5df94a
pop edx
pop eax
mov dword [esp + 4], eax
jbe 0x5df95c
pushal
pushal
popal
pushal
popal
popal
pop eax
jmp 0x5df96a
push dword [ebp + 0x122d065d]
mov di, cx
call dword [ebp + 0x122d1cb3]
nop
push ebx
push eax
push edx
pushal
popal
rdtsc
push edx
pop edx
pop edx
pop eax
pop ebx
push eax
push eax
push edx
pushal
popal
pop edx
pop eax
nop
jmp 0x335df9a0
Function at 0x10001008
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10001012
repz ret
jmp fcn.10001307

Function at 0x10002b12
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1000b0e8]
je 0x10002b2d
inc edi
cmp edi, 0x17
jb 0x10002b1e
cmp edi, 0x17
jae 0x10002cad
push ebp
push 3
call fcn.1000591c
cmp eax, 1
pop ecx
je 0x10002c79
push 3
call fcn.1000591c
test eax, eax
pop ecx
jne 0x10002b61
cmp dword [0x100324f0], 1
je 0x10002c79
cmp ebx, 0xfc
je 0x10002cac
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10032988
push ebp
call fcn.10005027
add esp, 0xc
test eax, eax
je 0x10002b97
push esi
push esi
push esi
push esi
push esi
call fcn.10002e9c
add esp, 0x14
push 0x104
mov esi, 0x100329a1
push esi
push 0
mov byte [0x10032aa5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10002bdb
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10005027
add esp, 0xc
test eax, eax
je 0x10002bdb
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10002e9c
add esp, 0x14
push esi
call fcn.10005090
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10002c20
push esi
call fcn.10005090
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10032c9c
push 0x10008764
sub ecx, eax
push ecx
push eax
call fcn.10005869
add esp, 0x14
test eax, eax
je 0x10002c20
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10002e9c
add esp, 0x14
jmp 0x10002c22
xor esi, esi
push 0x10008760
push ebx
push ebp
call fcn.100057f8
add esp, 0xc
test eax, eax
je 0x10002c42
push esi
push esi
push esi
push esi
push esi
call fcn.10002e9c
add esp, 0x14
push dword [edi*8 + 0x1000b0ec]
push ebx
push ebp
call fcn.100057f8
add esp, 0xc
test eax, eax
je 0x10002c64
push esi
push esi
push esi
push esi
push esi
call fcn.10002e9c
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1000563b
add esp, 0xc
jmp 0x10002cac
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10002cac
cmp ebp, 0xffffffff
je 0x10002cac
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1000b0ec]
push dword [esi]
call fcn.10005090
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1000563b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.100017e1
xor ebx, ebx
cmp dword [0x10032e68], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10005711
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100057f1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x100057f1
push eax
call fcn.10001773
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10032e68], eax
call esi
push eax
call fcn.10001773
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10032e6c], eax
call esi
push eax
call fcn.10001773
mov dword [0x10032e70], eax
lea eax, [ebp - 0xc]
push eax
call fcn.100014b4
test eax, eax
pop ecx
pop ecx
je 0x100056df
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10002e9c
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10005711
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10001773
cmp eax, ebx
pop ecx
mov dword [0x10032e78], eax
je 0x10005711
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10001773
pop ecx
mov dword [0x10032e74], eax
mov eax, dword [0x10032e74]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10005796
cmp dword [0x10032e78], ecx
je 0x10005796
push eax
call fcn.100017ea
push dword [0x10032e78]
mov esi, eax
call fcn.100017ea
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10005796
cmp edi, ebx
je 0x10005796
call esi
cmp eax, ebx
je 0x10005763
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10005763
test byte [ebp - 0x18], 1
jne 0x10005796
lea eax, [ebp - 0x10]
push eax
call fcn.100014eb
test eax, eax
pop ecx
je 0x1000577e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10002e9c
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1000578d
or dword [ebp + 0x10], 0x200000
jmp 0x100057d1
or dword [ebp + 0x10], 0x40000
jmp 0x100057d1
mov eax, dword [0x10032e6c]
cmp eax, dword [ebp - 8]
je 0x100057d1
push eax
call fcn.100017ea
cmp eax, ebx
pop ecx
je 0x100057d1
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100057d1
mov eax, dword [0x10032e70]
cmp eax, dword [ebp - 8]
je 0x100057d1
push eax
call fcn.100017ea
cmp eax, ebx
pop ecx
je 0x100057d1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10032e68]
call fcn.100017ea
cmp eax, ebx
pop ecx
je 0x100057f1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100057f3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4013da
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 8]
call fcn.00401748
push dword [ebp + 0xc]
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.0040154d
push 0x5c
mov ecx, edi
call fcn.004015ea
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push esi
push 0x4014af
push edi
push edi
mov dword [0x41c208], esi
mov dword [0x41c210], edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp dword [0x41c26c], 2
mov dword [0x41c20c], eax
je 0x401437
call fcn.0040738d
push 0xffffffffffffffff
push dword [0x41c20c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [0x41c210]
mov dword [0x41c278], edi
cmp eax, edi
je 0x40148a
mov ecx, eax
dec ecx
je 0x40147e
dec ecx
je 0x40147a
dec ecx
je 0x401476
push eax
push 0x14
push edi
call fcn.0040723f
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8
push 0x12
jmp 0x401480
push 0x13
jmp 0x401480
push 0x11
push edi
call fcn.0040723f
pop ecx
pop ecx
jmp 0x40146b
cmp dword [0x41c27c], edi
jne 0x40146b
lea eax, [ebp + 8]
push eax
push dword [0x41c20c]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
test eax, eax
je 0x40146b
cmp dword [ebp + 8], edi
jne 0x40146b
xor eax, eax
jmp 0x401470

Function at 0x401939
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test al, 0x10
je 0x401955
xor eax, eax
jmp 0x4019a4
mov eax, dword [0x41c270]
test eax, eax
je 0x401991
cmp eax, 2
jne 0x4019a1
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
je 0x401991
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
push dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.DLL_CompareFileTime]
test eax, eax
jge 0x4019a1
push esi
call fcn.004023a9
neg eax
sbb eax, eax
pop ecx
neg eax
dec eax
jmp 0x4019a4
push 1
pop eax
pop esi
leave
ret

Function at 0x4019a7
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x4019da
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x4019d7
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4019da
test al, 0x10
jne 0x4019da
xor eax, eax
ret
push 1
pop eax
ret