joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4676a5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00467621
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x467814
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x467814
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4677c9
jg 0x467701
test eax, eax
je 0x4677bf
push 1
push 0x1000
call fcn.0045c6c3
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x467724
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4677b6
push 0x8000
push ebx
call fcn.00457199
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x46774d
jg 0x467748
cmp ecx, 0x1000
jb 0x46774d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0045d243
add esp, 0x10
cmp eax, 0xffffffff
je 0x467792
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x467748
jl 0x467779
test ecx, ecx
jne 0x46773a
push dword [ebp - 0xc]
push ebx
call fcn.00457199
push esi
call fcn.004597bb
add esp, 0xc
xor ebx, ebx
jmp 0x467822
cmp byte [edi + 0x24], 0
je 0x4677a9
cmp dword [edi + 0x20], 5
jne 0x4677a9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4677b4
mov ebx, dword [edi + 0x18]
jmp 0x4677b6
xor ebx, ebx
push esi
call fcn.004597bb
pop ecx
jmp 0x467822
test ecx, ecx
jg 0x46778b
jl 0x4677c9
test eax, eax
jae 0x46778b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0045ea0f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4677e9
cmp byte [edi + 0x1c], 0
je 0x46778b
jmp 0x46781a
push ebx
call fcn.00461606
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x46778b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x467822
cmp byte [edi + 0x1c], 0
je 0x46781f
mov ebx, dword [edi + 0x18]
jmp 0x467822
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0045ea0f
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x468e90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x468ebd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x468ebd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100299b
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1002e20
call fcn.01002b34
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1004370
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10027b0
cmp eax, esi
jne 0x10027a3
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x10027b3
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100278a
xor esi, esi
inc esi
mov eax, dword [0x100436c]
cmp eax, esi
jne 0x10027c6
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1002801
mov eax, dword [0x100436c]
test eax, eax
jne 0x10027fb
mov dword [0x100436c], esi
push 0x1001190
push 0x1001184
call fcn.01002707
pop ecx
pop ecx
test eax, eax
je 0x1002801
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x10028cb
mov dword [0x1004034], esi
mov eax, dword [0x100436c]
cmp eax, esi
jne 0x1002825
push 0x1001180
push 0x1001178
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100436c], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1002832
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1004374], ebx
je 0x1002853
push 0x1004374
call fcn.01002aa9
pop ecx
test eax, eax
je 0x1002853
push ebx
push 2
push ebx
call dword [0x1004374]
push dword [0x100401c]
push dword [0x1004020]
push dword [0x1004018]
call fcn.01001ae5
add esp, 0xc
mov dword [0x1004030], eax
cmp dword [0x1004024], ebx
jne 0x10028b1
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1004034], ebx
jne 0x10028bf
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1004030]
call fcn.01002b79
ret
call fcn.01002c81
jmp 0x1002768

Function at 0x100843de
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
jmp 0x1007ff73
lea esp, [esp + 4]
je 0x1007e793
btc edx, eax
dec si
and si, ax
cmp dx, ax
mov esi, dword [eax + 0x3c]
rcl dx, 5
ror dl, 1
bsf dx, ax
clc
add esi, eax
movsx dx, dl
mov dh, ah
sub dl, 0x85
shld edx, eax, 0xd
mov edx, dword [esi + 0x78]
bt si, 6
test edx, edx
pushfd
lea esp, [esp + 4]
je 0x1007e793
shld cx, si, cl
add cl, 0x90
pushal
cmp bh, bl
add edx, eax
push edi
mov ecx, dword [esi + 0x7c]
cmp ebp, 0x57651bb9
add ecx, edx
jmp 0x10083000
stc
sbb ax, 0xcaf5
movzx ax, bl
btc ax, 2
shl eax, cl
push ebp
lahf
test dl, 0x9c
bsr ax, bx
mov ebp, esp
pushfd
pushal
shrd ax, bx, 7
sub esp, 0xffffffec
bsf eax, esi
sub ax, cx
shr al, 7
aas
push esi
xor ah, 0xab
pushfd
mov dword [esp], edi
shrd ax, sp, cl
aaa
pushfd
lea eax, [ecx*8 + 0x5b1f7bb0]
mov dword [esp], ebx
lea eax, [edi*2 + 0x1525c183]
push edx
adc ah, 0x6c
mov eax, dword [ebp + 8]
stc
test eax, eax
pushal
lea esp, [esp + 0x20]
ja 0x1006f82d
je 0x1007e793
xchg si, dx
mov esi, dword [eax + 0x3c]
or edx, ebx
neg dh
bsr dx, ax
shl dx, 1
add esi, eax
call fcn.1006fcd7
Function at 0x401050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4010a7
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401099
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x401095
cmp edi, eax
jae 0x401099
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x401087
cmp edi, eax
jb 0x40109d
xor eax, eax
jmp 0x4010a6
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x401265
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4ce574]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4012d0
push esi
push 0x7ff
lea eax, [ebp - 0x803]
push ebx
push eax
mov byte [ebp - 0x804], bl
call fcn.0043e050
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x7fd
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.0043c98a
add esp, 0x1c
cmp eax, ebx
jl 0x4012bf
cmp eax, esi
ja 0x4012bf
jne 0x4012c2
mov byte [ebp - 7], bl
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0043badd
leave
ret

Function at 0x4012dd
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7b47
mov eax, dword fs:[0]
push eax
mov eax, 0x1004
call fcn.0043ec80
mov eax, dword [0x4ce574]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
je 0x401357
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x1010], ax
lea eax, [ebp - 0x100e]
push eax
call fcn.0043e050
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x1010]
push 0x7fe
push eax
call fcn.0043c74b
add esp, 0x20
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043badd
leave
ret
Function at 0x401f9a
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ce574]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, str.STMaintainSrv
cmp eax, esi
je 0x402018
push 0x20000000
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x402018
push ebx
push edi
push 0xf01ff
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x402011
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x1c], 1
jne 0x40200e
push esi
push 0x4c3810
call fcn.00401265
pop ecx
pop ecx
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push edi
call ebx
push dword [ebp - 0x24]
call ebx
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043badd
leave
ret

Function at 0x402ac8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x860
mov eax, dword [0x4ce574]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push 0x44
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x860]
push esi
push eax
mov dword [ebp - 0x808], esi
call fcn.0043e050
xor eax, eax
push 0x7fe
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push esi
push eax
mov dword [ebp - 0x860], 0x44
call fcn.0043e050
push dword [ebp - 0x80c]
lea eax, [ebp - 0x804]
push ebx
push 0x4c4310
push 0x800
push eax
call fcn.0043c111
add esp, 0x2c
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0x860]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x804]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x402b97
push 0xffffffffffffffff
push dword [ebp - 0x81c]
mov dword [ebp - 0x808], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x818]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x81c]
call esi
jmp 0x402bac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.RunAsAdministrator_Error__s__d_
call fcn.004012dd
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x808]
xor ecx, ebp
pop esi
call fcn.0043badd
leave
ret
Function at 0x402bbf
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4ce574]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x1ff
xor ebx, ebx
push esi
lea eax, [ebp - 0x203]
push ebx
push eax
mov byte [ebp - 0x204], bl
call fcn.0043e050
add esp, 0xc
push 0x200
lea eax, [ebp - 0x204]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x204]
push 0x4c4324
push eax
call fcn.0043c8c7
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x402c67
push esi
lea eax, [ebp - 0x403]
push ebx
push eax
mov byte [ebp - 0x404], bl
call fcn.0043e050
push ebx
push 0x300
push edi
call fcn.0043da0b
push edi
push 1
lea eax, [ebp - 0x404]
push 8
push eax
call fcn.0043d7c9
push edi
call fcn.0043ce50
lea eax, [ebp - 0x404]
push eax
call fcn.0043c464
add esp, 0x30
mov ebx, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0043badd
leave
ret

Function at 0x4033f5
Capabilities:
Check if file exists
Get file version info

Disassembly:
push 0x18
mov eax, 0x4a7891
call fcn.004410ff
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403461
mov eax, dword [esi]
lea ecx, [ebp - 0x18]
push ecx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
cmp edi, ebx
je 0x403461
lea eax, [edi + 1]
push eax
call fcn.0043b876
pop ecx
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.00404752
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x24], ebx
jne 0x403479
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x20]
cmp esi, ebx
je 0x403461
call fcn.004029d3
push 0x4c3790
push dword [ebp + 8]
call fcn.00404120
mov eax, dword [ebp + 8]
call fcn.0044119e
ret 4
push dword [ebp - 0x24]
mov esi, dword [esi]
push edi
push ebx
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x403451
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4c3930
push dword [ebp - 0x24]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x403451
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov esi, eax
movzx edi, ax
mov eax, dword [0x4ce058]
mov ecx, 0x4ce058
shr esi, 0x10
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push edi
push esi
push str.V_d._d
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00402916
mov esi, dword [ebp - 0x14]
add esp, 0xc
lea eax, [esi - 0x10]
call fcn.00402763
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
lea eax, [esi - 0x10]
call fcn.00401145
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x20]
cmp esi, ebx
je 0x403507
call fcn.004029d3
mov eax, edi
jmp 0x403471
Function at 0x403e93
Capabilities:
Create thread
Get common file path
Get program files directory

Disassembly:
push 0xc14
mov eax, 0x4a7c8d
call fcn.00441168
mov esi, ecx
call fcn.00491a5b
push eax
lea eax, [esi + 0x760]
call fcn.004066af
mov eax, dword [esi + 0x764]
xor ebx, ebx
cmp eax, ebx
je 0x403ee4
test byte [esi + 0x76c], 2
mov byte [esi + 0x76f], 5
je 0x403ee4
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
lea ecx, [esi + 0x760]
call fcn.00406976
mov eax, dword [esi + 0x764]
cmp eax, ebx
je 0x403f11
test byte [esi + 0x76c], 2
mov word [esi + 0x770], bx
je 0x403f11
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
lea ecx, [esi + 0x760]
call fcn.00406976
push ebx
push ebx
mov ecx, esi
call fcn.00491a5b
push eax
push 0x40301c
push ebx
push ebx
call fcn.0043d47f
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x18
push eax
call edi
push ebx
push ebx
push ebx
push 0x402d42
push ebx
push ebx
call fcn.0043d47f
add esp, 0x18
push eax
call edi
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.editDir
lea ecx, [esi + 0x30]
call fcn.00456fc1
mov dword [esi + 0x78c], eax
xor eax, eax
push 0x7fe
mov word [ebp - 0xc10], ax
lea eax, [ebp - 0xc0e]
push ebx
push eax
call fcn.0043e050
add esp, 0xc
push 0x800
lea eax, [ebp - 0xc10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0xc10]
push eax
lea eax, [ebp - 0xc14]
push eax
call fcn.004040db
lea eax, [ebp - 0xc18]
push eax
lea ecx, [ebp - 0xc14]
mov dword [ebp - 4], ebx
call fcn.004033f5
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xc14]
add eax, 0xfffffff0
call fcn.00401145
lea eax, [ebp - 0xc10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0xc1c]
push eax
call fcn.004040db
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xc18]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0xc20], esp
mov dword [ebp - 0xc14], esp
call fcn.00402763
add eax, 0x10
mov ecx, esp
mov dword [ecx], eax
push ecx
mov byte [ebp - 4], 4
mov dword [ebp - 0xc14], esp
mov eax, dword [ebp - 0xc1c]
add eax, 0xfffffff0
mov dword [ebp - 0xc14], esp
call fcn.00402763
mov ecx, esp
add eax, 0x10
mov dword [ecx], eax
push esi
mov byte [ebp - 4], 3
call fcn.00403dca
xor eax, eax
push 0x3fe
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push ebx
push eax
call fcn.0043e050
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
push ebx
push ebx
push 0x26
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, dword [esi + 0x78c]
mov eax, dword [ecx]
lea edx, [ebp - 0x410]
push edx
call dword [eax + 0x2c]
push 0x4c4698
mov ecx, esi
call fcn.00491a5b
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebx
push ebx
push ebx
push 0x402c78
push ebx
push ebx
call fcn.0043d47f
add esp, 0x18
push eax
call edi
mov ecx, esi
call fcn.00491a5b
mov ecx, eax
call fcn.0040253f
mov eax, dword [ebp - 0xc1c]
add eax, 0xfffffff0
call fcn.00401145
mov eax, dword [ebp - 0xc18]
add eax, 0xfffffff0
call fcn.00401145
call fcn.004411b2
ret
Function at 0x405dab
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 2
push esi
push 2
push 0x40000000
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x405df3
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00401145
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.00401145
pop edi
mov eax, esi
pop esi
leave
ret
movzx eax, word [ebp + 0xc]
push ebx
push dword [ebp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
pop ebx
jmp 0x405dd7

Function at 0x405e35
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4ce574]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x20c], esi
cmp esi, 0xffffffff
je 0x405f3c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push eax
push ebx
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x208], eax
cmp eax, ebx
je 0x405f30
push ebx
push ebx
push ebx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x210], eax
cmp eax, ebx
je 0x405f24
push edi
push 0x1ff
lea esi, [eax + 0x300]
lea eax, [ebp - 0x203]
push ebx
push eax
mov byte [ebp - 0x204], bl
call fcn.0043e050
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push 0x4c4694
push 0x200
push eax
call fcn.0043c46f
lea eax, [ebp - 0x204]
add esp, 0x1c
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405ef5
sub eax, edi
pop edi
cmp eax, ebx
jle 0x405f18
lea ecx, [ebp - 0x204]
mov edx, esi
sub ecx, esi
mov esi, eax
mov al, byte [ecx + edx]
mov byte [edx], al
inc edx
dec esi
jne 0x405f0f
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0043badd
leave
ret
Function at 0x406089
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x8c
mov eax, 0x4a761d
call fcn.00441168
push 4
call fcn.004558f0
lea eax, [ebp - 0x94]
push eax
call fcn.0045577f
pop ecx
pop ecx
xor esi, esi
mov dword [ebp - 4], esi
call fcn.004558fd
dec eax
je 0x4061e0
dec eax
je 0x4061a7
dec eax
je 0x406174
dec eax
jne 0x40621e
push str.skinSetupSkin_
lea ecx, [ebp - 0x94]
call fcn.00453d7c
lea ecx, [ebp - 0x94]
call fcn.00453bcf
push eax
call fcn.004558a9
mov dword [esp], str.MMP_SETUP
push str.IDR_ZIPRES_SKIN
call fcn.0045586f
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, esi
je 0x40621e
push ebx
call fcn.0045586f
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, esi
je 0x406168
push ebx
call fcn.0045586f
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, esi
jbe 0x406168
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call fcn.00458354
add esp, 0xc
push esi
push ecx
mov eax, esp
mov dword [ebp - 0x98], esp
mov dword [eax], str.res.xml
call fcn.00405d5a
mov ecx, eax
call fcn.0045c9f7
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40621e
push str.SetupSkin_
lea ecx, [ebp - 0x94]
call fcn.00453d7c
lea ecx, [ebp - 0x94]
call fcn.00453bcf
push eax
call fcn.004558a9
mov dword [esp], 0x4c494c
push ecx
mov eax, esp
mov dword [eax], str.IDR_RES
jmp 0x40620c
push str.SetupSkin_
lea ecx, [ebp - 0x94]
call fcn.00453d7c
lea ecx, [ebp - 0x94]
call fcn.00453bcf
push eax
call fcn.004558a9
mov dword [esp], str.duilib_ultimate
push 1
push str.trayskin.zip
call fcn.004583e2
add esp, 0xc
jmp 0x406202
push str.SetupSkin_
lea ecx, [ebp - 0x94]
call fcn.00453d7c
lea ecx, [ebp - 0x94]
call fcn.00453bcf
push eax
call fcn.004558a9
pop ecx
push esi
push ecx
mov eax, esp
mov dword [eax], str.res.xml
mov dword [ebp - 0x98], esp
call fcn.00405d5a
mov ecx, eax
call fcn.0045c9f7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00453bb5
call fcn.004411b2
ret

Function at 0x407cf0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4ce574]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x407d40
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x407d3a
shr eax, 8
cmp al, 2
jne 0x407d3a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043badd
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 2
call fcn.0043badd
mov esp, ebp
pop ebp
ret
Function at 0x408fe0
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x409002
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x408ff6
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x409032
cmp dword [esi + 8], 0
jne 0x409025
mov ecx, dword [eax + 8]
push 0x4c4324
push ecx
call fcn.0043c8c7
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x409025
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.0043d7c9
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x409054
mov eax, dword [esi + 8]
test eax, eax
je 0x40904e
push eax
call fcn.0043ce50
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret