joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4545c0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4545d7
add esp, 0xfffffff0
call fcn.00403ee4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a190
mov eax, dword [0x461048]
cmp word [eax + 2], 0
jne 0x4545ff
mov eax, dword [0x461048]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00455c80
mov eax, dword [0x461100]
cmp word [eax + 2], 0
jne 0x454619
mov eax, dword [0x461100]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00455e78
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x412488]
call fcn.00403b90
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x412488]
call fcn.00403b90
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41c6ec]
call fcn.00423bf0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4547a0
mov eax, dword [0x460f70]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00423fc0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x456418
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x460f70]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d02c
test eax, eax
je 0x45470e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409294
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d054
test eax, eax
je 0x454722
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404b80
mov eax, dword [0x460e64]
cmp byte [eax], 0
jne 0x454756
mov eax, ebx
call fcn.004548c8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004565f4
mov eax, ebx
call fcn.00456fb8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x454796
call fcn.00403f3c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454b48
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x462bac]
cmp dword [eax + 0x30], 0
je 0x454bf2
cmp dword [ebx + 0x94], 0
jne 0x454bec
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x454ad8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x454bec
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x454bb2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x454bec
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004147f0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x454bc1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x455754
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x455789
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404a00
jmp 0x455796
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404964
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4567d0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x456811
mov eax, esi
call fcn.0043cfb0
test al, al
je 0x456811
mov eax, dword [ebx + 0x84]
call fcn.0043ccac
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x456811
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043ccac
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x459b14
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x108], edx
mov edi, eax
xor eax, eax
push ebp
push 0x459cea
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
cmp dword [edi + 0x38], 0
jne 0x459cd1
mov eax, dword [edi + 0x30]
call fcn.00404bd0
test eax, eax
jne 0x459b6a
mov eax, dword [edi + 0x34]
call fcn.00404bd0
test eax, eax
jne 0x459b6a
mov eax, edi
call fcn.00459d88
jmp 0x459cd1
cmp dword [edi + 0xa0], 0
jne 0x459ba1
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0x30]
call fcn.004092f0
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x462bec]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov dword [edi + 0xa0], eax
cmp dword [edi + 0xa4], 0
jne 0x459bd8
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0x34]
call fcn.004092f0
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x462bec]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov dword [edi + 0xa4], eax
mov ecx, dword [edi + 0xa4]
mov edx, dword [edi + 0xa0]
mov eax, edi
call fcn.00459dc8
mov ebx, eax
test bl, bl
jne 0x459c86
mov eax, dword [edi + 0x30]
call fcn.00404bd0
test eax, eax
jne 0x459c10
mov eax, dword [edi + 0xc0]
call fcn.00404bd0
test eax, eax
je 0x459c86
mov eax, dword [edi + 0xc0]
call fcn.00404bd0
test eax, eax
je 0x459c32
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0xc0]
call fcn.004092f0
jmp 0x459c5e
push dword [edi + 0x30]
push 0x459d04
push dword [edi + 0x34]
lea eax, [ebp - 0x108]
mov edx, 3
call fcn.00404c90
mov edx, dword [ebp - 0x108]
lea eax, [ebp - 0x101]
call fcn.004092f0
push 7
lea eax, [ebp - 0x101]
push eax
call sub.kernel32.dll_WinExec
cmp eax, 0x20
jb 0x459c86
mov ecx, dword [edi + 0xa4]
mov edx, dword [edi + 0xa0]
mov eax, edi
call fcn.00459dc8
mov ebx, eax
test bl, bl
jne 0x459c93
mov eax, edi
call fcn.00459d88
jmp 0x459cd1
mov eax, dword [edi + 0x58]
test eax, eax
je 0x459ca2
mov dword [edi + 0xa8], eax
jmp 0x459cac
mov dword [edi + 0xa8], 1
mov eax, edi
call fcn.00459e40
test al, al
je 0x459cd1
mov eax, edi
mov si, 0xffee
call fcn.00403dbc
xor ecx, ecx
xor edx, edx
mov eax, edi
call fcn.00459ff4
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459cf1
lea eax, [ebp - 0x108]
call fcn.00404910
ret

Function at 0x45b4ec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404dc0
xor eax, eax
push ebp
push 0x45b55b
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, ebx
xor ebx, ebx
test di, di
jbe 0x45b545
xor eax, eax
mov al, bl
mov edx, dword [ebp - 4]
mov al, byte [edx + eax]
mov dl, byte [esi]
xor al, dl
mov byte [esi], al
mov eax, dword [ebp - 4]
call fcn.00404bd0
push eax
xor eax, eax
mov al, bl
inc eax
pop edx
mov ecx, edx
cdq
idiv ecx
mov ebx, edx
inc esi
dec di
jne 0x45b519
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b562
lea eax, [ebp - 4]
call fcn.00404910
ret
Function at 0x13a01be0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x13ac4e7c]
test eax, eax
jne 0x13a01c5b
mov dword [0x13ac4e7c], 1
call fcn.13a25920
test eax, eax
je 0x13a01c4b
push 0
push 0x104
push 0x13ac4e80
call fcn.13a28ed0
add esp, 0xc
test eax, eax
je 0x13a01c5b
push esi
push edi
mov edi, 0x13aae38c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x13ac4e80
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
mov eax, 0x13ac4e80
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret
push 0x104
push 0x13ac4e80
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, 0x13ac4e80
ret

Function at 0x13a02f40
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push ecx
push 0x80000002
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x13a02f9e
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x13a02f7a
push esi
call fcn.13a35c23
add esp, 4
lea eax, [eax + eax + 2]
jmp 0x13a02f7c
xor eax, eax
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 8]
push esi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret 0xc

Function at 0x13a02fb0
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push ecx
push 0x80000002
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x13a02ff7
mov ecx, dword [esp]
lea edx, [esp + 0x10]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret 0xc

Function at 0x13a03000
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
lea eax, [esp]
push esi
push eax
xor esi, esi
push ecx
push 0x80000002
mov dword [esp + 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x13a0309a
mov ecx, dword [esp + 4]
push ebx
lea edx, [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
push eax
lea eax, [esp + 0x18]
push eax
push esi
push edi
push ecx
call ebx
mov eax, dword [esp + 0x18]
cmp eax, 2
jb 0x13a03084
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call fcn.13a35db6
mov esi, eax
add esp, 4
test esi, esi
je 0x13a03084
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
push 0
push edi
push edx
call ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
pop esi
add esp, 8
ret 8
mov eax, esi
pop esi
add esp, 8
ret 8
Function at 0x13a030b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
lea eax, [esp]
push esi
push eax
xor esi, esi
push ecx
push 0x80000002
mov dword [esp + 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x13a03147
mov ecx, dword [esp + 4]
push ebx
lea edx, [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
push eax
lea eax, [esp + 0x18]
push eax
push esi
push edi
push ecx
call ebx
test eax, eax
jne 0x13a03131
mov eax, dword [esp + 0x18]
cmp eax, 1
jb 0x13a03131
inc eax
push eax
mov dword [esp + 0x1c], eax
call fcn.13a35db6
mov esi, eax
add esp, 4
test esi, esi
je 0x13a03131
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push esi
push eax
push 0
push edi
push ecx
call ebx
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
pop esi
add esp, 8
ret 8
mov eax, esi
pop esi
add esp, 8
ret 8

Function at 0x13a03150
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x10]
lea eax, [esp]
push eax
push ecx
push 0x80000002
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x13a031b4
mov dword [esp + 8], eax
lea edx, [esp + 0x10]
lea eax, [esp + 4]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
add esp, 0xc
ret 8
Function at 0x13a04580
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp eax, esi
jne 0x13a04597
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 0x1c]
mov eax, dword [edx]
xor edx, edx
mov edi, dword [eax + 8]
mov ecx, dword [edi + 0x3c]
mov eax, dword [ecx + edi + 0x78]
mov ecx, dword [eax + edi + 0x1c]
add eax, edi
add ecx, edi
mov dword [ebp - 0x14], ecx
mov ebx, dword [eax + 0x18]
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
add ecx, edi
add eax, edi
cmp ebx, esi
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], eax
jbe 0x13a04646
mov dword [ebp - 4], ecx
mov eax, dword [ecx]
mov esi, dword [ebp + 8]
add eax, edi
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x13a0460f
test cl, cl
je 0x13a0460b
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x13a0460f
add eax, 2
add esi, 2
test cl, cl
jne 0x13a045eb
xor eax, eax
jmp 0x13a04614
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x13a04635
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
inc edx
add ecx, 4
cmp edx, eax
mov dword [ebp - 4], ecx
jb 0x13a045e4
mov esi, dword [ebp - 0xc]
pop edi
mov eax, esi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov ax, word [ecx + edx*2]
mov edx, dword [ebp - 0x14]
mov esi, dword [edx + eax*4]
add esi, edi
pop edi
mov eax, esi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x13a0b290
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x13a9839b
push eax
mov eax, dword [0x13ac8798]
mov dword fs:[0], esp
sub esp, 0x910
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
jne 0x13a0b4d6
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x519]
mov byte [esp + 0x518], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], 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 + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.OAgent.ini
mov dword [0x13ac8798], 1
mov dword [esp + 0xc], ebx
stosb byte es:[edi], al
call fcn.13a01cd0
push eax
lea eax, [esp + 0x1c]
push 0x13aae124
push eax
call fcn.13a35b42
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x118]
push ecx
push 0x400
push edx
push 0x13ac879c
push 0x13a9c9dc
push str.AgentConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, ebx
jbe 0x13a0b386
cmp byte [esp + 0x517], bl
jne 0x13a0b386
lea eax, [esp + 0x518]
push 0x400
lea ecx, [esp + 0x11c]
push eax
push ecx
call fcn.13a61610
add esp, 0xc
mov dword [esp + 8], eax
jmp 0x13a0b38a
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x13a0b494
lea ecx, [esp + 0xc]
call fcn.13a22b20
push 0x20019
push str.SOFTWAREClassesCLSIDAFFAEF68_CDC5_4aad_9D3F_997C0D55927BProgID
push 0x80000002
lea ecx, [esp + 0x18]
mov dword [esp + 0x92c], ebx
call fcn.13a22c90
test eax, eax
je 0x13a0b409
lea edx, [esp + 8]
lea ecx, [esp + 0xc]
push edx
push 0x13a9ca28
call fcn.13a230b0
cmp eax, ebx
je 0x13a0b409
mov ecx, dword [esp + 8]
cmp ecx, 0x400
jae 0x13a0b3fc
mov edx, ecx
push esi
mov esi, eax
lea edi, [esp + 0x51c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x13a0b400
mov dword [esp + 8], ebx
push eax
call fcn.13a35dab
add esp, 4
lea ecx, [esp + 0xc]
call fcn.13a22ce0
lea ecx, [esp + 0xc]
mov dword [esp + 0x920], 0xffffffff
call fcn.13a22c10
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x13a0b494
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x118]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [esp + 0x11c]
push eax
push 0x13ac879c
push 0x13a9ca28
push str.ED30_8AC4_11D5_8930_A730
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
test eax, eax
jbe 0x13a0b48c
cmp byte [esp + 0x517], bl
jne 0x13a0b48c
lea ecx, [esp + 0x518]
push 0x400
lea edx, [esp + 0x11c]
push ecx
push edx
call fcn.13a61610
add esp, 0xc
jmp 0x13a0b490
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x13a0b4d6
cmp eax, 4
jbe 0x13a0b4d6
lea ecx, [esp + 0x518]
test ecx, ecx
je 0x13a0b4d6
cmp dword [esp + 0x518], 1
je 0x13a0b4d6
mov edx, dword [esp + 0x534]
and edx, 0xffff
lea ecx, [edx + edx + 0x22]
cmp ecx, ebx
je 0x13a0b4d6
add eax, 0xfffffffc
cmp ecx, eax
ja 0x13a0b4d6
mov eax, dword [esp + 0x520]
mov dword [0x13ac8794], eax
mov ecx, dword [esp + 0x918]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x91c
ret
Function at 0x13a0cf60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x13a98742
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 0x10]
call fcn.13a22290
xor edi, edi
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], edi
call fcn.13a1a340
mov eax, dword [0x13a9cb24]
mov dword [esi + 0x40], eax
push edi
lea ecx, [esi + 0x44]
mov byte [esp + 0x18], 2
call fcn.13a0c8c0
lea ecx, [esi + 0x70]
call fcn.13a0cb50
lea ecx, [esi + 0x74]
call fcn.13a0cba0
push edi
lea ecx, [esi + 0x84]
mov byte [esp + 0x18], 5
call fcn.13a0cc60
mov ecx, dword [esp + 0xc]
mov dword [esi + 4], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edi
mov dword [esi], 0x13a9cb18
mov dword [esi + 8], 2
mov dword [esi + 0xc], 0xffffffff
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x13a0d1a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x13a9880b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebp
mov ebp, ecx
push esi
push 1
lea eax, [ebp + 0x10]
lea ecx, [esp + 0xc]
push eax
call fcn.13a227c0
xor esi, esi
add ebp, 0x30
push 0xffffffffffffffff
push esi
mov ecx, ebp
mov dword [esp + 0x22c], esi
call fcn.13a1a3b0
mov edx, dword [esp + 0x22c]
cmp edx, esi
jne 0x13a0d208
lea ecx, [esp + 8]
mov dword [esp + 0x224], 0xffffffff
call fcn.13a22820
jmp 0x13a0d2a3
push ebx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1e]
mov word [esp + 0x1c], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x3b
push edx
mov edi, edx
call fcn.13a3604e
mov ebx, eax
add esp, 8
cmp ebx, esi
je 0x13a0d27b
mov esi, ebx
sub esi, edi
sar esi, 1
je 0x13a0d267
cmp esi, 0x103
jae 0x13a0d267
push esi
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.13a35c40
mov eax, dword [ebp + 4]
add esp, 0xc
lea edx, [esp + 0x1c]
mov ecx, ebp
push edx
push eax
mov word [esp + esi*2 + 0x24], 0
call fcn.13a1a860
lea edi, [ebx + 2]
push 0x3b
push edi
call fcn.13a3604e
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x13a0d231
cmp word [edi], 0
je 0x13a0d28d
mov eax, dword [ebp + 4]
push edi
push eax
mov ecx, ebp
call fcn.13a1a860
lea ecx, [esp + 0x10]
mov dword [esp + 0x22c], 0xffffffff
call fcn.13a22820
pop edi
pop ebx
mov ecx, dword [esp + 0x21c]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x220
ret 4
Function at 0x13a13080
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
mov esi, eax
shr eax, 4
and esi, 0xf
inc eax
push edi
mov edi, dword [esp + 0xc]
and eax, 0xffff
push ecx
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x13a130ce
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x13a130ce
xor edx, edx
xor ecx, ecx
mov cx, word [eax]
add eax, 2
cmp esi, edx
je 0x13a130d3
inc edx
lea eax, [eax + ecx*2]
cmp edx, 0x10
jl 0x13a130b9
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x13a130e3
test esi, esi
jne 0x13a13101
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x13a130ff
mov byte [eax + esi - 1], 0
jne 0x13a13108
mov byte [esi + edi - 1], 0
mov eax, edi
pop edi
dec eax
pop esi
ret

Function at 0x13a18860
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x13a188b0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x13a188b0
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x13a188b5
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x13a1889b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x13a188c2
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret