joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408e10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x42ff30], eax
mov edx, 1
dec edx
nop
inc edx
mov eax, edx
dec eax
mov ecx, dword [eax*4 + 0x42ff30]
shr ecx, 0x1e
mov eax, edx
dec eax
mov eax, dword [eax*4 + 0x42ff30]
xor ecx, eax
imul ecx, ecx, 0x6c078965
add ecx, edx
mov dword [edx*4 + 0x42ff30], ecx
cmp edx, 0x26f
jl 0x408e1c
mov dword [0x427850], 0x270
ret

Function at 0x408e60
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub esp, 8
mov dword [esp], ebx
mov dword [esp + 4], esi
mov eax, dword [0x42f010]
cmp eax, dword [0x4277e0]
je 0x408e81
mov dword [0x427850], 0x271
mov eax, dword [0x427850]
cmp eax, 0x270
jl 0x408fa9
mov eax, dword [0x427850]
cmp eax, 0x271
jne 0x408eb8
mov eax, dword [0x42f010]
call fcn.00408e10
mov eax, dword [0x42f010]
not eax
mov dword [0x42f010], eax
mov dword [0x4277e0], eax
mov edx, 0
dec edx
mov esi, esi
inc edx
mov eax, edx
inc eax
mov eax, dword [eax*4 + 0x42ff30]
and eax, 0x7fffffff
mov ebx, dword [edx*4 + 0x42ff30]
and ebx, 0x80000000
or eax, ebx
mov ecx, eax
mov eax, edx
add eax, 0x18d
mov ebx, ecx
shr ebx, 1
mov esi, dword [eax*4 + 0x42ff30]
xor esi, ebx
mov eax, ecx
and eax, 1
mov eax, dword [eax*4 + 0x427860]
xor esi, eax
mov dword [edx*4 + 0x42ff30], esi
cmp edx, 0xe2
jl 0x408ec0
mov edx, 0xe3
dec edx
inc edx
mov eax, edx
inc eax
mov eax, dword [eax*4 + 0x42ff30]
and eax, 0x7fffffff
mov ebx, dword [edx*4 + 0x42ff30]
and ebx, 0x80000000
or eax, ebx
mov ecx, eax
mov eax, edx
add eax, 0xffffff1d
mov ebx, ecx
shr ebx, 1
mov esi, dword [eax*4 + 0x42ff30]
xor esi, ebx
mov eax, ecx
and eax, 1
mov eax, dword [eax*4 + 0x427860]
xor esi, eax
mov dword [edx*4 + 0x42ff30], esi
cmp edx, 0x26e
jl 0x408f18
mov eax, dword [0x4308ec]
and eax, 0x80000000
mov edx, dword [0x42ff30]
and edx, 0x7fffffff
or eax, edx
mov ecx, eax
shr eax, 1
mov edx, dword [0x430560]
xor eax, edx
and ecx, 1
mov edx, dword [ecx*4 + 0x427860]
xor eax, edx
mov dword [0x4308ec], eax
mov dword [0x427850], 0
mov eax, dword [0x427850]
mov edx, dword [eax*4 + 0x42ff30]
inc dword [0x427850]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor edx, eax
mov ecx, edx
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov ebx, dword [esp]
mov esi, dword [esp + 4]
add esp, 8
ret

Function at 0x40694b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42ce3c], 0
push esi
jne 0x406982
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40695c
mov dword [ecx*4 + 0x42ce38], eax
inc ecx
cmp ecx, 0x100
jl 0x406957
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4069b3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42ce38]
xor eax, esi
inc ecx
dec edx
jne 0x406995
pop edi
not eax
pop esi
ret 0xc
Function at 0x643740
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x150000]
push edi
jmp 0x64375a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x643761
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x643750
mov eax, 1
add ebx, ebx
jne 0x643773
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x643784
jne 0x6437a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6437a3
dec eax
add ebx, ebx
jne 0x643790
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x643768
add ebx, ebx
jne 0x64379f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6437f5
xor ecx, ecx
sub eax, 3
jb 0x6437bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x64382a
sar eax, 1
mov ebp, eax
jmp 0x6437c6
add ebx, ebx
jne 0x6437c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x643794
inc ecx
add ebx, ebx
jne 0x6437d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x643794
add ebx, ebx
jne 0x6437e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6437d6
jne 0x6437f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6437d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x643814
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x643806
jmp 0x643756
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x643814
add edi, ecx
jmp 0x643756
pop esi
mov edi, esi
mov ecx, 0x4ccc
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x643832
cmp byte [edi], 0x1e
jne 0x643832
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 al, bl
loop 0x643837
lea edi, [esi + 0x23f000]
mov eax, dword [edi]
or eax, eax
je 0x6438af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x244944]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x244a98]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x643864
mov ecx, edi
jns 0x643893
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 + 0x244a9c]
or eax, eax
je 0x6438a9
mov dword [ebx], eax
add ebx, 4
jmp 0x643881
call dword [esi + 0x244aac]
mov ebp, dword [esi + 0x244aa0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x6438e3
sub esp, 0xffffff80
jmp 0x4a1af3
Function at 0x636014fd
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x63601517
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 0xc

Function at 0x63601540
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x6360154b
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x63602889
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x6363a530]
push ebx
push esi
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xa0]
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.636014c8
cmp eax, esi
jne 0x63602914
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x636028e0
lea eax, [ebp - 0x6c]
push eax
call fcn.63602889
cmp eax, esi
jne 0x63602913
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], pe_nt_image_headers32
call edi
test eax, eax
lea ecx, [ebp - 0x70]
je 0x636028d3
call fcn.63601463
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.63601463
mov ecx, dword [ebp + 0x94]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.6361d41e
add ebp, 0x98
leave
ret 4
Function at 0x6360735a
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
add ecx, 0xffffff88
neg esi
sbb esi, esi
and esi, ecx
lea eax, [esi + 0x84]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, dword [esi + 0x50]
test esi, esi
je 0x63607382
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 8

