joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4349a0
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x18
lea eax, [esp]
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov esi, dword [esp + 0x24]
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [esp + 0x28]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push edx
push 0x419
push esi
call edi
lea ecx, [esp + 0x10]
push ecx
push eax
push 0x41d
push esi
call edi
pop edi
pop esi
test eax, eax
jne 0x4349ed
add esp, 0x18
ret
mov edx, dword [esp + 4]
mov eax, dword [esp]
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
add esp, 0x18
ret

Function at 0x434c40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
mov esi, dword [esp + 0x10c]
push eax
push 0x104
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x434c6d
pop esi
add esp, 0x104
ret
mov ecx, dword [esp + 0x110]
push esi
push 0
lea edx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x104
ret

Function at 0x434f70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x18]
mov esi, ecx
push ebx
lea eax, [esp + 0x20]
mov ecx, dword [esi]
push edi
push eax
push 0
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
je 0x434fbb
mov esi, dword [esi + 4]
test esi, esi
je 0x434fb4
push ebx
lea edx, [esp + 0x20]
push edi
push edx
push 0
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
jne 0x434fc1
test edi, edi
jne 0x434fc1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x435080
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 8]
push edi
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esi]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push edi
push eax
mov dword [esp + 0x24], 4
call ebx
cmp eax, 0xea
je 0x4350db
mov esi, dword [esi + 4]
test esi, esi
je 0x4350d4
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
push 0
push edi
push esi
call ebx
cmp eax, 0xea
jne 0x4350f0
lea ecx, [esp + 0x18]
test ecx, ecx
jne 0x4350f4
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
add esp, 8
ret 8
test eax, eax
je 0x4350e3
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x435110
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebx
push ebp
push esi
mov ebx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
mov edi, ecx
mov esi, 0x3f5
mov eax, dword [edi + 8]
test eax, eax
je 0x43513d
lea ecx, [esp + 0x18]
push 4
push ecx
push 4
push 0
push ebx
push eax
call ebp
mov esi, eax
mov eax, dword [edi + 0xc]
test eax, eax
je 0x435150
test esi, esi
jne 0x435159
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 8
lea edx, [esp + 0x18]
push 4
push edx
push 4
push 0
push ebx
push eax
call ebp
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x435170
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebx
push ebp
push esi
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
push edi
mov edi, ecx
mov esi, 0x3f5
mov eax, dword [edi + 8]
test eax, eax
je 0x43519e
mov ecx, dword [esp + 0x18]
push ebp
push ecx
push 3
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov edi, dword [edi + 0xc]
test edi, edi
je 0x4351b1
test esi, esi
jne 0x4351ba
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov edx, dword [esp + 0x18]
push ebp
push edx
push 3
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x4351e0
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, ecx
push ebp
mov ebp, dword [esp + 0xc]
xor ecx, ecx
push esi
mov word [ebx], cx
mov word [ebx + 2], cx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], ecx
mov ax, word [ebp + 2]
cmp ax, cx
jbe 0x43526c
cmp ax, 0xc
ja 0x43526c
mov ax, word [ebp]
xor edx, edx
mov word [ebx], ax
mov cx, word [ebp + 2]
mov word [ebx + 2], cx
mov eax, dword [ebp + 4]
mov dx, cx
mov dword [ebx + 4], eax
mov esi, dword [edx*4 + 0x45da48]
imul esi, eax
cmp esi, 4
ja 0x435241
mov eax, dword [ebp + 8]
pop esi
mov dword [ebx + 8], eax
mov eax, ebx
pop ebp
pop ebx
ret 4
push edi
push esi
call fcn.00447e47
mov ecx, esi
mov dword [ebx + 8], eax
mov esi, dword [ebp + 8]
mov edx, ecx
mov edi, eax
add esp, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
ret 4
push str.Invalid_meta_data_item_typeID_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
mov eax, ebx
pop ebp
pop ebx
ret 4

Function at 0x435c70
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [esi + 8]
push 1
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [esi + 0xc]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x4361d0
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push esi
mov esi, ecx
push edi
push 0
push 0
mov eax, dword [esi + 0x1c]
push 0x418
push eax
call ebx
mov ecx, esi
mov edi, eax
call fcn.00436090
add eax, edi
lea edi, [eax*4]
push edi
call fcn.00447e47
mov ecx, edi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
push 0
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x1c]
push 0x418
push eax
mov dword [esp + 0x24], ebp
call ebx
mov ebx, eax
xor edi, edi
test ebx, ebx
jle 0x43625b
push edi
mov ecx, esi
call fcn.00450ff5
and eax, 0xffff
add ebp, 4
or eax, 0x10000
inc edi
mov dword [ebp - 4], eax
cmp edi, ebx
jl 0x43623a
mov ebp, dword [esp + 0x14]
mov ecx, esi
mov dword [esp + 0x10], 0
call fcn.00436090
test eax, eax
jle 0x4362c3
lea ecx, [ebp + edi*4]
xor ebx, ebx
mov dword [esp + 0x14], ecx
mov edx, dword [esi + 0xbc]
mov ecx, esi
mov eax, dword [edx + ebx + 4]
push eax
call fcn.00450fdf
cmp eax, 0xffffffff
jne 0x4362aa
mov ecx, dword [esi + 0xbc]
mov eax, dword [esp + 0x14]
xor edx, edx
inc edi
mov dx, word [ecx + ebx + 4]
mov dword [eax], edx
add eax, 4
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov ecx, esi
inc eax
add ebx, 0x64
mov dword [esp + 0x10], eax
call fcn.00436090
cmp dword [esp + 0x10], eax
jl 0x436278
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x436303
mov ecx, dword [esp + 0x18]
lea edx, [edi*4]
push edx
push ebp
push 3
push eax
mov eax, dword [esp + 0x34]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.00447e70
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x437b3c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x437b5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043a901
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x437b7f
test byte [esp + 8], 2
je 0x437b7f
call fcn.0043a974
mov dword [eax], 0xd
call fcn.0043a97d
mov dword [eax], 5
jmp 0x437b58
xor eax, eax
ret

