joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10022b36
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 8], 0
xor eax, eax
inc eax
imul eax, eax, 0xc
mov byte [ebp + eax - 0x18], 0
xor eax, eax
inc eax
imul eax, eax, 9
mov byte [ebp + eax - 0x18], 0x65
xor eax, eax
inc eax
imul eax, eax, 6
mov byte [ebp + eax - 0x18], 0x6c
xor eax, eax
inc eax
shl eax, 3
mov byte [ebp + eax - 0x18], 0x75
xor eax, eax
inc eax
shl eax, 1
mov byte [ebp + eax - 0x18], 0x72
xor eax, eax
inc eax
imul eax, eax, 3
mov byte [ebp + eax - 0x18], 0x74
xor eax, eax
inc eax
imul eax, eax, 0
mov byte [ebp + eax - 0x18], 0x56
xor eax, eax
inc eax
shl eax, 0
mov byte [ebp + eax - 0x18], 0x69
xor eax, eax
inc eax
imul eax, eax, 5
mov byte [ebp + eax - 0x18], 0x61
xor eax, eax
inc eax
imul eax, eax, 0xa
mov byte [ebp + eax - 0x18], 0x72
xor eax, eax
inc eax
imul eax, eax, 0xb
mov byte [ebp + eax - 0x18], 0x79
xor eax, eax
inc eax
imul eax, eax, 7
mov byte [ebp + eax - 0x18], 0x51
xor eax, eax
inc eax
shl eax, 2
mov byte [ebp + eax - 0x18], 0x75
lea eax, [ebp - 0x18]
push eax
call fcn.10021816
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10022bf6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
leave
ret

Function at 0x10022ebe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10022f14
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10022f14
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x10022f06
cmp esi, ecx
jae 0x10022f14
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x10022ef4
cmp esi, ecx
jae 0x10022f14
cmp word [esi], 0
je 0x10022f14
mov eax, esi
jmp 0x10022f16
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10022fdd
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
call fcn.10021956
test eax, eax
je 0x1002301b
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xf], 0x69577465
push ecx
push eax
mov dword [ebp - 8], 0x736f5077
mov word [ebp - 0xb], 0x646e
mov byte [ebp - 0x10], 0x53
mov byte [ebp - 4], bl
mov byte [ebp - 9], 0x6f
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov eax, ebx
pop ebx
leave
ret

Function at 0x10023020
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
call fcn.10021956
test eax, eax
je 0x1002306f
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x11], 0x65726f46
push ecx
push eax
mov dword [ebp - 5], 0x776f646e
mov dword [ebp - 0xa], 0x57646e75
mov word [ebp - 0x14], 0x6553
mov word [ebp - 0xd], 0x7267
mov byte [ebp - 0x12], 0x74
mov byte [ebp - 1], bl
mov byte [ebp - 6], 0x69
mov byte [ebp - 0xb], 0x6f
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov eax, ebx
pop ebx
leave
ret
Function at 0x10023074
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
call fcn.10021956
test eax, eax
je 0x100230b5
lea ecx, [ebp - 0x10]
mov dword [ebp - 5], 0x776f646e
push ecx
push eax
mov dword [ebp - 0xb], 0x65766974
mov dword [ebp - 0x10], 0x41746553
mov word [ebp - 7], 0x6957
mov byte [ebp - 1], bl
mov byte [ebp - 0xc], 0x63
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov eax, ebx
pop ebx
leave
ret

Function at 0x100230ba
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
call fcn.10021956
test eax, eax
je 0x100230fe
lea ecx, [ebp - 0x14]
mov word [ebp - 0xf], 0x6957
push ecx
push eax
mov dword [ebp - 0x14], 0x6e697242
mov dword [ebp - 0xd], 0x776f646e
mov dword [ebp - 7], 0x706f54
mov byte [ebp - 0x10], 0x67
mov word [ebp - 9], 0x6f54
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov eax, ebx
pop ebx
leave
ret

