joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101ac39b
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
mov edx, dword [0x101c9048]
mov esi, edx
add esi, 0xffffdde0
mov dword [0x101c904c], esi
add edx, 0xffffe928
mov dword [0x101c9048], edx
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.101abaec
lea ecx, [0x101ab870]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x44], edx
mov dword [esp + 0x34], 0x13c000
mov edx, dword [0x101c9034]
mov dword [esp + 0x74], edx
mov edx, dword [0x101c9038]
mov dword [esp + 0x70], edx
mov edx, dword [0x101c903c]
mov dword [esp + 0x78], edx
mov edx, dword [0x101c9040]
mov dword [esp + 0x5c], edx
mov dword [0x101c9048], 0x5bd
mov edx, dword [0x101c9044]
mov dword [esp + 0x54], edx
mov dword [0x101c904c], 0xfffff4b2
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x101ac476
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.101abdb4
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0xc], eax
jne 0x101ac499
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 8], ecx
je 0x101ac4ad
mov eax, dword [esp + 0xc]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x101ac476
mov eax, dword [esp + 0xc]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 8]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x80], edx
mov dword [0x101c9048], 0xe1c
call fcn.101ab5f1
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x10], ecx
je 0x101ac442
jmp 0x101ac46c
Function at 0x116f0c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0xd53015
lea edi, [esi - 0x952015]
push edi
or ebp, 0xffffffff
jmp 0x116f0e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x116f0e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x116f0d8
mov eax, 1
add ebx, ebx
jne 0x116f0fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x116f10c
jne 0x116f12b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x116f12b
dec eax
add ebx, ebx
jne 0x116f118
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x116f0f0
add ebx, ebx
jne 0x116f127
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x116f17d
xor ecx, ecx
sub eax, 3
jb 0x116f143
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x116f1b2
sar eax, 1
mov ebp, eax
jmp 0x116f14e
add ebx, ebx
jne 0x116f14e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x116f11c
inc ecx
add ebx, ebx
jne 0x116f15c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x116f11c
add ebx, ebx
jne 0x116f169
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x116f15e
jne 0x116f17a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x116f15e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x116f19c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x116f18e
jmp 0x116f0de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x116f19c
add edi, ecx
jmp 0x116f0de
pop esi
mov edi, esi
mov ecx, 0x21b2f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x116f1ba
cmp byte [edi], 0x26
jne 0x116f1ba
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 0x116f1bf
lea edi, [esi + 0xd48000]
mov eax, dword [edi]
or eax, eax
je 0x116f22e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd6f000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd6f028]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x116f1ec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd6f030]
or eax, eax
je 0x116f228
mov dword [ebx], eax
add ebx, 4
jmp 0x116f209
call dword [esi + 0xd6f02c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x116f268
cmp al, 0xef
ja 0x116f252
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x116f234
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
or eax, eax
jne 0x116f241
mov eax, dword [edi]
add edi, 4
jmp 0x116f241
mov ebp, dword [esi + 0xd6f034]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x116f29c
sub esp, 0xffffff80
jmp 0x46b540
Function at 0x409f90
Capabilities:
Get file size

Disassembly:
mov eax, dword [0x22e0f7c]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
xor esi, esi
nop
cmp eax, 0x8cf
jne 0x409fb2
push 0
push 0
call edi
mov eax, dword [0x22e0f7c]
cmp esi, 0x845013
jne 0x409fc9
mov eax, dword [0x80dd80]
add eax, 0xa231
mov dword [0x22e0f7c], eax
cmp eax, 0x141
jne 0x409fe4
mov dword [0x80f018], 0xec58acac
mov dword [0x80f01c], 0xffffffff
inc esi
cmp esi, 0xbbe2a98
jl 0x409fa0
call fcn.00409d40
pop edi
xor eax, eax
pop esi
ret 0x10

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x128168b7
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x44ff4aec
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x41e1f9
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x43a628
call fcn.0041e2f0
push 1
call fcn.0041dba6
pop ecx
test al, al
jne 0x41e0b0
push 7
call fcn.0041e4f5
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0041db71
mov byte [ebp - 0x24], al
mov eax, dword [0x45fe7c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x41e0a9
test eax, eax
jne 0x41e11a
mov dword [0x45fe7c], ecx
push 0x4322b4
push 0x432298
call fcn.004277c5
pop ecx
pop ecx
test eax, eax
je 0x41e0fd
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x41e1f3
push 0x432294
push 0x432264
call fcn.00427769
pop ecx
pop ecx
mov dword [0x45fe7c], 2
jmp 0x41e11f
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0041dd00
pop ecx
call fcn.0041e799
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x41e14f
push esi
call fcn.0041dc76
pop ecx
test al, al
je 0x41e14f
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.0041e2dd
call esi
call fcn.0041e79f
mov esi, eax
cmp dword [esi], edi
je 0x41e16d
push esi
call fcn.0041dc76
pop ecx
test al, al
je 0x41e16d
push dword [esi]
call fcn.00426c25
pop ecx
call fcn.0041e610
movzx eax, ax
push eax
call fcn.00427716
push eax
push edi
push 0x400000
call fcn.0041cbb8
mov esi, eax
call fcn.00426b34
test al, al
jne 0x41e198
push esi
call fcn.00426c5d
test bl, bl
jne 0x41e1a1
call fcn.00426c00
push edi
push 1
call fcn.0041dd1d
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x41e1f3
call fcn.0041e336
ret
mov edi, edi
push ebp
mov ebp, esp
jmp 0x41e091
Function at 0x401396
Capabilities:
Delete file

Disassembly:
push 0x34
mov eax, 0x55c438
call fcn.0040a1d5
lea eax, [ebp - 0x40]
push eax
call fcn.004013f3
and dword [ebp - 4], 0
mov dword [esp], str.theme.ini
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004012b0
add esp, 0xc
lea ecx, [ebp - 0x40]
push 0
push 1
call fcn.004019c3
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004019c3
call fcn.0040a17f
ret

Function at 0x401487
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x5dc050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x4015af
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00415c80
lea eax, [ebp - 0x42c]
push eax
call fcn.004013f3
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x4014d4
mov eax, dword [eax]
push str..wnpf
push esi
push eax
lea eax, [ebp - 0x20c]
push 0x55e628
push eax
call fcn.00401e48
add esp, 0x14
lea ecx, [ebp - 0x42c]
push 0
push 1
call fcn.004019c3
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40153f
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.0041276d
pop ecx
pop ecx
push eax
mov ecx, edi
call fcn.00401345
push 0
push 1
lea ecx, [ebp - 0x42c]
call fcn.004019c3
mov al, 1
jmp 0x4015b1
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00415c80
lea eax, [ebp - 0x42c]
push eax
call fcn.004013f3
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x401569
mov eax, dword [eax]
push str..swnpf
push esi
push eax
lea eax, [ebp - 0x414]
push 0x55e628
push eax
call fcn.00401e48
add esp, 0x14
lea ecx, [ebp - 0x42c]
push 0
push 1
call fcn.004019c3
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4015af
lea eax, [ebp - 0x414]
jmp 0x401515
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040a159
mov esp, ebp
pop ebp
ret
Function at 0x401ec8
Capabilities:
Read .ini file

Disassembly:
push 0x258
mov eax, 0x55c524
call fcn.0040a1d5
mov edi, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x401ef0
xor al, al
jmp 0x402050
call fcn.004021e2
push 0x208
mov esi, eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00415c80
add esp, 0xc
lea eax, [ebp - 0x248]
mov ecx, edi
push dword [ebp - 0x264]
push eax
call fcn.00402424
and dword [ebp - 4], 0
lea ecx, [ebp - 0x218]
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push esi
cmovae eax, dword [ebp - 0x248]
mov esi, 0x55e5d0
push 0x104
push ecx
push esi
push eax
push 0x55e720
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0041c266
pop ecx
pop ecx
test eax, eax
jne 0x401fff
and dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x230]
push ecx
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x248]
mov ecx, edi
push eax
push 0x55e720
call fcn.00402058
test al, al
jne 0x401fc9
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.004019c3
xor bl, bl
jmp 0x40203f
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0041c2a6
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0
call fcn.004019c3
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.004022e3
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 2
cmp ebx, eax
je 0x40202e
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.00401bbb
push 0
push 1
lea ecx, [ebp - 0x260]
mov bl, 1
call fcn.004019c3
push 0
push 1
lea ecx, [ebp - 0x248]
call fcn.004019c3
mov al, bl
call fcn.0040a17f
ret 8

