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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea ecx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, ecx
jb 0x4649a3
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00469400
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x464966
mov eax, dword [edi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x464988
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x4649fe
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.004646ec
add dword [edi + 0x74], eax
mov esi, dword [edi + 0x74]
cmp esi, 3
pop ecx
pop ecx
jb 0x4649ea
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp esi, 0x106
jae 0x4649fe
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x464927
pop esi
pop ebx
leave
ret
Function at 0x469ad5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4964d0]
jne 0x469adf
repz ret
jmp fcn.00470416

Function at 0x470e2d
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4968c8]
je 0x470e48
inc edi
cmp edi, 0x17
jb 0x470e39
cmp edi, 0x17
jae 0x470fc8
push ebp
push 3
call fcn.00477a74
cmp eax, 1
pop ecx
je 0x470f94
push 3
call fcn.00477a74
test eax, eax
pop ecx
jne 0x470e7c
cmp dword [0x496610], 1
je 0x470f94
cmp ebx, 0xfc
je 0x470fc7
push 0x49d23c
mov ebx, 0x314
push ebx
mov ebp, 0x4a4a88
push ebp
call fcn.00470bbc
add esp, 0xc
test eax, eax
je 0x470eb2
push esi
push esi
push esi
push esi
push esi
call fcn.0046bcd1
add esp, 0x14
push 0x104
mov esi, 0x4a4aa1
push esi
push 0
mov byte [0x4a4ba5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x470ef6
push 0x49d224
push 0x2fb
push esi
call fcn.00470bbc
add esp, 0xc
test eax, eax
je 0x470ef6
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0046bcd1
add esp, 0x14
push esi
call fcn.0046b7d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x470f3b
push esi
call fcn.0046b7d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4a4d9c
push 0x49d220
sub ecx, eax
push ecx
push eax
call fcn.0047654b
add esp, 0x14
test eax, eax
je 0x470f3b
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0046bcd1
add esp, 0x14
jmp 0x470f3d
xor esi, esi
push 0x497c48
push ebx
push ebp
call fcn.004764da
add esp, 0xc
test eax, eax
je 0x470f5d
push esi
push esi
push esi
push esi
push esi
call fcn.0046bcd1
add esp, 0x14
push dword [edi*8 + 0x4968cc]
push ebx
push ebp
call fcn.004764da
add esp, 0xc
test eax, eax
je 0x470f7f
push esi
push esi
push esi
push esi
push esi
call fcn.0046bcd1
add esp, 0x14
push 0x12010
push 0x49d1f8
push ebp
call fcn.004778b7
add esp, 0xc
jmp 0x470fc7
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x470fc7
cmp ebp, 0xffffffff
je 0x470fc7
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4968cc]
push dword [esi]
call fcn.0046b7d0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4778b7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004705f4
xor ebx, ebx
cmp dword [0x4a5148], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x47798d
push 0x49e354
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x477a6d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x49e348
push edi
call esi
cmp eax, ebx
je 0x477a6d
push eax
call fcn.00470586
mov dword [esp], 0x49e338
push edi
mov dword [0x4a5148], eax
call esi
push eax
call fcn.00470586
mov dword [esp], 0x49e324
push edi
mov dword [0x4a514c], eax
call esi
push eax
call fcn.00470586
mov dword [0x4a5150], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0046c006
test eax, eax
pop ecx
pop ecx
je 0x47795b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0046bcd1
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x47798d
push 0x49e308
push edi
call esi
push eax
call fcn.00470586
cmp eax, ebx
pop ecx
mov dword [0x4a5158], eax
je 0x47798d
push 0x49e2f0
push edi
call esi
push eax
call fcn.00470586
pop ecx
mov dword [0x4a5154], eax
mov eax, dword [0x4a5154]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x477a12
cmp dword [0x4a5158], ecx
je 0x477a12
push eax
call fcn.004705fd
push dword [0x4a5158]
mov esi, eax
call fcn.004705fd
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x477a12
cmp edi, ebx
je 0x477a12
call esi
cmp eax, ebx
je 0x4779df
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4779df
test byte [ebp - 0x18], 1
jne 0x477a12
lea eax, [ebp - 0x10]
push eax
call fcn.0046c03d
test eax, eax
pop ecx
je 0x4779fa
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0046bcd1
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x477a09
or dword [ebp + 0x10], 0x200000
jmp 0x477a4d
or dword [ebp + 0x10], 0x40000
jmp 0x477a4d
mov eax, dword [0x4a514c]
cmp eax, dword [ebp - 8]
je 0x477a4d
push eax
call fcn.004705fd
cmp eax, ebx
pop ecx
je 0x477a4d
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x477a4d
mov eax, dword [0x4a5150]
cmp eax, dword [ebp - 8]
je 0x477a4d
push eax
call fcn.004705fd
cmp eax, ebx
pop ecx
je 0x477a4d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a5148]
call fcn.004705fd
cmp eax, ebx
pop ecx
je 0x477a6d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x477a6f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call fcn.00402440
mov dword [ebp - 4], eax
call fcn.004026d0
mov byte [ebp - 0x10], al
movsx eax, byte [ebp - 0x10]
cmp eax, 0xffffffff
jne 0x40102e
call fcn.00402440
sub eax, dword [ebp - 4]
cmp eax, 0x12
jge 0x40102e
jmp 0x40100e
movsx ecx, byte [ebp - 0x10]
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
cmp ecx, eax
jne 0x401054
mov ecx, dword [ebp + 8]
push ecx
push 0x41ce60
call fcn.00402937
add esp, 8
mov eax, 1
jmp 0x40108b
movsx edx, byte [ebp - 0x10]
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
cmp edx, ecx
jne 0x401077
mov edx, dword [ebp + 0xc]
push edx
push 0x41ce64
call fcn.00402937
add esp, 8
xor eax, eax
jmp 0x40108b
push 0x41ce68
call fcn.00402937
add esp, 4
push 1
call fcn.004028f7
mov esp, ebp
pop ebp
ret

Function at 0x401090
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call fcn.00402690
add esp, 4
test eax, eax
je 0x4010b7
push 0x41ce90
call fcn.00402937
add esp, 4
push 1
call fcn.004028f7
pop ebp
ret

Function at 0x4010c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call fcn.00402440
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x401123
call fcn.00402440
sub eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x12
cmp eax, edx
jge 0x401123
call fcn.004026d0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x401121
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
cmp dword [ebp - 8], ecx
je 0x401114
cmp dword [ebp - 8], 0
jne 0x40111f
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
cmp eax, 0x40
jne 0x40111f
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
jmp 0x401121
jmp 0x401123
jmp 0x4010ce
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
test eax, eax
je 0x401141
push 0x41ceb8
call fcn.00402937
add esp, 4
push 1
call fcn.004028f7
mov esp, ebp
pop ebp
ret
Function at 0x402640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
cmp dword [0x41d3f4], 0xffffffff
je 0x402678
push 0
lea ecx, [ebp - 8]
push ecx
push 1
lea edx, [ebp - 4]
push edx
mov eax, dword [0x41d3f4]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x40267d
or eax, 0xffffffff
jmp 0x40267f
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4026d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
cmp dword [0x41d3f4], 0xffffffff
je 0x402709
push 0
lea eax, [ebp - 8]
push eax
push 1
lea ecx, [ebp - 1]
push ecx
mov edx, dword [0x41d3f4]
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x402709
cmp dword [ebp - 8], 1
je 0x40270e
or eax, 0xffffffff
jmp 0x402712
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x402836
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x41daf4], esi
push edi
jne 0x402856
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 [0x41daf0], esi
mov byte [0x41daec], al
jne 0x4028bc
mov ecx, dword [0x41f06c]
test ecx, ecx
je 0x40289d
mov eax, dword [0x41f068]
sub eax, 4
cmp eax, ecx
jmp 0x402896
mov eax, dword [eax]
test eax, eax
je 0x402888
call eax
mov eax, dword [0x41f068]
sub eax, 4
cmp eax, dword [0x41f06c]
mov dword [0x41f068], eax
jae 0x402880
mov eax, 0x40a020
mov esi, 0x40a028
cmp eax, esi
mov edi, eax
jae 0x4028bc
mov eax, dword [edi]
test eax, eax
je 0x4028b5
call eax
add edi, 4
cmp edi, esi
jb 0x4028ad
mov eax, 0x40a02c
mov esi, 0x40a030
cmp eax, esi
mov edi, eax
jae 0x4028db
mov eax, dword [edi]
test eax, eax
je 0x4028d4
call eax
add edi, 4
cmp edi, esi
jb 0x4028cc
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4028f5
push dword [ebp + 8]
mov dword [0x41daf4], 1
call fcn.0040279c
pop ebp
ret
Function at 0x402ca5
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x408110
call fcn.004046f4
mov edi, 0x94
mov eax, edi
call fcn.00404850
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 [0x41dab4], ecx
mov eax, dword [esi + 4]
mov dword [0x41dac0], eax
mov edx, dword [esi + 8]
mov dword [0x41dac4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x41dab8], esi
cmp ecx, 2
je 0x402d05
or esi, 0x8000
mov dword [0x41dab8], esi
shl eax, 8
add eax, edx
mov dword [0x41dabc], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x402d3e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402d3e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x402d56
cmp eax, 0x20b
je 0x402d43
mov dword [ebp - 0x1c], edi
jmp 0x402d6a
cmp dword [ecx + 0x84], 0xe
jbe 0x402d3e
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x402d64
cmp dword [ecx + 0x74], 0xe
jbe 0x402d3e
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.004046a1
pop ecx
test eax, eax
jne 0x402d96
cmp dword [0x41db04], 2
je 0x402d83
call fcn.004040e6
push 0x1c
call fcn.00403f6f
push 0xff
call fcn.0040279c
pop ecx
pop ecx
call fcn.00402f28
mov dword [ebp - 4], edi
call fcn.00403988
test eax, eax
jge 0x402daf
push 0x1b
call fcn.00402c80
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x41e040], eax
call fcn.00404565
mov dword [0x41dafc], eax
call fcn.004044c3
test eax, eax
jge 0x402dd5
push 8
call fcn.00402c80
pop ecx
call fcn.00404290
test eax, eax
jge 0x402de6
push 9
call fcn.00402c80
pop ecx
push 1
call fcn.004027cc
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x402dfc
push eax
call fcn.00402c80
pop ecx
mov eax, dword [0x41dad4]
mov dword [0x41dad8], eax
push eax
push dword [0x41dacc]
push dword [0x41dac8]
call fcn.00401150
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x402e2b
push esi
call fcn.004028f7
call fcn.00402919
jmp 0x402e5d
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.0040472f
ret
Function at 0x403b33
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x41df24]
mov eax, dword [0x41d7f0]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x403cf9
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x41df40]
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 0x403cf9
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x403b9d
xor eax, eax
jmp 0x403d0d
test al, 0x20
je 0x403bae
push 2
push edi
push edi
push ecx
call fcn.00404dca
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x403c83
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x403cca
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x403c10
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x403c01
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 0x403be3
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 0x403c50
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x403c5c
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x403bd7
jmp 0x403c5e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x403cf4
cmp dword [ebp + 0x3a4], edi
je 0x403cca
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x403cbc
mov dword [0x41daac], eax
jmp 0x403d00
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 0x403cae
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x403c5e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x403c5e
push dword [ebp + 0x3a4]
call fcn.00404cb5
pop ecx
jmp 0x403d0a
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x403ce2
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x403b96
mov dword [0x41daa8], 0x1c
mov dword [0x41daac], edi
jmp 0x403d0a
sub eax, dword [ebp - 0x7c]
jmp 0x403d0d
and dword [0x41daac], 0
mov dword [0x41daa8], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00404c12
add ebp, 0x39c
leave
ret
Function at 0x403f6f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x41d7f0]
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 + 0x41d6a8]
je 0x403fa4
inc eax
cmp eax, 0x13
jb 0x403f95
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x41d6a8]
jne 0x4040ca
mov eax, dword [0x41db04]
cmp eax, 1
je 0x4040a2
cmp eax, edx
jne 0x403fd4
cmp dword [0x41d694], 1
je 0x4040a2
cmp ecx, 0xfc
je 0x4040ca
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 0x40400a
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00405b50
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00404af0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40403e
mov eax, edi
push eax
call fcn.00404af0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4085a0
push edi
call fcn.00405c50
add esp, 0x10
push edi
call fcn.00404af0
push dword [esi + 0x41d6ac]
mov ebx, eax
call fcn.00404af0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00404850
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00405b50
push edi
push ebx
call fcn.00405b60
push 0x408580
push ebx
call fcn.00405b60
push dword [esi + 0x41d6ac]
push ebx
call fcn.00405b60
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00405a54
add esp, 0x2c
jmp 0x4040ca
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x41d6ac]
push dword [esi]
call fcn.00404af0
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.00404c12
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x405a54
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41dc2c], ebx
push esi
push edi
jne 0x405ad4
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x405b0f
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x41dc2c], eax
je 0x405b0f
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x41dc30], eax
call esi
cmp dword [0x41dab4], 2
mov dword [0x41dc34], eax
jne 0x405ad4
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41dc3c], eax
je 0x405ad4
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x41dc38], eax
mov eax, dword [0x41dc38]
test eax, eax
je 0x405b19
call eax
test eax, eax
je 0x405b00
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41dc3c]
test eax, eax
je 0x405b00
test byte [ebp - 8], 1
jne 0x405b19
cmp dword [0x41dac0], 4
jb 0x405b13
or byte [ebp + 0x12], 0x20
jmp 0x405b38
xor eax, eax
jmp 0x405b48
or byte [ebp + 0x12], 4
jmp 0x405b38
mov eax, dword [0x41dc30]
test eax, eax
je 0x405b38
call eax
mov ebx, eax
test ebx, ebx
je 0x405b38
mov eax, dword [0x41dc34]
test eax, eax
je 0x405b38
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41dc2c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40658e
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 0x4065bc
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 0x4065c3
cmp ebx, dword [eax + 4]
jae 0x4065c3
xor eax, eax
jmp 0x4067b3
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4065d4
xor eax, eax
inc eax
jmp 0x4067b2
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4065ea
cmp ecx, edx
jae 0x40672f
cmp dword [eax + 4], 0
je 0x4065f3
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4065db
cmp dword [ebp + 8], 0
je 0x406615
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40672f
cmp eax, esi
jae 0x40672f
mov eax, dword [0x41dc48]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40663a
cmp dword [esi*4 + 0x41dc50], edi
je 0x406733
inc esi
cmp esi, eax
jl 0x406628
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x4067af
cmp dword [ebp - 8], 0x1000000
jne 0x4067af
test byte [ebp - 0xc], 0xcc
je 0x4066b8
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4067af
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4067af
cmp word [eax + 0x18], 0x10b
jne 0x4067af
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4067af
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4066b8
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4066b8
test byte [ecx + 0x27], 0x80
jne 0x40672f
push 1
push 0x41dc90
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x4065cc
mov ecx, dword [0x41dc48]
test ecx, ecx
mov edx, ecx
jle 0x4066ec
lea eax, [ecx*4 + 0x41dc4c]
cmp dword [eax], edi
je 0x4066ec
dec edx
sub eax, 4
test edx, edx
jg 0x4066e0
test edx, edx
jne 0x40671d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4066f9
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x406711
lea eax, [edx*4 + 0x41dc50]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4066ff
cmp ecx, 0x10
jge 0x40671d
inc ecx
mov dword [0x41dc48], ecx
push 0
push 0x41dc90
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x4065cc
xor eax, eax
jmp 0x4067b2
test esi, esi
jle 0x4065cc
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 1
push 0x41dc90
call ebx
test eax, eax
jne 0x4065cc
cmp dword [esi*4 + 0x41dc50], edi
je 0x406789
mov eax, dword [0x41dc48]
lea esi, [eax - 1]
test esi, esi
jl 0x406777
cmp dword [esi*4 + 0x41dc50], edi
je 0x406773
dec esi
jns 0x406767
test esi, esi
jge 0x406787
cmp eax, 0x10
jge 0x406782
inc eax
mov dword [0x41dc48], eax
lea esi, [eax - 1]
jmp 0x406789
je 0x4067a1
xor ecx, ecx
test esi, esi
jl 0x4067a1
lea eax, [ecx*4 + 0x41dc50]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40678f
push 0
push 0x41dc90
call ebx
jmp 0x4065cc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40750d
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.00404850
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x4075a8
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 [0x41dab4]
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 0x4075a8
cmp eax, 1
je 0x4075c9
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 0x4075a8
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x407575
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4075a4
xor eax, eax
inc eax
jmp 0x4075e8
cmp edi, eax
jae 0x4075ac
xor eax, eax
jmp 0x4075e8
cmp eax, esi
jae 0x4075b3
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 [0x41dab4]
jmp 0x4075cc
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