joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bb10
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x40bb3d
xor ecx, ecx
jmp 0x40bb49
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
push esi
mov esi, ecx
test ecx, ecx
je 0x40bbfd
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
mov eax, dword [esi]
cmp dword [esp + 0x10], eax
jne 0x40bb70
mov dword [esp + 0xc], esi
jmp 0x40bbd0
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x40bbc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40bbbc
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x40bbd0
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40bbd0
push 0x462e90
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x40bbd0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x40bbf3
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x40bb62
mov eax, dword [esp + 0xc]
pop edi
pop ebp
test eax, eax
jne 0x40bc11
mov ecx, dword [ebx]
add ecx, 8
call fcn.0040bea0
test eax, eax
je 0x40bc11
mov edx, dword [esp + 8]
mov dword [eax], edx
pop esi
add esp, 8
ret

Function at 0x40bc20
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x45b11b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x467bb0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.0042f3c0
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x14], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x40bcb8
push 0x465204
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.00430aee
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x42e240
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x467bb0]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x828], ecx
push 0x45e7f8
push 0x45e820
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42e327
mov dword [ebp - 0x810], 0
push 0x800
push 0
lea eax, [ebp - 0x80c]
push eax
call fcn.0042f3c0
add esp, 0xc
mov dword [ebp - 0x810], 0x804
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x814], eax
mov ecx, dword [ebp - 0x814]
push ecx
push 0x400
lea edx, [ebp - 0x80c]
push edx
call fcn.00416ba0
mov dword [ebp - 0x820], 0x64
lea eax, [ebp - 0x810]
mov dword [ebp - 0x818], eax
mov dword [ebp - 0x81c], 0x804
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42e327
mov dword [ebp - 0x824], 0
lea edx, [ebp - 0x824]
push edx
push 0x7d0
push 1
lea eax, [ebp - 0x820]
push eax
push 0
push 0x4a
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
neg eax
sbb eax, eax
neg eax
jmp 0x42e329
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042f43a
mov esp, ebp
pop ebp
ret

Function at 0x42f43a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x467bb0]
jne 0x42f444
repz ret
jmp fcn.00434ad4
Function at 0x447b97
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.00435071
and dword [ebp - 4], 0
cmp dword [0x46ae9c], 0
mov ebx, eax
jne 0x447c48
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x447cf9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x447cf9
push eax
call fcn.00434fff
mov dword [esp], 0x460e00
push edi
mov dword [0x46ae9c], eax
call esi
push eax
call fcn.00434fff
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x46aea0], eax
call esi
push eax
call fcn.00434fff
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x46aea4], eax
call esi
push eax
call fcn.00434fff
pop ecx
mov dword [0x46aeac], eax
test eax, eax
je 0x447c48
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00434fff
pop ecx
mov dword [0x46aea8], eax
mov eax, dword [0x46aea8]
cmp eax, ebx
je 0x447ca0
cmp dword [0x46aeac], ebx
je 0x447ca0
push eax
call fcn.0043507a
push dword [0x46aeac]
mov esi, eax
call fcn.0043507a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x447ca0
test edi, edi
je 0x447ca0
call esi
test eax, eax
je 0x447c97
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x447c97
test byte [ebp - 0xc], 1
jne 0x447ca0
or dword [ebp + 0x10], 0x200000
jmp 0x447cd9
mov eax, dword [0x46aea0]
cmp eax, ebx
je 0x447cd9
push eax
call fcn.0043507a
pop ecx
test eax, eax
je 0x447cd9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x447cd9
mov eax, dword [0x46aea4]
cmp eax, ebx
je 0x447cd9
push eax
call fcn.0043507a
pop ecx
test eax, eax
je 0x447cd9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46ae9c]
call fcn.0043507a
pop ecx
test eax, eax
je 0x447cf9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x447cfb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x593faa70
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SetFocus]
mov esi, ecx
push dword [esi + 8]
call edi
push dword [esi + 0xc]
call edi
push 5
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 0x18]
call edi
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x70]
push 0
mov dword [esi], 1
push dword [ecx + eax*4 + 0x24]
push 0x186
push dword [esi + 0x18]
call dword [sym.imp.vsansi.dll_SendMessageW]
and dword [esi], 0
pop edi
xor eax, eax
pop esi
ret

Function at 0x593fbcd7
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
cmp edi, dword [esi + 8]
je 0x593fbd16
call fcn.594019e3
push 0
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp edi, dword [esi + 0x14]
je 0x593fbd06
mov eax, dword [esi + 0x3c]
test eax, eax
jle 0x593fbd0f
dec eax
mov dword [esi + 0x3c], eax
jmp 0x593fbd0f
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, esi
call fcn.593fb8d4
pop edi
xor eax, eax
pop esi
ret 4

Function at 0x593fc691
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.vsansi.dll_RegSetValueExW]
ret 8

Function at 0x593fc6ab
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.vsansi.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.vsansi.dll_RegSetValueExW]
pop esi
ret 0xc

Function at 0x593fc6d7
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.vsansi.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x593fc6e2
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.vsansi.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x59404d9b
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push esi
mov esi, ecx
call fcn.59404d84
and byte [esi + 0xc], 0
mov eax, 0x593f0000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x1c]
push 0
push eax
mov dword [esi], 0x3c
call sub.MSVCR70.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0xc], 2
jne 0x59404df5
cmp dword [ebp - 0x18], 5
jb 0x59404e0d
jmp 0x59404e09
cmp dword [ebp - 0xc], 1
jne 0x59404e0d
cmp dword [ebp - 0x18], 4
ja 0x59404e09
jne 0x59404e0d
cmp dword [ebp - 0x14], 0
jbe 0x59404e0d
mov byte [esi + 0xc], 1
lea eax, [esi + 0x18]
push eax
mov dword [esi + 0x10], 0x700
mov dword [esi + 0x14], 0x59407090
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
add ebp, 0x78
leave
ret
Function at 0x45c280
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x38000]
push edi
or ebp, 0xffffffff
jmp 0x45c2a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45c2a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45c298
mov eax, 1
add ebx, ebx
jne 0x45c2bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45c2b0
jne 0x45c2cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45c2b0
xor ecx, ecx
sub eax, 3
jb 0x45c2e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45c352
mov ebp, eax
add ebx, ebx
jne 0x45c2eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x45c2f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x45c31c
inc ecx
add ebx, ebx
jne 0x45c308
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45c2fd
jne 0x45c319
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45c2fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45c33c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45c32d
jmp 0x45c29e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45c33c
add edi, ecx
jmp 0x45c29e
pop esi
mov edi, esi
mov ecx, 0x3a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45c35a
cmp byte [edi], 0x23
jne 0x45c35a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x45c35f
lea edi, [esi + 0x5a000]
mov eax, dword [edi]
or eax, eax
je 0x45c3ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x62bac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62c18]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45c38c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62c20]
or eax, eax
je 0x45c3c8
mov dword [ebx], eax
add ebx, 4
jmp 0x45c3a9
call dword [esi + 0x62c1c]
mov ebp, dword [esi + 0x62c24]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x45c402
sub esp, 0xffffff80
jmp 0x401a50
Function at 0x416160
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040a840
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41622b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41622b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4161de
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4161e9
or bh, 8
and edi, 0x8000000
je 0x416204
mov eax, dword [0x4359dc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41622b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416600
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41662b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41664f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41666a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x4185c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x423c00
call fcn.00409a38
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0041faa6
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x4185ff
call fcn.0041faa6
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41860d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41861b
or eax, 0xffffffff
jmp 0x418703
mov ecx, esi
call fcn.00418536
mov dword [ebp - 0x14], eax
call fcn.004193f1
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x418652
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x418652
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.004193a5
push dword [ebp - 0x14]
call fcn.00418ed7
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004182ce
cmp eax, edi
je 0x4186c5
test byte [esi + 0x24], 0x10
je 0x418693
push 4
mov ecx, esi
pop ebx
call fcn.0041b4c2
test ah, 1
je 0x41868b
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0041aefc
cmp dword [esi + 0x1c], edi
je 0x4186c5
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041b5a8
jmp 0x4186c5
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x4186d9
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4186f2
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4186f2
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00418570
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x41adaa
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 0x41adec
call fcn.0041faa6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41adec
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41ade3
xor eax, eax
jmp 0x41adf4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041adfa
pop edi
pop esi
pop ebx
ret 4
Function at 0x420265
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 0x420293
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4202b1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004201cb
jmp 0x4202b1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4202b1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004201cb
test edi, edi
mov eax, edi
jne 0x42029b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10005bcf
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x3c4
mov eax, 0x1003132a
call fcn.10009696
mov edi, ecx
cmp dword [edi + 0x20], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x3cc], eax
je 0x10005d61
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 0x3bc], 7
mov dword [ebp - 0x3b8], 1
jb 0x10005c14
mov eax, dword [esi]
lea ecx, [ebp - 0x3b8]
xor ebx, ebx
push ecx
push ebx
lea ecx, [ebp - 0x3bc]
push ecx
push ebx
push eax
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
cmp ecx, 2
je 0x10005d57
cmp dword [ebp - 0x3bc], 7
jne 0x10005d57
test ecx, ecx
je 0x10005c64
push esi
lea eax, [edi + 8]
push eax
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x3b4]
call fcn.1001ec5b
jmp 0x10005d6e
mov eax, dword [ebp - 0x3b8]
add eax, 2
mov dword [ebp - 0x3c8], ebx
mov dword [ebp - 0x3b8], eax
mov dword [ebp - 0x3c4], ebx
mov dword [ebp - 0x3c0], ebx
lea ecx, [ebp - 0x3c8]
mov dword [ebp - 4], ebx
push ecx
push eax
call fcn.1001ec5b
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x3c4]
mov ecx, dword [ebp - 0x3c8]
sub eax, ecx
push 0
pop eax
cmove ecx, eax
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10005cba
mov eax, dword [esi]
lea edx, [ebp - 0x3b8]
push edx
push ecx
lea ecx, [ebp - 0x3bc]
push ecx
push ebx
push eax
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test ecx, ecx
jne 0x10005c4c
mov edx, dword [ebp - 0x3c4]
mov ecx, dword [ebp - 0x3c8]
sub edx, ecx
mov esi, dword [ebp - 0x3cc]
xor eax, eax
test edx, edx
cmove ecx, eax
lea eax, [ecx + ebx*2]
push eax
lea ecx, [ebp - 0x28]
call fcn.1001ec5b
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call fcn.1001ec5b
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
inc eax
mov byte [ebp - 4], 1
add ebx, eax
call fcn.100023a0
mov edx, dword [ebp - 0x3c4]
mov ecx, dword [ebp - 0x3c8]
sub edx, ecx
push 0
mov eax, ecx
pop edi
cmove eax, edi
cmp byte [eax + ebx*2], 0
jne 0x10005cf2
test ecx, ecx
je 0x10005d53
mov edx, dword [ebp - 0x3c0]
sub edx, ecx
call fcn.10002962
mov al, 1
jmp 0x10005d59
xor al, al
call fcn.10009655
ret 8
push ecx
push ecx
lea ecx, [ebp - 0x3b4]
call fcn.10005db1
push 0x100437bc
lea eax, [ebp - 0x3b4]
push eax
call fcn.1001ec5b
int3

Function at 0x100063cd
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x10041bf0
call fcn.10009a30
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.kernel32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x10006443
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x10006443
mov esi, dword [edx + ecx + 0xd8]
lea eax, [ecx + esi]
cmp edi, eax
jb 0x10006443
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x10006443
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x1000644c
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret