joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42137c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x45aa58]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x4213ad
xor eax, eax
jmp 0x421536
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x460fe0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4213e9
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00421608
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4214c4
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x421502
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x42144d
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x42143e
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x42141e
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42148d
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x421496
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x42140f
jmp 0x421498
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x421531
cmp dword [ebp - 0x6c], edi
je 0x421502
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4214f7
call fcn.00423455
mov dword [eax], 9
call fcn.0042345e
mov dword [eax], esi
jmp 0x42152c
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4214ec
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x421498
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x421498
push dword [ebp - 0x6c]
call fcn.00423467
pop ecx
jmp 0x42152c
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x42151a
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x42151a
xor eax, eax
jmp 0x421534
call fcn.00423455
mov dword [eax], 0x1c
call fcn.0042345e
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x421534
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00422a60
add ebp, 0x3a0
leave
ret
Function at 0x421baa
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x421bc6
call fcn.00423455
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x421c38
push esi
push 0x8c
push 1
call fcn.00424c87
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x421c1e
push esi
call fcn.00425612
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x421b18
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x421c16
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x421c35
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0041fe3a
test ebx, ebx
pop ecx
je 0x421c30
push ebx
call fcn.00423467
pop ecx
or eax, 0xffffffff
jmp 0x421c37
mov eax, edi
pop esi
pop edi
pop ebx
ret

Function at 0x421e49
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push 0x128
push 0x44d510
call fcn.00423310
mov eax, dword [0x45aa58]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x421f56
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x134], esi
cmp esi, 0x104
jle 0x421f07
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.004200a0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x421ef4
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x421f56
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x421f56
mov al, byte [edi]
cmp al, 0x5c
je 0x421f15
cmp al, 0x2f
jne 0x421f1a
cmp al, byte [edi + 1]
je 0x421f50
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.00429979
pop ecx
mov byte [ebp - 0x127], al
mov byte [ebp - 0x126], 0x3a
mov byte [ebp - 0x125], bl
push edi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x421f56
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00423467
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x421f72
push edi
call fcn.0041fe3a
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
call fcn.00422a60
call fcn.0042334b
ret

Function at 0x421f8c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x421fba
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x421fbf
cmp eax, 1
je 0x421fbf
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x421fc3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x45aa58]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x42203b
push ebx
call fcn.00421f8c
test eax, eax
pop ecx
jne 0x42200a
call fcn.0042345e
mov dword [eax], 0xf
call fcn.00423455
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.00422a60
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x42204d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x421ffd
inc eax
cmp eax, 0x104
ja 0x421ffd
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x422085
cmp eax, dword [ebp + 0x10]
jg 0x422068
mov eax, dword [ebp + 0x10]
push eax
call fcn.0041fe28
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x42209a
call fcn.00423455
mov dword [eax], 0xc
jmp 0x421ffd
cmp eax, dword [ebp + 0x10]
jle 0x42209a
call fcn.00423455
mov dword [eax], 0x22
jmp 0x421ffd
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.004297a0
pop ecx
pop ecx
jmp 0x421fff
Function at 0x42285a
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x44d530
call fcn.00423310
mov edi, 0x94
mov eax, edi
call fcn.004200a0
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 [0x460a8c], ecx
mov eax, dword [esi + 4]
mov dword [0x460a98], eax
mov edx, dword [esi + 8]
mov dword [0x460a9c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x460a90], esi
cmp ecx, 2
je 0x4228ba
or esi, 0x8000
mov dword [0x460a90], esi
shl eax, 8
add eax, edx
mov dword [0x460a94], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4228f5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4228f5
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x42290d
cmp eax, 0x20b
je 0x4228fa
mov dword [ebp - 0x1c], esi
jmp 0x422921
cmp dword [ecx + 0x84], 0xe
jbe 0x4228f5
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x42291b
cmp dword [ecx + 0x74], 0xe
jbe 0x4228f5
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00425fc4
pop ecx
test eax, eax
jne 0x422935
push 0x1c
call fcn.00422836
pop ecx
call fcn.0042580c
test eax, eax
jne 0x422946
push 0x10
call fcn.00422836
pop ecx
call fcn.00427ae0
mov dword [ebp - 4], esi
call fcn.00429098
test eax, eax
jge 0x42295f
push 0x1b
call fcn.00422811
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x462360], eax
call fcn.0042acd4
mov dword [0x460ad4], eax
call fcn.0042ac32
test eax, eax
jge 0x422985
push 8
call fcn.00422811
pop ecx
call fcn.0042a9ff
test eax, eax
jge 0x422996
push 9
call fcn.00422811
pop ecx
push 1
call fcn.00420b4e
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4229ac
push eax
call fcn.00422811
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0042a9a2
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4229cd
movzx eax, word [ebp - 0x40]
jmp 0x4229d0
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0042e319
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4229ee
push edi
call fcn.00420c7b
call fcn.00420c9d
jmp 0x422a20
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0042334b
ret
Function at 0x426b53
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 0x426b81
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 0x426b88
cmp ebx, dword [eax + 4]
jae 0x426b88
xor eax, eax
jmp 0x426d78
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x426b99
xor eax, eax
inc eax
jmp 0x426d77
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x426baf
cmp ecx, edx
jae 0x426cf4
cmp dword [eax + 4], 0
je 0x426bb8
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x426ba0
cmp dword [ebp + 8], 0
je 0x426bda
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x426cf4
cmp eax, esi
jae 0x426cf4
mov eax, dword [0x460c50]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x426bff
cmp dword [esi*4 + 0x460c58], edi
je 0x426cf8
inc esi
cmp esi, eax
jl 0x426bed
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x426d74
cmp dword [ebp - 8], 0x1000000
jne 0x426d74
test byte [ebp - 0xc], 0xcc
je 0x426c7d
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x426d74
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x426d74
cmp word [eax + 0x18], 0x10b
jne 0x426d74
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x426d74
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x426c7d
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x426c7d
test byte [ecx + 0x27], 0x80
jne 0x426cf4
push 1
push 0x460c98
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x426b91
mov ecx, dword [0x460c50]
test ecx, ecx
mov edx, ecx
jle 0x426cb1
lea eax, [ecx*4 + 0x460c54]
cmp dword [eax], edi
je 0x426cb1
dec edx
sub eax, 4
test edx, edx
jg 0x426ca5
test edx, edx
jne 0x426ce2
push 0xf
pop ebx
cmp ecx, ebx
jg 0x426cbe
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x426cd6
lea eax, [edx*4 + 0x460c58]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x426cc4
cmp ecx, 0x10
jge 0x426ce2
inc ecx
mov dword [0x460c50], ecx
push 0
push 0x460c98
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x426b91
xor eax, eax
jmp 0x426d77
test esi, esi
jle 0x426b91
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x460c98
call ebx
test eax, eax
jne 0x426b91
cmp dword [esi*4 + 0x460c58], edi
je 0x426d4e
mov eax, dword [0x460c50]
lea esi, [eax - 1]
test esi, esi
jl 0x426d3c
cmp dword [esi*4 + 0x460c58], edi
je 0x426d38
dec esi
jns 0x426d2c
test esi, esi
jge 0x426d4c
cmp eax, 0x10
jge 0x426d47
inc eax
mov dword [0x460c50], eax
lea esi, [eax - 1]
jmp 0x426d4e
je 0x426d66
xor ecx, ecx
test esi, esi
jl 0x426d66
lea eax, [ecx*4 + 0x460c58]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x426d54
push 0
push 0x460c98
call ebx
jmp 0x426b91
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x427976
Capabilities:
Get common file path

Disassembly:
push 0x120
push 0x44d800
call fcn.00423310
mov eax, dword [0x45aa58]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
and dword [ebp - 0x128], 0
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x12c], esi
cmp esi, 0x104
jle 0x427a1a
and dword [ebp - 4], 0
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.004200a0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x130], edi
jmp 0x427a07
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x427a1a
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x427a35
cmp byte [edi + 1], 0x3a
jne 0x427a35
movzx eax, byte [edi]
push eax
call fcn.0042c2fd
pop ecx
mov ebx, eax
sub ebx, 0x40
cmp dword [ebp - 0x128], 0
je 0x427a45
push edi
call fcn.0041fe3a
pop ecx
mov eax, ebx
lea esp, [ebp - 0x13c]
mov ecx, dword [ebp - 0x1c]
call fcn.00422a60
call fcn.0042334b
ret

Function at 0x4293b5
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004200a0
mov eax, dword [0x45aa58]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00429296
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x4294e8
push 2
push esi
push dword [ebp + 8]
call fcn.00429296
add esp, 0xc
cmp eax, ebx
je 0x4294e8
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x429488
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00422a90
push 0x8000
push dword [ebp + 8]
call fcn.0042c904
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x42943e
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0042137c
add esp, 0xc
cmp eax, 0xffffffff
je 0x42945e
sub edi, eax
test edi, edi
jg 0x429436
jmp 0x429476
call fcn.0042345e
cmp dword [eax], 5
jne 0x429473
call fcn.00423455
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0042c904
pop ecx
pop ecx
jmp 0x4294d0
jge 0x4294d0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00429296
push dword [ebp + 8]
call fcn.004240aa
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4294d0
call fcn.00423455
mov dword [eax], 0xd
call fcn.0042345e
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00429296
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4294ea
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00422a60
leave
ret
Function at 0x42a7f2
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x45aa58]
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 + 0x45b410]
je 0x42a827
inc eax
cmp eax, 0x13
jb 0x42a818
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x45b410]
jne 0x42a94d
mov eax, dword [0x460adc]
cmp eax, 1
je 0x42a925
cmp eax, edx
jne 0x42a857
cmp dword [0x45aa54], 1
je 0x42a925
cmp ecx, 0xfc
je 0x42a94d
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 0x42a88d
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004297a0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00422e30
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42a8c1
mov eax, edi
push eax
call fcn.00422e30
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x44de68
push edi
call fcn.0042c7e0
add esp, 0x10
push edi
call fcn.00422e30
push dword [esi + 0x45b414]
mov ebx, eax
call fcn.00422e30
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004200a0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004297a0
push edi
push ebx
call fcn.004297b0
push 0x44de48
push ebx
call fcn.004297b0
push dword [esi + 0x45b414]
push ebx
call fcn.004297b0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0042cbfd
add esp, 0x2c
jmp 0x42a94d
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x45b414]
push dword [esi]
call fcn.00422e30
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.00422a60
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x42cbfd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x460f3c], ebx
push esi
push edi
jne 0x42cc7d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42ccb8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44e75c
push edi
call esi
test eax, eax
mov dword [0x460f3c], eax
je 0x42ccb8
push 0x44e74c
push edi
call esi
push 0x44e738
push edi
mov dword [0x460f40], eax
call esi
cmp dword [0x460a8c], 2
mov dword [0x460f44], eax
jne 0x42cc7d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x460f4c], eax
je 0x42cc7d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x460f48], eax
mov eax, dword [0x460f48]
test eax, eax
je 0x42ccc2
call eax
test eax, eax
je 0x42cca9
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x460f4c]
test eax, eax
je 0x42cca9
test byte [ebp - 8], 1
jne 0x42ccc2
cmp dword [0x460a98], 4
jb 0x42ccbc
or byte [ebp + 0x12], 0x20
jmp 0x42cce1
xor eax, eax
jmp 0x42ccf1
or byte [ebp + 0x12], 4
jmp 0x42cce1
mov eax, dword [0x460f40]
test eax, eax
je 0x42cce1
call eax
mov ebx, eax
test ebx, ebx
je 0x42cce1
mov eax, dword [0x460f44]
test eax, eax
je 0x42cce1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x460f3c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42dcdf
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 0x42dcf8
or eax, 0xffffffff
jmp 0x42dd59
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x42dd55
push 0x3d
push esi
call fcn.00421c3b
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x42dd55
cmp esi, eax
je 0x42dd55
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x460aac]
sete cl
cmp eax, dword [0x460ab0]
mov dword [ebp - 8], ecx
jne 0x42dd3b
mov edi, eax
call fcn.0042dc7e
mov dword [0x460aac], eax
cmp eax, ebx
jne 0x42dd94
cmp dword [ebp + 0xc], ebx
je 0x42dd5d
cmp dword [0x460ab4], ebx
je 0x42dd5d
call fcn.0042d87b
test eax, eax
je 0x42dd94
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x42dd66
xor eax, eax
jmp 0x42dd58
push 4
call fcn.0041fe28
cmp eax, ebx
pop ecx
mov dword [0x460aac], eax
je 0x42dd55
mov dword [eax], ebx
cmp dword [0x460ab4], ebx
jne 0x42dd94
push 4
call fcn.0041fe28
cmp eax, ebx
pop ecx
mov dword [0x460ab4], eax
je 0x42dd55
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x460aac]
call fcn.0042dc31
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x42ddf5
cmp dword [esi], ebx
je 0x42ddf5
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0041fe3a
cmp dword [ebp - 8], ebx
pop ecx
jne 0x42ddd8
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x42de36
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x42ddcf
mov eax, edi
shl eax, 2
push eax
push dword [0x460aac]
call fcn.0042303e
cmp eax, ebx
pop ecx
pop ecx
je 0x42de36
jmp 0x42de31
cmp dword [ebp - 8], ebx
jne 0x42dea1
cmp edi, ebx
jge 0x42de04
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x460aac]
call fcn.0042303e
cmp eax, ebx
pop ecx
pop ecx
je 0x42dd55
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x460aac], eax
cmp dword [ebp + 0xc], ebx
je 0x42de8b
push dword [ebp - 4]
call fcn.00422e30
inc eax
inc eax
push eax
call fcn.0041fe28
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x42de8b
push dword [ebp - 4]
push esi
call fcn.004297a0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x42de84
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0041fe3a
pop ecx
cmp dword [ebp - 8], ebx
je 0x42de99
push dword [ebp - 4]
call fcn.0041fe3a
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x42dd58
push dword [ebp - 4]
call fcn.0041fe3a
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x42dd62
Function at 0x431cf3
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x431d2c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004152f1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040a4b0
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x433041
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x433084
call fcn.004400fd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x433084
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43309f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004321a6
test ebx, ebx
mov esi, eax
je 0x43309d
test edi, edi
je 0x43309d
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x433a9f
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4448fa
call fcn.00422a70
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x433ab9
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x433b05
call fcn.00435b88
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401ef0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8