joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4295d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474180
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xec
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], edi
mov byte [ebp - 0x11], 0
mov dword [ebp - 4], esi
call fcn.0040a670
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
mov dword [ebp - 0x24], esi
call fcn.00428e40
mov al, byte [edi + 0x1d]
test al, al
jne 0x429631
mov ecx, edi
call fcn.00428400
mov al, byte [edi + 0x1d]
test al, al
je 0x4297de
xor ebx, ebx
jmp 0x429637
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x477a74
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call fcn.00403d90
test al, al
jne 0x42967d
push 1
push 0x2e4
push str.e:_tvt4_carolina_tvt4_lib_1.1.0_tvtinclude_tvt_buffer.h
lea ecx, [ebp - 0xb8]
call fcn.00409900
push 0x486528
lea ecx, [ebp - 0xb8]
push ecx
call fcn.0044fb86
cmp dword [ebp - 0x1c], esi
mov edx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
mov dword [ebp - 0x2c], edx
jne 0x4296ad
push 1
push 0x659
push str.e:_tvt4_carolina_tvt4_lib_1.1.0_tvtinclude_tvt_buffer.h
push 0x477a80
lea ecx, [ebp - 0x78]
call fcn.00409800
lea ecx, [ebp - 0x78]
call fcn.00402470
mov ecx, dword [ebp - 0x1c]
mov edx, dword [edi + 0x18]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push ecx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
inc ebx
test esi, esi
je 0x42973a
cmp esi, 0x103
je 0x429787
mov eax, dword [edi + 8]
test eax, eax
jne 0x4296ff
push 1
push 0x659
push str.e:_tvt4_carolina_tvt4_lib_1.1.0_tvtinclude_tvt_buffer.h
push 0x477a80
lea ecx, [ebp - 0x78]
call fcn.00409800
lea ecx, [ebp - 0x78]
call fcn.00402470
mov eax, dword [edi + 8]
push 0
push 1
push 1
push 0x417
push str.._tvt_registry_key.cpp
push str.enumValueNames
push str.CTVTRegistrykey
push esi
push eax
lea ecx, [ebp - 0xf8]
call fcn.00427440
push 0x48c19c
lea eax, [ebp - 0xf8]
push eax
call fcn.0044fb86
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x38]
call fcn.0040df60
mov eax, dword [ebp - 0x34]
mov edi, dword [ebp - 0x30]
xor edx, edx
test eax, eax
sete dl
xor ecx, ecx
test edi, edi
sete cl
mov byte [ebp - 4], 2
xor edx, ecx
jne 0x429778
test eax, eax
jne 0x42976a
test edi, edi
je 0x429778
mov ecx, dword [ebp + 8]
push 0
lea edx, [ebp - 0x38]
push edx
call fcn.0040de40
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00403d10
mov edi, dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00403d10
test esi, esi
je 0x429635
mov eax, dword [ebp + 8]
cmp dword [eax], 0
sete al
test al, al
jne 0x4297de
mov byte [ebp - 0x11], 1
jmp 0x4297de
mov al, byte [edi + 0x1d]
test al, al
mov dword [ebp - 4], 0xffffffff
je 0x4297f3
mov ecx, edi
call fcn.004280b0
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x11]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43b070
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474560
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov esi, ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x11], 0
mov dword [ebp - 4], 0
call fcn.0040c200
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00417b70
test al, al
je 0x43b157
mov al, byte [ebp + 0x10]
test al, al
je 0x43b153
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x43b0f4
push 1
push 0x659
push str.e:_tvt4_carolina_tvt4_lib_1.1.0_tvtinclude_tvt_buffer.h
push 0x477a80
lea ecx, [ebp - 0x6c]
call fcn.00409800
lea ecx, [ebp - 0x6c]
call fcn.00402470
mov edx, dword [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push 0
push edx
call edi
mov esi, eax
test esi, esi
je 0x43b157
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040c0a0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0040a630
lea ecx, [ebp - 0x20]
mov ebx, eax
call fcn.0040a630
push esi
push ebx
push eax
call edi
cmp esi, eax
jne 0x43b145
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040c8a0
mov byte [ebp - 0x11], 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00403d10
jmp 0x43b157
mov byte [ebp - 0x11], 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00403d10
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x11]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43e4f0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x474d50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push esi
xor bl, bl
mov esi, ecx
mov byte [esp + 0xb], bl
call fcn.0043e420
test al, al
jne 0x43e6ef
mov eax, dword [esi + 4]
xor ecx, ecx
test eax, eax
sete cl
push edi
mov edi, dword [esi + 8]
xor edx, edx
test edi, edi
sete dl
xor ecx, edx
jne 0x43e6ee
test eax, eax
jne 0x43e548
test edi, edi
je 0x43e6ee
push esi
lea ecx, [esp + 0x20]
call fcn.0040c250
push 0x479914
lea ecx, [esp + 0x2c]
mov dword [esp + 0x8c], 0
call fcn.0040c7e0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x8c], 1
call fcn.0040b1e0
mov bl, al
neg bl
sbb bl, bl
lea ecx, [esp + 0x28]
inc bl
mov byte [esp + 0x88], 0
call fcn.00403d10
test bl, bl
je 0x43e5d3
push 0x479914
lea ecx, [esp + 0x2c]
call fcn.0040c7e0
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x8c], 2
call fcn.0040ae40
lea ecx, [esp + 0x28]
mov byte [esp + 0x88], 0
call fcn.00403d10
lea ecx, [esp + 0x10]
call fcn.0040c200
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [esp + 0x88], 3
mov esi, 1
nop
push 0x479914
lea ecx, [esp + 0x38]
call fcn.0040c7e0
push 1
push 1
push esi
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x9c], 4
call fcn.0040e0e0
lea ecx, [esp + 0x34]
mov bl, al
inc esi
mov byte [esp + 0x88], 3
call fcn.00403d10
test bl, bl
je 0x43e6c5
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0043ddf0
lea ecx, [esp + 0x28]
mov byte [esp + 0x88], 5
call fcn.0043e420
test al, al
jne 0x43e69a
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x43e688
push 1
push 0x659
push str.e:_tvt4_carolina_tvt4_lib_1.1.0_tvtinclude_tvt_buffer.h
push 0x477a80
lea ecx, [esp + 0x50]
call fcn.00409800
lea ecx, [esp + 0x40]
call fcn.00402470
mov edx, dword [esp + 0x14]
push 0
push edx
call edi
test eax, eax
je 0x43e6b0
mov byte [esp + 0xf], 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x88], 3
call fcn.0043df60
jmp 0x43e5f0
lea ecx, [esp + 0x28]
xor bl, bl
mov byte [esp + 0x88], 3
call fcn.0043df60
jmp 0x43e6c9
mov bl, byte [esp + 0xf]
lea ecx, [esp + 0x10]
mov byte [esp + 0x88], 0
call fcn.00403d10
lea ecx, [esp + 0x1c]
mov dword [esp + 0x88], 0xffffffff
call fcn.00403d10
pop edi
mov ecx, dword [esp + 0x7c]
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x80
ret
Function at 0x449000
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4758d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 1
push 1
push 1
push 0x11e
push str.._tvt_thread.cpp
push str.start
mov esi, ecx
push str.CTVTThread
lea ecx, [ebp - 0x18]
call fcn.00408a20
mov al, byte [esi + 0x1c]
test al, al
mov dword [ebp - 4], 0
mov byte [ebp - 0x11], 0
mov byte [ebp - 4], 1
jne 0x449065
mov ecx, esi
call fcn.00448b50
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x449107
mov eax, dword [esi + 0x38]
lea ecx, [esi + 0x38]
call dword [eax + 4]
mov edx, dword [esi + 0x20]
lea ebx, [esi + 0x20]
mov ecx, ebx
call dword [edx + 4]
mov eax, dword [esi + 0x50]
lea edi, [esi + 0x50]
mov ecx, edi
call dword [eax + 4]
mov edx, dword [esi + 0x68]
lea ecx, [esi + 0x68]
call dword [edx + 4]
mov al, byte [ebp + 0xc]
test al, al
je 0x44911d
lea eax, [esi + 0x10]
push eax
push 0
push esi
push 0x448f10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x14], eax
jne 0x4490f2
lea ecx, [esi + 4]
call fcn.0040a630
push 1
push 1
push 0x13b
push str.._tvt_thread.cpp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea ecx, [ebp - 0x58]
call fcn.00448a40
push 0x48f47c
lea ecx, [ebp - 0x58]
push ecx
call fcn.0044fb86
mov eax, dword [ebp + 8]
cmp eax, 1
jne 0x44910b
mov edx, dword [edi]
push 0xffffffffffffffff
mov ecx, edi
call dword [edx + 0x14]
mov byte [esi + 0x1c], 1
mov bl, 1
jmp 0x449164
cmp eax, 2
jne 0x449103
mov eax, dword [ebx]
push 0xffffffffffffffff
mov ecx, ebx
call dword [eax + 0x14]
mov bl, 1
jmp 0x449164
mov ecx, esi
call fcn.00448d50
mov bl, 1
jmp 0x449164
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x449175
mov dword [ecx + 0x24], 1
mov byte [ecx + 0x2c], bl
test ecx, ecx
mov dword [ebp - 4], 0xffffffff
je 0x449186
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, bl
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x450b21
Capabilities:
Terminate process

Disassembly:
push 8
push 0x47e3e8
call fcn.00451e20
push 8
call fcn.00454a03
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4a3718], esi
jne 0x450b55
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4a3714], esi
mov al, byte [ebp + 0x10]
mov byte [0x4a3710], al
cmp dword [ebp + 0xc], edi
jne 0x450b9f
cmp dword [0x4a535c], edi
je 0x450b8f
mov eax, dword [0x4a5358]
sub eax, 4
mov dword [0x4a5358], eax
cmp eax, dword [0x4a535c]
jb 0x450b8f
mov eax, dword [eax]
cmp eax, edi
je 0x450b70
call eax
jmp 0x450b70
push 0x49309c
mov eax, 0x493094
call fcn.00450a9f
pop ecx
push 0x4930a8
mov eax, 0x4930a0
call fcn.00450a9f
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x450bd0
cmp dword [ebp + 0x10], edi
jne 0x450bde
mov dword [0x4a3718], esi
push dword [ebp + 8]
call fcn.00450a5d
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x450bdd
push 8
call fcn.0045494e
pop ecx
ret
call fcn.00451e5b
ret
Function at 0x450d5f
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x47e408
call fcn.00451e20
mov edi, 0x94
mov eax, edi
call fcn.00450a20
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4a36d8], ecx
mov eax, dword [esi + 4]
mov dword [0x4a36e4], eax
mov edx, dword [esi + 8]
mov dword [0x4a36e8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4a36dc], esi
cmp ecx, 2
je 0x450dbf
or esi, 0x8000
mov dword [0x4a36dc], esi
shl eax, 8
add eax, edx
mov dword [0x4a36e0], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x450df8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x450df8
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x450e10
cmp eax, 0x20b
je 0x450dfd
mov dword [ebp - 0x1c], edi
jmp 0x450e24
cmp dword [ecx + 0x84], 0xe
jbe 0x450df8
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x450e1e
cmp dword [ecx + 0x74], 0xe
jbe 0x450df8
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00454a4e
pop ecx
test eax, eax
jne 0x450e38
push 0x1c
call fcn.00450d3b
pop ecx
call fcn.00452cea
test eax, eax
jne 0x450e49
push 0x10
call fcn.00450d3b
pop ecx
call fcn.0045689f
mov dword [ebp - 4], edi
call fcn.0045710d
test eax, eax
jge 0x450e62
push 0x1b
call fcn.00450d16
pop ecx
call fcn.0045706e
mov dword [0x4a5350], eax
call fcn.00456f04
mov dword [0x4a3720], eax
call fcn.00456e6e
test eax, eax
jge 0x450e87
push 8
call fcn.00450d16
pop ecx
call fcn.00456c3b
test eax, eax
jge 0x450e98
push 9
call fcn.00450d16
pop ecx
push 1
call fcn.00450ab7
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x450eae
push eax
call fcn.00450d16
pop ecx
mov eax, dword [0x4a3700]
mov dword [0x4a3704], eax
push eax
push dword [0x4a36f4]
push dword [0x4a36ec]
call fcn.00406840
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x450edd
push esi
call fcn.00450be4
call fcn.00450c06
jmp 0x450f0f
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.00451e5b
ret
Function at 0x45201a
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00450a20
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4520b5
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4a36d8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4520b5
cmp eax, 1
je 0x4520d6
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4520b5
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x452082
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4520b1
xor eax, eax
inc eax
jmp 0x4520f5
cmp edi, eax
jae 0x4520b9
xor eax, eax
jmp 0x4520f5
cmp eax, esi
jae 0x4520c0
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4a36d8]
jmp 0x4520d9
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x452efa
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x452f28
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x452f2f
cmp ebx, dword [eax + 4]
jae 0x452f2f
xor eax, eax
jmp 0x45311f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x452f40
xor eax, eax
inc eax
jmp 0x45311e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x452f56
cmp ecx, edx
jae 0x45309b
cmp dword [eax + 4], 0
je 0x452f5f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x452f47
cmp dword [ebp + 8], 0
je 0x452f81
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x45309b
cmp eax, esi
jae 0x45309b
mov eax, dword [0x4a3740]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x452fa6
cmp dword [esi*4 + 0x4a3748], edi
je 0x45309f
inc esi
cmp esi, eax
jl 0x452f94
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x45311b
cmp dword [ebp - 8], 0x1000000
jne 0x45311b
test byte [ebp - 0xc], 0xcc
je 0x453024
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x45311b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x45311b
cmp word [eax + 0x18], 0x10b
jne 0x45311b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x45311b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x453024
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x453024
test byte [ecx + 0x27], 0x80
jne 0x45309b
push 1
push 0x4a3788
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x452f38
mov ecx, dword [0x4a3740]
test ecx, ecx
mov edx, ecx
jle 0x453058
lea eax, [ecx*4 + 0x4a3744]
cmp dword [eax], edi
je 0x453058
dec edx
sub eax, 4
test edx, edx
jg 0x45304c
test edx, edx
jne 0x453089
push 0xf
pop ebx
cmp ecx, ebx
jg 0x453065
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x45307d
lea eax, [edx*4 + 0x4a3748]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x45306b
cmp ecx, 0x10
jge 0x453089
inc ecx
mov dword [0x4a3740], ecx
push 0
push 0x4a3788
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x452f38
xor eax, eax
jmp 0x45311e
test esi, esi
jle 0x452f38
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4a3788
call ebx
test eax, eax
jne 0x452f38
cmp dword [esi*4 + 0x4a3748], edi
je 0x4530f5
mov eax, dword [0x4a3740]
lea esi, [eax - 1]
test esi, esi
jl 0x4530e3
cmp dword [esi*4 + 0x4a3748], edi
je 0x4530df
dec esi
jns 0x4530d3
test esi, esi
jge 0x4530f3
cmp eax, 0x10
jge 0x4530ee
inc eax
mov dword [0x4a3740], eax
lea esi, [eax - 1]
jmp 0x4530f5
je 0x45310d
xor ecx, ecx
test esi, esi
jl 0x45310d
lea eax, [ecx*4 + 0x4a3748]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4530fb
push 0
push 0x4a3788
call ebx
jmp 0x452f38
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x456927
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4a00b8]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4a0688]
je 0x45695c
inc eax
cmp eax, 0x13
jb 0x45694d
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4a0688]
jne 0x456a82
mov eax, dword [0x4a3724]
cmp eax, 1
je 0x456a5a
cmp eax, edx
jne 0x45698c
cmp dword [0x4a00b4], 1
je 0x456a5a
cmp ecx, 0xfc
je 0x456a82
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4569c2
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00456110
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00451c60
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4569f6
mov eax, edi
push eax
call fcn.00451c60
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x47ec00
push edi
call fcn.00460320
add esp, 0x10
push edi
call fcn.00451c60
push dword [esi + 0x4a068c]
mov ebx, eax
call fcn.00451c60
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00450a20
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00456110
push edi
push ebx
call fcn.00456120
push 0x47ebe0
push ebx
call fcn.00456120
push dword [esi + 0x4a068c]
push ebx
call fcn.00456120
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00462fff
add esp, 0x2c
jmp 0x456a82
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4a068c]
push dword [esi]
call fcn.00451c60
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00450f4f
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x456f04
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x4a3b14]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x456f4d
call ebp
mov esi, eax
cmp esi, ebx
je 0x456f33
mov dword [0x4a3b14], 1
jmp 0x456f52
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x456f48
push 2
pop eax
mov dword [0x4a3b14], eax
jmp 0x456f4d
mov eax, dword [0x4a3b14]
cmp eax, 1
jne 0x456faa
cmp esi, ebx
jne 0x456f65
call ebp
mov esi, eax
cmp esi, ebx
jne 0x456f65
xor eax, eax
jmp 0x457051
cmp word [esi], bx
mov eax, esi
je 0x456f7a
inc eax
inc eax
cmp word [eax], bx
jne 0x456f6c
inc eax
inc eax
cmp word [eax], bx
jne 0x456f6c
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.0045004e
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x456f9d
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x457051
push ebp
push esi
push edi
call fcn.004518d0
add esp, 0xc
jmp 0x456f8f
cmp eax, 2
je 0x456fb3
cmp eax, ebx
jne 0x456f5e
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x456f5e
cmp byte [ebp], bl
mov esi, ebp
je 0x456fe9
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x456f5e
push esi
add edi, eax
call fcn.00451c60
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x456fc6
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.0045004e
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x457062
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x457043
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x457058
push edi
call fcn.00451c60
push esi
lea edi, [edi + eax + 1]
call fcn.0044ff91
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x457009
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.00450060
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x456f5e
Function at 0x45706e
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x4a3b18]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x4570ae
call esi
test eax, eax
je 0x457093
mov dword [0x4a3b18], 1
jmp 0x4570b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4570aa
mov dword [0x4a3b18], 2
jmp 0x4570bc
xor eax, eax
jmp 0x45710a
cmp eax, 1
jne 0x4570b7
call esi
jmp 0x45710a
cmp eax, 2
jne 0x4570aa
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x457102
lea eax, [esi + esi]
push eax
call fcn.0045004e
mov ebp, eax
test ebp, ebp
pop ecx
je 0x457102
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x457106
push ebp
call fcn.00450060
pop ecx
xor eax, eax
jmp 0x457108
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret