joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442af9
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov ebx, eax
cmp dword [ebx + 0x9c4], 0
push esi
push edi
mov esi, ebx
jne 0x442b1d
push 0
call fcn.0044b9d2
pop ecx
mov ecx, eax
mov eax, ebx
call fcn.00442abd
mov dword [ebx + 0x9c0], 0x270
mov dword [ebx + 0x9c8], ebx
mov dword [esp + 0x10], 0xe3
mov ecx, SysReAllocString
mov eax, 0x9908b0df
mov edx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor edx, ebp
and edx, ecx
xor edx, dword [esi]
mov dword [esp + 0x14], ecx
mov ecx, ebp
and cl, 1
shr edx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor edx, ecx
xor edx, dword [esi + 0x634]
dec dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esi], edx
mov esi, edi
jne 0x442b3f
mov dword [esp + 0x10], 0x18c
mov edx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor edx, ebp
and edx, ecx
xor edx, dword [esi]
mov dword [esp + 0x14], ecx
mov ecx, ebp
and cl, 1
shr edx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor edx, ecx
xor edx, dword [esi - 0x38c]
dec dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esi], edx
mov esi, edi
jne 0x442b7b
mov ebx, dword [ebx]
mov edx, dword [esi]
xor edx, ebx
and edx, ecx
xor edx, dword [esi]
and bl, 1
shr edx, 1
neg bl
pop edi
sbb ebx, ebx
and ebx, eax
xor edx, ebx
xor edx, dword [esi - 0x38c]
mov dword [esi], edx
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x442bd5
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [esi + 0x9c0]
jne 0x442be4
mov eax, esi
call fcn.00442af9
lea eax, [esi + 0x9c8]
mov edx, dword [eax]
mov ecx, dword [edx]
add edx, 4
mov dword [eax], edx
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x442e08
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9cc
push ebx
xor ebx, ebx
lea eax, [ebp - 0x9cc]
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], ebx
call fcn.00442abd
cmp dword [ebp + 0xc], ebx
jbe 0x442e4b
push esi
push edi
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x9cc]
lea edi, [ebx + eax]
call fcn.00442bd5
xor byte [edi], al
inc ebx
cmp ebx, dword [ebp + 0xc]
jb 0x442e30
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x44aec1
Capabilities:
Terminate process

Disassembly:
push 8
push 0x45b120
call fcn.0044d788
push 8
call fcn.0044c6db
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x46740c], esi
jne 0x44aef5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov dword [0x467408], esi
mov al, byte [ebp + 0x10]
mov byte [0x467404], al
cmp dword [ebp + 0xc], edi
jne 0x44af3f
cmp dword [0x481bac], edi
je 0x44af2f
mov eax, dword [0x481ba8]
sub eax, 4
mov dword [0x481ba8], eax
cmp eax, dword [0x481bac]
jb 0x44af2f
mov eax, dword [eax]
cmp eax, edi
je 0x44af10
call eax
jmp 0x44af10
push 0x465050
mov eax, 0x465048
call fcn.0044ae3f
pop ecx
push 0x465058
mov eax, 0x465054
call fcn.0044ae3f
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x44af70
cmp dword [ebp + 0x10], edi
jne 0x44af7e
mov dword [0x46740c], esi
push dword [ebp + 8]
call fcn.0044adfd
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x44af7d
push 8
call fcn.0044c626
pop ecx
ret
call fcn.0044d7c3
ret

Function at 0x44b08a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x44b0a7
call fcn.0044d915
mov dword [eax], 0x16
xor eax, eax
jmp 0x44b111
push esi
push 0x8c
push 1
call fcn.004504cf
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x44b0fc
push esi
call fcn.0044c29f
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x44b0da
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x44aff5
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
jne 0x44b110
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
push esi
call fcn.00449c88
test ebx, ebx
pop ecx
je 0x44b10e
push ebx
call fcn.0044d927
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x44b73e
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x44b75a
call fcn.0044d915
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x44b7cc
push esi
push 0x8c
push 1
call fcn.004504cf
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x44b7b2
push esi
call fcn.0044c29f
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x44b6ac
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 0x44b7aa
push edi
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
cmp eax, 0xffffffff
jne 0x44b7c9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
push esi
call fcn.00449c88
test ebx, ebx
pop ecx
je 0x44b7c4
push ebx
call fcn.0044d927
pop ecx
or eax, 0xffffffff
jmp 0x44b7cb
mov eax, edi
pop esi
pop edi
pop ebx
ret
Function at 0x44be98
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x45b1b8
call fcn.0044d788
mov edi, 0x94
mov eax, edi
call fcn.0044c070
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 [0x4673cc], ecx
mov eax, dword [esi + 4]
mov dword [0x4673d8], eax
mov edx, dword [esi + 8]
mov dword [0x4673dc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4673d0], esi
cmp ecx, 2
je 0x44bef8
or esi, 0x8000
mov dword [0x4673d0], esi
shl eax, 8
add eax, edx
mov dword [0x4673d4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x44bf33
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44bf33
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x44bf4b
cmp eax, 0x20b
je 0x44bf38
mov dword [ebp - 0x1c], esi
jmp 0x44bf5f
cmp dword [ecx + 0x84], 0xe
jbe 0x44bf33
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x44bf59
cmp dword [ecx + 0x74], 0xe
jbe 0x44bf33
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0044e07d
pop ecx
test eax, eax
jne 0x44bf73
push 0x1c
call fcn.0044be74
pop ecx
call fcn.0044c499
test eax, eax
jne 0x44bf84
push 0x10
call fcn.0044be74
pop ecx
call fcn.004502e3
mov dword [ebp - 4], esi
call fcn.004505a6
test eax, eax
jge 0x44bf9d
push 0x1b
call fcn.0044be4f
pop ecx
call fcn.004536f2
mov dword [0x480b84], eax
call fcn.00453588
mov dword [0x467418], eax
call fcn.004534f2
test eax, eax
jge 0x44bfc2
push 8
call fcn.0044be4f
pop ecx
call fcn.004532bf
test eax, eax
jge 0x44bfd3
push 9
call fcn.0044be4f
pop ecx
push 1
call fcn.0044ae57
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x44bfe9
push eax
call fcn.0044be4f
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
call fcn.00453279
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x44c00a
movzx eax, word [ebp - 0x40]
jmp 0x44c00d
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401852
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x44c02b
push edi
call fcn.0044af84
call fcn.0044afa6
jmp 0x44c05d
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0044d7c3
ret
Function at 0x44d99a
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.0044c070
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x44da35
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 [0x4673cc]
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 0x44da35
cmp eax, 1
je 0x44da56
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 0x44da35
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x44da02
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x44da31
xor eax, eax
inc eax
jmp 0x44da75
cmp edi, eax
jae 0x44da39
xor eax, eax
jmp 0x44da75
cmp eax, esi
jae 0x44da40
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 [0x4673cc]
jmp 0x44da59
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 0x44faf0
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x465718]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x44fb2c
xor eax, eax
jmp 0x44fc96
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x480a60]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x44fb6a
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.00455696
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x44fc04
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x44fc67
jmp 0x44fb8e
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x44fbc9
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x44fbba
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x44fb9a
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x44fc28
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x44fc31
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x44fb8c
jmp 0x44fc31
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x44fc28
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x44fc31
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x44fc91
cmp dword [ebp - 0x68], eax
je 0x44fc64
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x44fc59
call fcn.0044d915
mov dword [eax], 9
call fcn.0044d91e
mov dword [eax], esi
jmp 0x44fc8c
push dword [ebp - 0x68]
call fcn.0044d927
pop ecx
jmp 0x44fc8c
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x44fc79
cmp byte [edi], 0x1a
jne 0x44fc79
xor eax, eax
jmp 0x44fc94
call fcn.0044d915
mov dword [eax], 0x1c
call fcn.0044d91e
and dword [eax], 0
or eax, 0xffffffff
jmp 0x44fc94
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.0044c969
add ebp, 0x3a4
leave
ret
Function at 0x44ff81
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x450157
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x480a60]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x450157
test cl, 0x48
je 0x44ffec
cmp byte [eax + 5], 0xa
je 0x44ffec
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x45003e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x450026
call fcn.0044d915
mov dword [eax], 9
call fcn.0044d91e
mov dword [eax], esi
jmp 0x450036
cmp eax, 0x6d
je 0x450157
push eax
call fcn.0044d927
pop ecx
or eax, 0xffffffff
jmp 0x450159
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x450152
test eax, eax
je 0x450065
cmp byte [ebx], 0xa
jne 0x450065
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x45006e
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x45014c
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x45013c
cmp al, 0xd
je 0x4500a0
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x45012e
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4500ba
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4500b5
add dword [ebp + 0x10], 2
jmp 0x45010e
mov dword [ebp + 0x10], eax
jmp 0x45012a
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4500e2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x45012a
cmp dword [ebp - 0xc], 0
je 0x45012a
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x450103
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x45010e
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x45012d
cmp ebx, dword [ebp + 0xc]
jne 0x450113
cmp byte [ebp - 1], 0xa
jne 0x450113
mov byte [ebx], 0xa
jmp 0x45012d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00455696
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x45012e
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x450084
jmp 0x45014c
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x45014c
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x450159
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4530c8
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x465718]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x465cd0]
je 0x4530ff
inc eax
cmp eax, 0x13
jb 0x4530f0
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x465cd0]
jne 0x453222
mov eax, dword [0x46741c]
cmp eax, 1
je 0x4531fd
cmp eax, edx
jne 0x45312f
cmp dword [0x46545c], 1
je 0x4531fd
cmp ecx, 0xfc
je 0x453222
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x453165
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00449b90
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00449b00
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x453199
mov eax, edi
push eax
call fcn.00449b00
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x45bff0
push edi
call fcn.00453ab0
add esp, 0x10
push edi
call fcn.00449b00
push dword [esi + 0x465cd4]
mov ebx, eax
call fcn.00449b00
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0044c070
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00449b90
push edi
push ebx
call fcn.00449ba0
push 0x45bfd0
push ebx
call fcn.00449ba0
push dword [esi + 0x465cd4]
push ebx
call fcn.00449ba0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00455edd
add esp, 0x2c
jmp 0x453222
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x465cd4]
push dword [esi]
call fcn.00449b00
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]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0044c969
add ebp, 0x90
leave
ret
Function at 0x453588
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x467894]
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 0x4535d1
call ebp
mov esi, eax
cmp esi, ebx
je 0x4535b7
mov dword [0x467894], 1
jmp 0x4535d6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x78
jne 0x4535cc
push 2
pop eax
mov dword [0x467894], eax
jmp 0x4535d1
mov eax, dword [0x467894]
cmp eax, 1
jne 0x45362e
cmp esi, ebx
jne 0x4535e9
call ebp
mov esi, eax
cmp esi, ebx
jne 0x4535e9
xor eax, eax
jmp 0x4536d5
cmp word [esi], bx
mov eax, esi
je 0x4535fe
inc eax
inc eax
cmp word [eax], bx
jne 0x4535f0
inc eax
inc eax
cmp word [eax], bx
jne 0x4535f0
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.00449adf
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x453621
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x4536d5
push ebp
push esi
push edi
call fcn.0044a210
add esp, 0xc
jmp 0x453613
cmp eax, 2
je 0x453637
cmp eax, ebx
jne 0x4535e2
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x4535e2
cmp byte [ebp], bl
mov esi, ebp
je 0x45366d
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
cmp eax, ebx
je 0x4535e2
push esi
add edi, eax
call fcn.00449b00
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x45364a
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.00449adf
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x4536e6
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x4536c7
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 0x4536dc
push edi
call fcn.00449b00
push esi
lea edi, [edi + eax + 1]
call fcn.004493b8
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x45368d
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.00449c88
pop ecx
push ebp
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsA]
jmp 0x4535e2
Function at 0x4536f2
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x467898]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
jne 0x453732
call esi
test eax, eax
je 0x453717
mov dword [0x467898], 1
jmp 0x453737
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x78
jne 0x45372e
mov dword [0x467898], 2
jmp 0x453740
xor eax, eax
jmp 0x45378e
cmp eax, 1
jne 0x45373b
call esi
jmp 0x45378e
cmp eax, 2
jne 0x45372e
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 0x453786
lea eax, [esi + esi]
push eax
call fcn.00449adf
mov ebp, eax
test ebp, ebp
pop ecx
je 0x453786
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x45378a
push ebp
call fcn.00449c88
pop ecx
xor eax, eax
jmp 0x45378c
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x454a84
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 0x454ab2
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 0x454ab9
cmp ebx, dword [eax + 4]
jae 0x454ab9
xor eax, eax
jmp 0x454ca9
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x454aca
xor eax, eax
inc eax
jmp 0x454ca8
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x454ae0
cmp ecx, edx
jae 0x454c25
cmp dword [eax + 4], 0
je 0x454ae9
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x454ad1
cmp dword [ebp + 8], 0
je 0x454b0b
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x454c25
cmp eax, esi
jae 0x454c25
mov eax, dword [0x467928]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x454b30
cmp dword [esi*4 + 0x467930], edi
je 0x454c29
inc esi
cmp esi, eax
jl 0x454b1e
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x454ca5
cmp dword [ebp - 8], 0x1000000
jne 0x454ca5
test byte [ebp - 0xc], 0xcc
je 0x454bae
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x454ca5
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x454ca5
cmp word [eax + 0x18], 0x10b
jne 0x454ca5
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x454ca5
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x454bae
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x454bae
test byte [ecx + 0x27], 0x80
jne 0x454c25
push 1
push 0x467970
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x454ac2
mov ecx, dword [0x467928]
test ecx, ecx
mov edx, ecx
jle 0x454be2
lea eax, [ecx*4 + 0x46792c]
cmp dword [eax], edi
je 0x454be2
dec edx
sub eax, 4
test edx, edx
jg 0x454bd6
test edx, edx
jne 0x454c13
push 0xf
pop ebx
cmp ecx, ebx
jg 0x454bef
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x454c07
lea eax, [edx*4 + 0x467930]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x454bf5
cmp ecx, 0x10
jge 0x454c13
inc ecx
mov dword [0x467928], ecx
push 0
push 0x467970
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x454ac2
xor eax, eax
jmp 0x454ca8
test esi, esi
jle 0x454ac2
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 1
push 0x467970
call ebx
test eax, eax
jne 0x454ac2
cmp dword [esi*4 + 0x467930], edi
je 0x454c7f
mov eax, dword [0x467928]
lea esi, [eax - 1]
test esi, esi
jl 0x454c6d
cmp dword [esi*4 + 0x467930], edi
je 0x454c69
dec esi
jns 0x454c5d
test esi, esi
jge 0x454c7d
cmp eax, 0x10
jge 0x454c78
inc eax
mov dword [0x467928], eax
lea esi, [eax - 1]
jmp 0x454c7f
je 0x454c97
xor ecx, ecx
test esi, esi
jl 0x454c97
lea eax, [ecx*4 + 0x467930]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x454c85
push 0
push 0x467970
call ebx
jmp 0x454ac2
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret