joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402420
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
push edi
call fcn.00401f00
xor esi, esi
mov ecx, 1
mov dword [0x4722d0], 0x498248
mov dword [0x498420], esi
mov dword [0x498424], esi
mov dword [0x498428], esi
mov dword [0x49842c], esi
mov dword [0x498248], 1
mov dword [0x4982f4], 0x49a1f8
call fcn.00428800
mov ecx, dword [0x4722d0]
mov edi, 0x3f800000
mov dword [ecx + 0x1a8], eax
mov dword [ecx + 0xb0], 0x404ccccd
mov dword [ecx + 0xb4], edi
mov dword [ecx + 0xb8], 0x43000000
mov dword [ecx + 0x198], 0x42c80000
mov dword [ecx + 0x19c], 0x48c35000
mov dword [ecx + 0xbc], 0x3faa9fbe
mov dword [ecx + 0xc0], edi
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], esi
mov dword [ecx + 0x10], esi
mov dword [ecx + 0x28], esi
mov dword [ecx + 0x2c], esi
mov dword [ecx + 0x30], 0x447a0000
mov dword [ecx + 0x38], esi
mov dword [ecx + 0x3c], edi
mov dword [ecx + 0x40], esi
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x1c], edi
mov dword [ecx + 0x20], edi
mov dword [ecx + 0x1ac], esi
mov dword [ecx + 0x1b0], edi
mov dword [ecx + 0x1b4], esi
call fcn.0044f4c0
mov eax, dword [0x4722d0]
mov dword [eax + 4], 1
mov dword [eax + 0xe8], 0x1000000
mov dword [eax + 0xec], esi
mov dword [eax + 0xf0], esi
mov dword [eax + 0x78], esi
mov dword [eax + 0x1a0], edi
call fcn.004023d0
call fcn.004023f0
mov eax, dword [0x4722d0]
mov dword [0x499f88], esi
mov dword [0x499f8c], esi
pop edi
mov dword [eax + 0x1cc], 0x4722d8
mov dword [eax + 0x1d0], 0xa
mov dword [eax + 0x1d4], 1
mov dword [eax + 0x1bc], esi
mov dword [eax + 0x1c0], esi
mov dword [eax + 0x1c4], esi
mov dword [eax + 0x1c8], esi
pop esi
jmp fcn.004025d0
Function at 0x422a80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
push esi
mov esi, edx
push edi
mov edx, dword [ebp + 8]
push 0
push esi
push edx
push ecx
call dword [eax + 0x18]
mov edi, eax
test edi, edi
jne 0x422aa9
mov ecx, esi
call fcn.00422a00
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
cmp dword [ebp + 0xc], 1
jne 0x422aa1
push 1
call fcn.00462dfa
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x4234d0
Capabilities:
Terminate process

Disassembly:
call fcn.00442180
push 1
call fcn.00462dfa
nop
nop
nop
nop

Function at 0x42fff0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x61c358]
mov edx, dword [0x5ba780]
push edx
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
je 0x430016
mov ecx, eax
call fcn.00422690
mov ecx, eax
jmp fcn.0044e4a0
ret

Function at 0x432070
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x61c368]
push 0x5da1dc
push 0x46ed90
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
je 0x432096
mov ecx, eax
call fcn.00422690
mov ecx, eax
jmp fcn.0044e4a0
ret

Function at 0x4327c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
imul edx, dword [ebp + 8]
mov eax, edx
test eax, eax
jbe 0x4327d8
xor word [ecx], 0x7fff
add ecx, 2
dec eax
jne 0x4327cd
pop ebp
ret 4

Function at 0x432a60
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x61c368]
push 1
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test eax, eax
je 0x432a81
mov ecx, eax
call fcn.00422690
mov ecx, eax
jmp fcn.0044e4a0
ret

Function at 0x433ee0
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [0x5da1c8]
mov eax, 1
cmp ecx, eax
je 0x433f11
mov dword [0x5da1c8], eax
mov eax, dword [0x5da1c4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
je 0x433f11
mov ecx, eax
call fcn.00422690
mov ecx, eax
jmp fcn.0044e4a0
ret

Function at 0x4401c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4401d6
test al, 0x10
je 0x4401d6
mov eax, 1
ret
xor eax, eax
ret

Function at 0x440380
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x440396
test al, 0x10
jne 0x440396
mov eax, 1
ret
xor eax, eax
ret

Function at 0x44d420
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
xor ebx, ebx
mov esi, 1
lea edi, [ebp - 0x100]
mov edx, dword [0x5e3790]
mov ecx, esi
call fcn.00437230
test eax, eax
jne 0x44d453
mov eax, dword [0x5df5d4]
test eax, eax
je 0x44d459
mov dword [edi], esi
inc ebx
add edi, 4
inc esi
cmp esi, 0x15
jl 0x44d439
mov eax, dword [0x5e379c]
xor esi, esi
test eax, eax
jle 0x44d493
mov edi, 0x5e3954
call fcn.00463289
and eax, 0xff
add edi, 4
cdq
idiv ebx
inc esi
mov eax, dword [ebp + edx*4 - 0x100]
mov dword [edi - 4], eax
mov eax, dword [0x5e379c]
cmp esi, eax
jl 0x44d46f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44e2b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
xor ebx, ebx
mov esi, 1
lea edi, [ebp - 0x100]
mov edx, dword [0x5e3790]
mov ecx, esi
call fcn.00437230
test eax, eax
jne 0x44e2e3
mov eax, dword [0x5df5d4]
test eax, eax
je 0x44e2e9
mov dword [edi], esi
inc ebx
add edi, 4
inc esi
cmp esi, 0x15
jl 0x44e2c9
mov eax, dword [0x5e379c]
xor esi, esi
test eax, eax
jle 0x44e323
mov edi, 0x5e3954
call fcn.00463289
and eax, 0xff
add edi, 4
cdq
idiv ebx
inc esi
mov eax, dword [ebp + edx*4 - 0x100]
mov dword [edi - 4], eax
mov eax, dword [0x5e379c]
cmp esi, eax
jl 0x44e2ff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44e4a0
Capabilities:
Terminate process

Disassembly:
push 1
call fcn.00462dfa
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x45fb50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x62e088]
push esi
test eax, eax
mov esi, edx
je 0x45fb6a
call fcn.0045fce0
push 0x104
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.00463f7b
lea ecx, [ebp - 0x104]
push 0x104
push ecx
push 0x62df54
call fcn.00463390
mov edx, dword [ebp + 8]
add esp, 0x18
mov eax, edx
and eax, 0x78
pop esi
add eax, 0xfffffff8
cmp eax, 0x38
ja case.0x45fbae.12
xor ecx, ecx
mov cl, byte [eax + 0x45fca0]
jmp dword [ecx*4 + 0x45fc8c]
mov dword [0x62df1c], 0x7d0
mov dword [0x62df14], 0x18
jmp 0x45fc26
mov dword [0x62df1c], 0x258
mov dword [0x62df14], 5
jmp 0x45fc26
mov dword [0x62df1c], 0x190
mov dword [0x62df14], 4
jmp 0x45fc26
mov dword [0x62df1c], 0x64
mov dword [0x62df14], 3
jmp 0x45fc26
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x45fc7e
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x45fc7e
mov dword [0x62df1c], ecx
mov dword [0x62df14], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
test dl, 2
mov dword [0x62df38], edx
mov dword [0x62df3c], eax
mov dword [0x62df40], ecx
je 0x45fc6e
lea edx, [ebp + 8]
push edx
push 0
push 0x62df08
push fcn.0045fda0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x62e08c], 0
xor eax, eax
mov esp, ebp
pop ebp
ret 0x14
push 0x62df08
call fcn.0045fda0
mov esp, ebp
pop ebp
ret 0x14
mov eax, 0x80070057
mov esp, ebp
pop ebp
ret 0x14
Function at 0x46a919
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x496218
cmp edx, dword [eax]
je 0x46a93b
add eax, 8
inc ecx
cmp eax, 0x4962a8
jl 0x46a92c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x496218]
jne 0x46aa69
mov eax, dword [0x6365a0]
cmp eax, 1
je 0x46aa43
test eax, eax
jne 0x46a96c
cmp dword [0x4959dc], 1
je 0x46aa43
cmp edx, 0xfc
je 0x46aa69
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x46a9a3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00468ef0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00468250
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x46a9e6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00468250
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x470a60
push edi
call fcn.00463390
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00468ef0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00468f00
lea eax, [ebp - 0xa0]
push 0x470a40
push eax
call fcn.00468f00
push dword [esi + 0x49621c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00468f00
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0046cc03
add esp, 0x2c
pop edi
jmp 0x46aa69
lea eax, [ebp + 8]
lea esi, [esi + 0x49621c]
push 0
push eax
push dword [esi]
call fcn.00468250
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]
pop esi
leave
ret
Function at 0x41e512
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041762e
and dword [ebp - 4], 0
cmp dword [0x430a1c], 0
mov ebx, eax
jne 0x41e5c3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41e674
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41e674
push eax
call fcn.004175bc
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x430a1c], eax
call esi
push eax
call fcn.004175bc
mov dword [esp], 0x426db4
push edi
mov dword [0x430a20], eax
call esi
push eax
call fcn.004175bc
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x430a24], eax
call esi
push eax
call fcn.004175bc
pop ecx
mov dword [0x430a2c], eax
test eax, eax
je 0x41e5c3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004175bc
pop ecx
mov dword [0x430a28], eax
mov eax, dword [0x430a28]
cmp eax, ebx
je 0x41e61b
cmp dword [0x430a2c], ebx
je 0x41e61b
push eax
call fcn.00417637
push dword [0x430a2c]
mov esi, eax
call fcn.00417637
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41e61b
test edi, edi
je 0x41e61b
call esi
test eax, eax
je 0x41e612
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41e612
test byte [ebp - 0xc], 1
jne 0x41e61b
or dword [ebp + 0x10], 0x200000
jmp 0x41e654
mov eax, dword [0x430a20]
cmp eax, ebx
je 0x41e654
push eax
call fcn.00417637
pop ecx
test eax, eax
je 0x41e654
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41e654
mov eax, dword [0x430a24]
cmp eax, ebx
je 0x41e654
push eax
call fcn.00417637
pop ecx
test eax, eax
je 0x41e654
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x430a1c]
call fcn.00417637
pop ecx
test eax, eax
je 0x41e674
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41e676
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x1f6b4e0c
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
je 0x4330d2
nop
nop
nop
nop
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x5fa65be5
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x41fc20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13000]
push edi
or ebp, 0xffffffff
jmp 0x41fc42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41fc49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41fc38
mov eax, 1
add ebx, ebx
jne 0x41fc5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41fc50
jne 0x41fc6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41fc50
xor ecx, ecx
sub eax, 3
jb 0x41fc80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41fcf2
mov ebp, eax
add ebx, ebx
jne 0x41fc8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41fc98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41fcbc
inc ecx
add ebx, ebx
jne 0x41fca8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41fc9d
jne 0x41fcb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41fc9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41fcdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41fccd
jmp 0x41fc3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41fcdc
add edi, ecx
jmp 0x41fc3e
pop esi
mov edi, esi
mov ecx, 0x3ac
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41fcfa
cmp byte [edi], 8
jne 0x41fcfa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x41fcff
lea edi, [esi + 0x1d000]
mov eax, dword [edi]
or eax, eax
je 0x41fd77
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1f744]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1f820]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41fd2c
mov ecx, edi
jns 0x41fd5b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1f824]
or eax, eax
je 0x41fd71
mov dword [ebx], eax
add ebx, 4
jmp 0x41fd49
call dword [esi + 0x1f828]
popal
jmp 0x40e792
Function at 0x407680
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40d748
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x415d90]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.suEmbedded.0
mov eax, dword [esi + 0x20]
push eax
mov dword [esp + 0x1c], 0
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov edi, dword [esi + 0x30]
add esp, 4
test edi, edi
je 0x4076da
mov ecx, edi
call fcn.00405d30
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, esi
call fcn.00402b70
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x4085a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jbe 0x4085f0
mov eax, dword [esp + 8]
mov ecx, dword [0x417a40]
push esi
mov esi, dword [0x417a44]
push edi
mov edi, dword [esp + 0x14]
sub edi, eax
mov edx, esi
imul edx, ecx
shr edx, 8
xor dl, byte [edi + eax]
add ecx, 0x9f143
mov byte [eax], dl
add esi, 0xe851d
add eax, 1
sub ebp, 1
jne 0x4085c1
pop edi
mov dword [0x417a44], esi
mov dword [0x417a40], ecx
pop esi
pop ebp
ret
Function at 0x409480
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x40d828
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x415d90]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
push eax
push ecx
push edx
push edi
mov ecx, esi
call fcn.0040a6e0
xor ebx, ebx
push 1
lea ecx, [esi + 0x1bc0]
mov dword [esp + 0x24], ebx
call fcn.0040bcc0
mov byte [esi + 0x1c3a], bl
call sub.oodb94vc8.dll_ossInitLocale
mov ecx, dword [esp + 0x28]
mov al, byte [esp + 0x3c]
mov edx, dword [esp + 0x34]
mov dword [esi + 0x1c40], ecx
push 7
mov ecx, esi
mov byte [esi + 0x1c38], al
mov dword [esi + 0x1c48], ebx
mov dword [esi + 0x1c4c], ebx
mov dword [esi + 0x1c50], ebx
mov dword [esi + 0x1c54], ebx
mov dword [esi + 0x1c58], edx
mov byte [esi + 0x1c45], bl
mov dword [esi + 0x1c5c], ebx
call fcn.004092b0
push 0x1c
mov ecx, esi
mov dword [esi + 0x1c64], eax
call fcn.004092b0
push 2
mov ecx, esi
mov dword [esi + 0x1c68], eax
call fcn.004092b0
mov ebp, dword [sym.imp.MSVCR80.dll_getenv]
push str.OO_INTERNAL
mov dword [esi + 0x1c6c], eax
mov dword [esi + 0x1c70], ebx
mov dword [esi + 0x1c74], 0xffffffff
call ebp
test eax, eax
setne al
push str.OO_NO_TITLE
mov byte [esi + 0x1c44], al
call ebp
add esp, 8
test eax, eax
setne cl
cmp edi, ebx
mov byte [esi + 0x1c39], cl
je 0x4095b8
mov edi, dword [edi]
cmp edi, ebx
je 0x4095b8
push edi
call sub.oodb94vc8.dll_ossFileName
add esp, 4
cmp eax, ebx
je 0x4095b8
push eax
call sub.oodb94vc8.dll_ossNewString
add esp, 4
mov dword [esi + 0x1c3c], eax
jmp 0x4095c2
mov dword [esi + 0x1c3c], 0x41148d
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x1c
Function at 0x40c4d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x415d90]
jne 0x40c4da
repz ret
jmp fcn.0040c8d6

Function at 0x40ce50
Capabilities:
Terminate process

Disassembly:
cmp ecx, 0xffffffff
je 0x40ce6d
push esi
lea esi, [ecx + ecx*2]
xor edx, edx
cmp dword [esi*4 + 0x415de4], edx
pop esi
je 0x40ce8d
cmp eax, edx
je 0x40ce6d
cmp byte [eax], dl
jne 0x40ce8d
push str._nERROR:__bad_parameter_in_setup_command___data_buf_n
call dword [sym.imp.MSVCR80.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCR80.dll_exit]
cmp ecx, 4
ja case.default.0x40ce92
jmp dword [ecx*4 + 0x40cf1c]
mov dword [0x417e4c], 1
xor eax, eax
ret
mov dword [0x417e54], eax
mov dword [0x417e4c], edx
mov dword [0x415dd0], 0x200
xor eax, eax
ret
mov dword [0x417e54], eax
mov dword [0x417e4c], edx
mov dword [0x415dd0], 8
xor eax, eax
ret
mov dword [0x417e50], eax
mov dword [0x415dcc], 0x200
xor eax, eax
ret
mov dword [0x417e50], eax
mov dword [0x415dcc], 8
xor eax, eax
ret
push eax
push ecx
push str._nERROR:__unknown_command__d__s__in_setup_command___n
call dword [sym.imp.MSVCR80.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0x10
push 1
call dword [sym.imp.MSVCR80.dll_exit]
salc
into
inc eax
add al, ch
into
inc eax
add byte [esi - 0x41ffbf32], ah
into
inc eax
add byte [ecx - 0x74ffbf32], bl
mov eax, dword [esp + 0xc]

Function at 0x40cf30
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
push eax
push esi
push edi
call dword [sym.imp.MSVCR80.dll_freopen]
add esp, 0xc
test eax, eax
jne 0x40cf79
call dword [sym.imp.MSVCR80.dll__errno]
mov ecx, dword [eax]
push ecx
push esi
push edi
push str._nFatal_ERROR:__freopen__s__s__NULL__errno_d_n
call dword [sym.imp.MSVCR80.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0x14
push 1
call dword [sym.imp.MSVCR80.dll_exit]
pop edi
xor eax, eax
pop esi
ret

Function at 0x40cf80
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.MSVCR80.dll___iob_func]
push edi
call esi
add eax, 0x40
push eax
mov eax, dword [0x417e50]
push 0x411860
push eax
call dword [sym.imp.MSVCR80.dll_freopen]
mov edi, dword [sym.imp.MSVCR80.dll__fileno]
push eax
call edi
mov ebx, dword [esp + 0x20]
add esp, 0x10
push eax
push ebx
call edi
add esp, 4
push eax
call dword [sym.imp.MSVCR80.dll__dup2]
add esp, 8
cmp eax, 0xffffffff
jne 0x40d005
call dword [sym.imp.MSVCR80.dll__errno]
mov ecx, dword [eax]
push ecx
call esi
add eax, 0x40
push eax
call edi
add esp, 4
push eax
call esi
add eax, 0x40
push eax
push ebx
call edi
add esp, 4
push eax
push ebx
push str._nFatal_ERROR:__dup2_fileno__d__d_fileno__d__d___errno_d_n
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0x1c
push 1
call dword [sym.imp.MSVCR80.dll_exit]
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x40d010
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push str.oo_qa_ignore_faults
mov dword [esp + 0x14], ebp
call dword [sym.imp.MSVCR80.dll_getenv]
add esp, 4
test eax, eax
je 0x40d035
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov bl, 8
test byte [0x415dcc], bl
mov esi, 0x411860
je 0x40d049
mov esi, 0x4118ac
cmp dword [0x417e50], ebp
mov edi, dword [sym.imp.MSVCR80.dll___iob_func]
je 0x40d070
call edi
add eax, 0x20
push eax
mov eax, dword [0x417e50]
push esi
push eax
call fcn.0040cf30
add esp, 0xc
mov dword [esp + 0x10], eax
cmp dword [0x417e4c], ebp
je 0x40d088
call edi
add eax, 0x20
push eax
call fcn.0040cf80
add esp, 4
jmp 0x40d0b8
test byte [0x415dd0], bl
mov esi, 0x411860
je 0x40d09a
mov esi, 0x4118ac
cmp dword [0x417e54], ebp
je 0x40d0ba
call edi
mov ecx, dword [0x417e54]
add eax, 0x40
push eax
push esi
push ecx
call fcn.0040cf30
add esp, 0xc
mov ebp, eax
cmp dword [esp + 0x10], 0
jne 0x40d0d7
test ebp, ebp
jne 0x40d0d7
pop edi
pop esi
pop ebp
mov dword [0x417e48], 1
xor eax, eax
pop ebx
pop ecx
ret
mov ebx, dword [0x417e50]
test ebx, ebx
jne 0x40d0e6
mov ebx, 0x41148d
mov esi, dword [0x417e54]
test esi, esi
jne 0x40d0f5
mov esi, 0x41148d
call dword [sym.imp.MSVCR80.dll__errno]
mov edx, dword [eax]
mov eax, dword [esp + 0x10]
push edx
push eax
push ebx
push ebp
push esi
push str._nFatal_ERROR:__assoc_fname_s__d_or_assoc_fname_s__d__errno_d_n
call edi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0x1c
push 1
call dword [sym.imp.MSVCR80.dll_exit]
int3

Function at 0x40d180
Capabilities:
Terminate process

Disassembly:
push ebp
push esi
xor esi, esi
xor ebp, ebp
cmp dword [ebx], esi
push edi
je 0x40d1d9
mov eax, ebx
lea ecx, [ecx]
mov edi, dword [eax]
call fcn.0040d130
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x40d1a6
mov dword [ebx + ebp*4], edi
add ebp, 1
jmp 0x40d1cd
xor eax, eax
lea edx, [ecx + ecx*2]
cmp dword [edx*4 + 0x415de4], eax
je 0x40d1bf
mov eax, dword [ebx + esi*4 + 4]
add esi, 1
test eax, eax
je 0x40d1e6
cmp dword [0x417e48], 0
jne 0x40d1cd
call fcn.0040ce50
add esi, 1
cmp dword [ebx + esi*4], 0
lea eax, [ebx + esi*4]
jne 0x40d190
pop edi
pop esi
mov dword [ebx + ebp*4], 0
mov eax, ebp
pop ebp
ret
push esi
push str._nFatal_ERROR:__args__d_NULL_n
call dword [sym.imp.MSVCR80.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.MSVCR80.dll_exit]
int3
Function at 0x40d210
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
call fcn.0040d180
cmp dword [0x417e48], 0
mov ebp, eax
jne 0x40d22e
call fcn.0040d010
mov esi, dword [sym.imp.MSVCR80.dll___iob_func]
push 0
push 4
push 0
call esi
mov edi, dword [sym.imp.MSVCR80.dll_setvbuf]
add eax, 0x20
push eax
call edi
add esp, 0x10
test eax, eax
jne 0x40d290
push eax
push 4
push eax
call esi
add eax, 0x40
push eax
call edi
add esp, 0x10
test eax, eax
jne 0x40d290
push 2
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::_Lockit::constructor_int_]
mov eax, dword [sym.imp.MSVCP80.dll_bool_std::ios_base::_Sync]
lea ecx, [esp + 0x10]
mov byte [eax], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
push ebx
push ebp
call fcn.00401e30
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0x202
push str..._nt_wrap_args.cpp
push str._nError:__setvbuf___file_s_line_d
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0x10
push 1
call dword [sym.imp.MSVCR80.dll_exit]
int3