Function at 0x10023103
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
push esi
lea eax, [ebp - 0x1c]
mov word [ebp - 0xa], 0x5446
push eax
push 0x20019
xor ebx, ebx
mov word [ebp - 4], 0x5c
push ebx
push ecx
lea ecx, [ebp - 0x10]
mov word [ebp - 7], 0x5241
mov word [ebp - 0xc], 0x4f53
mov byte [ebp - 5], 0x45
mov byte [ebp - 8], 0x57
call fcn.10023890
push eax
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x14]
call fcn.100237ab
pop ecx
mov ecx, eax
call fcn.100238ef
push eax
push 0x80000001
call fcn.10022184
add esp, 0x14
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.1002388b
lea ecx, [ebp - 0x10]
call fcn.1002388b
test esi, esi
jne 0x1002325a
push 0x104
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.100259e0
lea eax, [ebp - 0x20]
mov dword [ebp - 6], 0x736c61
push eax
lea eax, [ebp - 0x124]
mov word [ebp - 8], 0x7668
push eax
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x1c]
call fcn.10021d4a
add esp, 0x24
test eax, eax
jne 0x10023251
cmp dword [ebp - 0x20], ebx
jbe 0x10023251
lea ecx, [ebp - 0x14]
call fcn.100238db
push dword [ebp + 8]
lea eax, [ebp - 0x18]
mov word [ebp - 0x18], 0x6425
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 0x16], bl
push eax
call fcn.10023dbe
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.100238db
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x10]
push 0x1004396c
push eax
call fcn.10023dbe
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
call fcn.100238ef
push eax
lea ecx, [ebp - 0x10]
call fcn.10023834
test eax, eax
js 0x10023241
push dword [ebp - 0x1c]
call fcn.10022275
pop ecx
lea ecx, [ebp - 0x10]
call fcn.1002388b
lea ecx, [ebp - 0x14]
call fcn.1002388b
xor eax, eax
inc eax
jmp 0x10023275
lea ecx, [ebp - 0x10]
call fcn.1002388b
lea ecx, [ebp - 0x14]
call fcn.1002388b
push dword [ebp - 0x1c]
call fcn.10022275
pop ecx
push dword [ebp + 0x20]
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 [0x1006d98c]
pop esi
pop ebx
leave
ret 0x1c
Function at 0x1002327b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
push esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xb], 0x5754464f
push eax
push 0x20019
xor ebx, ebx
mov dword [ebp - 7], 0x5c455241
push ebx
push ecx
lea ecx, [ebp - 0x10]
mov byte [ebp - 0xc], 0x53
mov byte [ebp - 3], bl
call fcn.10023890
push eax
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x14]
call fcn.100237ab
pop ecx
mov ecx, eax
call fcn.100238ef
push eax
push 0x80000001
call fcn.10022184
add esp, 0x14
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.1002388b
lea ecx, [ebp - 0x10]
call fcn.1002388b
test esi, esi
jne 0x100233ce
push 0x104
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.100259e0
lea eax, [ebp - 0x20]
mov word [ebp - 5], 0x736c
push eax
lea eax, [ebp - 0x124]
mov word [ebp - 8], 0x7668
push eax
push ebx
push ebx
lea eax, [ebp - 8]
mov byte [ebp - 3], bl
push eax
push dword [ebp - 0x1c]
mov byte [ebp - 6], 0x61
call fcn.10021d4a
add esp, 0x24
test eax, eax
jne 0x100233c5
cmp dword [ebp - 0x20], ebx
jbe 0x100233c5
lea ecx, [ebp - 0x14]
call fcn.100238db
push dword [ebp + 8]
lea eax, [ebp - 0x18]
mov word [ebp - 0x17], 0x64
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 0x18], 0x25
push eax
call fcn.10023dbe
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.100238db
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x10]
push 0x1004396c
push eax
call fcn.10023dbe
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
call fcn.100238ef
push eax
lea ecx, [ebp - 0x10]
call fcn.10023834
test eax, eax
js 0x100233b5
push dword [ebp - 0x1c]
call fcn.10022275
pop ecx
lea ecx, [ebp - 0x10]
call fcn.1002388b
lea ecx, [ebp - 0x14]
call fcn.1002388b
xor eax, eax
inc eax
jmp 0x100233d7
lea ecx, [ebp - 0x10]
call fcn.1002388b
lea ecx, [ebp - 0x14]
call fcn.1002388b
push dword [ebp - 0x1c]
call fcn.10022275
pop ecx
push dword [ebp + 8]
call dword [0x1006d980]
pop esi
pop ebx
leave
ret 4
Function at 0x10023537
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
push esi
lea eax, [ebp - 0x1c]
mov word [ebp - 0xc], 0x4f53
push eax
push 0x20019
xor ebx, ebx
mov dword [ebp - 7], 0x5c455241
push ebx
push ecx
lea ecx, [ebp - 0x10]
mov byte [ebp - 3], bl
mov word [ebp - 9], 0x5754
mov byte [ebp - 0xa], 0x46
call fcn.10023890
push eax
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x14]
call fcn.100237ab
pop ecx
mov ecx, eax
call fcn.100238ef
push eax
push 0x80000001
call fcn.10022184
add esp, 0x14
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.1002388b
lea ecx, [ebp - 0x10]
call fcn.1002388b
test esi, esi
jne 0x10023688
push 0x104
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.100259e0
lea eax, [ebp - 0x20]
mov dword [ebp - 6], 0x736c61
push eax
lea eax, [ebp - 0x124]
mov word [ebp - 8], 0x7668
push eax
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x1c]
call fcn.10021d4a
add esp, 0x24
test eax, eax
jne 0x1002367f
cmp dword [ebp - 0x20], ebx
jbe 0x1002367f
lea ecx, [ebp - 0x14]
call fcn.100238db
push dword [ebp + 8]
lea eax, [ebp - 0x18]
mov word [ebp - 0x18], 0x6425
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 0x16], bl
push eax
call fcn.10023dbe
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.100238db
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x10]
push 0x1004396c
push eax
call fcn.10023dbe
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
call fcn.100238ef
push eax
lea ecx, [ebp - 0x10]
call fcn.10023834
test eax, eax
js 0x1002366f
push dword [ebp - 0x1c]
call fcn.10022275
pop ecx
lea ecx, [ebp - 0x10]
call fcn.1002388b
lea ecx, [ebp - 0x14]
call fcn.1002388b
xor eax, eax
inc eax
jmp 0x10023691
lea ecx, [ebp - 0x10]
call fcn.1002388b
lea ecx, [ebp - 0x14]
call fcn.1002388b
push dword [ebp - 0x1c]
call fcn.10022275
pop ecx
push dword [ebp + 8]
call dword [0x1006d984]
pop esi
pop ebx
leave
ret 4

Function at 0x10023697
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
cmp dword [ebp + 0xc], 1
jne 0x10023757
push 0x104
lea eax, [ebp - 0x114]
push eax
push 0
call fcn.1002207d
lea ecx, [ebp - 0x114]
call fcn.10023dd2
lea eax, [ebp - 0x10]
mov dword [ebp - 0xa], 0x75732074
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0x74726f
push eax
mov dword [ebp - 0xf], 0x6174736e
mov word [ebp - 6], 0x7070
mov byte [ebp - 0x10], 0x69
mov byte [ebp - 0xb], 0x6e
call fcn.10022bfb
add esp, 0x14
test eax, eax
jne 0x1002378c
push sym.gphelper.dll__HookSetWindowPos_28
push 0x1006d98c
call fcn.100246bc
pop ecx
pop ecx
test eax, eax
je 0x1002378c
push sym.gphelper.dll__HookSetForegroundWindow_4
push 0x1006d980
call fcn.100246bc
pop ecx
pop ecx
test eax, eax
je 0x1002378c
push sym.gphelper.dll__HookSetActiveWindow_4
push 0x1006d988
call fcn.100246bc
pop ecx
pop ecx
test eax, eax
je 0x1002378c
push sym.gphelper.dll__HookBringWindowToTop_4
push 0x1006d984
call fcn.100246bc
pop ecx
jmp 0x1002378b
cmp dword [ebp + 0xc], 0
jne 0x1002378c
push 0x1006d98c
call fcn.10024965
mov dword [esp], 0x1006d980
call fcn.10024965
mov dword [esp], 0x1006d988
call fcn.10024965
mov dword [esp], 0x1006d984
call fcn.10024965
pop ecx
xor eax, eax
inc eax
leave
ret 0xc
Function at 0x10024254
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
push dword [ebp + 8]
push 0
push 0x1fffff
call fcn.1002272c
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x10024331
cmp dword [ebp - 4], 0
je 0x10024331
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x10024324
mov dword [ebp - 0x2dc], 0x10001
and dword [ebp - 8], 0
lea eax, [ebp - 0x2dc]
push eax
push dword [ebp - 4]
call fcn.1002263e
pop ecx
pop ecx
test eax, eax
je 0x10024322
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jb 0x1002431e
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
cmp dword [ebp - 0xc], eax
jae 0x1002431e
cmp dword [ebp - 8], 3
jge 0x10024304
push dword [ebp - 4]
call fcn.10022488
pop ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
jmp 0x1002431c
push dword [ebp - 4]
call fcn.10022488
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 4], 0
jmp 0x10024322
jmp 0x10024320
jmp 0x10024322
jmp 0x100242aa
jmp 0x10024331
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
leave
ret

Function at 0x10030a11
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10030916
Function at 0x4043e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4999c7
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4cc498]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x21c], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
je 0x40448d
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404480
jmp 0x4044db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4044ee
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4044ee
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4044d0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00404580
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049745c
mov esp, ebp
pop ebp
ret
Function at 0x40cd70
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a470
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x4cc498]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
mov ebx, dword [ebp + 0xc]
push 0x20a
push 0
mov dword [ebp - 0x224], esi
push eax
mov dword [ebp - 0x224], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x40cdd0
mov eax, dword [ebx]
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, eax
mov dword [ebp - 0x240], ecx
test ecx, ecx
je 0x40cf7e
cmp ecx, 0x104
ja 0x40ce3c
xor eax, eax
mov dword [esi], 0
lea ecx, [ebp - 0x21c]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
lea edx, [ecx + 2]
mov word [esi], ax
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ce20
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
jmp 0x40cf9d
lea eax, [ecx + 1]
mov dword [ebp - 0x234], 0
xor edi, edi
mov dword [ebp - 0x220], eax
xor ebx, ebx
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], ebx
test eax, eax
je 0x40cef5
cmp eax, 0x7fffffff
ja 0x40cfc2
push eax
lea ecx, [ebp - 0x230]
call fcn.00401c70
mov ecx, dword [ebp - 0x220]
mov edi, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x230], edi
lea edx, [ecx + ecx]
lea ecx, [ebp - 0x234]
mov ax, word [ecx]
lea ebx, [edx + edi]
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x228], ebx
cmp ax, word [ecx]
mov ecx, dword [ebp - 0x220]
jne 0x40ced6
push edx
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x40cee7
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x240]
mov eax, ebx
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x224]
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x40cf0a
mov eax, dword [eax]
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, edi
mov dword [esi], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cf31
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.00404580
test edi, edi
je 0x40cfa4
sub ebx, edi
mov eax, edi
and ebx, 0xfffffffe
cmp ebx, 0x1000
jb 0x40cf72
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40cf72
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ebx
push edi
call fcn.0049744e
add esp, 8
jmp 0x40cfa4
xor eax, eax
mov dword [esi], 0
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x4a7810
mov ecx, esi
call fcn.00404580
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049745c
mov esp, ebp
pop ebp
ret
call fcn.00401c60
int3
Function at 0x4101b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49aa30
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4cc498]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov edi, edx
sbb ecx, ecx
mov dword [ebp - 4], 0
and ecx, 0xfffffffc
xor al, al
push edx
mov ecx, dword [ecx + esi + 0x30]
rep stosb byte es:[edi], al
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
cmp eax, ecx
mov edx, dword [esi + 0x24]
mov edi, edx
cmovb ecx, eax
mov dword [ebp - 4], 1
xor al, al
rep stosb byte es:[edi], al
push edx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov ecx, dword [esi + 0xc]
add esp, 8
test ecx, ecx
je 0x41022c
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x41023d
push 0x40
push esi
call fcn.0049744e
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x413690
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4cc498]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x41374c
cmp byte [esi + 0x3d], 0
je 0x41374c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x41373a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x413701
sub eax, 1
je 0x413705
sub eax, 2
jne 0x41373a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049745c
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x413723
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x41373a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049745c
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049745c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0049745c
mov esp, ebp
pop ebp
ret
Function at 0x413aa0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b105
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4cc498]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], ebx
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], esi
push eax
push ecx
mov dword [ebp - 0x2c], esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x413b0b
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov eax, edi
jmp 0x413c2b
xor edi, edi
cmp dword [ebp - 0x2c], edi
jle 0x413c16
jmp 0x413b20
mov edx, dword [eax + edi*4]
test edx, edx
je 0x413c09
xor eax, eax
mov dword [ebp - 0x28], 0
mov word [ebp - 0x28], ax
mov eax, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea ebx, [eax + 2]
jmp 0x413b50
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413b50
sub eax, ebx
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
push edx
call fcn.00404580
mov byte [ebp - 4], 1
cmp esi, dword [ebp - 0x34]
je 0x413bbc
mov eax, dword [ebp - 0x28]
mov edx, 7
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x14], eax
xor eax, eax
add esi, 0x18
mov word [ebp - 0x28], ax
mov dword [ebp - 0x38], esi
jmp 0x413bcf
lea eax, [ebp - 0x28]
push eax
push esi
lea ecx, [ebp - 0x3c]
call fcn.00401680
mov esi, dword [ebp - 0x38]
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x413c06
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413bfc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413c47
push edx
push ecx
call fcn.0049744e
add esp, 8
mov eax, dword [ebp - 0x30]
inc edi
cmp edi, dword [ebp - 0x2c]
jl 0x413b20
mov ebx, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x34]
mov dword [eax], ebx
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049745c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x413c50
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b13d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4cc498]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x28]
mov edi, dword [ebp + 8]
push esi
push eax
call fcn.00411d70
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.00413d20
add esp, 0xc
test eax, eax
jne 0x413ca5
xor esi, esi
jmp 0x413cc2
cmp dword [esi + 0x14], 8
jb 0x413cad
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x413cb5
mov edi, dword [edi]
push dword [ebp + 0x10]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x413cfe
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413cf4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x413cf4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049744e
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049745c
mov esp, ebp
pop ebp
ret