joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3013279c
Capabilities:
Check if file exists
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push 0x3027f2a0
mov dword [ebp - 4], 0x80004005
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
cmp dword [0x3027f2b8], ebx
je 0x301327ca
mov dword [ebp - 4], 0x100001
jmp 0x3013285f
mov ecx, dword [ebp + 8]
cmp ecx, ebx
jne 0x301327dd
mov dword [ebp - 4], 0x8ff00003
jmp 0x3013285f
mov eax, dword [ecx]
mov dword [0x3027f19c], eax
mov eax, dword [ecx]
cmp eax, ebx
push esi
push edi
jne 0x30132879
cmp dword [ecx + 4], ebx
je 0x30132858
mov eax, dword [ecx + 0x10]
mov dword [0x3027f29c], eax
mov eax, dword [ecx + 8]
mov dword [0x30260aac], eax
mov eax, dword [ecx + 0xc]
push 2
push ebx
mov dword [sym.OFFDIAG.exe_public_virtual:_void___thiscall_NetUI::NativeHWNDHost::ChildHWNDFocusChanged_bool__bool_], eax
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp eax, ebx
mov dword [0x3027f1a0], eax
jne 0x30132872
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x30132858
cmp eax, 3
jbe 0x30132851
cmp eax, 0x1f
je 0x30132851
cmp eax, 0x7e
je 0x30132851
cmp eax, 0xc1
je 0x30132851
cmp eax, 0x3ee
je 0x30132851
cmp eax, 0x485
jne 0x30132858
mov dword [ebp - 4], 0x8ff00004
call fcn.30132602
pop edi
pop esi
push 0x3027f2a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 4]
pop ebx
leave
ret 4
mov ecx, 0x315
jmp 0x301328a2
cmp eax, 1
jne 0x3013285d
mov eax, dword [ecx + 0x14]
mov dword [0x3027f29c], eax
mov eax, dword [ecx + 0xc]
mov dword [0x30260aac], eax
mov eax, dword [ecx + 0x10]
mov dword [sym.OFFDIAG.exe_public_virtual:_void___thiscall_NetUI::NativeHWNDHost::ChildHWNDFocusChanged_bool__bool_], eax
mov eax, dword [ecx + 4]
mov dword [0x3027f1a0], eax
movzx ecx, word [ecx + 8]
cmp dword [0x30260aac], ebx
je 0x30132858
cmp dword [sym.OFFDIAG.exe_public_virtual:_void___thiscall_NetUI::NativeHWNDHost::ChildHWNDFocusChanged_bool__bool_], ebx
je 0x30132858
movzx ecx, cx
push 0xa
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
je 0x30132858
push edi
push dword [0x3027f1a0]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, 6
jb 0x30132858
push edi
push dword [0x3027f1a0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x30132858
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ecx, [eax + esi]
mov dword [0x3027f268], ecx
mov cx, word [0x30024508]
mov dword [0x3027f264], eax
cmp cx, word [eax]
jne 0x30132858
add eax, 2
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
call fcn.301319f1
cmp esi, dword [ebp - 8]
jne 0x30132858
lea eax, [ebp + 8]
push eax
call fcn.301326b4
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x30132858
call fcn.30131e86
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x30132858
push 7
pop ecx
xor eax, eax
mov edi, 0x3027f1b0
rep stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
mov dword [0x3027f2b8], 1
jmp 0x3013285d
Function at 0x30134a31
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x3027f2b8], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
jne 0x30134a5a
mov edi, 0x8ff000ff
jmp 0x30134a9f
test ebx, ebx
je 0x30134a9a
call fcn.30134223
mov edi, eax
test edi, edi
jl 0x30134a9f
push esi
call fcn.30132fa8
mov esi, eax
test esi, esi
je 0x30134a9a
test byte [esi + 0x1f], 4
jne 0x30134a91
push esi
call fcn.30133b9b
mov edi, eax
test edi, edi
jge 0x30134a91
cmp edi, 0x8007000e
je 0x30134a9f
xor edi, edi
mov eax, dword [ebp + 0xc]
dec eax
je 0x30134ab2
dec eax
je 0x30134aca
mov edi, 0x80004005
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30136bd1
leave
ret 0xc
mov eax, dword [esi + 0x18]
test eax, eax
je 0x30134aca
cmp byte [esi + 0x1e], 0
jbe 0x30134aca
mov eax, dword [eax]
and eax, 0xff
mov dword [ebx], eax
jmp 0x30134a9f
cmp dword [esi + 8], 0x1000
jne 0x30134af1
call fcn.301366c6
test al, al
je 0x30134af1
push 3
lea eax, [ebp - 0xc]
push eax
push 0x1009
push dword [esi + 4]
call fcn.30136668
jmp 0x30134b05
push 3
lea eax, [ebp - 0xc]
push eax
push 0x1009
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x30134a9a
lea eax, [ebp - 0xc]
push eax
call fcn.30132f90
push ebx
push eax
call fcn.3013416f
mov edi, eax
jmp 0x30134a9f
Function at 0x30134b1d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x3027f2a0
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x220], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [esi + 0x1f], 2
jne 0x30134d32
mov eax, dword [esi + 0x14]
cmp eax, ebx
push edi
mov edi, 0x3027f2dc
je 0x30134b73
push eax
mov ecx, edi
call fcn.301364c8
mov dword [esi + 0x14], ebx
mov byte [esi + 0x1d], bl
push 8
lea eax, [ebp - 0x14]
push eax
push 0x1004
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x30134c74
lea eax, [ebp - 0x23c]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push 0x300244f4
push ebx
call fcn.30132be0
cmp eax, ebx
mov dword [ebp - 0x218], eax
jl 0x30134c74
mov eax, dword [ebp - 0x238]
push 4
xor ecx, ecx
pop edx
mul edx
seto cl
mov dword [ebp - 0x220], 1
neg ecx
or eax, ecx
push eax
mov ecx, edi
call fcn.3013649e
cmp eax, ebx
mov dword [esi + 0x14], eax
je 0x30134c84
cmp dword [ebp - 0x238], ebx
mov dword [ebp - 0x21c], ebx
jbe 0x30134c48
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x224]
push eax
mov eax, dword [ebp - 0x23c]
push dword [eax + ecx*4]
call fcn.301344ac
cmp eax, ebx
mov dword [ebp - 0x218], eax
jl 0x30134c2d
movzx eax, byte [esi + 0x1d]
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0x224]
mov dword [ecx + eax*4], edx
inc byte [esi + 0x1d]
jmp 0x30134c34
cmp eax, 0x8007000e
je 0x30134c5f
inc dword [ebp - 0x21c]
mov eax, dword [ebp - 0x21c]
cmp eax, dword [ebp - 0x238]
jb 0x30134bf3
cmp byte [esi + 0x1d], bl
jne 0x30134d1e
mov eax, dword [esi + 0x14]
mov byte [esi + 0x1d], 1
mov dword [eax], ebx
jmp 0x30134d1e
push dword [esi + 0x14]
mov ecx, edi
call fcn.301364c8
mov dword [esi + 0x14], ebx
mov byte [esi + 0x1d], bl
jmp 0x30134d31
push 4
mov ecx, edi
call fcn.3013649e
cmp eax, ebx
mov dword [esi + 0x14], eax
jne 0x30134c93
mov dword [ebp - 0x218], 0x8007000e
jmp 0x30134d31
mov byte [esi + 0x1d], 1
mov dword [eax], ebx
call fcn.301366c6
test al, al
je 0x30134cc3
cmp dword [esi + 8], 0x1000
jne 0x30134cc3
push 0x100
lea eax, [ebp - 0x214]
push eax
push 4
push dword [esi + 4]
call fcn.30136668
jmp 0x30134cda
push 0x100
lea eax, [ebp - 0x214]
push eax
push 4
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, ebx
je 0x30134d1e
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
mov dword [ebp - 0x21c], ebx
call fcn.3013300e
test eax, eax
je 0x30134d12
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call fcn.30135845
mov ecx, dword [esi + 0x14]
mov dword [ecx], eax
cmp dword [ebp - 0x218], 0x8007000e
je 0x30134d31
cmp dword [esi + 8], 0xc00
je 0x30134d2b
or byte [esi + 0x1f], 2
mov dword [ebp - 0x218], ebx
pop edi
push 0x3027f2a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x220], ebx
pop esi
pop ebx
je 0x30134d53
lea eax, [ebp - 0x23c]
push eax
call fcn.30132c4d
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
xor ecx, ebp
call fcn.30136bd1
leave
ret 4
Function at 0x301366c6
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x3027f2eb], 0
jne 0x30136720
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x30136719
cmp dword [ebp - 0x110], 2
jne 0x30136719
cmp dword [ebp - 0x11c], 6
jb 0x30136719
call fcn.3013657b
mov byte [0x3027f2ea], al
mov byte [0x3027f2eb], 1
mov ecx, dword [ebp - 4]
mov al, byte [0x3027f2ea]
xor ecx, ebp
call fcn.30136bd1
leave
ret

Function at 0x30136bd1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3002450c]
jne 0x3013790a
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x3027f418], eax
mov dword [0x3027f414], ecx
mov dword [0x3027f410], edx
mov dword [0x3027f40c], ebx
mov dword [0x3027f408], esi
mov dword [0x3027f404], edi
mov word [0x3027f430], ss
mov word [0x3027f424], cs
mov word [0x3027f400], ds
mov word [0x3027f3fc], es
mov word [0x3027f3f8], fs
mov word [0x3027f3f4], gs
pushfd
pop dword [0x3027f428]
mov eax, dword [ebp]
mov dword [0x3027f41c], eax
mov eax, dword [ebp + 4]
mov dword [0x3027f420], eax
lea eax, [ebp + 8]
mov dword [0x3027f42c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x3027f368], 0x10001
mov eax, dword [0x3027f420]
mov dword [0x3027f31c], eax
mov dword [0x3027f310], 0xc0000409
mov dword [0x3027f314], 1
mov eax, dword [0x3002450c]
mov dword [ebp - 0x328], eax
mov eax, dword [0x30260ab4]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x3027f360], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x300247f0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x3027f360], 0
jne 0x301379fa
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret

Function at 0x30136be9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x3000e57c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x30136c41
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0
push 0
push 0x3000e574
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x30136c41
mov al, 1
jmp 0x30136c43
xor al, al
leave
ret 8
Function at 0x30137e6d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x30137e8d
cmp dword [edi], 0x10
jne 0x30137e8d
cmp dword [edi + 4], 1
je 0x30137e99
mov dword [ebp - 4], 0x80070057
jmp 0x30138013
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x30137ea9
cmp dword [esi], 0x21c
je 0x30137eb5
mov dword [ebp - 4], 0x80070057
jmp 0x30138012
test byte [esi + 4], 1
je 0x30137ed7
push dword [edi + 0xc]
lea eax, [esi + 8]
push 0x80
push eax
call fcn.300f303c
test eax, eax
mov dword [ebp - 4], eax
jl 0x30138003
test byte [esi + 4], 2
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
je 0x30137f1d
lea eax, [ebp + 8]
push eax
lea eax, [esi + 0x108]
push eax
push 0
push 0
push 0x30024924
push dword [edi + 8]
mov dword [ebp + 8], 4
call ebx
test eax, eax
jle 0x30137f12
and eax, 0xffff
or eax, 0x80070000
test eax, eax
mov dword [ebp - 4], eax
jl 0x30138002
test byte [esi + 4], 4
je 0x30137f5c
lea eax, [ebp + 8]
push eax
lea eax, [esi + 0x10c]
push eax
push 0
push 0
push 0x30024908
push dword [edi + 8]
mov dword [ebp + 8], 4
call ebx
test eax, eax
jle 0x30137f51
and eax, 0xffff
or eax, 0x80070000
test eax, eax
mov dword [ebp - 4], eax
jl 0x30138002
test byte [esi + 4], 8
je 0x30137f97
lea eax, [ebp + 8]
push eax
lea eax, [esi + 0x110]
push eax
push 0
push 0
push 0x300248f4
push dword [edi + 8]
mov dword [ebp + 8], 4
call ebx
test eax, eax
jle 0x30137f90
and eax, 0xffff
or eax, 0x80070000
test eax, eax
mov dword [ebp - 4], eax
jl 0x30138002
test byte [esi + 4], 0x10
je 0x30138002
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push 0x300248dc
push dword [edi + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jle 0x30137fc4
and eax, 0xffff
or eax, 0x80070000
test eax, eax
mov dword [ebp - 4], eax
jl 0x30138002
mov eax, dword [esi + 0x214]
add eax, eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea eax, [esi + 0x218]
push eax
push 0
push 0
add esi, 0x114
push esi
push dword [ebp - 8]
call ebx
test eax, eax
jle 0x30137fff
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
pop ebx
cmp dword [ebp - 8], 0
je 0x30138012
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, dword [ebp - 4]
pop edi
leave
ret 8
Function at 0x3013826b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor eax, eax
test ecx, ecx
je 0x30138282
cmp dword [ecx], 0x10
jne 0x30138282
cmp dword [ecx + 4], 1
je 0x3013828c
mov eax, 0x80070057
jmp 0x30138352
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x3013829f
cmp dword [edi], 0x10
jne 0x3013829f
cmp dword [edi + 4], 3
je 0x301382a9
mov eax, 0x80070057
jmp 0x30138351
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x301382b9
cmp dword [esi], 0x1154
je 0x301382c3
mov eax, 0x80070057
jmp 0x30138350
test byte [esi + 4], 1
je 0x301382de
push dword [edi + 0xc]
lea eax, [esi + 8]
push 0x80
push eax
call fcn.300f303c
test eax, eax
jl 0x30138350
test byte [esi + 4], 2
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
je 0x3013831d
lea eax, [ebp + 8]
push eax
lea eax, [esi + 0x108]
push eax
push 0
push 0
push 0x30024930
push dword [edi + 8]
mov dword [ebp + 8], 0x1048
call ebx
test eax, eax
jle 0x3013831b
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x3013834f
push 4
pop ecx
test byte [esi + 4], cl
je 0x3013834f
lea eax, [ebp + 8]
push eax
add esi, 0x1150
push esi
push 0
push 0
push 0x300248f4
push dword [edi + 8]
mov dword [ebp + 8], ecx
call ebx
test eax, eax
jle 0x3013834f
and eax, 0xffff
or eax, 0x80070000
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x30138356
Capabilities:
Get disk information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x438], eax
mov eax, dword [ebp + 0x10]
mov esi, 0x21c
push esi
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x430]
push 0
push eax
mov edi, ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x430]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x42c], 7
call fcn.30137e6d
mov esi, eax
test esi, esi
jl 0x301384cf
test edi, edi
jne 0x301383d2
mov edi, dword [ebp - 0x324]
test edi, edi
jne 0x301383d2
mov esi, 0x80070057
test esi, esi
jl 0x301384cf
and word [ebp - 6], 0
lea eax, [ebp - 0xc]
add edi, 0x40
push eax
mov word [ebp - 0xc], di
mov word [ebp - 0xa], 0x3a
mov word [ebp - 8], 0x5c
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x3013840b
cmp eax, 2
je 0x3013840b
mov esi, 0x8007000f
test esi, esi
jl 0x301384cf
cmp dword [ebp - 0x328], 1
jne 0x3013849a
mov eax, 0x30001d78
lea ecx, [ebp - 0x428]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push 0x30024974
push dword [ebp + 0x14]
push dword [ebp - 0x434]
call fcn.300ee78d
mov esi, eax
add esp, 0x18
test esi, esi
jl 0x301384cf
mov edi, dword [ebp - 0x438]
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x30024950
push dword [edi + 8]
mov dword [ebp - 0x43c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jle 0x3013848b
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jne 0x301384b4
lea eax, [ebp - 0x214]
push eax
jmp 0x301384bf
cmp dword [ebp - 0x328], 2
jne 0x301384ad
mov eax, 0x3002493c
jmp 0x30138421
mov esi, 0x80004001
jmp 0x301384cf
cmp esi, 0x80070002
jne 0x301384cf
push dword [edi + 0xc]
push dword [ebp + 0x14]
push dword [ebp - 0x434]
call fcn.300f306f
mov esi, eax
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.30136bd1
leave
ret 0x10
Function at 0x301384e1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x136c
call fcn.301374d4
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x1368], eax
mov dword [ebp - 0x1364], esi
jne 0x3013857c
lea eax, [ebp - 0x136c]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push 0x300249c0
push dword [edi + 8]
mov dword [ebp - 0x136c], 0x208
call ebx
cmp eax, esi
jle 0x3013854a
and eax, 0xffff
or eax, 0x80070000
cmp eax, esi
jne 0x3013856f
lea eax, [ebp - 0x1364]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call fcn.30138143
mov esi, eax
mov eax, dword [ebp - 0x1364]
mov dword [ebp + 0xc], eax
jmp 0x30138574
mov esi, 0x80070057
test esi, esi
jl 0x30138634
mov esi, 0x1154
push esi
lea eax, [ebp - 0x1360]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1360]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x1360], esi
push dword [ebp + 8]
mov dword [ebp - 0x135c], 2
call fcn.3013826b
mov esi, eax
test esi, esi
jl 0x30138634
lea eax, [ebp - 0x1258]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x1368]
call fcn.300f303c
mov esi, eax
test esi, esi
jl 0x30138634
lea eax, [ebp - 0x136c]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x30024998
push dword [edi + 8]
mov dword [ebp - 0x136c], 0x208
call ebx
test eax, eax
jle 0x3013860a
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jne 0x30138619
lea eax, [ebp - 0x20c]
push eax
jmp 0x30138624
cmp esi, 0x80070002
jne 0x30138634
push dword [edi + 0xc]
push dword [ebp + 0x14]
push dword [ebp - 0x1368]
call fcn.300f306f
mov esi, eax
cmp dword [ebp - 0x1364], 0
je 0x30138648
push dword [ebp - 0x1364]
call fcn.30137d22
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.30136bd1
leave
ret 0x10
Function at 0x3013e752
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x30153615
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp byte [ebp + 0xc], 0
push ebx
push esi
mov esi, ecx
jne 0x3015368f
cmp byte [ebp + 8], 0
jne 0x3015368f
xor ebx, ebx
test byte [esi + 0x32], 2
je 0x30153686
test byte [esi + 0x7d], 0x40
je 0x30153646
cmp dword [esi + 0x3c], ebx
je 0x30153646
xor eax, eax
inc eax
jmp 0x3015378e
push 1
call fcn.30157644
mov eax, dword [esi + 0x3c]
cmp eax, ebx
je 0x30153686
mov dword [ebp - 8], eax
push 4
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], 0x10
mov dword [ebp - 0xc], 0x83ff
call fcn.3015f4cf
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x3015378c
push esi
call sym.OFFDIAG.exe_public:_long_int___thiscall_NetUI::Node::Remove_class_NetUI::Node__
jmp 0x3015378c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
jmp 0x30153691
xor ebx, ebx
push edi
mov edi, dword [esi + 4]
cmp edi, ebx
je 0x301536b4
mov ecx, esi
call sym.OFFDIAG.exe_protected:_void___thiscall_NetUI::TreeNodeT_class_NetUI::Node_::DoUnlink_void_
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 0x2c]
jmp 0x301536b4
mov ecx, dword [esi + 8]
push ebx
push ebx
call fcn.30153615
cmp dword [esi + 8], ebx
jne 0x301536aa
lea ecx, [esi + 0x14]
call fcn.3013a25e
mov ecx, dword [esi + 0x2c]
cmp ecx, ebx
je 0x301536d6
test byte [esi + 0x32], 0x40
jne 0x301536d3
call fcn.301647cf
mov dword [esi + 0x2c], ebx
call fcn.3015937e
mov edi, eax
cmp edi, ebx
je 0x30153758
cmp dword [edi], ebx
jle 0x30153758
test byte [esi + 0x32], 2
je 0x30153703
push 1
push ebx
push esi
lea ecx, [edi + 0x64]
call fcn.3013a1b9
push 1
push ebx
push esi
lea ecx, [edi + 0x58]
call fcn.3013a1b9
mov eax, dword [esi + 0x1c]
or ecx, 0xffffffff
cmp eax, ecx
je 0x30153716
mov edx, dword [edi + 0x10]
mov dword [edx + eax*8], ebx
mov dword [esi + 0x1c], ecx
mov eax, dword [esi + 0x20]
cmp eax, ecx
je 0x30153726
mov edx, dword [edi + 0x20]
mov dword [edx + eax*8], ebx
mov dword [esi + 0x20], ecx
mov eax, dword [esi + 0x24]
cmp eax, ecx
je 0x30153758
cmp eax, dword [edi + 0x78]
jl 0x30153754
imul eax, eax, 0x1c
add eax, dword [edi + 0x30]
mov ebx, eax
cmp byte [ebx], 0
jne 0x30153746
mov ecx, ebx
call fcn.3013a335
mov eax, dword [ebx + 0x18]
and dword [ebx + 4], 0
cmp eax, dword [edi + 0x78]
jge 0x30153732
xor ebx, ebx
or dword [esi + 0x24], 0xffffffff
or byte [esi + 0x32], 0x20
mov al, byte [esi + 0x32]
test al, 8
pop edi
jne 0x30153787
mov ecx, dword [esi + 0x28]
cmp ecx, ebx
je 0x3015377e
test byte [ecx + 0xc], 4
jne 0x30153787
cmp ecx, ebx
je 0x3015377e
push ecx
call fcn.3013b3ce
mov dword [esi + 0x28], ebx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
jmp 0x3015378c
or al, 0x10
mov byte [esi + 0x32], al
xor eax, eax
pop esi
pop ebx
leave
ret 8

Function at 0x30159393
Capabilities:
Get thread local storage value

Disassembly:
push dword [sym.OFFDIAG.exe_unsigned_long_int_NetUI::g_dwElSlot]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x301593a4
ret
mov eax, dword [eax + 0xc]
ret
Function at 0x3015948e
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x3027f6c0], 0
jbe 0x301594a0
inc dword [0x3027f6c0]
xor eax, eax
ret
call fcn.301ac336
call fcn.301ac10c
test eax, eax
jne 0x301594b4
mov eax, 0x80004005
ret
push esi
mov dword [0x30261bd8], 2
mov dword [0x30261bdc], 0x8d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [sym.OFFDIAG.exe_unsigned_long_int_NetUI::g_dwElSlot], eax
jne 0x301594e0
mov esi, 0x80040001
jmp 0x30159525
call fcn.30164f8f
call fcn.301abf99
mov esi, eax
test esi, esi
jl 0x30159525
call fcn.30153509
mov esi, eax
test esi, esi
jl 0x30159525
call fcn.3019a85a
mov esi, eax
test esi, esi
jl 0x30159525
call sym.OFFDIAG.exe_public_virtual:_enum_NetUI::NetUIControlType___thiscall_NetUI::Element::GetCtrlType_void_
mov esi, eax
test esi, esi
jl 0x30159525
push 0x3027f6c4
push 0x40
push 0x18
call fcn.301ac03a
mov esi, eax
test esi, esi
jge 0x3015954b
call fcn.301abe6b
call fcn.30153c33
mov eax, dword [sym.OFFDIAG.exe_unsigned_long_int_NetUI::g_dwElSlot]
cmp eax, 0xffffffff
je 0x30159547
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
or dword [sym.OFFDIAG.exe_unsigned_long_int_NetUI::g_dwElSlot], 0xffffffff
mov eax, esi
pop esi
ret
mov dword [0x3027f6c0], 1
xor eax, eax
pop esi
ret

Function at 0x30159878
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x3027f6d4], esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
jne 0x301598a3
mov esi, 0x80004005
lea ecx, [ebp - 8]
call fcn.30159559
pop edi
mov eax, esi
pop esi
leave
ret
push dword [sym.OFFDIAG.exe_unsigned_long_int_NetUI::g_dwElSlot]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
cmp edi, esi
jne 0x301598bc
mov esi, 0x8000ffff
jmp 0x30159895
lea ecx, [ebp - 8]
call fcn.301597e9
cmp dword [edi + 0x20], esi
jne 0x30159895
call fcn.30139222
test eax, eax
je 0x30159914
push ebx
mov dword [ebp - 4], esi
call fcn.30139222
mov ecx, dword [ebp - 4]
cmp ecx, esi
mov ebx, eax
mov dword [ebp - 4], esi
je 0x301598ec
call sym.OFFDIAG.exe_public:_void___thiscall_NetUI::BaseValue::Release_void_
mov eax, dword [ebx]
lea ecx, [ebp - 4]
push ecx
push esi
mov ecx, ebx
call dword [eax]
cmp dword [edi + 0x20], esi
pop ebx
jne 0x30159905
push dword [ebp - 4]
call sym.OFFDIAG.exe_public:_static_bool___stdcall_NetUI::NUIDocument::SetGlobalDefaultStyle_class_NetUI::Value__
mov ecx, dword [ebp - 4]
cmp ecx, esi
mov dword [ebp - 4], esi
je 0x30159914
call sym.OFFDIAG.exe_public:_void___thiscall_NetUI::BaseValue::Release_void_
cmp dword [edi + 0x20], esi
jne 0x30159921
call fcn.3015980d
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
jmp 0x30159895