joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4438e0
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [0x56e578]
sub esp, 0x418
test eax, eax
je 0x4438ff
push eax
call fcn.0042d717
add esp, 4
xor eax, eax
mov dword [0x56e578], eax
mov ecx, dword [0x56e57c]
test ecx, ecx
je 0x443921
push ecx
call fcn.00418550
mov eax, dword [0x56e578]
add esp, 4
mov dword [0x56e57c], 0
push esi
mov esi, dword [esp + 0x420]
test esi, esi
push edi
je 0x4439c2
cmp byte [esi], 0x3e
push ebx
mov ebx, dword [esp + 0x42c]
jne 0x443945
add esi, 1
or ebx, 1
test bl, 2
je 0x4439a2
lea edx, [esp + 0xc]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x443952
lea eax, [esp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x443965
sub eax, edx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea edi, [esp + eax + 0x10]
xor esi, esi
lea ecx, [ecx]
add esi, 1
push esi
push str.__d.log
push edi
call fcn.00500a32
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call ebp
test eax, eax
jge 0x443980
lea esi, [esp + 0x10]
pop ebp
test bl, 1
pop ebx
je 0x4439af
push 0x53f608
jmp 0x4439b4
push 0x53f60c
push esi
call fcn.00500fa5
mov dword [0x56e578], eax
add esp, 8
or edi, 0xffffffff
test eax, eax
jne 0x4439f5
cmp dword [0x53f498], edi
jne 0x4439d6
mov dword [0x53f498], eax
test esi, esi
je 0x443a46
push esi
push str.Failed_to_open_log_file___s__n
push 1
call fcn.004431d0
add esp, 0xc
mov eax, edi
pop edi
pop esi
add esp, 0x418
ret
cmp dword [0x53f498], 0
jne 0x443a04
mov dword [0x53f498], edi
test esi, esi
jne 0x443a51
xor eax, eax
cmp dword [0x56e580], 0
mov dword [0x56e57c], eax
jne 0x443a46
push str.PVIEW_FLUSH_LOG
call fcn.0042d8c2
add esp, 4
test eax, eax
je 0x443a3c
push eax
call fcn.004185f4
add esp, 4
test eax, eax
mov dword [0x56e580], edi
je 0x443a46
mov dword [0x56e580], 1
pop edi
xor eax, eax
pop esi
add esp, 0x418
ret
push esi
call fcn.0042efd2
add esp, 4
test eax, eax
jne 0x443a0a
push str.Strdup_failure___Enough_memory__n
call fcn.00443520
int3
Function at 0x471b00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push 0x5430f0
push ebp
call fcn.00500fa5
mov esi, eax
add esp, 8
test esi, esi
jne 0x471b34
push ebp
push str.Failed_to_open___s__for_reading_n
push 1
push 0x3e9
call fcn.00442f20
add esp, 0x10
pop esi
xor eax, eax
pop ebp
ret
push ebx
push edi
push 2
push 0
push esi
call fcn.00501924
push esi
call fcn.0050182c
push 0
push 0
push esi
mov edi, eax
call fcn.00501924
lea eax, [edi + 1]
push eax
call fcn.00443680
push esi
push edi
mov ebx, eax
push 1
push ebx
call fcn.00501672
add esp, 0x30
cmp eax, edi
jae 0x471b90
push ebp
push str.Failed_to_read___s__n
push 1
push 0x3ea
call fcn.00442f20
push ebx
call fcn.00418550
add esp, 0x14
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
ret
push esi
call fcn.0042d717
push 0x10
push 1
mov byte [ebx + edi], 0
call fcn.004436f0
mov esi, eax
lea ecx, [esi + 4]
push ecx
push 0
push ebx
call fcn.00471a00
add esp, 0x18
pop edi
mov dword [esi + 8], eax
pop ebx
mov eax, esi
pop esi
pop ebp
ret

Function at 0x472720
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
ret

Function at 0x472740
Capabilities:
Create directory
Get file attributes

Disassembly:
sub esp, 0x81c
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
mov esi, dword [esp + 0x828]
push esi
mov dword [esp + 0xc], 0
call ebp
test eax, eax
jl 0x47276f
pop esi
xor eax, eax
pop ebp
add esp, 0x81c
ret
lea edx, [esp + 0xc]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x472777
push ebx
push edi
lea eax, [esp + 0x15]
push 0x2f
push eax
call fcn.0046ebe0
mov esi, eax
add esp, 8
test esi, esi
je 0x472815
mov edi, dword [esp + 0x834]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x14]
push ecx
mov byte [esi], 0
call ebp
test eax, eax
jge 0x4727fe
test edi, edi
je 0x4727ec
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x418]
push str.Create_path___s___y_n___
push eax
call fcn.00500a32
push 1
lea ecx, [esp + 0x424]
push 0x543330
push ecx
call fcn.00443350
add esp, 0x18
cmp eax, 0x79
jne 0x472824
push 0
lea edx, [esp + 0x18]
push edx
call ebx
test eax, eax
je 0x472832
add dword [esp + 0x10], 1
mov byte [esi], 0x2f
push 0x2f
add esi, 1
push esi
call fcn.0046ebe0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4727a7
mov eax, dword [esp + 0x10]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x81c
ret
pop edi
pop ebx
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x81c
ret
lea eax, [esp + 0x14]
push eax
push str.Failed_to_create_path___s__n
push 1
push 0x3f1
call fcn.00442f20
add esp, 0x10
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x81c
ret
Function at 0x472be0
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
test eax, eax
jne 0x472bef
add esp, 0x10
ret
push ebx
push ebp
push edi
xor edi, edi
push edi
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
call fcn.00472910
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
add esp, 0x10
push esi
push edi
lea eax, [esp + 0x1c]
push 0x54365c
push eax
call fcn.00500a32
lea ecx, [esp + 0x24]
push ecx
push ebx
push ebp
call fcn.004729f0
add esp, 0x18
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test eax, eax
jl 0x472c80
push esi
call fcn.00418550
add edi, 1
add esp, 4
cmp edi, 0x3e8
jl 0x472c11
push ebp
call fcn.00418550
push ebx
call fcn.00418550
mov edx, dword [esp + 0x2c]
push edx
push str.dpgFileNameCreateTemp_failed_to_create_temporary_file_name___s.__because_all_sequence_numbers_used._nPlease_stop_all_adapters_and_delete_all_files_of_this_name._n
push 1
push 0x403
call fcn.00442f20
add esp, 0x18
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
push ebp
call fcn.00418550
push ebx
call fcn.00418550
add esp, 8
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x472ca0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push 0x543704
push eax
xor esi, esi
call fcn.00500fa5
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x472d72
push edi
push 2
push esi
push ebx
call fcn.00501924
push ebx
call fcn.0050182c
mov edi, eax
add esp, 0x10
test edi, edi
jle 0x472d52
push esi
push esi
push ebx
call fcn.00501924
lea ecx, [edi + 1]
push ecx
call fcn.00443680
push ebx
push edi
mov esi, eax
push 1
push esi
call fcn.00501672
add esp, 0x20
test eax, eax
jg 0x472d0a
push esi
call fcn.00418550
add esp, 4
xor esi, esi
jmp 0x472d0e
mov byte [eax + esi], 0
test byte [esp + 0x14], 2
je 0x472d68
mov al, byte [esi]
test al, al
mov edx, esi
mov ecx, esi
je 0x472d40
nop
add ecx, 1
cmp al, 0x1a
jne 0x472d2c
cmp byte [ecx], 0
jmp 0x472d33
cmp al, 0xd
jne 0x472d35
cmp byte [ecx], 0xa
je 0x472d3a
mov byte [edx], al
add edx, 1
mov al, byte [ecx]
test al, al
jne 0x472d20
push ebx
mov byte [edx], 0
call fcn.0042d717
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret
test byte [esp + 0x14], 1
jne 0x472d68
push 1
call fcn.00443680
mov esi, eax
add esp, 4
mov byte [esi], 0
push ebx
call fcn.0042d717
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x473510
Capabilities:
Get common file path

Disassembly:
push ebx
mov bl, byte [esp + 8]
push esi
xor esi, esi
test bl, bl
je 0x473562
call fcn.00501b1b
mov esi, eax
movsx eax, bl
push eax
call fcn.00421cae
mov ebx, eax
sub bl, 0x60
movsx eax, bl
add esp, 4
cmp eax, esi
je 0x473560
push eax
call fcn.00501be4
add esp, 4
test eax, eax
je 0x473562
mov eax, dword [esp + 0x10]
add bl, 0x60
pop esi
mov byte [eax], bl
mov byte [eax + 1], 0x3a
mov byte [eax + 2], 0x2f
mov byte [eax + 3], 0
pop ebx
ret
xor esi, esi
push edi
mov edi, dword [esp + 0x14]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test esi, esi
je 0x473580
push esi
call fcn.00501be4
add esp, 4
push 0x5c
push edi
call fcn.0046ebe0
add esp, 8
test eax, eax
je 0x4735a5
nop
mov byte [eax], 0x2f
add eax, 1
push 0x5c
push eax
call fcn.0046ebe0
add esp, 8
test eax, eax
jne 0x473590
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4735b0
sub eax, edx
cmp eax, 1
jle 0x4735cb
cmp byte [eax + edi - 1], 0x2f
jne 0x4735cb
mov byte [eax + edi - 1], cl
pop edi
pop esi
pop ebx
ret
Function at 0x4739c0
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x800
push ebx
mov ebx, dword [esp + 0x80c]
test ebx, ebx
push ebp
mov ebp, dword [esp + 0x80c]
push esi
push edi
je 0x473a8f
push 0x2f
push ebp
call fcn.0046ec00
mov edi, eax
add esp, 8
test edi, edi
jne 0x4739f3
mov edi, ebp
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
add ecx, 1
test al, al
jne 0x4739f8
sub ecx, edx
mov edx, ecx
mov ecx, ebx
lea esi, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
add ecx, 1
test al, al
jne 0x473a10
sub ecx, esi
sub edx, ecx
js 0x473a2f
add edx, edi
push ebx
push edx
call fcn.00472210
add esp, 8
test eax, eax
je 0x473a8f
lea edx, [esp + 0x410]
mov eax, ebp
sub edx, ebp
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x473a40
mov eax, ebx
mov edx, ebx
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x473a50
lea edi, [esp + 0x410]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x473a65
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x410]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x814], eax
mov ebp, eax
mov bl, byte [esp + 0x81c]
test bl, 1
je 0x473ac7
push ebp
call fcn.004735d0
add esp, 4
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test eax, eax
jl 0x473abe
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x800
ret
push esi
call fcn.00418550
add esp, 4
test bl, 4
je 0x473add
push str.PATH
call fcn.0042d8c2
add esp, 4
mov ebp, eax
jmp 0x473aed
test bl, 2
je 0x473ba5
mov ebp, dword [esp + 0x820]
test ebp, ebp
je 0x473ba5
cmp byte [ebp], 0
je 0x473ba5
mov edi, ebp
push 0x3b
add ebp, 1
push ebp
call fcn.0046ebe0
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x473b2d
mov esi, ebp
sub esi, edi
push esi
lea ecx, [esp + 0x14]
push edi
push ecx
add ebp, 1
call fcn.00417da0
add esp, 0xc
jmp 0x473b53
lea edx, [esp + 0x10]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x473b35
lea esi, [esp + 0x10]
lea ecx, [esi + 1]
mov al, byte [esi]
add esi, 1
test al, al
jne 0x473b48
sub esi, ecx
test esi, esi
jle 0x473b9d
cmp byte [esp + esi + 0xf], 0x2f
je 0x473b66
mov byte [esp + esi + 0x10], 0x2f
add esi, 1
mov eax, dword [esp + 0x814]
sub esi, eax
lea edx, [esp + esi + 0x10]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x473b73
lea edx, [esp + 0x10]
push edx
call fcn.004735d0
add esp, 4
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test eax, eax
jge 0x473ab1
test ebp, ebp
jne 0x473af5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x800
ret
Function at 0x473fd0
Capabilities:
Enumerate files on windows
Get disk information

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x544
push ebx
push ebp
push esi
mov esi, dword [esp + 0x554]
push edi
push 0x2f
xor ebx, ebx
push esi
xor edi, edi
mov dword [eax], ebx
call fcn.00417470
add esp, 8
test eax, eax
jne 0x47407b
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov eax, 1
mov dword [esp + 0x10], eax
mov esi, eax
cmp eax, 1
je 0x47401a
test ebp, esi
je 0x474057
lea ecx, [ebx*4 + 4]
push ecx
push edi
call fcn.004436b0
push 4
mov edi, eax
call fcn.00443680
mov dl, byte [esp + 0x1c]
mov dword [edi + ebx*4], eax
add dl, 0x60
mov byte [eax], dl
add eax, 1
mov byte [eax], 0x3a
add esp, 0xc
add ebx, 1
add eax, 1
mov byte [eax], 0x2f
mov byte [eax + 1], 0
mov eax, dword [esp + 0x10]
add eax, 1
add esi, esi
cmp eax, 0x1a
mov dword [esp + 0x10], eax
jle 0x474011
mov ecx, dword [esp + 0x55c]
mov dword [ecx], edi
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x544
ret
lea edx, [esp + 0x154]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x474086
lea eax, [esp + 0x154]
push 0x2f
push eax
call fcn.00417470
mov ecx, dword [0x5438bc]
add eax, 1
add esp, 8
lea edx, [esp + 0x14]
mov dword [eax], ecx
push edx
lea eax, [esp + 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4740d6
pop edi
pop esi
pop ebp
or eax, eax
pop ebx
add esp, 0x544
ret
cmp byte [esp + 0x40], 0x2e
jne 0x4740f4
mov al, byte [esp + 0x41]
test al, al
je 0x47416b
cmp al, 0x2e
jne 0x4740f4
cmp byte [esp + 0x42], 0
je 0x47416b
test bl, 0xf
jne 0x47410c
lea ecx, [ebx*4 + 0x40]
push ecx
push edi
call fcn.004436b0
add esp, 8
mov edi, eax
lea eax, [esp + 0x40]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x474113
sub eax, edx
add eax, 2
push eax
call fcn.00443680
lea ecx, [esp + 0x44]
mov dword [edi + ebx*4], eax
mov esi, eax
mov edx, ecx
add esp, 4
add ebx, 1
sub esi, edx
lea ebx, [ebx]
mov dl, byte [ecx]
mov byte [esi + ecx], dl
add ecx, 1
test dl, dl
jne 0x474140
test byte [esp + 0x14], 0x10
je 0x47416b
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x474158
sub ecx, esi
add eax, ecx
mov byte [eax], 0x2f
mov byte [eax + 1], dl
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4740d6
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x55c]
mov dword [ecx], edi
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x544
ret
Function at 0x4741a0
Capabilities:
Delete directory

Disassembly:
push ecx
mov eax, dword [0x56ec14]
mov edx, dword [0x53f4e4]
lea ecx, [eax*8]
sub ecx, eax
test byte [edx + ecx*4 + 0xc], 0x10
lea eax, [edx + ecx*4]
push ebx
mov ebx, dword [esp + 0xc]
je 0x4741e6
mov eax, dword [eax]
mov ecx, dword [str._unknown_program_]
push eax
push ecx
push str._s_MONITOR:_s:
call fcn.00442db0
push ebx
push str.Removing_directory___s__n
call fcn.00442cd0
add esp, 0x14
mov eax, ebx
lea edx, [eax + 1]
jmp 0x4741f0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4741f0
sub eax, edx
push ebp
lea edx, [esp + 0x10]
push edx
add eax, ebx
push ebx
mov dword [esp + 0x10], eax
call fcn.00473fd0
mov ebp, eax
add esp, 8
test ebp, ebp
jge 0x474228
push ebx
push str.Failed_to_get_directory_listing_of___s__n
push 3
call fcn.004431d0
add esp, 0xc
jmp 0x474297
jle 0x474286
push edi
xor edi, edi
test ebp, ebp
jle 0x474285
push esi
mov eax, dword [esp + 0x18]
mov esi, dword [eax + edi*4]
mov edx, dword [esp + 0x10]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x474241
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x474252
sub eax, edx
cmp byte [eax + esi - 1], 0x2f
push ebx
jne 0x47426c
call fcn.004741a0
jmp 0x474271
call fcn.00501aeb
add esp, 4
push esi
call fcn.00418550
add edi, 1
add esp, 4
cmp edi, ebp
jl 0x474232
pop esi
pop edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x474297
push eax
call fcn.00418550
add esp, 4
mov ecx, dword [esp + 8]
push ebx
mov byte [ecx], 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
pop ebp
je 0x4742af
xor eax, eax
pop ebx
pop ecx
ret
push ebx
push 0x543908
push 3
call fcn.004431d0
add esp, 0xc
or eax, 0xffffffff
pop ebx
pop ecx
ret
Function at 0x474d40
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x1c]
push esi
mov eax, ebx
push edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x474d50
sub eax, edx
cmp byte [eax + ebx - 1], 0x2f
lea esi, [eax + ebx]
mov dword [esp + 0x24], esi
je 0x474d75
mov byte [esi], 0x2f
add esi, 1
mov dword [esp + 0x24], esi
mov byte [esi], cl
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00473fd0
add esp, 8
test eax, eax
mov dword [esp + 0x14], eax
jge 0x474dab
push edi
push str.Failed_to_get_directory_listing_of___s____cannot_add_to_zip_file_n
push 1
push 0x7f0
call fcn.00442f20
add esp, 0x10
pop edi
pop esi
pop ebx
add esp, 0xc
ret
test eax, eax
mov dword [esp + 0xc], 0
jle 0x474f2e
mov edi, dword [esp + 0x28]
push ebp
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov ebp, dword [ecx + edx*4]
mov edx, esi
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x474dd1
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x474de2
sub eax, edx
cmp byte [eax + ebp - 1], 0x2f
jne 0x474e0d
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edi
push ebx
push eax
push ecx
call fcn.00474d40
add esp, 0x10
jmp 0x474f0f
mov edx, dword [esp + 0x24]
push 0x543d3c
push edx
call fcn.00500fa5
mov esi, eax
add esp, 8
test esi, esi
jne 0x474e3f
push ebp
push str.Failed_to_add_file___s__to_zip_file___sopen_n
push 1
push 0x7f1
call fcn.00442f20
add esp, 0x10
jmp 0x474f0b
mov eax, dword [esp + 0x20]
push 0xffffffffffffffff
push 8
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push eax
call fcn.004f99c0
add esp, 0x28
test eax, eax
je 0x474e7b
push ebx
push str.Failed_to_add_file___s__to_zip_file___zadd_n
push 1
push 0x7f1
call fcn.00442f20
add esp, 0x10
jmp 0x474f02
push esi
push 0x1000
push 1
push edi
call fcn.00501672
add esp, 0x10
test eax, eax
jle 0x474eb8
mov ecx, dword [esp + 0x20]
push eax
push edi
push ecx
call fcn.004f8bd0
add esp, 0xc
test eax, eax
jne 0x474ec2
push esi
push 0x1000
push 1
push edi
call fcn.00501672
add esp, 0x10
test eax, eax
jg 0x474e90
jge 0x474ed7
push ebx
push str.Failed_to_add_file___s__to_zip_file___sread_n
jmp 0x474ec8
push ebx
push str.Failed_to_add_file___s__to_zip_file___zwrite_n
push 1
push 0x7f1
call fcn.00442f20
add esp, 0x10
mov edx, dword [esp + 0x20]
push edx
call fcn.004f8fa0
add esp, 4
test eax, eax
je 0x474efd
push ebx
push str.Failed_to_add_file___s__to_zip_file___zclose_n
push 1
push 0x7f1
call fcn.00442f20
add esp, 0x10
call fcn.004370c0
push esi
call fcn.0042d717
add esp, 4
mov esi, dword [esp + 0x28]
push ebp
call fcn.00418550
mov eax, dword [esp + 0x14]
add eax, 1
add esp, 4
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
jl 0x474dc0
pop ebp
mov eax, dword [esp + 0x10]
test eax, eax
je 0x474f3f
push eax
call fcn.00418550
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x476960
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax]
mov eax, dword [ebp + 0x20]
fld qword [eax]
lea ecx, [esp + 0x130]
fstp qword [esp + 0x18]
fld qword [eax + 8]
fstp qword [esp + 0x20]
fld qword [eax + 0x10]
mov eax, dword [ebp + 0x24]
fstp qword [esp + 0x28]
fld qword [eax]
fstp qword [esp + 0x38]
fld qword [eax + 8]
fstp qword [esp + 0x40]
fld qword [eax + 0x10]
mov eax, dword [ebp + 0x28]
fstp qword [esp + 0x48]
fld qword [eax]
fstp qword [esp + 0x58]
fld qword [eax + 8]
fstp qword [esp + 0x60]
fld qword [eax + 0x10]
mov eax, dword [ebp + 0x1c]
fstp qword [esp + 0x68]
fld qword [eax]
fstp qword [esp + 0x78]
fld qword [eax + 8]
fstp qword [esp + 0x80]
fld qword [eax + 0x10]
lea eax, [esp + 0x18]
fstp qword [esp + 0x88]
push eax
fldz
push ecx
fst qword [esp + 0x78]
fst qword [esp + 0x58]
fstp qword [esp + 0x38]
fld1
fstp qword [esp + 0x98]
call fcn.004c1090
add esp, 8
test eax, eax
jne 0x476a24
push str.Invalid_input_to_dnrbControlPolygonTransform_n
push 1
push 0x1f4a
call fcn.00442f20
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
fld qword [eax]
lea edx, [esp + 0x18]
fstp qword [esp + 0x18]
push edx
fld qword [eax + 8]
lea ecx, [esp + 0xb4]
fstp qword [esp + 0x24]
fld qword [eax + 0x10]
mov eax, dword [ebp + 0x14]
fstp qword [esp + 0x2c]
fld qword [eax]
fstp qword [esp + 0x3c]
fld qword [eax + 8]
fstp qword [esp + 0x44]
fld qword [eax + 0x10]
mov eax, dword [ebp + 0x18]
fstp qword [esp + 0x4c]
fld qword [eax]
fstp qword [esp + 0x5c]
fld qword [eax + 8]
fstp qword [esp + 0x64]
fld qword [eax + 0x10]
mov eax, dword [ebp + 0xc]
fstp qword [esp + 0x6c]
fld qword [eax]
fstp qword [esp + 0x7c]
fld qword [eax + 8]
fstp qword [esp + 0x84]
fld qword [eax + 0x10]
lea eax, [esp + 0x134]
push eax
fstp qword [esp + 0x90]
push ecx
call fcn.004c0a00
add esp, 0xc
test edi, edi
jle 0x476b39
add esi, 8
mov ebx, edi
fld qword [esi + 0x10]
fst qword [esp + 0x10]
fld1
fucomp st(1)
fnstsw ax
test ah, 0x44
jnp 0x476b16
fld qword [esi - 8]
lea edi, [esi - 8]
fdiv st(1)
lea edx, [esp + 0xb0]
push edx
lea eax, [esp + 0x9c]
push eax
push edi
fstp qword [esp + 0xa4]
fld qword [esi]
fdiv st(1)
fstp qword [esp + 0xac]
fdivr qword [esi + 8]
fstp qword [esp + 0xb4]
call fcn.004c0960
fld qword [edi]
fld qword [esp + 0x1c]
fmul st(1), st(0)
fxch st(1)
fstp qword [edi]
fld st(0)
fmul qword [esi]
fstp qword [esi]
fmul qword [esi + 8]
fstp qword [esi + 8]
jmp 0x476b2a
lea ecx, [esp + 0xb0]
fstp st(0)
lea eax, [esi - 8]
push ecx
push eax
push eax
call fcn.004c0960
add esp, 0xc
add esi, 0x20
sub ebx, 1
jne 0x476ab0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48b670
Capabilities:
Encode data using xor

Disassembly:
test bl, 1
je 0x48b6ab
mov eax, 1
cmp edi, eax
push esi
mov esi, dword [edx]
jbe 0x48b696
push ebp
mov ecx, dword [edx + eax*4]
mov ebp, ecx
xor ebp, esi
mov dword [edx + eax*4], ebp
add eax, 1
cmp eax, edi
mov esi, ecx
jb 0x48b682
pop ebp
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push edx
push 4
push edi
push ecx
call fcn.004c3440
add esp, 0x10
pop esi
test bl, 2
je 0x48b6cf
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
push edx
mov edx, dword [ecx + 4]
push 2
lea eax, [edi*4]
push eax
push edx
call fcn.004c3440
add esp, 0x10
ret
Function at 0x499850
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
cmp esi, ebx
jne 0x499862
pop esi
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esi + 4]
mov ecx, eax
and cl, 3
cmp cl, 1
je 0x499886
push 0x54a368
push 1
push 0x7db
call fcn.00442f20
add esp, 0xc
pop esi
pop ebx
ret
test al, 0x40
je 0x4998b9
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x49989d
push eax
call fcn.004fb710
add esp, 4
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x4998b9
push eax
call fcn.004fb250
mov edx, dword [esi + 0x1c]
push edx
call fcn.00418550
add esp, 8
mov dword [esi + 0x1c], ebx
test byte [esi + 4], 0x10
mov eax, 0x54a390
jne 0x4998c9
mov eax, 0x54a394
cmp dword [esi + 0x14], ebx
jne 0x499906
push eax
mov eax, dword [esi]
push eax
call fcn.00500fa5
add esp, 8
cmp eax, ebx
mov dword [esi + 0x14], eax
jne 0x499906
mov ecx, dword [esi]
pop esi
pop ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0x54a398
mov dword [esp + 8], 1
mov dword [esp + 4], 0x7dc
jmp fcn.00442f20
mov edx, dword [esi + 0x14]
and dword [esi + 4], 0xfff3ffbf
push edi
mov edi, dword [esp + 0x18]
push ebx
push edi
push edx
call fcn.00501924
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
push eax
push ecx
push esi
mov dword [esi + 8], edi
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
call fcn.004abcc0
add esp, 0x18
pop edi
pop esi
pop ebx
ret