joyce8/EMBER2024-capa huggingface dataset:
Function at 0x67a4be
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x6d63d0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x67a4ef
xor eax, eax
jmp 0x67a678
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x772a80]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x67a52b
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0067f936
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x67a606
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x67a644
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x67a58f
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x67a580
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x67a560
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x67a5cf
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x67a5d8
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x67a551
jmp 0x67a5da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x67a673
cmp dword [ebp - 0x6c], edi
je 0x67a644
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x67a639
call fcn.00677933
mov dword [eax], 9
call fcn.0067793c
mov dword [eax], esi
jmp 0x67a66e
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x67a62e
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x67a5da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x67a5da
push dword [ebp - 0x6c]
call fcn.00677945
pop ecx
jmp 0x67a66e
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x67a65c
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x67a65c
xor eax, eax
jmp 0x67a676
call fcn.00677933
mov dword [eax], 0x1c
call fcn.0067793c
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x67a676
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00671b23
add ebp, 0x3a0
leave
ret
Function at 0x67b0c8
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00671cc0
mov eax, dword [0x6d63d0]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.006739b1
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x67b1fb
push 2
push esi
push dword [ebp + 8]
call fcn.006739b1
add esp, 0xc
cmp eax, ebx
je 0x67b1fb
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x67b19b
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0067d4b0
push 0x8000
push dword [ebp + 8]
call fcn.0067f9b9
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x67b151
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0067a4be
add esp, 0xc
cmp eax, 0xffffffff
je 0x67b171
sub edi, eax
test edi, edi
jg 0x67b149
jmp 0x67b189
call fcn.0067793c
cmp dword [eax], 5
jne 0x67b186
call fcn.00677933
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0067f9b9
pop ecx
pop ecx
jmp 0x67b1e3
jge 0x67b1e3
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.006739b1
push dword [ebp + 8]
call fcn.0067ae49
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x67b1e3
call fcn.00677933
mov dword [eax], 0xd
call fcn.0067793c
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.006739b1
add esp, 0xc
mov eax, esi
pop edi
jmp 0x67b1fd
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00671b23
leave
ret
Function at 0x67b7d4
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 0x67b802
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 0x67b809
cmp ebx, dword [eax + 4]
jae 0x67b809
xor eax, eax
jmp 0x67b9f9
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x67b81a
xor eax, eax
inc eax
jmp 0x67b9f8
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x67b830
cmp ecx, edx
jae 0x67b975
cmp dword [eax + 4], 0
je 0x67b839
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x67b821
cmp dword [ebp + 8], 0
je 0x67b85b
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x67b975
cmp eax, esi
jae 0x67b975
mov eax, dword [0x7723f8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x67b880
cmp dword [esi*4 + 0x772400], edi
je 0x67b979
inc esi
cmp esi, eax
jl 0x67b86e
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x67b9f5
cmp dword [ebp - 8], 0x1000000
jne 0x67b9f5
test byte [ebp - 0xc], 0xcc
je 0x67b8fe
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x67b9f5
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x67b9f5
cmp word [eax + 0x18], 0x10b
jne 0x67b9f5
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x67b9f5
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x67b8fe
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x67b8fe
test byte [ecx + 0x27], 0x80
jne 0x67b975
push 1
push 0x772440
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x67b812
mov ecx, dword [0x7723f8]
test ecx, ecx
mov edx, ecx
jle 0x67b932
lea eax, [ecx*4 + 0x7723fc]
cmp dword [eax], edi
je 0x67b932
dec edx
sub eax, 4
test edx, edx
jg 0x67b926
test edx, edx
jne 0x67b963
push 0xf
pop ebx
cmp ecx, ebx
jg 0x67b93f
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x67b957
lea eax, [edx*4 + 0x772400]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x67b945
cmp ecx, 0x10
jge 0x67b963
inc ecx
mov dword [0x7723f8], ecx
push 0
push 0x772440
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x67b812
xor eax, eax
jmp 0x67b9f8
test esi, esi
jle 0x67b812
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x772440
call ebx
test eax, eax
jne 0x67b812
cmp dword [esi*4 + 0x772400], edi
je 0x67b9cf
mov eax, dword [0x7723f8]
lea esi, [eax - 1]
test esi, esi
jl 0x67b9bd
cmp dword [esi*4 + 0x772400], edi
je 0x67b9b9
dec esi
jns 0x67b9ad
test esi, esi
jge 0x67b9cd
cmp eax, 0x10
jge 0x67b9c8
inc eax
mov dword [0x7723f8], eax
lea esi, [eax - 1]
jmp 0x67b9cf
je 0x67b9e7
xor ecx, ecx
test esi, esi
jl 0x67b9e7
lea eax, [ecx*4 + 0x772400]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x67b9d5
push 0
push 0x772440
call ebx
jmp 0x67b812
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x67cb88
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00671cc0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x67cc23
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x772204]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x67cc23
cmp eax, 1
je 0x67cc44
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x67cc23
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x67cbf0
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x67cc1f
xor eax, eax
inc eax
jmp 0x67cc63
cmp edi, eax
jae 0x67cc27
xor eax, eax
jmp 0x67cc63
cmp eax, esi
jae 0x67cc2e
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x772204]
jmp 0x67cc47
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x67cd00
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x6d63d0]
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 + 0x6d6db0]
je 0x67cd35
inc eax
cmp eax, 0x13
jb 0x67cd26
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x6d6db0]
jne 0x67ce5b
mov eax, dword [0x77225c]
cmp eax, 1
je 0x67ce33
cmp eax, edx
jne 0x67cd65
cmp dword [0x6d6414], 1
je 0x67ce33
cmp ecx, 0xfc
je 0x67ce5b
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 0x67cd9b
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0067ca90
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00678c30
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x67cdcf
mov eax, edi
push eax
call fcn.00678c30
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x6a6804
push edi
call fcn.00671e90
add esp, 0x10
push edi
call fcn.00678c30
push dword [esi + 0x6d6db4]
mov ebx, eax
call fcn.00678c30
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00671cc0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0067ca90
push edi
push ebx
call fcn.0067caa0
push 0x6a6800
push ebx
call fcn.0067caa0
push dword [esi + 0x6d6db4]
push ebx
call fcn.0067caa0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0067e232
add esp, 0x2c
jmp 0x67ce5b
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x6d6db4]
push dword [esi]
call fcn.00678c30
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.00671b23
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x67e232
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x772644], ebx
push esi
push edi
jne 0x67e2b2
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x67e2ed
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6ab09c
push edi
call esi
test eax, eax
mov dword [0x772644], eax
je 0x67e2ed
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x772648], eax
call esi
cmp dword [0x772204], 2
mov dword [0x77264c], eax
jne 0x67e2b2
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x772654], eax
je 0x67e2b2
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x772650], eax
mov eax, dword [0x772650]
test eax, eax
je 0x67e2f7
call eax
test eax, eax
je 0x67e2de
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x772654]
test eax, eax
je 0x67e2de
test byte [ebp - 8], 1
jne 0x67e2f7
cmp dword [0x772210], 4
jb 0x67e2f1
or byte [ebp + 0x12], 0x20
jmp 0x67e316
xor eax, eax
jmp 0x67e326
or byte [ebp + 0x12], 4
jmp 0x67e316
mov eax, dword [0x772648]
test eax, eax
je 0x67e316
call eax
mov ebx, eax
test ebx, ebx
je 0x67e316
mov eax, dword [0x77264c]
test eax, eax
je 0x67e316
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x772644]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48f620
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
xor ebx, ebx
mov eax, esi
call fcn.0044db6c
test al, al
je 0x48f6de
mov byte [ebp - 9], 0
xor ebx, ebx
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 8], eax
jmp 0x48f6bc
cmp word [esi + 0x5f2], 0
je 0x48f671
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 9]
push eax
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [esi + 0x5f4]
call dword [esi + 0x5f0]
mov al, byte [esi + 0x5e8]
or al, byte [ebp - 9]
jne 0x48f693
cmp dword [ebp - 4], 0
jbe 0x48f68f
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
ja 0x48f693
xor ebx, ebx
jmp 0x48f695
mov bl, 1
test bl, bl
jne 0x48f6de
mov eax, dword [0x49e4d4]
mov eax, dword [eax]
cmp byte [eax + 0x9c], 0
jne 0x48f6de
mov eax, dword [0x49e4d4]
mov eax, dword [eax]
call fcn.00466e78
push 1
call sub.kernel32.dll_Sleep_1
test esi, esi
je 0x48f6de
cmp byte [esi + 0x588], 0
jne 0x48f6de
mov edx, 0xfffffdf3
mov eax, esi
call fcn.0046e6b0
cmp eax, 4
jne 0x48f64e
mov byte [esi + 0x5e8], 0
test bl, bl
sete al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x499158
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4991ee
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4015
push 0xae9b1200
push 0
call fcn.0042b8ac
cmp eax, 0x8ddabf
jne 0x499194
mov eax, 0x499204
call fcn.00430c48
push 0
push 0
push 0xe
push esi
call sub.user32.dll_SendMessageA
mov ebx, eax
inc ebx
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004047dc
lea eax, [ebp - 4]
call fcn.004046a8
push eax
push ebx
push 0xd
push esi
call sub.user32.dll_SendMessageA
mov edx, 0x499214
mov eax, 0x499244
call fcn.0040cdb8
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.004041e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4991f5
lea eax, [ebp - 4]
call fcn.00404190
ret
Function at 0x49926c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x499274
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404640
xor eax, eax
push ebp
push 0x4993f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x499410
mov eax, 0x499440
call fcn.0040cdb8
mov eax, edi
call fcn.00404190
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404650
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4993d4
mov eax, ebx
call fcn.00402800
mov esi, eax
lea ecx, [ebp - 0x14]
mov edx, 5
mov eax, 0x499470
call fcn.004341fc
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
xor edx, edx
mov eax, 0x4994a0
call fcn.004341fc
mov edx, dword [ebp - 0x18]
pop eax
call fcn.0040459c
jne 0x499311
lea edx, [ebp - 0x1c]
mov eax, 0x4994b0
call fcn.004084a0
push esi
push ebx
push 0
mov eax, dword [ebp - 4]
call fcn.00404650
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4994b8
push esi
call sub.version.dll_VerQueryValueA
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
shr eax, 0x10
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.004088fc
push dword [ebp - 0x20]
push 0x4994c4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x24]
call fcn.004088fc
push dword [ebp - 0x24]
push 0x4994c4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
shr eax, 0x10
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x28]
call fcn.004088fc
push dword [ebp - 0x28]
push 0x4994c4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x2c]
call fcn.004088fc
push dword [ebp - 0x2c]
mov eax, edi
mov edx, 7
call fcn.00404510
lea eax, [ebp - 0x30]
push eax
mov ecx, 0x4994a0
mov edx, 0x4994d0
mov eax, 0x4994dc
call fcn.00434160
mov eax, esi
call fcn.00402820
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4993fe
lea eax, [ebp - 0x30]
mov edx, 8
call fcn.004041b4
lea eax, [ebp - 4]
call fcn.00404190
ret
Function at 0x401690
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x828
mov eax, dword [0x448728]
xor eax, esp
mov dword [esp + 0x824], eax
push esi
push 0x44
lea eax, [esp + 0x18]
push 0
push eax
mov esi, ecx
call fcn.00423e40
xor eax, eax
push esi
lea ecx, [esp + 0x68]
push 0x43e988
push ecx
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.00421a5b
add esp, 0x18
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [esp + 0x78]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40171f
pop esi
mov ecx, dword [esp + 0x824]
xor ecx, esp
call fcn.0042178f
add esp, 0x828
ret
mov edx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
mov ecx, dword [esp + 0x828]
pop esi
xor ecx, esp
mov eax, 1
call fcn.0042178f
add esp, 0x828
ret

Function at 0x404070
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404089
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4040c4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4040c0
lea ebx, [ebx]
cmp esi, eax
jae 0x4040c4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4040b0
cmp esi, eax
jb 0x4040ca
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4055b0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20c
mov eax, dword [0x448728]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push 0x206
lea eax, [esp + 0xa]
push 0
push eax
mov esi, ecx
mov word [esp + 0x10], 0
call fcn.00423e40
add esp, 0xc
cmp dword [esi + 0x38], 8
jb 0x4055ed
mov esi, dword [esi + 0x24]
jmp 0x4055f0
add esi, 0x24
push str.AllSkin
push esi
lea ecx, [esp + 0xc]
push str._s_s_
push ecx
call fcn.00421a5b
add esp, 0x10
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
pop esi
jne 0x405620
lea eax, [esp]
call fcn.00406b30
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0042178f
add esp, 0x20c
ret

Function at 0x405640
Capabilities:
Check if file exists
Create directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x448728]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
push edi
push 0x206
lea eax, [esp + 0x12]
push 0
push eax
mov esi, ecx
mov word [esp + 0x18], 0
call fcn.00423e40
add esp, 0xc
cmp dword [esi + 0x1c], 8
jb 0x40567f
mov eax, dword [esi + 8]
jmp 0x405682
lea eax, [esi + 8]
push 0x43ee4c
push eax
lea ecx, [esp + 0x14]
push str._s_s_
push ecx
call fcn.00421a5b
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jne 0x4056ba
push 0
lea eax, [esp + 0x10]
push eax
call ebx
cmp dword [esi + 0x1c], 8
jb 0x4056c5
mov esi, dword [esi + 8]
jmp 0x4056c8
add esi, 8
push str.Dict
push esi
lea ecx, [esp + 0x14]
push str._s_s_
push ecx
call fcn.00421a5b
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
test eax, eax
jne 0x4056f3
push eax
lea eax, [esp + 0x10]
push eax
call ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042178f
add esp, 0x20c
ret

Function at 0x405710
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20c
mov eax, dword [0x448728]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 8
jb 0x405732
mov eax, dword [esi + 0x24]
jmp 0x405735
lea eax, [esi + 0x24]
push str.Config
push eax
lea eax, [esp + 0xc]
push str._s_s_
push eax
call fcn.00421a5b
add esp, 0x10
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405765
lea eax, [esp + 4]
call fcn.00406b30
lea eax, [esp + 4]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x405770
mov edx, dword [str.Config.ini]
mov ecx, dword [0x43ee74]
mov dword [eax], edx
mov edx, dword [0x43ee78]
mov dword [eax + 4], ecx
mov ecx, dword [0x43ee7c]
mov dword [eax + 8], edx
mov edx, dword [0x43ee80]
mov dword [eax + 0xc], ecx
mov cx, word [0x43ee84]
mov dword [eax + 0x10], edx
mov word [eax + 0x14], cx
lea eax, [esp + 4]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4057c0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 8]
push edx
add esi, 0x3c
call fcn.00401210
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.0042178f
add esp, 0x20c
ret
Function at 0x405800
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20c
mov eax, dword [0x448728]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 8
jb 0x405822
mov eax, dword [esi + 0x24]
jmp 0x405825
lea eax, [esi + 0x24]
push str.Config
push eax
lea eax, [esp + 0xc]
push str._s_s_
push eax
call fcn.00421a5b
add esp, 0x10
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405855
lea eax, [esp + 4]
call fcn.00406b30
lea eax, [esp + 4]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x405860
mov edx, dword [str.Related.ini]
mov ecx, dword [0x43ee8c]
mov dword [eax], edx
mov edx, dword [0x43ee90]
mov dword [eax + 4], ecx
mov ecx, dword [0x43ee94]
mov dword [eax + 8], edx
mov edx, dword [0x43ee98]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x43ee9c]
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], ecx
lea eax, [esp + 4]
lea edx, [eax + 2]
jmp 0x4058b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4058b0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 8]
push edx
add esi, 0xc8
call fcn.00401210
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.0042178f
add esp, 0x20c
ret

Function at 0x405a10
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20c
mov eax, dword [0x448728]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 8
jb 0x405a32
mov eax, dword [esi + 0x24]
jmp 0x405a35
lea eax, [esi + 0x24]
push str.UseData
push eax
lea eax, [esp + 0xc]
push str._s_s_
push eax
call fcn.00421a5b
add esp, 0x10
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405a65
lea eax, [esp + 4]
call fcn.00406b30
lea eax, [esp + 4]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405a70
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 8]
push edx
add esi, 0x138
call fcn.00401210
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.0042178f
add esp, 0x20c
ret