joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480d50
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x480d99
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x481210
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ad7c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00480dc0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00480e40
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00480e40
lea ecx, [esi + 0xc]
call fcn.0049c91c
lea ecx, [esi + 0x10]
call fcn.0049c91c
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004823d0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004823d0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004823d0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0049c991
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0049c991
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4825c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x482626
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x482626
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x482607
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x49edab
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49ede3
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049ce38
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049ce10
jmp 0x49edef
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a04a5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4a04e7
call fcn.004a6342
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a04e7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a04de
xor eax, eax
jmp 0x4a04ef
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a04f5
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a6872
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a68a0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a68be
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a67d8
jmp 0x4a68be
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a68be
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a67d8
test edi, edi
mov eax, edi
jne 0x4a68a8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x73b933
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg byte [esp + 1], ch
jmp 0x774bae
mov ax, word [esp]
lea edx, [eax*4]
jmp fcn.00747619
pushfd
pop dword [esi]
setb dh
rdtsc
jmp 0x774b8c
lea esp, [esp + 4]
lea ecx, [ebp - 0x1c]
call fcn.00774c05
adc dword [edi + reloc.KERNEL32.DLL_MulDiv], edx
mov dword [eax], ecx
sahf
stc
or bl, cl
and dword [ebp + reloc.KERNEL32.DLL_MulDiv], esp
push esp
mov dword [ebp], eax
pop ebp
lea eax, [ebx + esi]
xchg dh, dl
mov eax, edx
mov edx, eax
jmp 0x774ba4

Function at 0x746842
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dx, ax
dec edi
jmp 0x7466ef
bsf dx, si
jp 0x746710
mov dx, ax
jmp 0x746713
xchg byte [esp + 2], al
lea esp, [esp + 4]
add bl, dl
mov dl, 0x44
mov eax, edx
jmp 0x74672f
mov eax, dword [esp + 1]
xchg byte [esp + 1], al
xchg byte [esp], al
jmp 0x7467b8
Function at 0x76637d
Capabilities:
Encrypt data using aes

Disassembly:
and eax, esi
jmp 0x7663ad
lea esp, [esp + 4]
xor eax, 0x1000000
mov ebx, dword [esp]
jmp 0x76645a
mov eax, dword [eax*4 + reloc.KERNEL32.DLL_MulDiv]
jmp 0x766381
lea esp, [esp + 0x24]
and edi, 0xff0000
lea ebx, [ebp + 0xcf]
shl bx, cl
mov ebp, 0x1350c18c
jmp 0x76648f
mov edi, dword [edi*4 + reloc.KERNEL32.DLL_MulDiv]
pushal
jmp 0x7663ed
and edi, esi
clc
jmp 0x76640e
shr edi, 8
mov ebp, 0x1956ac26
sete bh
jmp 0x766427
mov edi, edx
mov bp, word [esp]
setle bl
push esp
setge bl
jmp 0x76643e
lea esp, [esp + 0x20]
and eax, 0xff000000
lea ebp, [esp + edi]
btr ebp, edx
sub esp, 8
jmp 0x766751
mov ebx, dword [ecx + 4]
dec ebp
pushal
bt ebp, esp
lea ebp, [esi - 0x5d]
jmp 0x766469
xor eax, edi
btc edi, edx
mov edi, 0xdcf6a17e
bswap edi
jmp 0x7664c8
lea esp, [esp + 0xc]
movzx edi, byte [edi*4 + 0x743280]
bswap ebp
push esp
jmp 0x76649c
pushal
lea ecx, [edi*4]
ror ecx, 0xf
mov dword [esp], edx
sub esp, 6
jmp 0x766681
mov di, word [esp]
mov edi, edx
bswap ebp
shr edi, 0x18
jmp 0x7664b7
mov dword [esp], eax
push esp
call fcn.0076662d
push dword [esp + 2]
xor eax, edi
mov di, word [esp]
xchg bp, di
sub esp, 0
jmp 0x7664e5

Function at 0x76662d
Capabilities:
Encrypt data using aes

Disassembly:
neg ebp
lea ebp, [ecx - 0x43]
and edi, esi
mov edi, dword [edi*4 + reloc.KERNEL32.DLL_MulDiv]
jmp 0x7665c6
lea esp, [esp + 2]
lea esp, [esp + 0xc]
popal
mov bp, 0x47f
jmp 0x7665fb

Function at 0x881cae
Capabilities:
Parse pe header

Disassembly:
call int.008805e6
mov dword [esp], ebp
jmp 0x881d0f
mov eax, dword [eax + 0x1c]
jmp 0x881d4a
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
jmp 0x881cdc
mov dword [esp], esi
pop word [esp]
push esp
lea esp, [esp + 2]
mov dword [esp + 0x94], edi
lea esp, [esp + 0x94]
jmp 0x881cf2
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
jmp 0x8805e1

Function at 0x881d65
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
pop word [esp]
push esp
push dword [esp + 2]
push dword [esp]
push dword [esp + 8]
jmp 0x881cc6
Function at 0x401000
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00427ea0
mov eax, dword [0x437454]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str._Fatal_Error:
call esi
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x1004]
push 0x1000
push edx
call fcn.0041d528
add esp, 0x10
lea eax, [ebp - 0x1004]
push eax
call esi
push 0x42e95c
call esi
push 0xffffffffffffffff
call fcn.00419283
int3

Function at 0x401190
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00427ea0
mov eax, dword [0x437454]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x1004]
push 0x1000
push edx
call fcn.0041d528
add esp, 0x10
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041884c
mov esp, ebp
pop ebp
ret

Function at 0x403880
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x437454]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x44a0b4], 0
jne 0x4038d3
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4038bc
push str.adb:_could_not_initialize_Winsock_n
call fcn.00401000
push 0x403870
call fcn.0041a026
add esp, 4
mov dword [0x44a0b4], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041884c
mov esp, ebp
pop ebp
ret
Function at 0x4038f0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [0x437454]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
mov edi, 0x430150
call fcn.00403220
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x403995
cmp dword [0x44a0b4], edi
jne 0x403925
call fcn.00403880
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, 2
push 0x13ad
mov word [esp + 0x10], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x7f000001
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_htonl]
push edi
push 1
push 2
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x4039a9
push str.socket_loopback_client:_could_not_create_socket_n
call fcn.00401190
add esp, 4
cmp dword [esi + 4], edi
je 0x403995
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
add esp, 4
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi], edi
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0041884c
mov esp, ebp
pop ebp
ret
push 0x10
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [esi + 0xc], eax
call dword [sym.imp.WS2_32.dll_connect]
push 0x13ad
test eax, eax
jns 0x403a01
push 0x430810
push str.socket_loopback_client:_could_not_connect_to__s:_d_n
call fcn.00401190
add esp, 0xc
cmp dword [esi + 4], edi
je 0x403995
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
call eax
add esp, 4
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi], edi
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0041884c
mov esp, ebp
pop ebp
ret
push 0x42e962
mov eax, esi
call fcn.004031e0
push eax
push str._d_lo_client:_s_d_
lea ecx, [esi + 0x18]
push 0x20
push ecx
call fcn.00418c3e
mov eax, esi
call fcn.004031e0
push eax
push 0x430810
push 0x13ad
push str.socket_loopback_client:_port__d_type__s___fd__d_n
call fcn.00401190
add esp, 0x28
mov eax, esi
call fcn.004031e0
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.0041884c
mov esp, ebp
pop ebp
ret

Function at 0x404690
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4046a8
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4046da
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4046d6
cmp esi, eax
jae 0x4046da
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4046c8
cmp esi, eax
jb 0x4046e0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x4048e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push esi
add eax, eax
lea edx, [ebp + 0xc]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40494e
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x40491d
cmp eax, 2
jne 0x404938
mov eax, dword [ebp - 4]
test esi, esi
je 0x404948
test eax, eax
je 0x404943
test al, 1
jne 0x404938
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x404948
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x4059c0
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b098
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x437454]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x178
push 0x40
call ebx
mov esi, eax
test esi, esi
je 0x405a5c
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
lea eax, [ebp - 0x14]
push eax
push esi
push 0
push 0
push 2
mov dword [ebp - 0x14], 0
call edi
cmp eax, 0x6f
jne 0x405a2d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0x14]
push ecx
push 0x40
call ebx
mov esi, eax
lea edx, [ebp - 0x14]
push edx
push esi
xor ebx, ebx
push ebx
push ebx
push 2
call edi
test eax, eax
jne 0x405a5c
cmp esi, ebx
je 0x405a5c
lea eax, [ebx + 0x18]
cmp dword [esi + 0x44], 1
jne 0x405a55
cmp dword [esi + 0x40], eax
je 0x405a55
cmp dword [esi + 0x34], ebx
ja 0x405a70
mov esi, dword [esi + 8]
cmp esi, ebx
jne 0x405a45
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4380e0]
mov edx, dword [eax + 0xc]
mov ecx, 0x4380e0
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
cmp dword [esi + 0x34], ebx
jbe 0x405ada
mov eax, dword [ebp - 0x10]
movzx ecx, byte [esi + eax + 0x2c]
push ecx
push str._02X
lea edi, [ebp - 0x18]
call fcn.004064e0
mov edi, dword [ebp - 0x18]
mov eax, dword [edi - 0xc]
mov ebx, dword [ebp + 8]
add esp, 8
push eax
push edi
call fcn.00406350
mov edx, dword [esi + 0x34]
dec edx
cmp dword [ebp - 0x10], edx
jae 0x405ace
push 1
push 0x430e98
call fcn.00406350
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [esi + 0x34]
jb 0x405a90
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405afd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406610
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x437454]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov byte [esi + 0x10], al
mov dword [esi + 0x14], eax
push eax
mov byte [esi + 0x18], al
push 0x10
lea eax, [ebp - 0x20c]
push eax
push ecx
mov dword [esi + 4], 0x414870
mov dword [esi], vtable.LogcatThread.0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x430e9c
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x20c]
push 0x430eb4
push edx
call fcn.0041ad5f
mov ecx, dword [ebp - 4]
mov dword [esi + 0x1c], eax
xor ecx, ebp
add esp, 8
mov eax, esi
call fcn.0041884c
mov esp, ebp
pop ebp
ret
Function at 0x406f60
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x437454]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov eax, ecx
mov esi, dword [eax + 4]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x220]
push edx
xor edi, edi
or esi, 0x2001f
push esi
push edi
mov dword [ebp - 0x224], eax
mov eax, dword [eax]
push ecx
push eax
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x220], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x218]
mov ebx, eax
cmp ebx, edi
jne 0x406ff4
xor eax, eax
cmp ecx, edi
je 0x406fd6
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x220]
and esi, 0x300
mov ebx, eax
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], esi
cmp eax, edi
je 0x407014
cmp ecx, edi
je 0x406fff
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041884c
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x230]
push eax
push edi
push edi
push edi
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x20c]
push eax
push edi
push ecx
mov dword [ebp - 0x21c], 0x100
call esi
test eax, eax
jne 0x40709c
jmp 0x407050
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x218]
call fcn.00406f60
mov ebx, eax
cmp ebx, edi
jne 0x4070f2
lea edx, [ebp - 0x230]
push edx
mov edx, dword [ebp - 0x218]
push edi
push edi
push edi
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push edi
push edx
mov dword [ebp - 0x21c], 0x100
call esi
test eax, eax
je 0x407050
mov eax, dword [ebp - 0x218]
cmp eax, edi
je 0x4070b3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x218], edi
mov ebx, dword [ebp - 0x228]
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x214], edi
call fcn.00406de0
mov esi, eax
mov eax, dword [ebp - 0x218]
cmp eax, edi
je 0x4070dd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041884c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x218]
cmp eax, edi
je 0x407103
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0041884c
mov esp, ebp
pop ebp
ret 4
Function at 0x4076f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b456
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x437454]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x424], esi
cmp esi, ebx
jne 0x40776c
call fcn.00406ad0
mov edi, eax
jmp 0x407885
mov eax, dword [ebp - 0x41c]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
jne 0x40778b
call fcn.00406ad0
jmp 0x40787c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, ebx
jne 0x4077a7
call fcn.00406ad0
jmp 0x40787c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x41c], edi
cmp eax, edi
jae 0x4077c8
mov edi, 0x8007000e
jmp 0x40787e
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, ebx
ja 0x4077dd
cmp eax, 0xffffffff
jbe 0x4077e7
push 0x80070216
call fcn.00404650
cmp eax, 0x400
jbe 0x407819
lea ecx, [ebp - 0x418]
push ecx
call fcn.0040fe60
jmp 0x407825
lea edx, [ebp - 0x414]
mov dword [ebp - 0x418], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x418]
cmp eax, ebx
jne 0x40783d
mov edi, 0x8007000e
jmp 0x40787e
push edi
push eax
mov eax, dword [ebp - 0x420]
push edi
push eax
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x40785b
call fcn.00406ad0
jmp 0x40787c
mov edx, dword [ebp - 0x418]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x418]
push eax
lea ecx, [ebp - 0x42c]
call fcn.00408440
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x414]
cmp dword [ebp - 0x418], ecx
je 0x40789e
lea eax, [ebp - 0x418]
call fcn.0040fbe0
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 - 0x14]
xor ecx, ebp
call fcn.0041884c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40f210
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x437454]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
mov word [ebp - 0x214], ax
push ecx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor edx, edx
mov word [ebp + eax*2 - 0x20e], dx
lea edx, [ebp - 0x230]
lea eax, [ebp - 0x210]
mov ecx, 0x614
push edx
mov dword [ebp - 0x22c], 3
mov dword [ebp - 0x228], eax
mov word [ebp - 0x220], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041884c
mov esp, ebp
pop ebp
ret

Function at 0x40f2c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
mov eax, dword [0x437454]
xor eax, esp
mov dword [esp + 0x420], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
test eax, eax
je 0x40f301
push str._zhushou
push eax
call fcn.0041af42
add esp, 8
mov dword [0x44c008], 2
test eax, eax
jne 0x40f30b
mov dword [0x44c008], 1
lea eax, [esp + 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x4313f8
lea edx, [esp + 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x40f3b6
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.0040edd0
test eax, eax
je 0x40f3b6
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
call fcn.00409950
call fcn.0040e7e0
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.0040eb10
add esp, 8
mov esi, eax
call fcn.00409a10
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0x10]
call fcn.0040f210
mov eax, esi
pop esi
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.0041884c
mov esp, ebp
pop ebp
ret 0x10
push 0x10
push 0x431434
push 0x431444
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esp + 0x424]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0041884c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x410920
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
call fcn.0040e7e0
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 5
push 0x65
push esi
mov dword [ebp - 8], 0
call edi
mov ebx, eax
test ebx, ebx
je 0x4109dd
push 0xf0
push 0x65
push esi
call edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41096a
push eax
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push esi
mov dword [ebp - 4], 0
call edi
test eax, eax
je 0x4109c6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4109c6
push edi
call fcn.00409d10
add esp, 4
push 0
push 0x40ff70
push 0
mov ebx, eax
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x4109b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp ebx, edi
je 0x4109cf
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4109cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4109dd
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret