joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a5c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ac
mov eax, dword [0x467900]
push ebx
push esi
push edi
push 0
push 0x466294
push 0x466108
mov dword [esp + 0x1c0], eax
mov eax, dword [0x468d88]
push 0
push eax
call fcn.004400d3
mov dword [esp + 0x28], eax
add esp, 0x14
mov word [esp + 0xa8], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0xaa]
rep stosd dword es:[edi], eax
mov ecx, dword [0x468d7c]
push 5
push 0x7a62
push ecx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edx, dword [0x468d7c]
mov esi, eax
push esi
push edx
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0xc], eax
mov eax, dword [0x468d7c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea edi, [esi + 1]
push edi
call fcn.0043f0db
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov dword [esp + 0xc], eax
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, esi
mov esi, dword [esp + 0xc]
mov eax, ecx
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov edx, dword [ebp + 8]
mov ecx, 0xf
mov esi, str.Sound_Files__.WAV_.MID__
lea edi, [esp + 0x6c]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
lea eax, [esp + 0x6c]
mov dword [esp + 0x18], 0x4c
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
lea edx, [esp + 0x18]
lea ecx, [esp + 0xa8]
push edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], 0x104
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], str.Select_Sound
mov word [esp + 0x56], si
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], fcn.0040a060
mov dword [esp + 0x64], esi
mov dword [esp + 0x50], 0x800a4
call dword [sym.imp.comdlg32.dll_GetOpenFileNameA]
cmp ebx, esi
je 0x40a73d
push ebx
call fcn.0043fbb5
add esp, 4
mov eax, dword [esp + 0x34]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a744
sub eax, edx
mov dword [esp + 0x10], eax
je 0x40a78e
mov edi, dword [esp + 0x14]
lea esi, [edi + 0xe4]
lea eax, [esp + 0xa8]
push esi
push eax
call fcn.00440afe
add esp, 8
test eax, eax
je 0x40a78e
lea eax, [esp + 0xa8]
mov edx, esi
mov ecx, eax
sub edx, ecx
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40a780
mov byte [edi + 0x1d], 1
mov ecx, dword [esp + 0x1b4]
call fcn.0043f599
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b360
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
sub esp, 8
mov eax, dword [0x468d7c]
push ebx
push ebp
push esi
push edi
push 5
push 0x7d3
push eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ecx, dword [0x468d7c]
mov ebp, eax
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edx, dword [0x468d7c]
push ebp
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea edi, [esi + 1]
push edi
call fcn.0043f0db
mov ebx, eax
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov dword [esp + 0x10], eax
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, esi
mov esi, dword [esp + 0x10]
mov eax, ecx
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [0x468d84]
mov edx, dword [0x468d7c]
push 0
push 0x40a7b0
push ecx
push ebx
push edx
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
test ebx, ebx
je 0x40b419
push ebx
call fcn.0043fbb5
add esp, 4
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
jmp fcn.00401a20

Function at 0x40cbd0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x24
xor al, al
mov byte [esp + 4], al
mov byte [esp + 3], al
movzx eax, word [esp + 0x2c]
mov ecx, eax
and ecx, 0x1f
mov byte [esp + 5], 0x10
mov byte [esp + 6], 0x18
mov byte [esp + 7], 0x20
mov byte [esp + 8], 0x28
mov byte [esp + 9], 0x30
mov byte [esp + 0xa], 0x38
mov byte [esp + 0xb], 0x40
mov byte [esp + 0xc], 0x48
mov byte [esp + 0xd], 0x50
mov byte [esp + 0xe], 0x58
mov byte [esp + 0xf], 0x60
mov byte [esp + 0x10], 0x68
mov byte [esp + 0x11], 0x70
mov byte [esp + 0x12], 0x78
mov byte [esp + 0x13], 0x80
mov byte [esp + 0x14], 0x88
mov byte [esp + 0x15], 0x90
mov byte [esp + 0x16], 0x98
mov byte [esp + 0x17], 0xa0
mov byte [esp + 0x18], 0xa8
mov byte [esp + 0x19], 0xb0
mov byte [esp + 0x1a], 0xb8
mov byte [esp + 0x1b], 0xc0
mov byte [esp + 0x1c], 0xc8
mov byte [esp + 0x1d], 0xd0
mov byte [esp + 0x1e], 0xd8
mov byte [esp + 0x1f], 0xe0
mov byte [esp + 0x20], 0xe8
mov byte [esp + 0x21], 0xf0
mov byte [esp + 0x22], 0xf8
mov byte [esp + 0x23], 0xff
mov dl, byte [esp + ecx + 4]
mov ecx, eax
shr ecx, 5
shr eax, 0xa
and ecx, 0x1f
and eax, 0x1f
mov al, byte [esp + eax + 4]
mov byte [esp], dl
mov dl, byte [esp + ecx + 4]
mov byte [esp + 2], al
mov eax, dword [esp + 0x28]
mov byte [esp + 1], dl
mov ecx, dword [esp]
mov dword [eax], ecx
add esp, 0x24
ret 8
Function at 0x410270
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4102a0
push esi
call fcn.00412350
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x410299
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x410317
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x410307
mov eax, dword [esi + 8]
test eax, eax
je 0x4102c4
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x410303
cmp eax, 2
je 0x410307
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4102b7
cmp eax, 3
je 0x4102ea
cmp eax, 1
jne 0x4102b7
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov edx, dword [eax + 4]
cmp edx, dword [eax + 8]
jl 0x4102b7
mov ecx, dword [esi + 0x11c]
add dword [eax + 8], ecx
jmp 0x4102b7
xor al, al
pop esi
ret
mov edx, dword [esi + 0x7c]
mov dword [esi + 0x84], edx
call fcn.0040ff50
pop esi
ret
cmp eax, 0xcc
je 0x410337
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
mov ecx, dword [esi]
mov edx, dword [esi + 0x14]
mov dword [ecx + 0x18], edx
mov eax, dword [esi]
push esi
call dword [eax]
add esp, 4
call fcn.0040ff50
pop esi
ret
Function at 0x432e30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x432e3b
xor eax, eax
ret
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
not esi
jb 0x432f33
mov ebp, edi
shr ebp, 3
xor edx, edx
mov dl, byte [ecx]
mov eax, esi
shr eax, 8
sub edi, 8
xor edx, esi
and edx, 0xff
mov esi, dword [edx*4 + 0x458778]
xor edx, edx
mov dl, byte [ecx + 1]
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x458778]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x458778]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x458778]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x458778]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x458778]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x458778]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x458778]
shr eax, 8
xor eax, esi
inc ecx
dec ebp
mov esi, eax
jne 0x432e56
test edi, edi
je 0x432f52
xor eax, eax
mov al, byte [ecx]
xor eax, esi
and eax, 0xff
mov ebp, dword [eax*4 + 0x458778]
shr esi, 8
xor esi, ebp
inc ecx
dec edi
jne 0x432f37
pop edi
mov eax, esi
pop esi
not eax
pop ebp
ret
Function at 0x43d850
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x40
push esi
push edi
call fcn.00440d6f
lea ecx, [eax + eax*4]
mov eax, 0x80010003
imul ecx
add edx, ecx
xor eax, eax
mov byte [esp + 8], 0
mov ecx, 0xf
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
sar edx, 0xe
mov esi, edx
stosw word es:[edi], ax
shr esi, 0x1f
add esi, edx
push esi
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0x45dce4
push eax
call fcn.0043fc99
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp esi, 4
jne 0x43d8b0
pop edi
mov eax, esi
pop esi
add esp, 0x40
ret
cmp esi, 3
jne 0x43d8bd
pop edi
mov eax, esi
pop esi
add esp, 0x40
ret
cmp esi, 2
jne 0x43d8ca
pop edi
mov eax, esi
pop esi
add esp, 0x40
ret
cmp esi, 1
jne 0x43d8d7
pop edi
mov eax, esi
pop esi
add esp, 0x40
ret
xor eax, eax
test esi, esi
pop edi
setne al
pop esi
add esp, 0x40
ret

Function at 0x43db00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x104
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
sub esi, eax
mov ebx, ecx
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x3f
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push str.xxxxxxxxxxxxxxxx_SlideShow_Transition_took_:__d_milliseconds_xxxxxxxxxxxxxxx_n
push eax
mov dword [esp + 0x18], esi
call fcn.0043fc99
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebx + 0xb4]
test eax, eax
je 0x43dbb5
mov eax, dword [ebx + 0xb0]
test eax, eax
je 0x43dbb5
cmp esi, 0x5dc
jge 0x43db91
fld dword [ebx + 0xbc]
fild dword [esp + 0xc]
fmul dword [0x45dd48]
fmul st(1)
fsubr st(1)
fstp dword [ebx + 0xbc]
fstp st(0)
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp esi, 0x1388
jle 0x43dbb5
fld dword [ebx + 0xbc]
fild dword [esp + 0xc]
fmul dword [0x45dd48]
fmul st(1)
fadd st(1)
fstp dword [ebx + 0xbc]
fstp st(0)
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x440f64
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x45dfb8
call fcn.00442560
mov edi, 0x94
mov eax, edi
call fcn.004481c0
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 [0x46917c], ecx
mov eax, dword [esi + 4]
mov dword [0x469188], eax
mov edx, dword [esi + 8]
mov dword [0x46918c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x469180], esi
cmp ecx, 2
je 0x440fc4
or esi, 0x8000
mov dword [0x469180], esi
shl eax, 8
add eax, edx
mov dword [0x469184], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x440fff
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x440fff
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x441017
cmp eax, 0x20b
je 0x441004
mov dword [ebp - 0x1c], esi
jmp 0x44102b
cmp dword [ecx + 0x84], 0xe
jbe 0x440fff
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x441025
cmp dword [ecx + 0x74], 0xe
jbe 0x440fff
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00443bdc
pop ecx
test eax, eax
jne 0x44103f
push 0x1c
call fcn.00440eea
pop ecx
call fcn.00445a4f
test eax, eax
jne 0x441050
push 0x10
call fcn.00440eea
pop ecx
call fcn.00448137
mov dword [ebp - 4], esi
call fcn.00447eed
test eax, eax
jge 0x441069
push 0x1b
call fcn.00440ec5
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x46aa14], eax
call fcn.00447dcb
mov dword [0x469168], eax
call fcn.00447d29
test eax, eax
jge 0x44108f
push 8
call fcn.00440ec5
pop ecx
call fcn.00447af6
test eax, eax
jge 0x4410a0
push 9
call fcn.00440ec5
pop ecx
push 1
call fcn.00441253
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4410b6
push eax
call fcn.00440ec5
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00447a99
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4410d7
movzx eax, word [ebp - 0x40]
jmp 0x4410da
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00408550
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4410f8
push edi
call fcn.00441380
call fcn.004413a2
jmp 0x44112a
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0044259b
ret
Function at 0x4412bd
Capabilities:
Terminate process

Disassembly:
push 8
push 0x45dfe0
call fcn.00442560
push 8
call fcn.00442cc7
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4691bc], esi
jne 0x4412f1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4691b8], esi
mov al, byte [ebp + 0x10]
mov byte [0x4691b4], al
cmp dword [ebp + 0xc], edi
jne 0x44133b
cmp dword [0x46aa0c], edi
je 0x44132b
mov eax, dword [0x46aa08]
sub eax, 4
mov dword [0x46aa08], eax
cmp eax, dword [0x46aa0c]
jb 0x44132b
mov eax, dword [eax]
cmp eax, edi
je 0x44130c
call eax
jmp 0x44130c
push 0x466038
mov eax, 0x466030
call fcn.0044121d
pop ecx
push 0x466044
mov eax, 0x46603c
call fcn.0044121d
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x44136c
cmp dword [ebp + 0x10], edi
jne 0x44137a
mov dword [0x4691bc], esi
push dword [ebp + 8]
call fcn.004411db
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x441379
push 8
call fcn.00442bfa
pop ecx
ret
call fcn.0044259b
ret
Function at 0x442933
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 0x442961
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 0x442968
cmp ebx, dword [eax + 4]
jae 0x442968
xor eax, eax
jmp 0x442b58
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x442979
xor eax, eax
inc eax
jmp 0x442b57
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x44298f
cmp ecx, edx
jae 0x442ad4
cmp dword [eax + 4], 0
je 0x442998
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x442980
cmp dword [ebp + 8], 0
je 0x4429ba
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x442ad4
cmp eax, esi
jae 0x442ad4
mov eax, dword [0x4691f0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4429df
cmp dword [esi*4 + 0x4691f8], edi
je 0x442ad8
inc esi
cmp esi, eax
jl 0x4429cd
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x442b54
cmp dword [ebp - 8], 0x1000000
jne 0x442b54
test byte [ebp - 0xc], 0xcc
je 0x442a5d
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x442b54
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x442b54
cmp word [eax + 0x18], 0x10b
jne 0x442b54
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x442b54
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x442a5d
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x442a5d
test byte [ecx + 0x27], 0x80
jne 0x442ad4
push 1
push 0x469238
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x442971
mov ecx, dword [0x4691f0]
test ecx, ecx
mov edx, ecx
jle 0x442a91
lea eax, [ecx*4 + 0x4691f4]
cmp dword [eax], edi
je 0x442a91
dec edx
sub eax, 4
test edx, edx
jg 0x442a85
test edx, edx
jne 0x442ac2
push 0xf
pop ebx
cmp ecx, ebx
jg 0x442a9e
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x442ab6
lea eax, [edx*4 + 0x4691f8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x442aa4
cmp ecx, 0x10
jge 0x442ac2
inc ecx
mov dword [0x4691f0], ecx
push 0
push 0x469238
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x442971
xor eax, eax
jmp 0x442b57
test esi, esi
jle 0x442971
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x469238
call ebx
test eax, eax
jne 0x442971
cmp dword [esi*4 + 0x4691f8], edi
je 0x442b2e
mov eax, dword [0x4691f0]
lea esi, [eax - 1]
test esi, esi
jl 0x442b1c
cmp dword [esi*4 + 0x4691f8], edi
je 0x442b18
dec esi
jns 0x442b0c
test esi, esi
jge 0x442b2c
cmp eax, 0x10
jge 0x442b27
inc eax
mov dword [0x4691f0], eax
lea esi, [eax - 1]
jmp 0x442b2e
je 0x442b46
xor ecx, ecx
test esi, esi
jl 0x442b46
lea eax, [ecx*4 + 0x4691f8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x442b34
push 0
push 0x469238
call ebx
jmp 0x442971
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x447714
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x467900]
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 + 0x468070]
je 0x447749
inc eax
cmp eax, 0x13
jb 0x44773a
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x468070]
jne 0x44786f
mov eax, dword [0x469170]
cmp eax, 1
je 0x447847
cmp eax, edx
jne 0x447779
cmp dword [0x4679a8], 1
je 0x447847
cmp ecx, 0xfc
je 0x44786f
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 0x4477af
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00445c80
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00442110
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4477e3
mov eax, edi
push eax
call fcn.00442110
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x45e0bc
push edi
call fcn.00445df0
add esp, 0x10
push edi
call fcn.00442110
push dword [esi + 0x468074]
mov ebx, eax
call fcn.00442110
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004481c0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00445c80
push edi
push ebx
call fcn.00445c90
push 0x45e0b8
push ebx
call fcn.00445c90
push dword [esi + 0x468074]
push ebx
call fcn.00445c90
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0044b0e5
add esp, 0x2c
jmp 0x44786f
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x468074]
push dword [esi]
call fcn.00442110
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.0043f599
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x44a72d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x44a901
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x469680]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x44a901
test cl, 0x48
je 0x44a798
cmp byte [eax + 5], 0xa
je 0x44a798
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44a7ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x44a7d2
call fcn.0044ace8
mov dword [eax], 9
call fcn.0044acf1
mov dword [eax], esi
jmp 0x44a7e2
cmp eax, 0x6d
je 0x44a901
push eax
call fcn.0044acfa
pop ecx
or eax, 0xffffffff
jmp 0x44a903
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x44a8fc
test eax, eax
je 0x44a811
cmp byte [ebx], 0xa
jne 0x44a811
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x44a81a
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x44a8f6
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x44a8e6
cmp al, 0xd
je 0x44a84c
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x44a8d8
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x44a866
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x44a861
add dword [ebp + 0x10], 2
jmp 0x44a8ba
mov dword [ebp + 0x10], eax
jmp 0x44a8d4
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44a88e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x44a8d4
cmp dword [ebp - 0xc], 0
je 0x44a8d4
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x44a8af
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x44a8ba
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x44a8d7
cmp ebx, dword [ebp + 0xc]
jne 0x44a8bf
cmp byte [ebp - 1], 0xa
jne 0x44a8bf
mov byte [ebx], 0xa
jmp 0x44a8d7
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0044bb62
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x44a8d8
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x44a830
jmp 0x44a8f6
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x44a8f6
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x44a903
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret