joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418f30
Capabilities:
Read .ini file

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x80]
push esi
push edi
push ebp
xor ebx, ebx
mov esi, ecx
push ebx
push esi
call fcn.00424a50
mov edx, dword [esp + 0x7c]
mov edi, 0x10
add esp, 0xc
cmp dword [esp + 0x84], edi
jae 0x418f61
lea edx, [esp + 0x70]
cmp dword [esp + 0x68], edi
jb 0x418f71
mov eax, dword [esp + 0x54]
mov dword [esp + 0x10], eax
jmp 0x418f79
lea ecx, [esp + 0x54]
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x4c], edi
mov ecx, dword [esp + 0x38]
jae 0x418f87
lea ecx, [esp + 0x38]
cmp dword [esp + 0x30], edi
mov eax, dword [esp + 0x1c]
jae 0x418f95
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x14]
push ebp
push esi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x419038
push esi
call fcn.0041fe87
add esp, 4
cmp dword [esp + 0x30], edi
mov ebp, eax
jb 0x418fcb
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041f829
add esp, 4
cmp dword [esp + 0x4c], edi
mov esi, 0xf
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jb 0x418fef
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0041f829
add esp, 4
cmp dword [esp + 0x68], edi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
jb 0x41900e
mov edx, dword [esp + 0x54]
push edx
call fcn.0041f829
add esp, 4
cmp dword [esp + 0x84], edi
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
jb 0x419030
mov eax, dword [esp + 0x70]
push eax
call fcn.0041f829
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret
cmp dword [esp + 0x30], edi
jb 0x41904b
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0041f829
add esp, 4
cmp dword [esp + 0x4c], edi
mov esi, 0xf
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jb 0x41906f
mov edx, dword [esp + 0x38]
push edx
call fcn.0041f829
add esp, 4
cmp dword [esp + 0x68], edi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
jb 0x41908e
mov eax, dword [esp + 0x54]
push eax
call fcn.0041f829
add esp, 4
cmp dword [esp + 0x84], edi
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
jb 0x4190b0
mov ecx, dword [esp + 0x70]
push ecx
call fcn.0041f829
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x419250
Capabilities:
Check mutex on windows

Disassembly:
test eax, eax
push edi
je 0x419264
test ecx, ecx
jbe 0x419264
mov dword [esi + 0x18], 1
mov dword [esi], ecx
jmp 0x41927e
push 0x2800
mov dword [esi + 0x18], 0
mov dword [esi], 0x2800
call fcn.0041ee32
add esp, 4
push 0
push 0
push 0
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
push 0xffffffffffffffff
push edi
mov dword [esi + 0x14], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi]
mov edx, dword [esi + 8]
push ecx
push 0
push edx
mov dword [esi + 4], 0
call fcn.00424a50
mov eax, dword [esi + 8]
add esp, 0xc
test edi, edi
mov dword [esi + 0xc], eax
je 0x4192c7
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
pop edi
ret
Function at 0x419480
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [edi + 0x24]
movzx ecx, word [eax + 0x22]
push ebx
push ebp
push esi
push ecx
call sub.WS2_32.dll_ntohs
mov edx, dword [edi + 0x24]
xor ebx, ebx
movzx ebp, ax
mov word [edx + 0x22], bx
mov esi, edi
mov eax, 0x24
movzx edx, byte [esi]
movzx ecx, bx
shr ecx, 8
xor ecx, edx
xor edx, edx
mov dh, bl
sub eax, 1
add esi, 1
xor dx, word [ecx*2 + 0x444678]
test eax, eax
movzx ebx, dx
jne 0x4194a3
cmp bx, bp
je 0x41950b
call fcn.00414fa0
push eax
push str.___s__
push 0x104
push 0x104
push 0x445be0
call fcn.0041f84a
add esp, 0x14
movzx eax, bp
push eax
movzx ecx, bx
push ecx
push 0x43c080
push 4
call fcn.004154c0
add esp, 0x10
xor al, al
pop esi
pop ebp
pop ebx
ret
mov edx, dword [edi + 0x24]
movzx eax, word [edx]
push eax
call sub.WS2_32.dll_ntohs
mov ecx, dword [edi + 0x24]
mov word [ecx], ax
mov edx, dword [edi + 0x24]
mov eax, dword [edx + 4]
push eax
call sub.WS2_32.dll_ntohl
mov ecx, dword [edi + 0x24]
mov dword [ecx + 4], eax
mov edx, dword [edi + 0x24]
movzx eax, word [edx + 0x18]
push eax
call sub.WS2_32.dll_ntohs
mov ecx, dword [edi + 0x24]
mov word [ecx + 0x18], ax
mov edx, dword [edi + 0x24]
movzx eax, word [edx + 0x1a]
push eax
call sub.WS2_32.dll_ntohs
mov ecx, dword [edi + 0x24]
mov word [ecx + 0x1a], ax
mov edx, dword [edi + 0x24]
mov eax, dword [edx + 0x1c]
push eax
call sub.WS2_32.dll_ntohl
mov ecx, dword [edi + 0x24]
mov dword [ecx + 0x1c], eax
mov edx, dword [edi + 0x24]
movzx eax, word [edx + 0x20]
push eax
call sub.WS2_32.dll_ntohs
mov ecx, dword [edi + 0x24]
mov word [ecx + 0x20], ax
mov edx, dword [edi + 0x24]
cmp word [edx], 0x4452
je 0x4195be
call fcn.00414fa0
push eax
push str.___s__
push 0x104
push 0x104
push 0x445be0
call fcn.0041f84a
add esp, 0x14
push str.ProcessCommHeaderBuffer::OrderInHeader:_quit_OrderInHeader__usCropID___DR_CORP_ID
push 4
call fcn.004154c0
add esp, 8
xor al, al
pop esi
pop ebp
pop ebx
ret
call fcn.00414fa0
push eax
push str.___s__
push 0x104
push 0x104
push 0x445be0
call fcn.0041f84a
add esp, 0x14
push str.ProcessCommHeaderBuffer::OrderInHeader:_quit_OrderInHeader
push 4
call fcn.004154c0
add esp, 8
pop esi
pop ebp
mov al, 1
pop ebx
ret
Function at 0x41be60
Capabilities:
Hash data with crc32

Disassembly:
mov eax, dword [edx]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x43dfb0]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
add eax, 1
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x43dfb0]
mov dword [edx + 8], ecx
ret

Function at 0x41beb0
Capabilities:
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
xor al, bl
movzx ebx, al
xor ebx, edx
shr edx, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x43dfb0]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
add edx, 1
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x43dfb0]
pop ebx
mov dword [esi + 8], ecx
ret

Function at 0x41c620
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x41c652
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41c648
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x41c665
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.00423740
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret

Function at 0x41c680
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x41c6b3
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41c6ad
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x41c6df
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x41c6c5
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.00423740
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x41c6f6
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x41c6f0
cmp byte [esi + 8], 0
je 0x41c6f0
or eax, 0xffffffff
add esp, 8
ret
Function at 0x41c7e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x41c825
cmp byte [esi + 1], 0
je 0x41c82d
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x41c842
cmp byte [esi + 1], 0
je 0x41c834
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x41c84b
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x41c7fe
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x41c84b
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
cmp ebp, edi
mov dword [esp + 0xc], edi
jae 0x41c85f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.0041fbce
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x41c87d
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
cmp edi, eax
mov dword [esp + 0x18], 0xffffffff
jbe 0x41c993
jmp 0x41c8a0
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
cmp eax, edi
mov dword [esp + 0x14], edi
ja 0x41c8b1
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
cmp ebp, 0x404
mov dword [esp + 0x20], eax
jbe 0x41c8ca
mov ebp, 0x404
cmp byte [esi], 0
je 0x41c8ef
cmp byte [esi + 1], 0
je 0x41c993
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x41c8f2
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x41c91a
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41c914
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x41c940
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x41c92b
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.00423740
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x41c993
lea eax, [ebp - 3]
test eax, eax
jl 0x41c97e
sub eax, 1
cmp byte [eax + ebx], 0x50
jne 0x41c96e
cmp byte [eax + ebx + 1], 0x4b
jne 0x41c96e
cmp byte [eax + ebx + 2], 5
jne 0x41c96e
cmp byte [eax + ebx + 3], 6
je 0x41c974
test eax, eax
jge 0x41c950
jmp 0x41c97e
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x41c993
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x41c894
push ebx
call fcn.0041fc91
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x41d2c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x41d2d8
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x41d2cd
cmp dword [edi + 0x7c], ebx
je 0x41d2e7
call fcn.0041d6b0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0041d030
add esp, 0xc
test eax, eax
je 0x41d30d
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push ebp
push 0x84
call fcn.0041fbce
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x41d34f
push 0x4000
call fcn.0041fbce
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
mov dword [ebp], eax
mov dword [ebp + 0x44], ecx
mov dword [ebp + 0x48], edx
mov dword [ebp + 0x4c], ebx
jne 0x41d35b
push ebp
call fcn.0041fc91
add esp, 4
pop ebp
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [ebp + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [ebp + 0x54], ecx
mov dword [ebp + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [ebp + 0x64], edx
mov ecx, dword [edi]
mov dword [ebp + 0x60], ecx
mov edx, dword [edi + 0xc]
push esi
mov dword [ebp + 0x68], edx
cmp eax, ebx
mov dword [ebp + 0x18], ebx
jne 0x41d3a4
lea esi, [ebp + 4]
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
call fcn.0041c120
test eax, eax
jne 0x41d3a4
mov dword [ebp + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [ebp + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [ebp + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [ebp + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x41d3ce
mov cl, byte [edi + 0x39]
mov byte [ebp + 0x80], cl
jmp 0x41d3d7
mov dl, byte [edi + 0x3f]
mov byte [ebp + 0x80], dl
mov al, byte [ebp + 0x6c]
mov esi, dword [esp + 0x20]
neg al
lea edx, [ebp + 0x70]
mov dword [edx], 0x12345678
mov dword [ebp + 0x74], 0x23456789
mov dword [ebp + 0x78], 0x34567890
sbb eax, eax
and eax, 0xc
cmp esi, ebx
mov dword [ebp + 0x7c], eax
je 0x41d413
mov cl, byte [esi]
cmp cl, bl
je 0x41d413
call fcn.0041be60
add esi, 1
jne 0x41d403
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 8], ebx
pop esi
mov dword [edi + 0x7c], ebp
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x41d810
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [edi], 0
push esi
jne 0x41d8ae
cmp dword [edi + 4], 0xffffffff
jne 0x41d8ae
lea esi, [edi + 0x244]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d840
sub eax, edx
sar eax, 1
movzx eax, word [edi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x41d876
cmp ax, 0x2f
je 0x41d876
push 0x43a1fc
push 0x104
push esi
call fcn.00421b1a
add esp, 0xc
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x10]
call fcn.0041c580
add esp, 4
test eax, eax
jne 0x41d894
mov eax, dword [esp + 0xc]
pop esi
pop ecx
ret 4
call fcn.0041c9b0
mov dword [edi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop esi
pop ecx
ret 4
mov eax, 0x1000000
pop esi
pop ecx
ret 4

Function at 0x41ded0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x443284]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x41c]
test ebx, ebx
push esi
mov esi, dword [esp + 0x424]
je 0x41df0d
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41df0d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [esi]
test ax, ax
je 0x41dfc0
mov ecx, esi
mov edx, esi
movzx eax, ax
cmp ax, 0x2f
je 0x41df2c
cmp ax, 0x5c
jne 0x41df2e
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x41df20
cmp ecx, esi
je 0x41df72
sub ecx, esi
sar ecx, 1
push edi
add ecx, ecx
mov edi, ecx
push edi
lea eax, [esp + 0x218]
push esi
push eax
call fcn.00423740
lea ecx, [esp + 0x220]
push ecx
push ebx
mov word [esp + edi + 0x228], 0
call fcn.0041ded0
add esp, 0x14
pop edi
test ebx, ebx
mov word [esp + 8], 0
je 0x41df90
push ebx
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.00421330
add esp, 0xc
push esi
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.00421b1a
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41dfc0
push 0
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x418]
pop esi
pop ebx
xor ecx, esp
call fcn.0041f134
add esp, 0x414
ret
Function at 0x41ead0
Capabilities:
Encode data using xor
Hash data with crc32
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [esp + 0x14]
mov eax, ebx
je 0x41ebb0
mov eax, dword [esi + 0x3c]
push ebp
xor ebp, ebp
cmp eax, ebp
je 0x41eb04
cmp dword [esi + 0x40], edi
jae 0x41eb04
push eax
call fcn.0041f829
add esp, 4
mov dword [esi + 0x3c], ebp
cmp dword [esi + 0x3c], ebp
jne 0x41eb1b
lea eax, [edi + edi]
push eax
call fcn.0041f09a
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.00423740
add esp, 0xc
cmp edi, ebp
jbe 0x41ebac
mov edx, dword [esi + 0x3c]
mov bl, byte [edx + ebp]
mov edi, dword [esi + 0x30]
mov eax, dword [esi + 0x38]
movzx ecx, bl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x43c7d0]
shr edi, 8
xor ecx, edi
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
add ecx, 1
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x43c7d0]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, bl
mov byte [ecx + ebp], al
add ebp, 1
cmp ebp, dword [esp + 0x18]
jb 0x41eb31
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x3c]
pop ebp
mov edx, dword [esi + 0x20]
test edx, edx
je 0x41ebe9
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x41ebd1
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.00423740
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41ec0a
push 0
lea edx, [esp + 0x18]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
ret 8

Function at 0x41f134
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x443284]
jne 0x41f13e
repz ret
jmp fcn.00424b28
Function at 0x4204d9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x420506
call fcn.00421818
mov dword [eax], esi
call fcn.00421805
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0041fb1c
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4204e2
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x420535
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042182b
pop ecx
call fcn.00421805
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x42055c
test al, 1
je 0x42055c
test byte [esp + 0xc], 2
je 0x42055c
call fcn.00421818
mov dword [eax], 5
call fcn.00421805
mov dword [eax], 0xd
jmp 0x42052c
xor eax, eax
pop esi
ret

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4205a1
call fcn.00421818
mov dword [eax], esi
call fcn.00421805
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0041fb1c
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x42057d
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4205d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042182b
pop ecx
call fcn.00421805
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4205f7
test al, 1
je 0x4205f7
test byte [esp + 0xc], 2
je 0x4205f7
call fcn.00421818
mov dword [eax], 5
call fcn.00421805
mov dword [eax], 0xd
jmp 0x4205c7
xor eax, eax
pop esi
ret

Function at 0x421668
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x421695
call fcn.00421818
mov dword [eax], esi
call fcn.00421805
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0041fb1c
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4216b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042182b
pop ecx
jmp 0x421690
test byte [esp + 0xc], 0x80
je 0x4216bf
and eax, 0xfffffffe
jmp 0x4216c2
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4216a4
xor eax, eax
pop esi
ret
Function at 0x4257c5
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 + 0x4432e0]
je 0x4257e0
inc edi
cmp edi, 0x17
jb 0x4257d1
cmp edi, 0x17
jae 0x425960
push ebp
push 3
call fcn.0042e2d8
cmp eax, 1
pop ecx
je 0x42592c
push 3
call fcn.0042e2d8
test eax, eax
pop ecx
jne 0x425814
cmp dword [0x4430d0], 1
je 0x42592c
cmp ebx, 0xfc
je 0x42595f
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4453e8
push ebp
call fcn.0041fe8c
add esp, 0xc
test eax, eax
je 0x42584a
push esi
push esi
push esi
push esi
push esi
call fcn.0041fa20
add esp, 0x14
push 0x104
mov esi, 0x445401
push esi
push 0
mov byte [0x445505], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42588e
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0041fe8c
add esp, 0xc
test eax, eax
je 0x42588e
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041fa20
add esp, 0x14
push esi
call fcn.00422460
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4258d3
push esi
call fcn.00422460
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4456fc
push 0x4392ec
sub ecx, eax
push ecx
push eax
call fcn.004221fe
add esp, 0x14
test eax, eax
je 0x4258d3
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0041fa20
add esp, 0x14
jmp 0x4258d5
xor esi, esi
push 0x4392e8
push ebx
push ebp
call fcn.0042218d
add esp, 0xc
test eax, eax
je 0x4258f5
push esi
push esi
push esi
push esi
push esi
call fcn.0041fa20
add esp, 0x14
push dword [edi*8 + 0x4432e4]
push ebx
push ebp
call fcn.0042218d
add esp, 0xc
test eax, eax
je 0x425917
push esi
push esi
push esi
push esi
push esi
call fcn.0041fa20
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0042e11b
add esp, 0xc
jmp 0x42595f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x42595f
cmp ebp, 0xffffffff
je 0x42595f
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4432e4]
push dword [esi]
call fcn.00422460
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