Function at 0x63607a08
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x6363a530]
xor eax, ebp
mov dword [ebp + 0x39c], eax
mov eax, dword [ebp + 0x3ac]
push ebx
push esi
mov esi, dword [ebp + 0x3a8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x3b0]
push edi
mov edi, ecx
mov dword [ebp - 0x74], eax
call dword [0x6363a0b0]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x68], ebx
je 0x63607aa2
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
cmp edi, 0x400
jg 0x63607a8a
push edi
call fcn.63601188
test al, al
pop ecx
je 0x63607a8a
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.6361d3b0
mov eax, esp
jmp 0x63607a93
push edi
lea ecx, [ebp - 0x70]
call fcn.636034d8
push dword [ebp - 0x78]
push edi
push esi
push eax
call fcn.636012e5
cmp eax, ebx
jne 0x63607abc
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x68], eax
je 0x63607ab2
lea ecx, [ebp - 0x68]
call fcn.63601f98
mov esi, 0x8007000e
jmp 0x63607b5f
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
jne 0x63607ad5
call fcn.636013e2
mov esi, eax
jmp 0x63607b4f
push dword [ebp - 0x74]
push dword [ebp - 0x6c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x63607af7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x6c], eax
jne 0x63607afe
call fcn.636013e2
jmp 0x63607b46
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x68]
call fcn.6360364c
cmp dword [ebp - 0x68], ebx
jne 0x63607b20
mov esi, 0x8007000e
jmp 0x63607b48
push esi
push dword [ebp - 0x6c]
push dword [ebp - 0x68]
call fcn.6361d430
mov eax, dword [ebp - 0x68]
add esp, 0xc
push dword [ebp + 0x3b4]
mov byte [esi + eax], bl
push dword [ebp - 0x68]
lea ecx, [ebp - 0x80]
call fcn.63606791
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x68], eax
je 0x63607b5f
lea ecx, [ebp - 0x68]
call fcn.63601f98
lea ecx, [ebp - 0x70]
call fcn.63601ea8
mov eax, esi
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
xor ecx, ebp
call fcn.6361d41e
add ebp, 0x3a0
leave
ret 0x10
Function at 0x63608174
Capabilities:
Delete file
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
xor edi, edi
push edi
push 1
mov ecx, 0x6363b5b0
mov dword [ebp - 4], edi
call fcn.63607f10
push edi
lea eax, [ebp - 4]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push str.SoftwareMicrosoftInternet_ExplorerURLSearchHooks
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push str.1E315374_71A5_471A_B683_4C4ADB5C588B
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
lea eax, [ebp - 4]
push eax
push 0x2001f
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerBrowser_Helper_Objects1A3440C6_F123_4CAB_84EE_C814E1AE0D8F
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x636081f4
push str.1A3440C6_F123_4CAB_84EE_C814E1AE0D8F
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 4], edi
je 0x63608201
push dword [ebp - 4]
call esi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x20]
push 1
push eax
call fcn.636141fa
cmp dword [eax + 0x18], 0x10
pop ecx
pop ecx
jb 0x63608219
mov eax, dword [eax + 4]
jmp 0x6360821c
add eax, 4
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call esi
push edi
push 1
lea ecx, [ebp - 0x20]
call fcn.636044f0
lea eax, [ebp - 0x20]
push 1
push eax
call fcn.6361411f
cmp dword [eax + 0x18], 0x10
pop ecx
pop ecx
jb 0x63608248
mov eax, dword [eax + 4]
jmp 0x6360824b
add eax, 4
push eax
call esi
push edi
push 1
lea ecx, [ebp - 0x20]
call fcn.636044f0
pop edi
xor eax, eax
pop esi
leave
ret
Function at 0x63608bb9
Capabilities:
Get mac address on windows

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x98
mov eax, dword [0x6363a530]
push ebx
mov ebx, dword [ebp + 0x7c]
xor eax, ebp
push edi
mov dword [ebp + 0x70], eax
lea eax, [ebp - 0x1c]
xor edi, edi
push eax
push edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x11], 0
mov byte [ebx], 0
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, edi
je 0x63608c2b
cmp eax, 0xe8
je 0x63608dd1
cmp eax, 0x32
je 0x63608dd1
cmp eax, 0x6f
jne 0x63608dd1
push dword [ebp - 0x1c]
call fcn.6361d9eb
pop ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0x18], eax
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x63608dc3
push esi
mov esi, dword [ebp - 0x18]
cmp esi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
je 0x63608d68
mov edi, str._02x_02x_02x_02x_02x_02x
cmp byte [esi + 0x194], 0
jne 0x63608c7a
cmp byte [esi + 0x195], 0
jne 0x63608c7a
cmp byte [esi + 0x196], 0
jne 0x63608c7a
cmp byte [esi + 0x197], 0
jne 0x63608c7a
cmp byte [esi + 0x198], 0
jne 0x63608c7a
cmp byte [esi + 0x199], 0
jne 0x63608c7a
mov esi, dword [esi]
mov eax, dword [esi + 0x1a0]
cmp eax, 6
jne 0x63608d6e
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
lea eax, [ebp - 0x10]
push edi
push eax
mov dword [ebp - 0x20], 1
call fcn.6361dd0b
add esp, 0x20
cmp dword [ebp - 0x24], 0
jne 0x63608d09
push ebx
call fcn.6361dc80
test eax, eax
pop ecx
je 0x63608cf2
lea eax, [ebp - 0x10]
push str.005345000000
push eax
call fcn.6361de70
test eax, eax
pop ecx
pop ecx
je 0x63608d2a
lea eax, [ebp - 0x10]
push eax
push ebx
mov byte [ebp - 0x11], 1
call fcn.6361dd70
mov dword [ebp - 0x24], 1
jmp 0x63608d28
push str.005345000000
push ebx
call fcn.6361de70
test eax, eax
pop ecx
pop ecx
jne 0x63608d2a
lea eax, [ebp - 0x10]
push eax
push ebx
mov byte [ebp - 0x11], 1
call fcn.6361dd70
pop ecx
pop ecx
lea eax, [esi + 0x1d8]
push eax
call fcn.6361dc80
test eax, eax
pop ecx
jbe 0x63608db7
lea eax, [ebp - 0x10]
push str.005345000000
push eax
call fcn.6361de70
test eax, eax
pop ecx
pop ecx
je 0x63608db7
lea eax, [ebp - 0x10]
push eax
push ebx
mov byte [ebp - 0x11], 1
call fcn.6361dd70
pop ecx
pop ecx
push dword [ebp - 0x18]
call fcn.6361d7d0
pop ecx
mov al, byte [ebp - 0x11]
pop esi
jmp 0x63608dd3
cmp eax, 0x17
jne 0x63608db7
cmp dword [ebp - 0x20], 0
jne 0x63608db7
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
push edi
push ebx
mov byte [ebp - 0x11], 1
call fcn.6361dd0b
add esp, 0x20
mov esi, dword [esi]
test esi, esi
jne 0x63608c42
jmp 0x63608d5f
cmp dword [ebp - 0x18], edi
je 0x63608dd1
push dword [ebp - 0x18]
call fcn.6361d7d0
pop ecx
xor al, al
mov ecx, dword [ebp + 0x70]
pop edi
xor ecx, ebp
pop ebx
call fcn.6361d41e
add ebp, 0x74
leave
ret
Function at 0x63608de4
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x6363a530]
push ebx
xor eax, ebp
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x6c]
xor ebx, ebx
and dword [ebp - 0x6c], ebx
push eax
push ebx
mov byte [edi], bl
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
je 0x63608e48
cmp eax, 0xe8
je 0x63608f0b
cmp eax, 0x32
je 0x63608f0b
cmp eax, 0x6f
jne 0x63608f0b
push dword [ebp - 0x6c]
call fcn.6361d9eb
mov ebx, eax
pop ecx
lea eax, [ebp - 0x6c]
push eax
push ebx
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x63608f00
test ebx, ebx
push esi
mov esi, ebx
mov dword [ebp - 0x70], 0xa
je 0x63608efb
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
lea eax, [ebp - 0x68]
push str._02x_02x_02x_02x_02x_02x
push eax
call fcn.6361dd0b
lea eax, [ebp - 0x68]
push str.005345000000
push eax
call fcn.6361de70
add esp, 0x28
test eax, eax
je 0x63608eea
lea eax, [ebp - 0x68]
push str.000000000000
push eax
call fcn.6361de70
test eax, eax
pop ecx
pop ecx
je 0x63608eea
push edi
call fcn.6361dc80
test eax, eax
pop ecx
jbe 0x63608ed9
push 0x63630418
push edi
call fcn.6361dd80
pop ecx
pop ecx
lea eax, [ebp - 0x68]
push eax
push edi
call fcn.6361dd80
dec dword [ebp - 0x70]
pop ecx
pop ecx
js 0x63608ef4
mov esi, dword [esi]
test esi, esi
jne 0x63608e5a
push ebx
call fcn.6361d7d0
pop ecx
mov al, 1
pop esi
jmp 0x63608f0d
test ebx, ebx
je 0x63608f0b
push ebx
call fcn.6361d7d0
pop ecx
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.6361d41e
leave
ret
Function at 0x6360d8eb
Capabilities:
Check if file exists
Copy file
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x6363a530]
push esi
xor eax, ebp
push edi
mov dword [ebp - 4], eax
xor edi, edi
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.6361457b
cmp dword [ebp - 0xc], edi
pop ecx
pop ecx
je 0x6360d9bb
push str.PIPI
lea ecx, [ebp - 0x20]
call fcn.6360bd11
cmp dword [ebp - 8], 0x10
mov eax, dword [ebp - 0x1c]
jae 0x6360d92d
lea eax, [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call esi
cmp eax, 0xffffffff
jne 0x6360d953
cmp dword [ebp - 8], 0x10
mov eax, dword [ebp - 0x1c]
jae 0x6360d947
lea eax, [ebp - 0x1c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x6360d9bb
push 0x63630080
lea ecx, [ebp - 0x20]
call fcn.6360bd11
push str.ppcook.cfg
lea ecx, [ebp - 0x20]
call fcn.6360bd11
cmp dword [ebp - 8], 0x10
mov eax, dword [ebp - 0x1c]
jae 0x6360d979
lea eax, [ebp - 0x1c]
push eax
call esi
cmp eax, 0xffffffff
mov edi, 0x6363b638
jne 0x6360d9a4
push edi
call esi
cmp eax, 0xffffffff
je 0x6360d9a4
cmp dword [ebp - 8], 0x10
mov eax, dword [ebp - 0x1c]
jae 0x6360d99a
lea eax, [ebp - 0x1c]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp dword [ebp - 8], 0x10
mov eax, dword [ebp - 0x1c]
jae 0x6360d9b0
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.6361dd70
pop ecx
pop ecx
xor edi, edi
push edi
lea ecx, [ebp - 0x20]
push 1
call fcn.636044f0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.6361d41e
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x6363a530]
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, ebp
xor edi, edi
cmp dword [0x6363d0fc], edi
mov dword [ebp - 4], eax
je 0x6360da30
push 0x6363cef0
lea eax, [ebp - 0x204]
push str._sjfCacheMgr.exe
push eax
call fcn.6361dd0b
add esp, 0xc
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x6360da30
lea eax, [ebp - 0x204]
push eax
mov ecx, esi
inc edi
call fcn.6360c36e
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.6361d41e
leave
ret
Function at 0x6360da40
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x6363a530]
mov ecx, dword [ebp + 0x1a8]
xor eax, ebp
push ebx
xor ebx, ebx
mov dword [ebp + 0x190], eax
mov eax, dword [ebp + 0x19c]
cmp eax, ebx
push esi
mov esi, dword [ebp + 0x1a0]
push edi
mov edi, dword [ebp + 0x1a4]
mov dword [ebp - 0x80], ecx
mov byte [esi + 3], bl
mov byte [esi + 2], bl
mov byte [esi + 1], bl
mov byte [esi], bl
jne 0x6360da9c
push 0x200
lea eax, [ebp - 0x70]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
jmp 0x6360daa8
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.6361dd70
pop ecx
pop ecx
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [ebp - 0x74], eax
je 0x6360db68
push eax
call fcn.6361d9eb
pop ecx
push eax
push dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
push ebx
lea eax, [ebp - 0x70]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x6360db0f
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0x63630080
push dword [ebp - 0x78]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x6360db0f
mov eax, dword [ebp - 0x7c]
mov cl, byte [eax + 0xa]
mov byte [esi], cl
mov cl, byte [eax + 8]
mov byte [esi + 1], cl
mov cl, byte [eax + 0xe]
mov byte [esi + 2], cl
mov al, byte [eax + 0xc]
mov byte [esi + 3], al
push dword [ebp - 0x78]
call fcn.6361d7d5
movzx eax, byte [esi + 3]
push eax
movzx eax, byte [esi + 2]
push eax
movzx eax, byte [esi + 1]
push eax
movzx eax, byte [esi]
push eax
lea eax, [ebp - 0x70]
push str._d._d._d._d
push eax
call fcn.6361dd0b
mov ecx, dword [ebp - 0x80]
add esp, 0x1c
lea eax, [ebp - 0x70]
push eax
call fcn.6360c36e
xor eax, eax
mov ah, byte [esi]
xor ecx, ecx
mov ch, byte [esi + 2]
mov al, byte [esi + 1]
movzx ecx, cx
shl eax, 0x10
or eax, ecx
movzx ecx, byte [esi + 3]
or eax, ecx
mov dword [edi], eax
xor eax, eax
inc eax
jmp 0x6360db6a
xor eax, eax
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6361d41e
add ebp, 0x194
leave
ret