Function at 0x43eade
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x46cef0
cmp edx, dword [eax]
je 0x43eb00
add eax, 8
inc ecx
cmp eax, 0x46cf80
jl 0x43eaf1
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x46cef0]
jne 0x43ec2e
mov eax, dword [0x46ff64]
cmp eax, 1
je 0x43ec08
test eax, eax
jne 0x43eb31
cmp dword [0x46a710], 1
je 0x43ec08
cmp edx, 0xfc
je 0x43ec2e
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43eb68
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0043f970
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0043a240
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x43ebab
lea eax, [ebp - 0x1a4]
push eax
call fcn.0043a240
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x460754
push edi
call fcn.00437fd0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0043f970
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0043f980
lea eax, [ebp - 0xa0]
push 0x460734
push eax
call fcn.0043f980
push dword [esi + 0x46cef4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0043f980
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0044208f
add esp, 0x2c
pop edi
jmp 0x43ec2e
lea eax, [ebp + 8]
lea esi, [esi + 0x46cef4]
push 0
push eax
push dword [esi]
call fcn.0043a240
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x446150
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.00438b40
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x44621b
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 0x44621b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4461ce
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4461d9
or bh, 8
and edi, 0x8000000
je 0x4461f4
mov eax, dword [0x47173c]
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 0x44621b
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 0x4465f0
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 0x44661b
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 0x44663f
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 0x44665a
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 0x44a71e
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 0x44a760
call fcn.004561ef
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x44a760
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x44a757
xor eax, eax
jmp 0x44a768
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0044a76e
pop edi
pop esi
pop ebx
ret 4

Function at 0x414b70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x10000]
push edi
jmp 0x414b8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x414b91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414b80
mov eax, 1
add ebx, ebx
jne 0x414ba3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x414b98
jne 0x414bb4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414b98
xor ecx, ecx
sub eax, 3
jb 0x414bc8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414c3a
mov ebp, eax
add ebx, ebx
jne 0x414bd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x414be0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x414c04
inc ecx
add ebx, ebx
jne 0x414bf0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x414be5
jne 0x414c01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414be5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x414c24
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x414c15
jmp 0x414b86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x414c24
add edi, ecx
jmp 0x414b86
pop esi
mov edi, esi
mov ecx, 4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x414c42
cmp byte [edi], 5
jne 0x414c42
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 0x414c47
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x414cbf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19be8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19c24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x414c74
mov ecx, edi
jns 0x414ca3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19c2c]
or eax, eax
je 0x414cb9
mov dword [ebx], eax
add ebx, 4
jmp 0x414c91
call dword [esi + 0x19c28]
mov ebp, dword [esi + 0x19c30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0x414cf3
sub esp, 0xffffff80
jmp 0x401150
Function at 0x40109a
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x464fb1
mov eax, dword fs:[0]
push eax
sub esp, 0xa14
mov eax, dword [0x487590]
xor eax, esp
mov dword [esp + 0xa10], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x487590]
xor eax, esp
push eax
lea eax, [esp + 0xa28]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
xor eax, eax
xor ebp, ebp
push 0x206
mov word [esp + 0x20], ax
lea eax, [esp + 0x22]
push ebp
push eax
mov dword [esp + 0x24], ebp
call fcn.00438850
add esp, 0xc
lea eax, [esp + 0x1c]
cmp dword [esp + 0xa38], ebp
je 0x401123
push dword [esp + 0xa38]
push esi
push str._s_d
push 0x104
push eax
call fcn.0040128b
add esp, 0x14
jmp 0x401137
push esi
push 0x47a728
push 0x104
push eax
call fcn.0040128b
add esp, 0x10
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call fcn.0040178b
mov dword [esp + 0xa30], ebp
mov esi, str.hwang
lea edi, [esp + 0x224]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x7f2
lea eax, [esp + 0x236]
push ebp
push eax
movsw word es:[edi], word [esi]
call fcn.00438850
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x240]
push str._szObjectName___s
push eax
call fcn.00437dbf
add esp, 0x18
lea eax, [esp + 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.004012aa
mov ecx, dword [esp + 0x14]
add eax, 0x10
add ecx, 0xfffffff0
mov dword [ebx], eax
call fcn.00401551
mov eax, ebx
mov ecx, dword [esp + 0xa28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa10]
xor ecx, esp
call fcn.00437bed
add esp, 0xa20
ret

Function at 0x4011df
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x24], bl
lea edi, [ebp - 0x23]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x24]
push eax
mov esi, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
lea eax, [ebp - 0x24]
push ebx
push ebx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x24]
push dword [ebp + 8]
mov edx, esi
lea ecx, [ebp - 4]
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], eax
call fcn.0040109a
pop ecx
push dword [eax]
lea eax, [ebp - 0x10]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401551
test esi, esi
je 0x401284
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401284
push ebx
push str.Dtl_Installer
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x401280
push edi
push eax
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
mov eax, esi
jmp 0x401286
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40139c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4013f3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4013e4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x4013e0
cmp esi, ecx
jae 0x4013e4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec edx
jne 0x4013d0
cmp esi, ecx
jb 0x4013e8
xor eax, eax
jmp 0x4013f2
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x402139
Capabilities:
Create process on windows

Disassembly:
push 0xc
mov eax, 0x465208
call fcn.0043d2f6
mov edi, ecx
call fcn.00402f0e
mov ecx, eax
call fcn.0040c2b8
mov esi, eax
mov edx, 0x47a834
mov ecx, esi
call fcn.0041d7ab
xor ebx, ebx
push ebx
or edx, 0xffffffff
mov ecx, esi
call fcn.0041d44a
pop ecx
mov edx, eax
lea ecx, [ebp - 0x10]
call fcn.0040384f
push 0xfffffffffffffffe
pop edx
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0041d09c
call fcn.00402e86
lea eax, [ebp - 0x10]
push eax
call fcn.00401aa0
mov edx, 0x47a848
mov ecx, esi
call fcn.0041d7ab
push ebx
or edx, 0xffffffff
mov ecx, esi
call fcn.0041d44a
pop ecx
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.0040384f
push 0xfffffffffffffffe
pop edx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0041d09c
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push 0x47a860
push eax
call fcn.00402ff4
add esp, 0xc
mov edx, 0x47a868
mov ecx, esi
call fcn.0041d7ab
push ebx
or edx, 0xffffffff
mov ecx, esi
call fcn.0041d44a
pop ecx
mov edx, eax
lea ecx, [ebp - 0x14]
call fcn.0040384f
push 0xfffffffffffffffe
pop edx
mov ecx, esi
call fcn.0041d09c
push 1
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push ebx
push 1
push 0x10
push dword [edi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401551
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00401551
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00401551
xor eax, eax
call fcn.0043d2d3
ret 0x10