joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418200
Capabilities:
Set registry value

Disassembly:
sub esp, 4
push ebx
push esi
push edi
mov ebx, ecx
push ebp
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x4182b4
mov eax, dword [ebx + 0x400]
lea esi, [ebx + 0x400]
test eax, eax
je 0x41823a
push eax
mov edi, dword [0x682328]
call edi
test eax, eax
jne 0x418240
mov dword [esi], 0
jmp 0x418240
mov edi, dword [0x682328]
lea eax, [esp + 0x10]
push eax
push esi
push 0
push 0xf003f
push 0
push 0
push 0
push ebx
push 0x80000001
call dword [0x682324]
test eax, eax
jne 0x4182ac
lea eax, [esp + 0x1c]
push 4
push eax
mov ecx, dword [esi]
push 4
push 0
push ebp
push ecx
mov ebp, dword [0x68232c]
call ebp
test eax, eax
jne 0x4182ba
mov eax, dword [esi]
test eax, eax
je 0x4182a0
push eax
call edi
test eax, eax
jne 0x4182a0
mov eax, 1
pop ebp
pop edi
mov dword [esi], 0
pop esi
pop ebx
add esp, 4
ret 8
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 8
mov dword [esi], 0
jmp 0x4182ba
mov edi, dword [0x682328]
mov eax, dword [ebx + 0x400]
test eax, eax
je 0x4182d5
push eax
call edi
test eax, eax
jne 0x4182d5
mov dword [ebx + 0x400], 0
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 8