Function at 0x40215e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x5dc050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.00401650
mov ecx, eax
call fcn.00413208
push eax
push 0x64
lea eax, [ebp - 0xcc]
push eax
push 0x55e5d0
push str.UserID
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0xcc], 0
jne 0x4021ae
xor eax, eax
jmp 0x4021bb
lea eax, [ebp - 0xcc]
push eax
call fcn.004191f1
pop ecx
push eax
lea eax, [ebp - 0xcc]
mov ecx, esi
push eax
call fcn.00401c77
cmp dword [esi + 0x10], 0
mov ecx, dword [ebp - 4]
seta al
xor ecx, ebp
pop esi
call fcn.0040a159
mov esp, ebp
pop ebp
ret 4

Function at 0x402211
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x5dc050]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00401650
mov ecx, eax
call fcn.00413208
push eax
push 0x64
lea eax, [ebp - 0xcc]
push eax
push 0x55e5d0
push str.UserID
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xcc]
push eax
call fcn.004191f1
cmp eax, 1
pop ecx
mov ecx, dword [ebp - 4]
setg al
xor ecx, ebp
call fcn.0040a159
mov esp, ebp
pop ebp
ret
Function at 0x402965
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5dc050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
mov ecx, esi
call fcn.0040b689
mov ecx, esi
call fcn.00402a11
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp - 0x20c], di
je 0x4029bf
lea eax, [ebp - 0x20c]
push eax
call fcn.004191f1
pop ecx
mov edi, eax
push edi
lea eax, [ebp - 0x20c]
add esi, 0x1b0
push eax
mov ecx, esi
call fcn.00401c77
mov edi, str.WanNengWB
push edi
call fcn.004191f1
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00401b17
mov edi, 0x55e984
push edi
call fcn.004191f1
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00401b17
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.0040a159
mov esp, ebp
pop ebp
ret
Function at 0x404532
Capabilities:
Check if file exists
Copy file

Disassembly:
push 0x34
mov eax, 0x55c438
call fcn.0040a1d5
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
call fcn.004013f3
and dword [ebp - 4], 0
push 0x5c
push esi
call fcn.00415dda
add eax, 2
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00402a44
add esp, 0x18
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404595
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004019c3
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.004019c3
call fcn.0040a17f
ret 4
Function at 0x405b0e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x55c9ea
call fcn.0040a243
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x405b8b
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x405b8b
call fcn.00404432
mov esi, eax
jmp 0x405c62
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x405bae
call fcn.00404432
jmp 0x405c55
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x405ba4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x405bde
mov esi, 0x8007000e
jmp 0x405c57
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00404251
jmp 0x405c04
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x405bd7
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x41c]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x405ba4
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.004059d3
mov esi, eax
test edi, edi
je 0x405c62
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x405c7b
lea ecx, [ebp - 0x418]
call fcn.00404d88
mov eax, esi
call fcn.0040a190
ret 0x10
Function at 0x406572
Capabilities:
Copy file

Disassembly:
push 0x64
mov eax, 0x55ca93
call fcn.0040a1d5
lea eax, [ebp - 0x70]
push eax
call fcn.004013f3
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00401650
mov ecx, eax
call fcn.0041329c
push eax
lea ecx, [ebp - 0x58]
call fcn.00401320
mov esi, str.theme.ini
mov byte [ebp - 4], 1
push esi
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00402a44
push esi
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00402a44
add esp, 0x18
mov byte [ebp - 4], 3
call fcn.00401396
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push edi
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.004019c3
push edi
push 1
lea ecx, [ebp - 0x40]
call fcn.004019c3
push edi
push 1
lea ecx, [ebp - 0x58]
call fcn.004019c3
push edi
push 1
lea ecx, [ebp - 0x70]
call fcn.004019c3
call fcn.0040a17f
ret

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

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40715a
xor eax, eax
pop ebp
ret
and al, 0x10
xor cl, cl
cmp cl, al
sbb eax, eax
neg eax
pop ebp
ret
Function at 0x40718f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 0x1108], eax
je 0x4071c0
mov dword [edi + 0x10e4], 0x3f3
xor ebx, ebx
mov dword [edi + 0x10e8], ebx
mov dword [edi + 0x10ec], ebx
xor eax, eax
jmp 0x407302
mov eax, dword [0x5e6424]
cmp eax, 0xffffffff
je 0x4071e1
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4071e1
mov dword [edi + 0x10e4], 0x3f4
jmp 0x4071ab
push edi
push 1
call fcn.00409111
pop ecx
pop ecx
test eax, eax
jne 0x407203
xor ebx, ebx
mov dword [edi + 0x10e8], 0xe
mov dword [edi + 0x10e4], ebx
jmp 0x4071b3
lea ecx, [edi + 0x10cc]
call fcn.00408ee0
xor ebx, ebx
cmp dword [edi + 0x10f0], ebx
jne 0x4071b9
cmp dword [edi + 0x110c], ebx
jne 0x4072be
push esi
push 0x560410
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDICreate
push eax
mov dword [edi + 0x110c], eax
call esi
push str.FDICopy
push dword [edi + 0x110c]
mov dword [edi + 0x1110], eax
call esi
push str.FDIIsCabinet
push dword [edi + 0x110c]
mov dword [edi + 0x1114], eax
call esi
push str.FDIDestroy
push dword [edi + 0x110c]
mov dword [edi + 0x1118], eax
call esi
mov dword [edi + 0x111c], eax
pop esi
cmp dword [edi + 0x1110], ebx
je 0x4072a0
cmp dword [edi + 0x1114], ebx
je 0x4072a0
cmp dword [edi + 0x1118], ebx
je 0x4072a0
test eax, eax
jne 0x4072be
lea eax, [edi + 0x10cc]
mov dword [edi + 0x110c], ebx
mov dword [eax + 0x18], 0x3e8
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x20], ebx
jmp 0x4071b9
lea eax, [edi + 0x10cc]
push eax
push 1
push 0x408210
push fcn.00408196
push 0x40823a
push 0x4081e6
push 0x4081ba
push fcn.0040a85c
push fcn.00408166
call dword [edi + 0x1110]
xor ecx, ecx
mov dword [edi + 0x10f0], eax
add esp, 0x24
test eax, eax
setne cl
mov eax, ecx
pop edi
pop ebx
ret

Function at 0x407305
Capabilities:
Create directory

Disassembly:
push 8
mov eax, 0x55cb3b
call fcn.0040a1a1
push dword [ebp + 8]
call fcn.00407145
pop ecx
test eax, eax
je 0x407322
xor eax, eax
jmp 0x40738e
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.00406d88
push dword [ebp - 0x14]
and dword [ebp - 4], 0
call fcn.00408e88
push 0x5c
push dword [ebp - 0x14]
call fcn.00415dda
add esp, 0xc
test eax, eax
jne 0x40734f
push 0xf
pop esi
jmp 0x407383
push dword [ebp - 0x14]
xor ecx, ecx
mov word [eax], cx
call fcn.00407305
mov esi, eax
pop ecx
test esi, esi
jne 0x407383
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407381
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x407383
xor esi, esi
push dword [ebp - 0x14]
call fcn.0040a85c
pop ecx
mov eax, esi
call fcn.0040a16a
ret
Function at 0x4077ee
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55cb82
mov eax, dword fs:[0]
push eax
mov eax, 0x1764
call fcn.0040a610
mov eax, dword [0x5dc050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.00415c80
add esp, 0xc
call fcn.00401650
cmp dword [ebp + 0xc], 0
mov ecx, eax
je 0x40784f
call fcn.00402956
jmp 0x407854
call fcn.0041329c
push eax
lea eax, [ebp - 0x218]
push 0x55e694
push eax
call fcn.00401e48
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call fcn.00412ab2
pop ecx
lea ecx, [ebp - 0x1760]
call fcn.00406cc2
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1760]
call fcn.0040718f
test eax, eax
je 0x4079c5
push edi
lea ecx, [ebp - 0x1768]
call fcn.00406d88
lea eax, [ebp - 0x640]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1768]
push eax
lea ecx, [ebp - 0x1760]
call fcn.00408b73
push dword [ebp - 0x1768]
mov ebx, eax
mov byte [ebp - 4], 0
neg ebx
sbb bl, bl
call fcn.0040a85c
pop ecx
add bl, 1
jne 0x4079c5
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x1770]
call fcn.00406d88
push edi
lea ecx, [ebp - 0x1768]
mov byte [ebp - 4], 2
call fcn.00406d88
push esi
lea eax, [ebp - 0x1770]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x1768]
push eax
lea ecx, [ebp - 0x1760]
call fcn.00407dbd
push dword [ebp - 0x1768]
mov ebx, eax
neg ebx
sbb bl, bl
call fcn.0040a85c
push dword [ebp - 0x1770]
mov byte [ebp - 4], 0
call fcn.0040a85c
pop ecx
pop ecx
add bl, 1
jne 0x4079c5
lea ecx, [ebp - 0x1760]
call fcn.00407166
test eax, eax
je 0x4079c5
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00408d61
test al, al
je 0x4079c0
mov ecx, esi
call fcn.00408d2c
test al, al
je 0x4079c0
push str.VipSkin.xml
lea eax, [ebp - 0x218]
mov esi, 0x55e5d4
push eax
lea eax, [ebp - 0x628]
push esi
push eax
call fcn.00401e48
push str.Skin.xml
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push esi
push eax
call fcn.00401e48
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.00421d83
add esp, 0x28
xor ebx, ebx
inc ebx
jmp 0x4079c7
xor bl, bl
lea ecx, [ebp - 0x1760]
call fcn.00406e55
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a159
mov esp, ebp
pop ebp
ret 8