joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f56e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x20]
mov dword [ebp - 0xc], edi
jmp 0x40f581
mov edi, dword [ebp - 0xc]
mov ecx, dword [esi + 0x60]
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x68]
sub eax, ecx
sub eax, edx
mov dword [ebp - 8], eax
jne 0x40f5a0
test ecx, ecx
jne 0x40f5ae
test edx, edx
jne 0x40f5ae
mov dword [ebp - 8], edi
jmp 0x40f618
cmp eax, 0xffffffff
jne 0x40f5ae
mov dword [ebp - 8], 0xfffffffe
jmp 0x40f618
mov eax, dword [esi + 0x20]
lea eax, [edi + eax - 0x106]
cmp ecx, eax
jb 0x40f618
mov eax, dword [esi + 0x2c]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.00414330
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x38]
sub dword [esi + 0x64], edi
sub dword [esi + 0x60], edi
add esp, 0xc
sub dword [esi + 0x50], edi
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx edx, word [eax]
mov ebx, edx
sub ebx, edi
cmp edx, edi
sbb edx, edx
not edx
and edx, ebx
dec ecx
mov word [eax], dx
jne 0x40f5df
mov eax, dword [esi + 0x34]
mov edx, edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov ebx, ecx
sub ebx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, ebx
dec edx
mov word [eax], cx
jne 0x40f5fe
add dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x40f6be
mov ebx, dword [esi + 0x68]
add ebx, dword [esi + 0x60]
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 8]
add ebx, dword [esi + 0x2c]
cmp eax, ecx
mov dword [ebp - 4], eax
jbe 0x40f63d
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x40f647
xor eax, eax
jmp 0x40f67f
sub eax, dword [ebp - 4]
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x14], 0
jne 0x40f669
push dword [ebp - 4]
push dword [edi]
push dword [edi + 0x30]
call fcn.00410510
add esp, 0xc
mov dword [edi + 0x30], eax
push dword [ebp - 4]
push dword [edi]
push ebx
call fcn.00414330
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x68], eax
mov edi, dword [esi + 0x68]
cmp edi, 3
jb 0x40f6aa
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x2c]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x4c]
mov dword [esi + 0x3c], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x48]
mov dword [esi + 0x3c], eax
cmp edi, 0x106
jae 0x40f6be
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x40f57e
pop edi
pop ebx
leave
ret
Function at 0x415016
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x423e38
call fcn.0041a270
mov edi, 0x94
mov eax, edi
call fcn.00413db0
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 [0x42bbd0], ecx
mov eax, dword [esi + 4]
mov dword [0x42bbdc], eax
mov edx, dword [esi + 8]
mov dword [0x42bbe0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x42bbd4], esi
cmp ecx, 2
je 0x415076
or esi, 0x8000
mov dword [0x42bbd4], esi
shl eax, 8
add eax, edx
mov dword [0x42bbd8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4150b1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4150b1
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4150c9
cmp eax, 0x20b
je 0x4150b6
mov dword [ebp - 0x1c], esi
jmp 0x4150dd
cmp dword [ecx + 0x84], 0xe
jbe 0x4150b1
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4150d7
cmp dword [ecx + 0x74], 0xe
jbe 0x4150b1
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00418e2e
pop ecx
test eax, eax
jne 0x415109
cmp dword [0x42bb9c], 1
jne 0x4150f6
call fcn.00419be8
push 0x1c
call fcn.00419a71
push 0xff
call fcn.00415691
pop ecx
pop ecx
call fcn.0041a1e6
mov dword [ebp - 4], esi
call fcn.00416dcd
test eax, eax
jge 0x415122
push 0x1b
call fcn.00414ff1
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x42c390], eax
call fcn.0041a0c4
mov dword [0x42bb94], eax
call fcn.0041a022
test eax, eax
jge 0x415148
push 8
call fcn.00414ff1
pop ecx
call fcn.00419def
test eax, eax
jge 0x415159
push 9
call fcn.00414ff1
pop ecx
push 1
call fcn.004156c1
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x41516f
push eax
call fcn.00414ff1
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call fcn.00419d92
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x415190
movzx eax, word [ebp - 0x40]
jmp 0x415193
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call section..text
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4151b1
push edi
call fcn.004157ec
call fcn.0041580e
jmp 0x4151e3
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041a2ab
ret
Function at 0x41572b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x42bc10], esi
push edi
jne 0x41574b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x42bc0c], esi
mov byte [0x42bc08], al
jne 0x4157b1
mov ecx, dword [0x42c388]
test ecx, ecx
je 0x415792
mov eax, dword [0x42c384]
sub eax, 4
cmp eax, ecx
jmp 0x41578b
mov eax, dword [eax]
test eax, eax
je 0x41577d
call eax
mov eax, dword [0x42c384]
sub eax, 4
cmp eax, dword [0x42c388]
mov dword [0x42c384], eax
jae 0x415775
mov eax, 0x428048
mov esi, 0x428050
cmp eax, esi
mov edi, eax
jae 0x4157b1
mov eax, dword [edi]
test eax, eax
je 0x4157aa
call eax
add edi, 4
cmp edi, esi
jb 0x4157a2
mov eax, 0x428054
mov esi, 0x42805c
cmp eax, esi
mov edi, eax
jae 0x4157d0
mov eax, dword [edi]
test eax, eax
je 0x4157c9
call eax
add edi, 4
cmp edi, esi
jb 0x4157c1
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4157ea
push dword [ebp + 8]
mov dword [0x42bc10], 1
call fcn.00415691
pop ebp
ret
Function at 0x416bdd
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x42c260]
mov eax, dword [0x428f58]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x416da3
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x42c280]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x416da3
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x416c47
xor eax, eax
jmp 0x416db7
test al, 0x20
je 0x416c58
push 2
push edi
push edi
push ecx
call fcn.0041ace9
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x416d2d
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x416d74
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x416cba
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x416cab
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x416c8d
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x416cfa
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x416d06
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x416c81
jmp 0x416d08
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x416d9e
cmp dword [ebp + 0x3a4], edi
je 0x416d74
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x416d66
mov dword [0x42bbc8], eax
jmp 0x416daa
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x416d58
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x416d08
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x416d08
push dword [ebp + 0x3a4]
call fcn.0041a2bc
pop ecx
jmp 0x416db4
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x416d8c
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x416c40
mov dword [0x42bbc4], 0x1c
mov dword [0x42bbc8], edi
jmp 0x416db4
sub eax, dword [ebp - 0x7c]
jmp 0x416db7
and dword [0x42bbc8], 0
mov dword [0x42bbc4], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0041a58e
add ebp, 0x39c
leave
ret
Function at 0x4171c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x42c260]
push edi
jae 0x417395
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x42c280]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x417395
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x41726b
test dl, 2
jne 0x41726b
test dl, 0x48
je 0x417235
cmp byte [eax + 5], 0xa
je 0x417235
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x41727e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x417266
mov dword [0x42bbc8], ecx
jmp 0x41739c
cmp eax, 0x6d
jne 0x417272
xor eax, eax
jmp 0x4173a9
push eax
call fcn.0041a2bc
pop ecx
jmp 0x4173a6
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x417390
test eax, eax
je 0x4172a5
cmp byte [ebx], 0xa
jne 0x4172a5
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4172ae
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x41738a
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x41737a
cmp al, 0xd
je 0x4172e0
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x41736c
dec ecx
cmp dword [ebp - 8], ecx
jae 0x4172fa
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x4172f5
add dword [ebp - 8], 2
jmp 0x41734e
mov dword [ebp - 8], eax
jmp 0x417368
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
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 0x417322
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x417368
cmp dword [ebp - 0x10], 0
je 0x417368
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x417343
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41734e
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41736b
cmp ebx, dword [ebp + 0xc]
jne 0x417353
cmp byte [ebp - 1], 0xa
jne 0x417353
mov byte [ebx], 0xa
jmp 0x41736b
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00416f78
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x41736c
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x4172c4
jmp 0x41738a
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x41738a
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x4173a9
and dword [0x42bbc8], 0
mov dword [0x42bbc4], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41836c
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 0x41839a
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 0x4183a1
cmp ebx, dword [eax + 4]
jae 0x4183a1
xor eax, eax
jmp 0x418591
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4183b2
xor eax, eax
inc eax
jmp 0x418590
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4183c8
cmp ecx, edx
jae 0x41850d
cmp dword [eax + 4], 0
je 0x4183d1
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4183b9
cmp dword [ebp + 8], 0
je 0x4183f3
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41850d
cmp eax, esi
jae 0x41850d
mov eax, dword [0x42bc60]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x418418
cmp dword [esi*4 + 0x42bc68], edi
je 0x418511
inc esi
cmp esi, eax
jl 0x418406
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x41858d
cmp dword [ebp - 8], 0x1000000
jne 0x41858d
test byte [ebp - 0xc], 0xcc
je 0x418496
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41858d
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41858d
cmp word [eax + 0x18], 0x10b
jne 0x41858d
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41858d
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x418496
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x418496
test byte [ecx + 0x27], 0x80
jne 0x41850d
push 1
push 0x42bca8
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x4183aa
mov ecx, dword [0x42bc60]
test ecx, ecx
mov edx, ecx
jle 0x4184ca
lea eax, [ecx*4 + 0x42bc64]
cmp dword [eax], edi
je 0x4184ca
dec edx
sub eax, 4
test edx, edx
jg 0x4184be
test edx, edx
jne 0x4184fb
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4184d7
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4184ef
lea eax, [edx*4 + 0x42bc68]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4184dd
cmp ecx, 0x10
jge 0x4184fb
inc ecx
mov dword [0x42bc60], ecx
push 0
push 0x42bca8
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x4183aa
xor eax, eax
jmp 0x418590
test esi, esi
jle 0x4183aa
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 1
push 0x42bca8
call ebx
test eax, eax
jne 0x4183aa
cmp dword [esi*4 + 0x42bc68], edi
je 0x418567
mov eax, dword [0x42bc60]
lea esi, [eax - 1]
test esi, esi
jl 0x418555
cmp dword [esi*4 + 0x42bc68], edi
je 0x418551
dec esi
jns 0x418545
test esi, esi
jge 0x418565
cmp eax, 0x10
jge 0x418560
inc eax
mov dword [0x42bc60], eax
lea esi, [eax - 1]
jmp 0x418567
je 0x41857f
xor ecx, ecx
test esi, esi
jl 0x41857f
lea eax, [ecx*4 + 0x42bc68]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41856d
push 0
push 0x42bca8
call ebx
jmp 0x4183aa
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419a71
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x428f58]
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 + 0x428f88]
je 0x419aa6
inc eax
cmp eax, 0x13
jb 0x419a97
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x428f88]
jne 0x419bcc
mov eax, dword [0x42bb9c]
cmp eax, 1
je 0x419ba4
cmp eax, edx
jne 0x419ad6
cmp dword [0x428d20], 1
je 0x419ba4
cmp ecx, 0xfc
je 0x419bcc
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 0x419b0c
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00413870
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00413970
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x419b40
mov eax, edi
push eax
call fcn.00413970
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4248f0
push edi
call fcn.00415bc0
add esp, 0x10
push edi
call fcn.00413970
push dword [esi + 0x428f8c]
mov ebx, eax
call fcn.00413970
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00413db0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00413870
push edi
push ebx
call fcn.00413880
push 0x4248d0
push ebx
call fcn.00413880
push dword [esi + 0x428f8c]
push ebx
call fcn.00413880
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041bc33
add esp, 0x2c
jmp 0x419bcc
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x428f8c]
push dword [esi]
call fcn.00413970
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.0041a58e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x41b52d
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.00413db0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x41b5c8
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 [0x42bbd0]
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 0x41b5c8
cmp eax, 1
je 0x41b5e9
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 0x41b5c8
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41b595
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41b5c4
xor eax, eax
inc eax
jmp 0x41b608
cmp edi, eax
jae 0x41b5cc
xor eax, eax
jmp 0x41b608
cmp eax, esi
jae 0x41b5d3
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 [0x42bbd0]
jmp 0x41b5ec
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 0x41ba5e
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 0x41ba77
or eax, 0xffffffff
jmp 0x41bad8
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x41bad4
push 0x3d
push esi
call fcn.0041caa9
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x41bad4
cmp esi, eax
je 0x41bad4
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x42bbf0]
sete cl
cmp eax, dword [0x42bbf4]
mov dword [ebp - 8], ecx
jne 0x41baba
mov edi, eax
call fcn.0041b9fd
mov dword [0x42bbf0], eax
cmp eax, ebx
jne 0x41bb13
cmp dword [ebp + 0xc], ebx
je 0x41badc
cmp dword [0x42bbf8], ebx
je 0x41badc
call fcn.004199e1
test eax, eax
je 0x41bb13
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x41bae5
xor eax, eax
jmp 0x41bad7
push 4
call fcn.00416bcb
cmp eax, ebx
pop ecx
mov dword [0x42bbf0], eax
je 0x41bad4
mov dword [eax], ebx
cmp dword [0x42bbf8], ebx
jne 0x41bb13
push 4
call fcn.00416bcb
cmp eax, ebx
pop ecx
mov dword [0x42bbf8], eax
je 0x41bad4
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x42bbf0]
call fcn.0041b9b0
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x41bb74
cmp dword [esi], ebx
je 0x41bb74
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00414f24
cmp dword [ebp - 8], ebx
pop ecx
jne 0x41bb57
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x41bbb5
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x41bb4e
mov eax, edi
shl eax, 2
push eax
push dword [0x42bbf0]
call fcn.0041a31b
cmp eax, ebx
pop ecx
pop ecx
je 0x41bbb5
jmp 0x41bbb0
cmp dword [ebp - 8], ebx
jne 0x41bc20
cmp edi, ebx
jge 0x41bb83
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x42bbf0]
call fcn.0041a31b
cmp eax, ebx
pop ecx
pop ecx
je 0x41bad4
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 [0x42bbf0], eax
cmp dword [ebp + 0xc], ebx
je 0x41bc0a
push dword [ebp - 4]
call fcn.00413970
inc eax
inc eax
push eax
call fcn.00416bcb
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x41bc0a
push dword [ebp - 4]
push esi
call fcn.00413870
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 0x41bc03
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00414f24
pop ecx
cmp dword [ebp - 8], ebx
je 0x41bc18
push dword [ebp - 4]
call fcn.00414f24
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x41bad7
push dword [ebp - 4]
call fcn.00414f24
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x41bae1
Function at 0x41bc33
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x42be14], ebx
push esi
push edi
jne 0x41bcb3
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41bcee
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x42be14], eax
je 0x41bcee
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x42be18], eax
call esi
cmp dword [0x42bbd0], 2
mov dword [0x42be1c], eax
jne 0x41bcb3
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x42be24], eax
je 0x41bcb3
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x42be20], eax
mov eax, dword [0x42be20]
test eax, eax
je 0x41bcf8
call eax
test eax, eax
je 0x41bcdf
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x42be24]
test eax, eax
je 0x41bcdf
test byte [ebp - 8], 1
jne 0x41bcf8
cmp dword [0x42bbdc], 4
jb 0x41bcf2
or byte [ebp + 0x12], 0x20
jmp 0x41bd17
xor eax, eax
jmp 0x41bd27
or byte [ebp + 0x12], 4
jmp 0x41bd17
mov eax, dword [0x42be18]
test eax, eax
je 0x41bd17
call eax
mov ebx, eax
test ebx, ebx
je 0x41bd17
mov eax, dword [0x42be1c]
test eax, eax
je 0x41bd17
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x42be14]
pop edi
pop esi
pop ebx
leave
ret