Function at 0x4182f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, 4
mov dword [esp], eax
push ebx
mov dword [esp + 8], eax
push esi
push edi
push ebp
mov edi, ecx
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x4183c1
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x4183c1
mov eax, dword [edi + 0x400]
lea esi, [edi + 0x400]
test eax, eax
je 0x41833f
push eax
call dword [0x682328]
test eax, eax
jne 0x41833f
mov dword [esi], 0
lea eax, [esp + 0x1c]
push eax
push esi
push 0
push 0xf003f
push 0
push 0
push 0
push edi
push 0x80000001
call dword [0x682324]
test eax, eax
jne 0x4183bb
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push eax
push ecx
mov eax, dword [esi]
push edx
push 0
push ebp
push eax
mov ebp, dword [0x682330]
call ebp
test eax, eax
jne 0x4183c1
mov eax, dword [esp + 0x18]
mov dword [ebx], eax
mov eax, dword [esi]
test eax, eax
je 0x4183af
push eax
call dword [0x682328]
test eax, eax
jne 0x4183af
mov eax, 1
pop ebp
pop edi
mov dword [esi], 0
pop esi
pop ebx
add esp, 0x10
ret 8
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8
mov dword [esi], 0
mov eax, dword [edi + 0x400]
test eax, eax
je 0x4183e0
push eax
call dword [0x682328]
test eax, eax
jne 0x4183e0
mov dword [edi + 0x400], 0
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8
Function at 0x418440
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x24
push ebx
push esi
push edi
mov esi, ecx
push ebp
call fcn.004185f0
mov edi, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
cmp edi, eax
mov ebp, edi
jg 0x41845e
mov ebp, eax
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword [esi], 0xffff
cmp ecx, 8
setne al
or ah, 1
mov word [esi + 4], ax
mov eax, dword [esp + 0x3c]
mov word [esi + 6], ax
test eax, eax
jg 0x418489
mov word [esi + 6], 0xac44
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4184bc
xor ebx, ebx
call sub.audiow32.dll_Ordinal_102
test eax, eax
je 0x4184bc
lea eax, [esp + 0x10]
push eax
push ebx
call sub.audiow32.dll_Ordinal_103
cmp word [esp + 0x10], 0x100
jne 0x4184b2
mov dword [esi], ebx
inc ebx
call sub.audiow32.dll_Ordinal_102
cmp eax, ebx
ja 0x41849c
push esi
call sub.audiow32.dll_Ordinal_106
test eax, eax
jne 0x4185da
mov dword [esi + 0x28], 1
mov ebx, dword [esp + 0x44]
test ebx, ebx
jle 0x418518
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x418518
push 0x4372ec
lea eax, [ebx*4]
push eax
call fcn.0041c620
add esp, 8
mov dword [esi + 0x20], eax
test eax, eax
je 0x418518
test ebx, ebx
jle 0x418515
xor ecx, ecx
mov eax, ebx
mov edx, dword [esi + 0x20]
add ecx, 4
dec eax
mov dword [edx + ecx - 4], 0
jne 0x418504
mov dword [esi + 0xc], ebx
xor ebx, ebx
test ebp, ebp
jle 0x4185da
test edi, edi
jle 0x4185da
mov eax, dword [esi + 0x24]
cmp eax, ebx
jne 0x4185da
push 0x4372ec
lea eax, [edi*4]
push eax
call fcn.0041c620
add esp, 8
mov dword [esi + 0x24], eax
test eax, eax
je 0x4185da
push ebp
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], edi
call sub.audiow32.dll_Ordinal_109
test eax, eax
jne 0x4185da
xor edi, edi
mov eax, dword [esi + 0x14]
cmp eax, ebx
jle 0x418582
mov eax, dword [esi + 0x24]
inc edi
add eax, ebx
add ebx, 4
push eax
call sub.audiow32.dll_Ordinal_118
cmp dword [esi + 0x14], edi
jg 0x41856e
mov ebx, dword [esp + 0x48]
test ebx, ebx
jle 0x4185da
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x4185da
push 0x4372ec
lea eax, [ebx*8]
push eax
call fcn.0041c620
add esp, 8
mov edi, eax
mov dword [esi + 0x1c], eax
test edi, edi
je 0x4185da
lea ecx, [ebx*8]
xor eax, eax
shr ecx, 2
push str.SEAL_Initialized._n
rep stosd dword es:[edi], eax
mov dword [esi + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret 0x1c
mov ecx, esi
call fcn.004185f0
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret 0x1c
Function at 0x418710
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x3e8
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ecx + 0x20]
test ecx, ecx
je 0x4187c9
mov esi, dword [esp + 0x400]
test esi, esi
jl 0x4187c9
mov eax, dword [edi + 0xc]
cmp esi, eax
jge 0x4187c9
test ecx, ecx
je 0x418763
test esi, esi
jl 0x418763
cmp esi, eax
jge 0x418763
mov eax, dword [ecx + esi*4]
test eax, eax
je 0x418763
push eax
call sub.audiow32.dll_Ordinal_143
mov eax, dword [edi + 0x20]
mov dword [eax + esi*4], 0
shl esi, 2
mov eax, dword [esp + 0x3fc]
mov ecx, dword [esp + 0x3f8]
push eax
mov eax, dword [edi + 0x20]
add eax, esi
push eax
push ecx
call sub.audiow32.dll_Ordinal_142
test eax, eax
mov eax, dword [edi + 0x20]
jne 0x4187c2
mov edx, dword [eax + esi]
xor ecx, ecx
mov cx, word [edx + 0x24]
lea eax, [esp + 0xc]
push ecx
push str.nRestart_is__d_n
push eax
call fcn.004253e0
lea ecx, [esp + 0x18]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx + esi]
mov word [eax + 0x24], 0
mov eax, 1
jmp 0x4187cb
mov dword [eax + esi], 0
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x3e8
ret 0xc

Function at 0x418d80
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
mov eax, ecx
push edi
xor eax, 0x5e04a58c
mov edi, dword [esp + 0x10]
test edi, edi
je 0x418dbf
test ecx, ecx
jle 0x418dbf
xor edx, edx
mov esi, eax
xor ebx, ebx
and esi, 0x80000000
add eax, eax
shr esi, 0x1f
mov bl, byte [edi + edx]
or esi, eax
xor ebx, edx
mov eax, esi
inc edx
xor eax, ebx
cmp edx, ecx
jl 0x418d9c
pop edi
pop esi
pop ebx
ret
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x419810
Capabilities:
Print debug messages

Disassembly:
push esi
push edi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x41984e
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x43c140]
test eax, eax
je 0x41984e
mov eax, dword [0x5ce0f0]
test eax, eax
je 0x41984e
push eax
mov edi, esi
push 1
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
call fcn.004258e0
add esp, 0x10
pop edi
pop esi
ret
Function at 0x421620
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421705
push eax
mov dword fs:[0], esp
sub esp, 8
mov dword [ebp - 0x14], ecx
push esi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
lea eax, [ecx - 1]
cmp eax, 1
sbb eax, eax
neg eax
mov dword [edx + 0x38], eax
test ecx, ecx
jne 0x421693
mov esi, edx
add esi, 0x3c
je 0x421689
call fcn.00423c90
mov dword [esi], eax
mov ecx, dword [0x43c588]
mov dword [ebp - 4], 0
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jae 0x42167d
inc eax
mov dword [ecx + 4], eax
mov dword [ebp - 4], 0xffffffff
call fcn.0042170f
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x4c], 0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x48], eax
mov ecx, dword [0x680980]
lea eax, [edx + 4]
mov dword [edx + 0x40], ecx
mov ecx, dword [0x680980]
lea esi, [edx + 8]
mov dword [edx + 0x44], ecx
xor ecx, ecx
mov dword [edx + 0xc], eax
lea eax, [edx + 0x14]
mov dword [edx + 0x50], ecx
mov dword [edx + 0x54], ecx
mov dword [edx + 0x10], esi
mov dword [edx + 0x1c], eax
lea eax, [edx + 0x18]
mov dword [edx + 0x20], eax
lea eax, [edx + 0x24]
mov dword [edx + 0x2c], eax
lea eax, [edx + 0x28]
mov dword [edx + 0x30], eax
mov dword [esi], ecx
mov eax, dword [edx + 0x20]
mov dword [eax], ecx
mov esi, dword [edx + 0x30]
mov dword [esi], ecx
mov eax, dword [edx + 0xc]
mov dword [eax], ecx
mov esi, dword [edx + 0x1c]
mov dword [esi], ecx
pop esi
mov eax, dword [edx + 0x2c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov dword fs:[0], eax
mov esp, ebp
pop ebp
ret 8
Function at 0x425d40
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4376d0
push 0x427f04
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x43c934], eax
xor eax, eax
mov al, byte [0x43c935]
mov dword [0x43c940], eax
mov eax, dword [0x43c934]
shr dword [0x43c934], 0x10
and eax, 0xff
mov dword [0x43c93c], eax
shl eax, 8
add eax, dword [0x43c940]
mov dword [0x43c938], eax
call fcn.00429090
test eax, eax
jne 0x425db4
push 0x1c
call fcn.00425ee0
add esp, 4
mov dword [ebp - 4], 0
call fcn.0042ac10
call fcn.0042cc30
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x681ab4], eax
call fcn.0042c7e0
mov dword [0x43c670], eax
test eax, eax
je 0x425de7
cmp dword [0x681ab4], 0
jne 0x425df1
push 0xffffffffffffffff
call fcn.00426a70
add esp, 4
call fcn.0042c560
call fcn.0042c470
call fcn.00426a40
mov esi, dword [0x681ab4]
mov al, byte [esi]
cmp al, 0x22
je 0x425e18
cmp al, 0x20
jbe 0x425e45
inc esi
cmp byte [esi], 0x20
ja 0x425e10
jmp 0x425e45
inc esi
cmp byte [esi], 0x22
je 0x425e44
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x425e3f
xor eax, eax
mov al, bl
push eax
call fcn.0042c410
add esp, 4
test eax, eax
je 0x425e39
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x425e21
cmp byte [esi], 0x22
jne 0x425e45
inc esi
cmp byte [esi], 0
je 0x425e55
cmp byte [esi], 0x20
ja 0x425e55
inc esi
cmp byte [esi], 0
jne 0x425e4a
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x425e79
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00426a70
jmp 0x425eba
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x426ab0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x43c970], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x426ace
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x43c96c], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x43c968], bl
jne 0x426b28
cmp dword [0x680a9c], 0
je 0x426b16
mov edi, dword [0x680a98]
sub edi, 4
cmp edi, dword [0x680a9c]
jb 0x426b16
mov eax, dword [edi]
test eax, eax
je 0x426b0b
call eax
sub edi, 4
cmp edi, dword [0x680a9c]
jae 0x426b03
push 0x43b18c
push 0x43b184
call fcn.00426b60
add esp, 8
push 0x43b194
push 0x43b190
call fcn.00426b60
add esp, 8
test ebx, ebx
jne 0x426b4f
mov dword [0x43c970], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret
Function at 0x42adf0
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp dword [0x680a90], edx
push ebx
push esi
push edi
push ebp
jbe 0x42aff7
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x680990
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x42aff7
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x42ae59
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x42ae6a
push 2
push 0
push edx
call fcn.0042ab50
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x42af06
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x42af3f
lea edi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x42aecd
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x42aebb
mov byte [edi], 0xd
inc esi
inc edi
mov byte [edi], al
inc edi
mov eax, edi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x42aea2
lea eax, [esp + 0x24]
push 0
sub edi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push edi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42af35
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, edi
jge 0x42ae8d
jmp 0x42af3f
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42af35
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x42af3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x42afe6
cmp dword [esp + 0x10], 0
je 0x42af98
cmp dword [esp + 0x10], 5
jne 0x42af7b
mov dword [0x43c928], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x43c92c], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.0042e0d0
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x42afc2
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x42afc2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x43c928], 0x1c
mov dword [0x43c92c], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x43c928], 9
mov dword [0x43c92c], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x42c7e0
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x43d850], ebx
jne 0x42c82f
call esi
cmp eax, ebx
mov edi, eax
je 0x42c80d
mov dword [0x43d850], 1
jmp 0x42c82f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x42c825
mov dword [0x43d850], 2
jmp 0x42c82f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x43d850], 1
jne 0x42c8de
test edi, edi
jne 0x42c852
call esi
mov edi, eax
test edi, edi
jne 0x42c852
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x42c86c
add esi, 2
cmp word [esi], 0
jne 0x42c85a
add esi, 2
cmp word [esi], 0
jne 0x42c85a
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x42c8cd
push ebp
call fcn.004252b0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x42c8cd
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x42c8bc
push ebx
call fcn.00425260
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x43d850], 2
jne 0x42c962
test ebx, ebx
jne 0x42c901
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x42c901
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x42c916
inc ebp
cmp byte [ebp], 0
jne 0x42c908
inc ebp
cmp byte [ebp], 0
jne 0x42c908
sub ebp, ebx
inc ebp
push ebp
call fcn.004252b0
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x42c93b
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x42cc80
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x43da70
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x42cca7
add eax, 8
inc ecx
cmp eax, 0x43db00
jb 0x42cc98
cmp dword [ecx*8 + 0x43da70], edx
lea ebx, [ecx*8]
jne 0x42ce6b
cmp dword [0x43c67c], 1
je 0x42ce27
cmp dword [0x43c67c], 0
jne 0x42ccde
cmp dword [0x43c680], 1
je 0x42ce27
cmp edx, 0xfc
je 0x42ce6b
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x42cd1b
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x42cd5f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x437c44
push ebp
call fcn.0042efa0
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x437c24
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x43da74]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.0042fa60
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x680990], 0
je 0x42ce3d
mov eax, dword [0x680990]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x42ce47
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x43da74]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x430370
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00425a90
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [esp + 0x1014]
push ebp
cmp dword [0x680a90], esi
jbe 0x4304bd
mov eax, esi
mov ecx, esi
and eax, 0xffffffe7
and ecx, 0x1f
sar eax, 3
mov edx, dword [eax + 0x680990]
test byte [edx + ecx*8 + 4], 1
je 0x4304bd
push 1
push ebx
push esi
call fcn.0042ab50
mov dword [esp + 0x1c], eax
add esp, 0xc
cmp eax, 0xffffffff
je 0x4304ad
push 2
push ebx
push esi
call fcn.0042ab50
add esp, 0xc
cmp eax, 0xffffffff
je 0x4304ad
mov ecx, dword [esp + 0x101c]
mov ebp, ecx
sub ebp, eax
test ebp, ebp
jle 0x430453
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.00430b60
add esp, 8
mov edi, eax
mov eax, 0x1000
cmp ebp, eax
jge 0x430416
mov eax, ebp
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.0042adf0
add esp, 0xc
cmp eax, 0xffffffff
je 0x430432
sub ebp, eax
test ebp, ebp
jg 0x43040b
jmp 0x430447
cmp dword [0x43c92c], 5
jne 0x430445
mov dword [0x43c928], 0xd
mov ebx, eax
push edi
push esi
call fcn.00430b60
add esp, 8
jmp 0x430490
jge 0x430490
push 0
push ecx
push esi
call fcn.0042ab50
add esp, 0xc
push esi
call fcn.0042e340
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sbb ebx, ebx
cmp ebx, 0xffffffff
jne 0x430490
mov dword [0x43c928], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x43c92c], eax
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call fcn.0042ab50
add esp, 0xc
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x43c928], 9
pop edi
pop esi
pop ebx
add esp, 0x1004
ret