joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401140
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov byte [ebp - 0x2c], dl
mov byte [ebp - 0x28], cl
mov eax, 0x7b5
mov word [ebp - 0x10], ax
mov dword [ebp - 0x18], 0x6768
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x24], ecx
mov edx, 0x15b
mov word [ebp - 4], dx
movzx eax, word [ebp - 0x10]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x385
je 0x40117d
jmp 0x4011ed
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx]
movzx eax, word [ebp - 0x10]
sub edx, eax
mov ecx, dword [ebp - 0x24]
mov word [ecx], dx
mov edx, dword [ebp - 0x18]
add edx, 0xd4ea
cmp edx, dword [ebp - 0x14]
jae 0x4011eb
mov eax, dword [ebp - 0x14]
and eax, 0x7468
mov dword [ebp - 0x18], eax
movzx ecx, byte [ebp + 8]
push ecx
mov dl, byte [ebp - 0x28]
mov cl, byte [ebp - 0x2c]
call fcn.00401140
mov edx, dword [ebp - 0x24]
movzx eax, word [edx]
movzx ecx, word [ebp - 0x10]
shl eax, cl
mov ecx, dword [ebp - 0x24]
mov word [ecx], ax
mov edx, dword [ebp - 8]
push edx
push 0x1c
push 0xc5
push 3
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
xor eax, 0xd638
mov dword [ebp - 0x18], eax
jmp 0x4011f3
mov cl, byte [ebp + 8]
mov byte [ebp - 9], cl
movsx edx, word [ebp - 4]
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0x33e
je 0x401220
cmp dword [ebp - 0x34], 0x5bf
je 0x40120e
jmp 0x401225
push 0x16
mov eax, dword [ebp - 0x1c]
push eax
push 0xd
call sub.KERNEL32.dll_VerLanguageNameW
mov dword [ebp - 0x14], eax
jmp 0x401225
call fcn.00401320
mov eax, 0xd2
mov esp, ebp
pop ebp
ret 4

Function at 0x401230
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 0x48], 0x937f
mov al, byte [ebp + 8]
mov byte [ebp - 0x60], al
cmp byte [ebp - 0x60], 0
je 0x401254
cmp byte [ebp - 0x60], 0x34
je 0x4012b4
jmp 0x4012f6
cmp dword [ebp - 0x48], 0x151
jb 0x40125f
jmp 0x401273
movzx ecx, byte [ebp + 8]
push ecx
mov dl, byte [ebp + 8]
mov cl, byte [ebp + 8]
call fcn.00401140
mov byte [ebp + 8], 0x1a
movzx edx, byte [ebp + 8]
push edx
mov dl, byte [ebp + 8]
mov cl, byte [ebp + 8]
call fcn.00401140
mov eax, dword [ebp - 0x48]
and eax, 0xfd09
mov dword [ebp - 0x48], eax
call fcn.00401320
push 0x8f
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x48]
shl eax, 0x1c
mov dword [ebp - 0x48], eax
jmp 0x4012f6
mov ecx, dword [ebp - 0x48]
sub ecx, 0xc21f
mov dword [ebp - 0x48], ecx
movzx edx, byte [ebp + 8]
push edx
mov dl, byte [ebp + 8]
mov cl, byte [ebp + 8]
call fcn.00401140
mov eax, dword [ebp - 0x48]
add eax, 0xd666
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 4]
push edx
push 0x69
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
mov dword [ebp - 0x4c], eax
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 4]
push eax
push 0xa2
lea ecx, [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputAttribute]
mov dword [ebp - 0x50], eax
mov eax, 0xa
mov esp, ebp
pop ebp
ret
Function at 0x401320
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov dword [ebp - 0xc], 0x2b2a
mov eax, 0x2ab
mov word [ebp - 0x1c], ax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0x88]
movzx eax, word [edx]
sub eax, 0x966
movzx ecx, word [ebp - 0x1c]
cmp eax, ecx
jg 0x40136e
mov edx, 0x7dd
mov word [ebp - 4], dx
mov dword [ebp - 0x14], 0x6b3b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x81], 0x6e
lea ecx, [ebp - 4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
add edx, 0xdab7
mov eax, dword [ebp - 0x18]
cmp edx, dword [eax]
jae 0x40139b
movsx ecx, byte [ebp - 0x81]
or ecx, 0x4b
mov byte [ebp - 0x81], cl
lea edx, [ebp - 0x80]
push edx
push 0xd2
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x10], eax
mov al, byte [ebp - 0x81]
mov byte [ebp - 0x8c], al
cmp byte [ebp - 0x8c], 0x10
je 0x4013c4
jmp 0x4013c6
jmp 0x4013d3
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
shr edx, cl
mov eax, dword [ebp - 0x18]
mov dword [eax], edx
mov ecx, dword [ebp - 0xc]
shl ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
movzx eax, byte [ebp - 0x81]
push eax
call fcn.00401230
add esp, 8
mov eax, 0xd3
mov esp, ebp
pop ebp
ret
Function at 0x4f0dc3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004efcaa
and dword [ebp - 4], 0
cmp dword [0x4fb828], 0
mov ebx, eax
jne 0x4f0e74
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4f0f25
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4f0f25
push eax
call fcn.004efc38
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4fb828], eax
call esi
push eax
call fcn.004efc38
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4fb82c], eax
call esi
push eax
call fcn.004efc38
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4fb830], eax
call esi
push eax
call fcn.004efc38
pop ecx
mov dword [0x4fb838], eax
test eax, eax
je 0x4f0e74
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004efc38
pop ecx
mov dword [0x4fb834], eax
mov eax, dword [0x4fb834]
cmp eax, ebx
je 0x4f0ecc
cmp dword [0x4fb838], ebx
je 0x4f0ecc
push eax
call fcn.004efcb3
push dword [0x4fb838]
mov esi, eax
call fcn.004efcb3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4f0ecc
test edi, edi
je 0x4f0ecc
call esi
test eax, eax
je 0x4f0ec3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4f0ec3
test byte [ebp - 0xc], 1
jne 0x4f0ecc
or dword [ebp + 0x10], 0x200000
jmp 0x4f0f05
mov eax, dword [0x4fb82c]
cmp eax, ebx
je 0x4f0f05
push eax
call fcn.004efcb3
pop ecx
test eax, eax
je 0x4f0f05
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4f0f05
mov eax, dword [0x4fb830]
cmp eax, ebx
je 0x4f0f05
push eax
call fcn.004efcb3
pop ecx
test eax, eax
je 0x4f0f05
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4fb828]
call fcn.004efcb3
pop ecx
test eax, eax
je 0x4f0f25
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4f0f27
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4f2c58
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4f95f8]
jne 0x4f2c62
repz ret
jmp fcn.004f4385

Function at 0x484cfe
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x484a08
sub ecx, ecx
add ecx, 0x1370f4f6
add ecx, ecx
call fcn.00484d39
mov ecx, edi
xor dword [edx], eax
inc ecx
or ecx, ecx
add edi, ecx
add edx, 2
and ecx, ecx
add edi, edi
mov ecx, 0xe0dc7734
cmp edx, esi
jl fcn.00484cfe
dec ecx
add ecx, 1
inc ecx
ret
Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..rdata
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x78253af4
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section._RDATA
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x24fe1185
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp int.00401219
Function at 0x10001000
Capabilities:
Get common file path
Terminate process

Disassembly:
sub esp, 0x31c
xor eax, eax
push ebx
mov dword [esp + 5], eax
push ebp
mov dword [esp + 0xd], eax
push esi
mov dword [esp + 0x15], eax
push edi
xor ebx, ebx
mov word [esp + 0x1d], ax
mov ecx, 0x40
lea edi, [esp + 0x229]
mov byte [esp + 0x1f], al
mov byte [esp + 0x228], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov byte [esp + 0x10], bl
stosb byte es:[edi], al
mov eax, dword [0x10009c08]
cmp eax, ebx
jne 0x10001115
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x125]
mov byte [esp + 0x124], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x20]
push 0x104
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.lpk.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x20]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [0x10009c08], eax
jne 0x10001115
lea ecx, [esp + 0x20]
lea edx, [esp + 0x124]
push ecx
push 0x1000709c
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x124]
push 0x10
push str.MemCode
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x10009c08]
cmp eax, ebx
jne 0x10001115
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, dword [esp + 0x330]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
jne 0x10001176
mov ecx, esi
shr ecx, 0x10
jne 0x10001145
push esi
lea edx, [esp + 0x14]
push 0x10007090
push edx
call ebp
add esp, 0xc
lea esi, [esp + 0x10]
push esi
lea eax, [esp + 0x22c]
push 0x10007068
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x228]
push 0x10
push str.MemCode
push ecx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xfffffffffffffffe
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret 4
Function at 0x10001190
Capabilities:
Create process on windows

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x25c
mov eax, 1
cmp ecx, eax
push esi
jne 0x100012bf
lea eax, [esp + 0x15c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x15c]
push 0x1000711c
push ecx
lea esi, [esp + 0x164]
call fcn.100013c0
add esp, 8
test eax, eax
jbe 0x100011f2
lea esi, [eax + 1]
push 0x1000711c
push esi
call fcn.100013c0
add esp, 8
test eax, eax
ja 0x100011dd
push str.explorer.exe
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1000120e
xor eax, eax
pop esi
add esp, 0x25c
ret 0xc
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x5c]
lea edx, [esp + 0x5c]
push 0x10007108
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x20], 0x44
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x5c]
push 0x10007104
push eax
call esi
lea ecx, [esp + 0x5c]
push 0x1000711c
push ecx
call esi
lea edx, [esp + 0x5c]
push str.Program_Files
push edx
call esi
lea eax, [esp + 0x5c]
push 0x1000711c
push eax
call esi
lea ecx, [esp + 0x5c]
push str.Microsoft.KuaiLeKuangBen
push ecx
call esi
lea edx, [esp + 0x5c]
push 0x1000711c
push edx
call esi
lea eax, [esp + 0x5c]
push str.SMSvcHost.exe
push eax
call esi
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x7c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor eax, eax
pop edi
pop esi
add esp, 0x25c
ret 0xc

Function at 0x427e1e
Capabilities:
Encode data using xor

Disassembly:
xor eax, 0x3c244434
xor al, 0xc7
and al, 0x3c
xor al, 0x6c
mov cl, 0x35
xor al, 0xc7
and al, 0x3c
xor al, 0xe5
and al, 0x3c
xor al, 0xac
mov cl, 0x35
xor al, 0xf4
and al, 0x3c
xor al, 0x22
and al, 0x3c
xor al, 0xbc
mov cl, 0x35
xor al, 0x22
and al, 0x3c
xor al, 0x3e
and eax, 0xb1e4343c
xor eax, 0x3c253e34
xor al, 0x5a
and eax, 0xb1f0343c
xor eax, 0x3c255a34
xor al, 0x79
and eax, 0xb1fc343c
xor eax, 0x3c258434
xor al, 0x6d
sub bh, byte [esp + esi]
or byte [ecx + 0x2a6d3435], dh
cmp al, 0x34
xchg esp, eax
sub bh, byte [esp + esi]
push esp
mov bl, 0x35
xor al, 0x94
sub bh, byte [esp + esi]
mov ebx, 0x70343c2a
mov bl, 0x35
xor al, 0xbb
sub bh, byte [esp + esi]
sbb byte [edx], ch
cmp al, 0x34
invalid
Function at 0x10002a18
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10098428]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
test byte [0x1009de78], 1
mov dword [ebp - 0x214], edi
jne 0x10002a64
mov eax, dword [0x1009d334]
or dword [0x1009de78], 1
mov ecx, 0x1009d334
call dword [eax + 0xc]
add eax, 0x10
push 0x1007a430
mov dword [0x1009de74], eax
call fcn.100536fb
pop ecx
mov eax, dword [0x1009de74]
cmp dword [eax - 0xc], edi
jne 0x10002aad
push 0x20a
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call fcn.10053710
add esp, 0xc
push 1
push 0x25
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
push 0x1009de74
call fcn.10002fc7
mov eax, dword [0x1009de74]
add eax, 0xfffffff0
call fcn.1000305a
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop edi
call fcn.10053191
leave
ret

Function at 0x10002ace
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10098428]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
test byte [0x1009de70], 1
mov dword [ebp - 0x214], edi
jne 0x10002b1a
mov eax, dword [0x1009d334]
or dword [0x1009de70], 1
mov ecx, 0x1009d334
call dword [eax + 0xc]
add eax, 0x10
push 0x1007a43d
mov dword [0x1009de6c], eax
call fcn.100536fb
pop ecx
mov eax, dword [0x1009de6c]
cmp dword [eax - 0xc], edi
jne 0x10002b63
push 0x20a
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call fcn.10053710
add esp, 0xc
push 1
push 0x24
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
push 0x1009de6c
call fcn.10002fc7
mov eax, dword [0x1009de6c]
add eax, 0xfffffff0
call fcn.1000305a
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop edi
call fcn.10053191
leave
ret
Function at 0x10002b84
Capabilities:
Check if file exists

Disassembly:
push 0x14
mov eax, 0x10075250
call fcn.1005a354
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [eax]
xor edi, edi
cmp dword [eax - 0xc], edi
je 0x10002d3f
mov eax, dword [0x1009d334]
mov esi, 0x1009d334
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], edi
mov eax, dword [0x1009d334]
mov ecx, esi
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
cmp dword [ebx - 0xc], edi
jne 0x10002d07
mov eax, dword [ebp - 0x20]
lea edi, [ebp - 0x14]
call fcn.10002da9
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10002bfb
mov esi, edi
call fcn.100033b9
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
jne 0x10002d07
lea esi, [ebp - 0x18]
call fcn.100033b9
lea esi, [ebp - 0x1c]
call fcn.10002a18
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.10002da9
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10003389
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x10002c83
mov esi, edi
call fcn.100029f5
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.10002e6c
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.10002da9
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10003389
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10002c83
mov esi, edi
call fcn.100033b9
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
jne 0x10002d07
lea esi, [ebp - 0x18]
call fcn.100033b9
lea esi, [ebp - 0x1c]
call fcn.10002ace
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.10002da9
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10003389
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x10002d03
mov esi, edi
call fcn.100029f5
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.10002e6c
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.10002da9
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10003389
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10002d03
mov esi, edi
call fcn.100033b9
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
je 0x10002d23
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10002d23
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x10002d2c
mov eax, dword [ebp - 0x20]
push dword [eax]
call esi
mov edi, eax
lea eax, [ebx - 0x10]
call fcn.10003389
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10003389
mov eax, edi
call fcn.1005a3d7
ret
Function at 0x1000315d
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 0x10003174
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x100031a9
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x100031a5
cmp edi, eax
jae 0x100031a9
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x10003197
cmp edi, eax
jb 0x100031ad
xor eax, eax
jmp 0x100031b7
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x100034da
Capabilities:
Hash data with md5

Disassembly:
push 0x5c
push 0
push esi
call fcn.10053710
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
and dword [esi + 0x58], 0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
ret
Function at 0x10003f44
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov ebx, eax
push dword [ebx]
call esi
push dword [ebx + 4]
mov edi, eax
call esi
and dword [ebp - 4], 0
mov ebx, eax
mov eax, dword [ebp - 4]
push dword [eax + str.37k_IF__y_d]
call esi
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
cmp dword [ebp - 4], 0x10
mov dword [ebp + ecx - 0x14], eax
jl 0x10003f66
push 0x10
xor eax, eax
pop ecx
mov edx, ebx
shr edx, 5
add edx, dword [ebp - 0x10]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0x14]
sub eax, 0x61c88647
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add edi, edx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 8]
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0xc]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
add ebx, edx
dec ecx
jne 0x10003f87
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
call esi
mov edi, dword [ebp + 8]
push ebx
mov dword [edi], eax
call esi
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10003fda
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edi, eax
push dword [edi]
call esi
push dword [edi + 4]
mov ebx, eax
call esi
and dword [ebp - 4], 0
mov edi, eax
mov eax, dword [ebp - 4]
push dword [eax + str.37k_IF__y_d]
call esi
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
cmp dword [ebp - 4], 0x10
mov dword [ebp + ecx - 0x14], eax
jl 0x10003ffc
push 0x10
mov eax, 0xe3779b90
pop ecx
mov edx, ebx
shr edx, 5
add edx, dword [ebp - 8]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0xc]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
sub edi, edx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 0x10]
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0x14]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
sub ebx, edx
add eax, 0x61c88647
dec ecx
jne 0x10004020
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push ebx
call esi
mov ebx, dword [ebp + 8]
push edi
mov dword [ebx], eax
call esi
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebx
leave
ret
Function at 0x1000569e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xa4]
sub esp, 0x124
mov eax, dword [0x10098428]
xor eax, ebp
mov dword [ebp + 0xa0], eax
mov eax, dword [ebp + 0xac]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7c]
push eax
xor ebx, ebx
mov edi, 0x20019
push edi
push ebx
push 0x1007ded0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x6c], 3
mov dword [ebp - 0x78], 0x104
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x70], ebx
call esi
test eax, eax
jne 0x10005811
push dword [ebp - 0x80]
lea eax, [ebp - 0x64]
push 0x1007df20
push 0x103
push eax
call fcn.1004c9d8
add esp, 0x10
lea eax, [ebp - 0x68]
push eax
push edi
push ebx
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x7c]
call esi
test eax, eax
jne 0x10005808
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 4
pop eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push 0x1007df30
push dword [ebp - 0x68]
call esi
test eax, eax
jne 0x100057ff
push 0x104
xor edi, edi
lea eax, [ebp - 0x64]
push ebx
inc edi
push eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], 0x103
call fcn.10053710
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push 0x1007df40
push dword [ebp - 0x68]
call esi
test eax, eax
jne 0x100057ff
cmp dword [ebp - 0x70], edi
jne 0x100057ef
mov esi, 0x1007df50
push esi
call fcn.100530f0
push eax
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.100555d3
add esp, 0x10
test eax, eax
jne 0x100057c9
mov dword [ebp - 0x6c], ebx
jmp 0x100057ff
cmp dword [ebp - 0x70], edi
jne 0x100057ef
push esi
call fcn.100530f0
push eax
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.100555d3
add esp, 0x10
test eax, eax
je 0x100057ef
mov dword [ebp - 0x6c], 2
jmp 0x100057ff
xor eax, eax
cmp dword [ebp - 0x70], 2
setne al
lea eax, [eax + eax + 1]
mov dword [ebp - 0x6c], eax
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xa0]
mov eax, dword [ebp - 0x6c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10053191
add ebp, 0xa4
leave
ret