joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b6e8
Capabilities:
Accept command line arguments
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x41d738
call fcn.0040c2a7
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
je 0x40b724
push esi
call fcn.004098ba
push esi
push str.sfxcmd
call edi
push 0x400
mov esi, 0x417ad8
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push str.sfxname
call edi
call fcn.004063e7
test eax, eax
je 0x40b75a
push 0x400
push 0x4172d8
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x40b762
xor eax, eax
mov word [0x4172d8], ax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
push 0x64
push edi
mov dword [0x412c78], edi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x65
push dword [0x412c78]
mov dword [0x4172d4], eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
lea ecx, [ebp - 8]
mov dword [0x4172d0], eax
call fcn.0040f0b0
push esi
mov ecx, 0x412c88
call fcn.0040868d
lea ecx, [ebp - 0x40]
call fcn.004059bb
lea ecx, [ebp - 0x24]
call fcn.004059bb
push 0x64
call fcn.00409181
push 0x64
mov dword [ebp - 0x28], eax
call fcn.00409181
push ebx
push 0x40afd0
mov dword [ebp - 0xc], eax
push ebx
lea eax, [ebp - 0x40]
mov dword [0x416ecc], eax
push str.STARTDLG
lea eax, [ebp - 0x24]
push edi
mov dword [0x416ec8], eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
lea ecx, [ebp - 0x24]
mov dword [0x417f80], ebx
mov dword [0x416ec8], ebx
mov dword [0x416ecc], ebx
call fcn.004059d1
lea ecx, [ebp - 0x40]
call fcn.004059d1
lea ecx, [ebp - 8]
call fcn.0040f128
cmp byte [0x417f88], bl
je 0x40b823
call fcn.00409b5e
push 0x80
push ebx
push 0x417ee8
call fcn.004087ba
cmp dword [0x418824], ebx
jbe 0x40b846
push dword [0x418818]
call fcn.00408736
push dword [0x4172d4]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x4172d0]
cmp eax, ebx
je 0x40b860
push eax
call esi
cmp dword [0x412c7c], ebx
jne 0x40b87f
cmp dword [0x417f78], ebx
je 0x40b87f
push 0xff
mov ecx, 0x412c7c
call fcn.00402cdb
mov eax, dword [0x418828]
mov dword [0x417f78], 2
cmp eax, ebx
je 0x40b898
push eax
call fcn.00409b1f
call dword [sym.imp.ole32.dll_OleUninitialize]
push dword [0x412c7c]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x406270
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax], 0x10
je 0x4063ec
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push 0x92
push 0
mov eax, dword [ebx]
mov dword [ebp + 8], eax
lea esi, [eax + 0x358]
push esi
call fcn.00586c40
add esp, 0xc
mov ecx, ebx
call fcn.004048e0
push 0
mov ecx, ebx
call fcn.00404730
test eax, eax
je 0x4063d4
push edi
lea esp, [esp]
mov edi, dword [eax]
mov ecx, eax
call fcn.004042f0
mov bl, al
mov ecx, 0x69c888
mov eax, dword [ebp + 8]
add bl, byte [eax + 0x520]
mov byte [ebp - 4], bl
push dword [ebp - 4]
call fcn.00405880
test eax, eax
je case.0x406303.10
movzx ecx, word [edi + 0x2c]
add ecx, 0xfffffffd
cmp ecx, 0x75
ja case.0x406303.10
movzx ecx, byte [ecx + 0x406438]
jmp dword [ecx*4 + 0x4063f4]
movzx ecx, word [edi + 0x2e]
mov eax, dword [eax]
mov dword [esi + ecx*4 - 4], eax
jmp case.0x406303.10
movzx ecx, word [edi + 0x2e]
movss xmm0, dword [eax + 8]
test cx, cx
je case.0x406303.10
mov eax, dword [eax + 4]
mov dword [esi + ecx*4 + 0x24], eax
movss dword [esi + ecx*4 + 0x3c], xmm0
jmp case.0x406303.10
mov eax, dword [eax + 0xc]
mov dword [esi + 0x5c], eax
jmp case.0x406303.10
mov eax, dword [eax + 0x10]
mov dword [esi + 0x58], eax
jmp case.0x406303.10
mov eax, dword [eax + 0x14]
mov dword [esi + 0x60], eax
jmp case.0x406303.10
mov eax, dword [eax + 0x18]
mov dword [esi + 0x64], eax
jmp case.0x406303.10
mov eax, dword [eax + 0x1c]
mov dword [esi + 0x68], eax
jmp case.0x406303.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x6c], eax
jmp case.0x406303.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x70], eax
jmp case.0x406303.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x74], eax
jmp case.0x406303.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x78], eax
jmp case.0x406303.10
mov eax, dword [eax + 0x24]
mov dword [esi + 0x7c], eax
movzx eax, bl
mov word [esi + 0x80], ax
jmp case.0x406303.10
mov eax, dword [eax + 0x28]
mov dword [esi + 0x82], eax
jmp case.0x406303.10
mov eax, dword [eax + 0x2c]
mov dword [esi + 0x86], eax
jmp case.0x406303.10
mov eax, dword [eax + 0x30]
mov dword [esi + 0x8a], eax
jmp case.0x406303.10
mov eax, dword [eax + 0x34]
mov dword [esi + 0x8e], eax
mov ecx, dword [ebp + 0x10]
push 0
call fcn.00404730
test eax, eax
jne 0x4062c0
pop edi
mov ecx, dword [0x6c4a9c]
call fcn.00442f90
mov ecx, dword [0x6c4a9c]
call fcn.00442c70
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40630a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax], 0x10
je 0x4063ec
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push 0x92
push 0
mov eax, dword [ebx]
mov dword [ebp + 8], eax
lea esi, [eax + 0x358]
push esi
call fcn.00586c40
add esp, 0xc
mov ecx, ebx
call fcn.004048e0
push 0
mov ecx, ebx
call fcn.00404730
test eax, eax
je 0x4063d4
push edi
lea esp, [esp]
mov edi, dword [eax]
mov ecx, eax
call fcn.004042f0
mov bl, al
mov ecx, 0x69c888
mov eax, dword [ebp + 8]
add bl, byte [eax + 0x520]
mov byte [ebp - 4], bl
push dword [ebp - 4]
call fcn.00405880
test eax, eax
je case.0x406303.10
movzx ecx, word [edi + 0x2c]
add ecx, 0xfffffffd
cmp ecx, 0x75
ja case.0x406303.10
movzx ecx, byte [ecx + 0x406438]
jmp dword [ecx*4 + 0x4063f4]
movzx ecx, word [edi + 0x2e]
mov eax, dword [eax]
mov dword [esi + ecx*4 - 4], eax
jmp case.0x406303.10
movzx ecx, word [edi + 0x2e]
movss xmm0, dword [eax + 8]
test cx, cx
je case.0x406303.10
mov eax, dword [eax + 4]
mov dword [esi + ecx*4 + 0x24], eax
movss dword [esi + ecx*4 + 0x3c], xmm0
jmp case.0x406303.10
mov eax, dword [eax + 0xc]
mov dword [esi + 0x5c], eax
jmp case.0x406303.10
mov eax, dword [eax + 0x10]
mov dword [esi + 0x58], eax
jmp case.0x406303.10
mov eax, dword [eax + 0x14]
mov dword [esi + 0x60], eax
jmp case.0x406303.10
mov eax, dword [eax + 0x18]
mov dword [esi + 0x64], eax
jmp case.0x406303.10
mov eax, dword [eax + 0x1c]
mov dword [esi + 0x68], eax
jmp case.0x406303.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x6c], eax
jmp case.0x406303.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x70], eax
jmp case.0x406303.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x74], eax
jmp case.0x406303.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x78], eax
jmp case.0x406303.10
mov eax, dword [eax + 0x24]
mov dword [esi + 0x7c], eax
movzx eax, bl
mov word [esi + 0x80], ax
jmp case.0x406303.10
mov eax, dword [eax + 0x28]
mov dword [esi + 0x82], eax
jmp case.0x406303.10
mov eax, dword [eax + 0x2c]
mov dword [esi + 0x86], eax
jmp case.0x406303.10
mov eax, dword [eax + 0x30]
mov dword [esi + 0x8a], eax
jmp case.0x406303.10
mov eax, dword [eax + 0x34]
mov dword [esi + 0x8e], eax
mov ecx, dword [ebp + 0x10]
push 0
call fcn.00404730
test eax, eax
jne 0x4062c0
pop edi
mov ecx, dword [0x6c4a9c]
call fcn.00442f90
mov ecx, dword [0x6c4a9c]
call fcn.00442c70
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40c210
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x72c
mov eax, dword [0x695e80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x728], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x724], ebx
push esi
mov esi, ecx
test eax, eax
jne 0x40c251
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00585d34
mov esp, ebp
pop ebp
ret 0x10
test ebx, ebx
je 0x40c23d
push eax
push 1
lea eax, [ebp - 0x71d]
push 1
push eax
call fcn.00587677
push 0x200
lea eax, [ebp - 0x604]
push 0
push eax
call fcn.00586c40
lea edx, [esi + 0x10]
add esp, 0x1c
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c284
push edi
sub ecx, esi
lea eax, [ebp - 0x604]
push ecx
push edx
push eax
call fcn.005861a0
push 0x100
lea eax, [ebp - 0x604]
push eax
lea eax, [ebp - 0x71c]
push eax
call fcn.0040d260
xor esi, esi
add esp, 0x18
mov dword [ebp - 0x72c], esi
cmp dword [ebp + 0x10], esi
jle 0x40c3fa
mov edi, ebx
lea ebx, [ebx]
push dword [ebp - 0x728]
lea eax, [ebp - 0x404]
push 0x10
push 1
push eax
call fcn.00587677
add esp, 0x10
cmp eax, 0x10
jne 0x40c43e
lea eax, [ebp - 0x404]
push eax
push eax
lea eax, [ebp - 0x71c]
push 0
push eax
call fcn.0040c570
lea ecx, [esi + 0xf]
add esp, 0x10
lea edx, [ebp - 0x3f5]
xor eax, eax
add ecx, ebx
cmp edi, edx
ja 0x40c326
lea edx, [ebp - 0x404]
cmp ecx, edx
jae 0x40c37d
movdqu xmm0, xmmword [ebp - 0x404]
mov eax, 0x10
xorps xmm1, xmm1
movdqu xmmword [edi], xmm0
movdqu xmm2, xmmword [edi]
paddb xmm2, xmm1
movdqa xmm0, xmm2
psrldq xmm0, 8
paddb xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
paddb xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 2
paddb xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 1
paddb xmm2, xmm0
movd ecx, xmm2
add byte [ebp + 0x14], cl
xor bl, bl
xor dl, dl
cmp eax, 0x10
jge 0x40c3df
mov ecx, 0x10
sub ecx, eax
cmp ecx, 2
jl 0x40c3b3
mov cl, byte [ebp + eax - 0x404]
mov byte [edi + eax], cl
add bl, cl
mov cl, byte [ebp + eax - 0x403]
mov byte [edi + eax + 1], cl
add dl, cl
add eax, 2
cmp eax, 0xf
jl 0x40c392
cmp eax, 0x10
jge 0x40c3d5
mov cl, byte [ebp + eax - 0x404]
add eax, dword [ebp - 0x724]
mov esi, dword [ebp - 0x72c]
mov byte [eax + esi], cl
mov eax, dword [ebp + 0x14]
add al, cl
jmp 0x40c3d8
mov eax, dword [ebp + 0x14]
add dl, bl
add al, dl
mov dword [ebp + 0x14], eax
mov ebx, dword [ebp - 0x724]
add esi, 0x10
add edi, 0x10
mov dword [ebp - 0x72c], esi
cmp esi, dword [ebp + 0x10]
jl 0x40c2d0
push dword [ebp - 0x728]
lea eax, [ebp - 0x71e]
push 1
push 1
push eax
call fcn.00587677
mov al, byte [ebp - 0x71d]
add esp, 0x10
cmp al, byte [ebp - 0x71e]
jne 0x40c44c
cmp al, byte [ebp + 0x14]
jne 0x40c44c
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00585d34
mov esp, ebp
pop ebp
ret 0x10
push 0
push str.Error__
push str.fread_Error__
jmp 0x40c458
push 0
push str.Error__
push str.CheckCrc_Error__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00585d34
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40d000
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x695e80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov edx, 1
lea ecx, [ecx]
mov eax, edx
mov dword [ebp + esi*4 - 0x804], edx
and al, 0x80
mov dword [ebp + edx*4 - 0x404], esi
movsx ecx, al
lea eax, [edx + edx]
neg ecx
sbb ecx, ecx
inc esi
and ecx, 0x1b
xor ecx, eax
xor edx, ecx
and edx, 0xff
cmp esi, 0x100
jl 0x40d020
mov esi, 1
mov edx, 0x69ee00
lea esp, [esp]
mov eax, esi
mov dword [edx], esi
and al, 0x80
movsx ecx, al
neg ecx
sbb ecx, ecx
add esi, esi
and ecx, 0x1b
add edx, 4
xor esi, ecx
and esi, 0xff
cmp edx, 0x69ee28
jl 0x40d060
mov eax, 1
mov byte [0x69cc00], 0x63
mov byte [0x69dd63], 0
mov dword [ebp - 0x808], eax
mov edi, edi
mov ecx, dword [ebp + eax*4 - 0x404]
lea eax, [ebp - 0x408]
shl ecx, 2
sub eax, ecx
mov ebx, dword [eax]
mov ecx, ebx
sar ecx, 7
lea eax, [ebx + ebx]
or ecx, eax
and ecx, 0xff
mov edx, ecx
xor ebx, ecx
sar edx, 7
lea eax, [ecx + ecx]
or edx, eax
and edx, 0xff
mov esi, edx
xor ebx, edx
sar esi, 7
lea eax, [edx + edx]
or esi, eax
and esi, 0xff
mov ecx, esi
sar ecx, 7
lea eax, [esi + esi]
or ecx, eax
mov eax, dword [ebp - 0x808]
xor ecx, 0x63
and ecx, 0xff
xor ecx, esi
xor ebx, ecx
mov byte [eax + 0x69cc00], bl
mov byte [ebx + 0x69dd00], al
inc eax
mov dword [ebp - 0x808], eax
cmp eax, 0x100
jl 0x40d0a0
mov ebx, 0xff
xor esi, esi
mov dword [ebp - 0x80c], ebx
lea esp, [esp]
movzx edx, byte [esi + 0x69cc00]
mov eax, edx
and al, 0x80
movsx ecx, al
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
and ecx, 0xff
mov eax, ecx
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, ecx
movzx ecx, byte [esi + 0x69dd00]
mov dword [esi*4 + 0x69cd00], eax
rol eax, 8
mov dword [esi*4 + 0x69d100], eax
rol eax, 8
mov dword [esi*4 + 0x69d500], eax
rol eax, 8
mov dword [esi*4 + 0x69d900], eax
test ecx, ecx
je 0x40d1f3
mov ecx, dword [ebp + ecx*4 - 0x404]
mov eax, dword [ebp - 0x3cc]
add eax, ecx
cdq
idiv ebx
mov eax, dword [ebp - 0x3e0]
add eax, ecx
mov edi, dword [ebp + edx*4 - 0x804]
cdq
idiv ebx
mov eax, dword [ebp - 0x3d0]
add eax, ecx
mov ebx, dword [ebp + edx*4 - 0x804]
cdq
idiv dword [ebp - 0x80c]
mov eax, dword [ebp + edx*4 - 0x804]
mov dword [ebp - 0x808], eax
mov eax, dword [ebp - 0x3d8]
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov eax, dword [ebp + edx*4 - 0x804]
jmp 0x40d1ff
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x808], ebx
xor eax, eax
shl eax, 8
xor eax, dword [ebp - 0x808]
shl eax, 8
xor eax, ebx
mov ebx, 0xff
shl eax, 8
xor eax, edi
mov dword [esi*4 + 0x69de00], eax
rol eax, 8
mov dword [esi*4 + 0x69e200], eax
rol eax, 8
mov dword [esi*4 + 0x69e600], eax
rol eax, 8
mov dword [esi*4 + 0x69ea00], eax
inc esi
cmp esi, 0x100
jl 0x40d130
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00585d34
mov esp, ebp
pop ebp
ret
Function at 0x40d260
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x695e80]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, ecx
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
sub eax, 0x80
je 0x40d2a4
sub eax, 0x40
je 0x40d29c
sub eax, 0x40
jne 0x40d450
mov dword [edi], 0xe
jmp 0x40d2aa
mov dword [edi], 0xc
jmp 0x40d2aa
mov dword [edi], 0xa
push esi
push ecx
push edx
lea eax, [ebp - 0x11c]
lea esi, [edi + 8]
push eax
mov dword [edi + 4], esi
call fcn.0040d460
mov eax, dword [ebp - 0x11c]
add esp, 0xc
shl eax, 4
add eax, dword [ebp - 0x118]
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 0xc]
sub eax, 0x10
mov dword [esi + 0xc], ecx
add esi, 0x10
mov edi, dword [edi]
dec edi
test edi, edi
jle 0x40d439
jmp 0x40d300
movzx ecx, byte [eax + 3]
dec edi
movzx edx, byte [ecx + 0x69cc00]
movzx ecx, byte [eax + 2]
mov edx, dword [edx*4 + 0x69ea00]
movzx ecx, byte [ecx + 0x69cc00]
xor edx, dword [ecx*4 + 0x69e600]
movzx ecx, byte [eax + 1]
movzx ecx, byte [ecx + 0x69cc00]
xor edx, dword [ecx*4 + 0x69e200]
movzx ecx, byte [eax]
movzx ecx, byte [ecx + 0x69cc00]
xor edx, dword [ecx*4 + 0x69de00]
mov dword [esi], edx
movzx ecx, byte [eax + 4]
movzx edx, byte [ecx + 0x69cc00]
movzx ecx, byte [eax + 7]
mov edx, dword [edx*4 + 0x69de00]
movzx ecx, byte [ecx + 0x69cc00]
xor edx, dword [ecx*4 + 0x69ea00]
movzx ecx, byte [eax + 6]
movzx ecx, byte [ecx + 0x69cc00]
xor edx, dword [ecx*4 + 0x69e600]
movzx ecx, byte [eax + 5]
movzx ecx, byte [ecx + 0x69cc00]
xor edx, dword [ecx*4 + 0x69e200]
mov dword [esi + 4], edx
movzx ecx, byte [eax + 8]
movzx edx, byte [ecx + 0x69cc00]
movzx ecx, byte [eax + 0xb]
mov edx, dword [edx*4 + 0x69de00]
movzx ecx, byte [ecx + 0x69cc00]
xor edx, dword [ecx*4 + 0x69ea00]
movzx ecx, byte [eax + 0xa]
movzx ecx, byte [ecx + 0x69cc00]
xor edx, dword [ecx*4 + 0x69e600]
movzx ecx, byte [eax + 9]
movzx ecx, byte [ecx + 0x69cc00]
xor edx, dword [ecx*4 + 0x69e200]
mov dword [esi + 8], edx
movzx ecx, byte [eax + 0xc]
movzx edx, byte [ecx + 0x69cc00]
movzx ecx, byte [eax + 0xf]
mov edx, dword [edx*4 + 0x69de00]
movzx ecx, byte [ecx + 0x69cc00]
xor edx, dword [ecx*4 + 0x69ea00]
movzx ecx, byte [eax + 0xe]
movzx ecx, byte [ecx + 0x69cc00]
xor edx, dword [ecx*4 + 0x69e600]
movzx ecx, byte [eax + 0xd]
sub eax, 0x10
movzx ecx, byte [ecx + 0x69cc00]
xor edx, dword [ecx*4 + 0x69e200]
mov dword [esi + 0xc], edx
add esi, 0x10
test edi, edi
jg 0x40d300
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [esi + 0xc], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00585d34
mov esp, ebp
pop ebp
ret
Function at 0x40fac0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
mov eax, dword [0x695e80]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x69ee30], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
je 0x40fb26
push eax
push dword [ebp + 0xc]
push ecx
push str.ASSERT___file:_s_line:_d___s__do_you_debug_
push 0x69ee38
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x40004
push 0
push 0x69ee38
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x40fc2b
int3
test eax, eax
je 0x40fb45
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push ecx
push str._s_line:_d__msg:_s_
push eax
call fcn.0058729c
add esp, 0x14
jmp 0x40fb5d
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push ecx
push str._s_line:_d_
push eax
call fcn.0058729c
add esp, 0x10
push 0xff
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], 0
push 0
push eax
call fcn.00586c40
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x20e]
push eax
movzx eax, word [ebp - 0x212]
push eax
movzx eax, word [ebp - 0x214]
push eax
lea eax, [ebp - 0x104]
push str.._Log_Assert__4d_02d_02d.txt
push eax
call fcn.0058729c
add esp, 0x14
cmp dword [0x69ef88], 0
jne 0x40fc2b
push edi
push 0
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40fbf0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00585d34
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x2a0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp - 0x2a0]
shl esi, 0x10
push edi
or esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x69ef88]
cmp esi, 0xf4240
mov ecx, 1
cmova eax, ecx
pop esi
mov dword [0x69ef88], eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00585d34
mov esp, ebp
pop ebp
ret
Function at 0x40fc40
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a0
mov eax, dword [0x695e80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x303]
push edi
mov edi, dword [ebp + 0x10]
push 0x1ff
push 0
push eax
mov byte [ebp - 0x304], 0
call fcn.00586c40
add esp, 0xc
lea eax, [ebp - 0x304]
test edi, edi
je 0x40fc97
push edi
push dword [ebp + 0xc]
push esi
push str._s_line:_d__msg:_s_
push eax
call fcn.0058729c
add esp, 0x14
jmp 0x40fca9
push dword [ebp + 0xc]
push esi
push str._s_line:_d_
push eax
call fcn.0058729c
add esp, 0x10
push 0xff
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], 0
push 0
push eax
call fcn.00586c40
add esp, 0xc
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x30e]
push eax
movzx eax, word [ebp - 0x312]
push eax
movzx eax, word [ebp - 0x314]
push eax
lea eax, [ebp - 0x104]
push str.._Log_Debug__4d_02d_02d.txt
push eax
call fcn.0058729c
add esp, 0x14
cmp dword [0x69f1d0], 0
jne 0x40fdad
push 0
lea eax, [ebp - 0x39c]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40fd7b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x104]
push 0x5b61c8
push eax
call fcn.005870cb
mov esi, eax
add esp, 8
test esi, esi
je 0x40fdad
call fcn.0040f100
push eax
lea eax, [ebp - 0x304]
push eax
push str._stime:_s_n
push esi
call fcn.00587125
push esi
call fcn.00586f90
add esp, 0x14
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00585d34
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x3a0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp - 0x3a0]
shl esi, 0x10
push edi
or esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xf4240
jbe 0x40fd30
mov dword [0x69f1d0], 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00585d34
mov esp, ebp
pop ebp
ret
Function at 0x41e100
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a762d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x695e80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
push 0xa
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 1
call fcn.005815c0
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
call fcn.0041c350
lea edi, [esi + 0x94]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
lea ebx, [esi + 0xb8]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
lea eax, [esi + 0xdc]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
lea eax, [esi + 0x100]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
lea eax, [esi + 0x124]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [esi + 0x148], 0
mov dword [esi + 0x14c], 0
mov dword [esi + 0x150], 0
mov dword [esi + 0x154], 0
mov dword [esi + 0x158], 0
mov dword [esi + 0x15c], 0
push 0x80
push 0x5b7110
push 0x5ef118
mov byte [ebp - 4], 9
call fcn.00586e00
add esp, 0xc
mov dword [0x5ef114], 0x32
cmp dword [0x5ef10c], 0
jne 0x41e30d
push 0x64
push 0x5ef10c
call fcn.0041e580
mov eax, dword [0x5ef10c]
add esp, 8
mov dword [0x5ef110], eax
push 0x1e
mov ecx, edi
mov dword [esi + 0x64], 0
call fcn.004f06a0
push 0x1e
mov ecx, ebx
call fcn.004f06a0
push 0x1e
lea ecx, [esi + 0xdc]
call fcn.004f06a0
push 0x1e
lea ecx, [esi + 0x100]
call fcn.004f06a0
push 3
lea ecx, [esi + 0x124]
call fcn.004f06a0
mov dword [esi + 0x16e], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret