joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp + 8]
cmp ecx, edx
jbe 0x404038
xor byte [eax], 0xf5
inc edx
inc eax
cmp ecx, edx
ja 0x40402f
pop ebp
ret

Function at 0x40dde4
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor ecx, ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov esi, dword [ebx]
mov eax, dword [eax]
mov edx, dword [edx + 4]
mov dword [ebp - 4], esi
mov esi, dword [ebx + 4]
mov dword [ebp - 8], esi
mov esi, dword [ebx + 8]
mov dword [ebp - 0xc], esi
mov ebx, dword [ebx + 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, 0x20
jmp 0x40de53
add ecx, 0x9e3779b9
mov esi, edx
shl esi, 4
add esi, dword [ebp - 4]
lea edi, [ecx + edx]
xor esi, edi
mov edi, edx
shr edi, 5
add edi, dword [ebp - 8]
xor esi, edi
add eax, esi
mov esi, eax
shl esi, 4
add esi, dword [ebp - 0xc]
lea edi, [ecx + eax]
xor esi, edi
mov edi, eax
shr edi, 5
add edi, dword [ebp - 0x10]
xor esi, edi
add edx, esi
mov esi, ebx
add ebx, 0xffffffff
test esi, esi
jg 0x40de1b
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x47f518
Capabilities:
Packed with generic packer

Disassembly:
pushfd
pushfd
nop
lea esp, [esp + 8]
js 0x4879bd
pushal
mov ebx, dword [esp + 0x20]
pushfd
mov dword [esp + 4], 0xdc07a27d
xchg dword [esp + 0x28], ebx
jmp 0x48e7f8
pushfd
call fcn.00482ce3
movsx bx, dl
movzx bx, dl
pop ebx
pushfd
pushal
push ebp
pushfd
xchg dword [esp + 0x2c], ebx
lea esp, [esp + 0x2c]
jns 0x485be7
push ebx
xchg dword [esp], ebx
lea ebx, [edx + 0x5d68cfcd]
call fcn.0047feb4
stc
neg dword [ecx]
ficomp word [eax + ebp*8 + 0x70c7]
mov dword [esp + 0x24], ebx
pushal
push esi
push ebp
mov ebx, 0x4104ab
call fcn.00481e42
xchg ebx, eax
mov byte [0x106116c1], al
loopne 0x48e826
push ebx
cdq
dec eax
xchg byte [esi - 0x26355a6d], al
rcl bh, cl
add eax, 0xf86f1bf8
sbb ebp, dword [edi - 8]
loop 0x48e81e
xor eax, 0x2b1614d
popal
mov cl, 2
insd dword es:[edi], dx
retf 0xe2bb

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

Disassembly:
call fcn.0048883d
mov edi, 0xe591533a
lodsb al, byte [esi]
mul ecx
insd dword es:[edi], dx
add eax, 0xb2a28f10
invalid
pushal
jmp 0x48434c

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4194a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd000]
push edi
jmp 0x4194ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4194c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4194b0
mov eax, 1
add ebx, ebx
jne 0x4194d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4194c8
jne 0x4194e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4194c8
xor ecx, ecx
sub eax, 3
jb 0x4194f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41956a
mov ebp, eax
add ebx, ebx
jne 0x419503
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419510
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x419534
inc ecx
add ebx, ebx
jne 0x419520
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x419515
jne 0x419531
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419515
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x419554
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x419545
jmp 0x4194b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x419554
add edi, ecx
jmp 0x4194b6
pop esi
mov edi, esi
mov ecx, 0x74
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x419572
cmp byte [edi], 1
jne 0x419572
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 0x419577
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4195e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1ea88]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1eb64]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4195a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1eb6c]
or eax, eax
je 0x4195e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4195c1
call dword [esi + 0x1eb68]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x419617
cmp al, 0xef
ja 0x41960a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4195ec
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4195f9
mov ebp, dword [esi + 0x1eb70]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x41964b
sub esp, 0xffffff80
jmp 0x401b0d
Function at 0x405c13
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405ede
test bl, 8
mov dword [ebp - 8], eax
je 0x405c52
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x4702a8], eax
jmp 0x405dcf
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405c6c
test eax, eax
je 0x405d7d
test bl, 2
je 0x405d7d
mov esi, 0x456710
push edi
push esi
call fcn.00406507
cmp dword [ebp + 8], 0
je 0x405c8b
push 0x40a56c
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405c91
push edi
call fcn.00405e22
cmp word [edi], 0
jne 0x405ca1
cmp word [0x456710], 0x5c
jne 0x405cac
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405d72
cmp word [ebp - 0x22c], 0x2e
jne 0x405cf6
cmp word [ebp - 0x22a], 0
je 0x405d55
cmp word [ebp - 0x22a], 0x2e
jne 0x405cf6
cmp word [ebp - 0x228], 0
je 0x405d55
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406507
test byte [ebp - 0x258], 0x10
je 0x405d21
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405d55
push dword [ebp + 0xc]
push edi
call fcn.00405c13
jmp 0x405d55
push dword [ebp - 4]
push edi
call fcn.00405bcb
test eax, eax
jne 0x405d4d
cmp dword [ebp - 4], eax
je 0x405d45
push edi
push 0xfffffffffffffff1
call fcn.00405569
push 0
push edi
call fcn.004062c7
jmp 0x405d55
inc dword [0x4702a8]
jmp 0x405d55
push edi
push 0xfffffffffffffff2
call fcn.00405569
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405cce
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405d7d
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405dcf
cmp dword [ebp - 8], esi
jne 0x405d91
inc dword [0x4702a8]
jmp 0x405dcf
push edi
call fcn.0040683d
test eax, eax
je 0x405dcf
push edi
call fcn.00405dd6
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405bcb
test eax, eax
jne 0x405dc7
cmp dword [ebp - 4], esi
je 0x405d89
push edi
push 0xfffffffffffffff1
call fcn.00405569
push esi
push edi
call fcn.004062c7
jmp 0x405dcf
push edi
push 0xffffffffffffffe5
call fcn.00405569
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40397d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403994
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4039c9
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4039c5
cmp edi, eax
jae 0x4039c9
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4039b7
cmp edi, eax
jb 0x4039cd
xor eax, eax
jmp 0x4039d6
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x405634
Capabilities:
Encode data using base64

Disassembly:
push 0x14
mov eax, 0x50486b
call fcn.004d99c6
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x18], 0
cmp dword [eax + 0x14], 0x10
jb 0x405654
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
jmp 0x405657
mov dword [ebp - 0x14], eax
mov edi, dword [ebp + 8]
mov eax, dword [eax + 0x10]
and dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
and dword [ebp - 4], 0
xor esi, esi
mov dword [ebp - 0x18], 1
test eax, eax
je 0x405794
dec eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov al, byte [eax]
mov byte [ebp + esi + 0xc], al
mov bl, byte [ebp + 0xd]
inc esi
inc dword [ebp - 0x14]
cmp esi, 3
jne 0x4056f2
mov al, byte [ebp + 0xc]
shr al, 2
mov byte [ebp - 0x10], al
mov al, byte [ebp + 0xc]
and al, 3
shl al, 4
mov cl, bl
shr cl, 4
add al, cl
mov cl, byte [ebp + 0xe]
mov byte [ebp - 0xf], al
mov al, bl
and al, 0xf
shl al, 2
shr cl, 6
add al, cl
mov byte [ebp - 0xe], al
mov al, byte [ebp + 0xe]
and al, 0x3f
mov byte [ebp - 0xd], al
xor esi, esi
movzx eax, byte [ebp + esi - 0x10]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 0x1c], al
push dword [ebp - 0x1c]
mov ecx, edi
push 1
call fcn.00408d8b
inc esi
cmp esi, 4
jl 0x4056d0
xor esi, esi
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x405680
test esi, esi
je 0x405794
cmp esi, 3
jge 0x40571e
push 3
pop ecx
sub ecx, esi
push ecx
lea eax, [ebp + esi + 0xc]
push 0
push eax
call fcn.004d8ce0
mov bl, byte [ebp + 0xd]
add esp, 0xc
mov al, byte [ebp + 0xc]
mov cl, al
shr cl, 2
mov byte [ebp - 0x10], cl
and al, 3
mov cl, bl
shl al, 4
shr cl, 4
add al, cl
mov byte [ebp - 0xf], al
mov al, byte [ebp + 0xe]
and bl, 0xf
mov cl, al
shl bl, 2
shr cl, 6
add bl, cl
mov byte [ebp - 0xe], bl
and al, 0x3f
lea ebx, [esi + 1]
xor edi, edi
mov byte [ebp - 0xd], al
test ebx, ebx
jle 0x405779
movzx eax, byte [ebp + edi - 0x10]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, dword [ebp + 8]
mov byte [ebp + 0xc], al
push dword [ebp + 0xc]
push 1
call fcn.00408d8b
inc edi
cmp edi, ebx
jl 0x405759
push 3
pop edi
cmp esi, edi
jge 0x405791
sub edi, esi
mov ecx, dword [ebp + 8]
push 0x3d
push 1
call fcn.00408d8b
dec edi
jne 0x405782
mov edi, dword [ebp + 8]
mov eax, edi
call fcn.004d9a9e
ret
Function at 0x40e7c2
Capabilities:
Get system information on windows

Disassembly:
push 0x14c
mov eax, 0x50775c
call fcn.004d9a2f
lea ecx, [ebp - 0x88]
call fcn.0040eae5
lea eax, [ebp - 0x34]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp - 0x139], bl
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x34], 9
je 0x40e7ff
cmp word [ebp - 0x34], 6
jne 0x40e806
mov byte [ebp - 0x139], 1
xor eax, eax
cmp byte [ebp - 0x139], bl
sete al
dec eax
and eax, 0x20
add eax, 0x20
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov eax, dword [ebp - 0x138]
cdq
push 0xffffffffffffffc4
pop ecx
idiv ecx
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00428151
pop ecx
lea esi, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.0040e9fc
lea edi, [ebp - 0x158]
mov byte [ebp - 4], 2
call fcn.004048e3
mov dword [ebp - method.DuiLib::CControlUI.virtual_372], vtable.sensors_analytics::PropertiesNode.0
push 0xf
pop edi
mov byte [ebp - 4], 3
push 6
push str.ostype
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004023d3
push str.windows
lea esi, [ebp - 0x2c]
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 4
call fcn.00404432
push ebx
push 1
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0040248a
push 0xa
push str.os_version
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004023d3
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x2c]
lea edi, [ebp - 0x158]
mov byte [ebp - 4], 5
call fcn.00404392
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040248a
push 0xf
pop esi
push 5
push str.osbit
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004023d3
mov byte [ebp - 4], 6
push dword [ebp - 0x140]
lea edi, [ebp - 0x2c]
lea ecx, [ebp - 0x158]
call fcn.00404178
push ebx
push 1
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.0040248a
push 6
push str.oslang
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004023d3
lea edx, [ebp - 0x6c]
lea ecx, [ebp - 0x2c]
lea edi, [ebp - 0x158]
mov byte [ebp - 4], 7
call fcn.00404392
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040248a
push 6
push str.oszone
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004023d3
push dword [ebp - 0x144]
lea edi, [ebp - 0x2c]
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 8
call fcn.00404178
xor esi, esi
push ebx
inc esi
push esi
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.0040248a
mov eax, dword [0x5500a8]
cmp eax, ebx
je 0x40e9c5
mov edx, dword [eax]
lea edi, [ebp - 0x158]
call fcn.004048a4
lea eax, [ebp - 0x154]
push eax
mov byte [ebp - 4], 2
call fcn.004073dd
push ebx
push esi
lea ecx, [ebp - 0x50]
call fcn.0040248a
push ebx
push esi
lea ecx, [ebp - 0x6c]
call fcn.0040248a
push ebx
push esi
lea ecx, [ebp - 0x88]
call fcn.00403de3
call fcn.004d9ab2
ret
Function at 0x40eae5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x9c
lea ebp, [esp - 4]
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0x18
mov eax, 0x5032b0
call fcn.004d99c6
xor ebx, ebx
mov dword [ebp - 4], ebx
xor eax, eax
mov dword [ebp - 0x20], ebx
push 0x7e
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x14], esi
call fcn.004d8ce0
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x20019
push ebx
push ebx
push ebx
push str.Control_PanelDesktopMuiCached
push reloc.gdiplus.dll_Ordinal_1
mov dword [ebp - 0x18], 0x40
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40eb88
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push str.MachinePreferredUILanguages
push dword [ebp - 0x10]
mov dword [ebp - 0x24], 7
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0x1c]
push eax
mov ecx, esi
call fcn.0040ed9b
push ebx
xor edi, edi
push 0x535f00
mov dword [ebp - 4], ebx
inc edi
push esi
mov dword [ebp - 0x20], edi
call fcn.0040ec13
cmp eax, 0xffffffff
je 0x40ebd2
push eax
push ebx
push esi
lea esi, [ebp]
call fcn.0040ec3e
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0x14]
mov esi, eax
call fcn.0040ec6c
push ebx
push 1
lea ecx, [ebp]
call fcn.00403de3
mov esi, edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.004d57db
add ebp, 0xa0
leave
ret
Function at 0x41255a
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 0x1c
mov eax, 0x50605d
call fcn.004d99c6
xor eax, eax
push 0x206
mov word [ebp + 0x1c], ax
xor ebx, ebx
lea eax, [ebp + 0x1e]
push ebx
push eax
call fcn.004d8ce0
add esp, 0xc
lea eax, [ebp + 0x1c]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, ebx
jle 0x4125c2
cmp word [ebp + eax*2 + 0x1a], 0x5c
je 0x4125c2
push 0x535218
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor eax, eax
mov word [ebp], ax
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
mov dword [ebp + 0x14], 7
mov dword [ebp + 0x10], ebx
call fcn.0040ed76
push 0x53521c
lea ecx, [ebp]
mov dword [ebp - 4], ebx
call fcn.00411668
lea eax, [ebp]
push eax
call fcn.0042b93e
pop ecx
test al, al
jne 0x412608
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.0040ed76
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [ebp]
call fcn.004116ab
test byte [0x550a54], 1
jne 0x412658
or dword [0x550a54], 1
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.00428151
pop ecx
push eax
mov byte [ebp - 4], 2
call fcn.0042727d
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0040248a
push 0x509154
call fcn.004d7cf9
pop ecx
mov byte [ebp - 4], bl
mov dword [0x5500d4], 0x5509d8
call fcn.00427380
push ebx
push 1
lea ecx, [ebp]
call fcn.00403de3
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.004d57db
add ebp, 0x228
leave
ret

Function at 0x412697
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, eax
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x4126b5
xor eax, eax
jmp 0x412723
cmp dword [ebp - 0x14], 0x10000
je 0x4126b1
push edi
mov edi, dword [ebp - 0x20]
push 0x104
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x412720
mov eax, dword [edi + 0x3c]
sub esi, dword [ebp - 0x20]
and dword [ebp - 4], 0
add eax, edi
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
movzx eax, word [eax + 6]
xor edx, edx
mov dword [ebp - 8], eax
cmp dx, ax
jae 0x412720
mov edx, dword [ecx + 0x10]
mov edi, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
cmp edx, edi
ja 0x412706
mov edx, edi
cmp esi, eax
jb 0x412710
add edx, eax
cmp esi, edx
jbe 0x412726
inc dword [ebp - 4]
mov ax, word [ebp - 4]
add ecx, 0x28
cmp ax, word [ebp - 8]
jb 0x4126f7
xor eax, eax
pop edi
pop esi
leave
ret
sub esi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ecx]
mov dword [ebx], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
xor eax, eax
mov byte [ebx + 8], 0
inc eax
jmp 0x412722
Function at 0x412aa1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x310
lea ebp, [esp - 4]
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp + 0x310], eax
push 4
mov eax, 0x501baf
call fcn.004d99c6
push 0xffffffffffffffff
push str.LANG_EN
lea ecx, [ebp]
call fcn.0043a95a
xor ebx, ebx
push str.LANG_JP
lea ecx, [ebp]
mov dword [ebp - 4], ebx
call fcn.0043a6c2
push 4
call fcn.0043b337
lea eax, [ebp + 0x84]
push eax
call fcn.0043b1c6
pop ecx
pop ecx
mov byte [ebp - 4], 1
call fcn.0043b344
dec eax
je 0x412c50
dec eax
je 0x412c13
dec eax
je 0x412b9b
dec eax
jne 0x412ccd
push 0x535318
push 0x85
call fcn.0043b2b6
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
je 0x412ccd
push edi
call fcn.0043b2b6
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
cmp esi, ebx
je 0x412b8f
push edi
call fcn.0043b2b6
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, ebx
jbe 0x412b8f
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call fcn.0043ddec
add esp, 0xc
push ebx
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
mov dword [eax], 0x535328
call fcn.00413b25
mov ecx, eax
call fcn.00442441
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x412ccd
xor eax, eax
push 0x206
mov word [ebp + 0x108], ax
lea eax, [ebp + 0x10a]
push ebx
push eax
call fcn.004d8ce0
sub esp, 0x78
push 0x21
pop ecx
mov edi, esp
lea eax, [ebp + 0x108]
push str.skin_s_skin_
lea esi, [ebp]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x8c
lea eax, [ebp + 0x108]
push eax
lea ecx, [ebp + 0x84]
call fcn.0043a703
lea ecx, [ebp + 0x84]
call fcn.0043a556
push eax
call fcn.0043b2f0
mov dword [esp], 0x5352d0
push ecx
mov eax, esp
mov dword [eax], str.IDR_RES
jmp 0x412cbe
push str.skin_
lea ecx, [ebp + 0x84]
call fcn.0043a703
lea ecx, [ebp + 0x84]
call fcn.0043a556
push eax
call fcn.0043b2f0
push ebx
push 1
push str.res.zip
call fcn.0043de7a
add esp, 0x10
push ebx
push ecx
mov eax, esp
mov dword [eax], 0x535304
jmp 0x412cbe
xor eax, eax
push 0x206
mov word [ebp + 0x108], ax
lea eax, [ebp + 0x10a]
push ebx
push eax
call fcn.004d8ce0
sub esp, 0x78
push 0x21
pop ecx
mov edi, esp
lea eax, [ebp + 0x108]
push str...lib_skin_s_skin_
lea esi, [ebp]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x8c
lea eax, [ebp + 0x108]
push eax
lea ecx, [ebp + 0x84]
call fcn.0043a703
lea ecx, [ebp + 0x84]
call fcn.0043a556
push eax
call fcn.0043b2f0
pop ecx
push ebx
push ecx
mov eax, esp
mov dword [eax], str.res.xml
mov dword [ebp - 0x10], esp
call fcn.00413b25
mov ecx, eax
call fcn.00442441
lea ecx, [ebp + 0x84]
mov byte [ebp - 4], bl
call fcn.0043a53c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.0043a53c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x310]
xor ecx, ebp
call fcn.004d57db
add ebp, 0x314
leave
ret
Function at 0x413ed6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x80
lea ebp, [esp - 4]
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp + 0x80], eax
push 8
mov eax, 0x50435d
call fcn.004d99c6
xor ebx, ebx
mov dword [ebp - 4], ebx
push str.3.0.5
mov ecx, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], ebx
call fcn.0040ed9b
xor eax, eax
inc eax
push 0x10
push eax
mov dword [ebp - 4], ebx
push ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x413fb7
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x413fb7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea esi, [eax + 0x28]
cmp esi, ebx
je 0x413fb7
xor eax, eax
push 0x7e
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
call fcn.004d8ce0
add esp, 0xc
cmp byte [ebp + 0x8c], bl
je 0x413f8b
movzx eax, byte [esi + 0xc]
push eax
movzx eax, byte [esi + 0xe]
push eax
movzx eax, byte [esi + 8]
push eax
movzx eax, byte [esi + 0xa]
push eax
lea eax, [ebp]
push str._d._d._d._d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
jmp 0x413fac
movzx eax, byte [esi + 0xe]
push eax
movzx eax, byte [esi + 8]
push eax
movzx eax, byte [esi + 0xa]
push eax
lea eax, [ebp]
push str._d._d._d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.0040ed76
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x80]
xor ecx, ebp
call fcn.004d57db
add ebp, 0x84
leave
ret