joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d130
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x42d17c
mov eax, esi
call fcn.0044254c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42d17c
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x42d17c
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x42d2bb
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x42d1bc
cmp eax, 0x108
ja 0x42d1bc
mov eax, esi
call fcn.0044254c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42d2b2
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x42d2bb
jmp 0x42d2b2
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x42d29b
cmp eax, 0x20a
ja 0x42d29b
test byte [esi + 0x50], 0x80
jne 0x42d1ee
sub eax, 0x203
je 0x42d1eb
sub eax, 3
je 0x42d1eb
sub eax, 3
jne 0x42d1ee
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x42d202
dec eax
je 0x42d217
dec eax
je 0x42d234
dec eax
je 0x42d217
jmp 0x42d23b
mov ecx, ebx
mov eax, dword [0x44dfb8]
mov eax, dword [eax]
mov edx, esi
call fcn.0044bd88
jmp 0x42d2b2
cmp byte [esi + 0x5d], 1
jne 0x42d22d
mov eax, esi
mov si, 0xffed
call fcn.004032d4
jmp 0x42d2bb
or word [esi + 0x54], 1
jmp 0x42d2b2
and word [esi + 0x54], 0xfffe
jmp 0x42d2b2
mov eax, dword [0x44fb10]
cmp byte [eax + 0x20], 0
je 0x42d2b2
mov eax, dword [0x44fb10]
cmp dword [eax + 0x1c], 0
je 0x42d2b2
mov eax, dword [ebx]
mov edx, dword [0x44fb10]
cmp eax, dword [edx + 0x1c]
jne 0x42d2b2
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.00442490
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.004032d4
jmp 0x42d2bb
cmp eax, 0xb00b
jne 0x42d2b2
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0042ba98
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x449c18
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x449c2f
add esp, 0xfffffff0
call fcn.004033e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00418ecc
mov eax, dword [0x44df2c]
cmp word [eax + 2], 0
jne 0x449c57
mov eax, dword [0x44df2c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044b380
mov eax, dword [0x44dfd4]
cmp word [eax + 2], 0
jne 0x449c71
mov eax, dword [0x44dfd4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044b578
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4111c4]
call fcn.004030a8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4111c4]
call fcn.004030a8
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 [0x41b0a0]
call fcn.00420ce8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x449df8
mov eax, dword [0x44de54]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004210b8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44bb18
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x44de54]
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.0040bdb4
test eax, eax
je 0x449d66
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040816c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040bddc
test eax, eax
je 0x449d7a
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.00404080
mov eax, dword [0x44dd58]
cmp byte [eax], 0
jne 0x449dae
mov eax, ebx
call fcn.00449f20
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.0044bcf4
mov eax, ebx
call fcn.0044c6b8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x449dee
call fcn.0040343c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44a1a0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x44fbb0]
cmp dword [eax + 0x30], 0
je 0x44a24a
cmp dword [ebx + 0x94], 0
jne 0x44a244
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44a130
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44a244
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 0x44a20a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44a244
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.0041352c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44a219
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44adac
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 0x44ade1
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.00403f00
jmp 0x44adee
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403e64
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44bed0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44bf11
mov eax, esi
call fcn.0043280c
test al, al
je 0x44bf11
mov eax, dword [ebx + 0x84]
call fcn.004325ac
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44bf11
push 0
mov eax, dword [ebx + 0x84]
call fcn.004325ac
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x405f41
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42bdd4], 0
push esi
jne 0x405f78
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f52
mov dword [ecx*4 + 0x42bdd0], eax
inc ecx
cmp ecx, 0x100
jl 0x405f4d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405fa9
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42bdd0]
xor eax, esi
inc ecx
dec edx
jne 0x405f8b
pop edi
not eax
pop esi
ret 0xc

Function at 0x42e002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x1003a3b4
Capabilities:
Get keyboard layout

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call fcn.1003a1dc
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov edi, pe_nt_image_headers32
push edi
add esi, 8
push 0
push esi
mov ebx, eax
call fcn.10158270
add esp, 0xc
push edi
push esi
push ebx
call sub.IMM32.dll_ImmGetDescriptionA
push esi
mov ecx, 0x10a4d320
call fcn.101511b0
cmp dword [0x10a059f4], 0
pop edi
sete al
pop esi
mov byte [0x10a05a08], al
xor eax, eax
pop ebx
ret

Function at 0x1003a661
Capabilities:
Log keystrokes via input method manager

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
call fcn.1003a16e
mov ecx, edi
call fcn.1003a50a
mov eax, dword [0x10a059f4]
test eax, eax
je 0x1003a686
cmp eax, 4
jne 0x1003a70e
push esi
mov esi, 0x800
test dword [ebp + 0x10], esi
je 0x1003a70d
push ebx
push dword [edi]
call sub.IMM32.dll_ImmGetContext
push 0
push 0
push esi
push eax
mov dword [ebp - 4], eax
call sub.IMM32.dll_ImmGetCompositionStringA
mov ebx, eax
test ebx, ebx
je 0x1003a702
lea eax, [ebx + 4]
push eax
call fcn.10157c43
test eax, eax
pop ecx
mov dword [ebp + 0x10], eax
je 0x1003a6d2
push ebx
push eax
push esi
push dword [ebp - 4]
call sub.IMM32.dll_ImmGetCompositionStringA
mov ebx, eax
mov eax, dword [ebp + 0x10]
mov byte [eax + ebx], 0
lea esi, [edi + 0x108]
mov eax, dword [esi]
push ebx
push dword [ebp + 0x10]
lea eax, [eax + edi + 0x114]
push eax
call fcn.10159390
add dword [esi], ebx
mov esi, dword [esi]
push dword [ebp + 0x10]
mov byte [esi + edi + 0x114], 0
call fcn.10159b51
add esp, 0x10
push dword [ebp - 4]
push dword [edi]
call sub.IMM32.dll_ImmReleaseContext
pop ebx
pop esi
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x1003a75c
Capabilities:
Get keyboard layout

Disassembly:
push esi
push edi
push 4
xor edi, edi
push edi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
call sub.IMM32.dll_ImmGetProperty
or dword [esi + 0x71c], 0xffffffff
or dword [esi + 0x720], 0xffffffff
mov dword [esi + 4], eax
mov eax, dword [esp + 0xc]
mov ecx, 0x10a4d320
mov dword [esi], eax
mov dword [esi + 0x108], edi
mov dword [esi + 0x10c], edi
mov dword [esi + 0x110], edi
mov dword [esi + 0x718], edi
mov dword [esi + 0x724], edi
mov dword [esi + 0x728], edi
call fcn.10151110
mov ecx, esi
call fcn.1003a1dc
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x100932b8
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x10173221
call fcn.101590a4
push ecx
push ebx
push ebp
push esi
push edi
push 0x1008f04d
push 0x1008f001
mov edi, 0x12c
push edi
mov esi, ecx
push 0x131b8
push esi
mov dword [esp + 0x24], esi
call fcn.10159f02
and dword [esp + 0x1c], 0
push fcn.101512b0
mov ebp, fcn.101512c0
push ebp
push edi
mov ebx, pe_nt_image_headers32
push ebx
lea eax, [esi + 0x16643a0]
push eax
call fcn.10159f02
push fcn.101512b0
push ebp
push edi
push ebx
lea eax, [esi + 0x1676fa0]
push eax
mov byte [esp + 0x30], 1
call fcn.10159f02
push fcn.101512b0
push ebp
push edi
push ebx
lea eax, [esi + 0x1689ba0]
push eax
mov byte [esp + 0x30], 2
call fcn.10159f02
push fcn.101512b0
push ebp
push edi
push ebx
lea eax, [esi + 0x169c7a0]
push eax
mov byte [esp + 0x30], 3
call fcn.10159f02
push 0x1008f04d
push 0x1008f001
push edi
push 0x131b8
lea eax, [esi + 0x16af3a0]
push eax
mov byte [esp + 0x30], 4
call fcn.10159f02
push fcn.101512b0
push ebp
push edi
push ebx
lea eax, [esi + 0x2d13740]
push eax
mov byte [esp + 0x30], 5
call fcn.10159f02
push fcn.101512b0
push ebp
push edi
push ebx
lea eax, [esi + 0x2d26340]
push eax
mov byte [esp + 0x30], 6
call fcn.10159f02
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0xc]
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1016cf0c
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x10195ca8
call fcn.10157ff0
xor esi, esi
cmp dword [0x10a59af8], esi
jne 0x1016cf50
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1016cf3b
mov dword [0x10a59af8], edi
jmp 0x1016cf50
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1016cf50
mov dword [0x10a59af8], 2
mov eax, dword [0x10a59af8]
cmp eax, 2
je 0x1016d031
cmp eax, esi
je 0x1016d031
cmp eax, 1
jne 0x1016cf95
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x1016cf7e
mov eax, dword [0x10a5991c]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x1016cf9c
xor eax, eax
jmp 0x1016d043
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.10158150
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x1016cfd2
cmp edi, esi
jne 0x1016cfed
lea eax, [ebx + ebx]
push eax
call fcn.10157e87
pop ecx
mov edi, eax
cmp edi, esi
je 0x1016cf95
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1016d020
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x1016d00a
push esi
push esi
jmp 0x1016d010
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x1016d02c
push edi
call fcn.10157e99
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x1016d043
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.1015802b
ret
Function at 0x1017a2ff
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x10190400
call fcn.10157ff0
mov edi, 0x94
mov eax, edi
call fcn.10158150
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x10a596b8], ecx
mov eax, dword [esi + 4]
mov dword [0x10a596c4], eax
mov edx, dword [esi + 8]
mov dword [0x10a596c8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x10a596bc], esi
cmp ecx, 2
je 0x1015d7a4
or esi, 0x8000
mov dword [0x10a596bc], esi
shl eax, 8
add eax, edx
mov dword [0x10a596c0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1015d7df
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1015d7df
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1015d7f7
cmp eax, 0x20b
je 0x1015d7e4
mov dword [ebp - 0x1c], esi
jmp 0x1015d80b
cmp dword [ecx + 0x84], 0xe
jbe 0x1015d7df
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x1015d805
cmp dword [ecx + 0x74], 0xe
jbe 0x1015d7df
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.1015f137
pop ecx
test eax, eax
jne 0x1015d81f
push 0x1c
call fcn.1015d720
pop ecx
call fcn.1016163a
test eax, eax
jne 0x1015d830
push 0x10
call fcn.1015d720
pop ecx
call fcn.10168000
mov dword [ebp - 4], esi
call fcn.10166b99
test eax, eax
jge 0x1015d849
push 0x1b
call fcn.1015d6fb
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10a5ae84], eax
call fcn.101686ce
mov dword [0x10a596fc], eax
call fcn.1016862c
test eax, eax
jge 0x1015d86f
push 8
call fcn.1015d6fb
pop ecx
call fcn.101683f9
test eax, eax
jge 0x1015d880
push 9
call fcn.1015d6fb
pop ecx
push 1
call fcn.1015d538
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x1015d896
push eax
call fcn.1015d6fb
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.1016839c
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x1015d8b7
movzx eax, word [ebp - 0x40]
jmp 0x1015d8ba
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.1003a7c4
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x1015d8d8
push edi
call fcn.1015d665
call fcn.1015d687
jmp 0x1015d90a
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.1015802b
ret
push 0x1017a2e8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x1017a2f3
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
jmp 0x1015d744
Function at 0x4012f9
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x4020e0
call fcn.00401564
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x401339
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401339
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401351
cmp eax, 0x20b
je 0x40133e
mov dword [ebp - 0x1c], ebx
jmp 0x401365
cmp dword [ecx + 0x84], 0xe
jbe 0x401339
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x40135f
cmp dword [ecx + 0x74], 0xe
jbe 0x401339
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x4030fc], 0xffffffff
or dword [0x403100], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x40308c]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x403088]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4030f8], eax
call fcn.0040161e
call fcn.004016c7
cmp dword [0x403060], ebx
jne 0x4013c5
push 0x4016c4
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.004016ac
push 0x403010
push 0x40300c
call sub.MSVCR71.dll__initterm
push 0x401662
call fcn.0040160c
mov eax, dword [0x403084]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x403080]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x401419
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x403008
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x401497
cmp al, bl
je 0x401443
cmp dword [ebp - 0x20], ebx
jne 0x401497
mov al, byte [esi]
cmp al, bl
je 0x401453
cmp al, 0x20
ja 0x401453
inc esi
mov dword [ebp - 0x24], esi
jmp 0x401443
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x40146f
movzx eax, word [ebp - 0x54]
jmp 0x401472
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00401210
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x40148f
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x4014ec
cmp al, 0x22
jne 0x4014a6
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x4014b9
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x401431
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040159f
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x401690
Capabilities:
Check mutex on windows

Disassembly:
push str.PanasonicHotkeySettingsMutex
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4016b1
xor eax, eax
ret 0x10
mov eax, dword [esp + 4]
push 0
push 0x4015f0
push 0
push 0x9f
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
ret 0x10

Function at 0x401710
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
lea eax, [esp]
mov dword [esp], 0
push eax
push 1
push 0
push ecx
push edx
mov dword [esp + 0x1c], 4
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40175c
xor eax, eax
add esp, 0x110
ret 0x10
lea eax, [esp + 4]
push esi
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x124]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 4]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
je 0x40179e
xor eax, eax
add esp, 0x110
ret 0x10
cmp dword [esp + 4], 4
je 0x4017b0
xor eax, eax
add esp, 0x110
ret 0x10
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
mov eax, 1
add esp, 0x110
ret 0x10

Function at 0x4017d0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x10]
lea eax, [esp + 4]
lea ecx, [esp]
push eax
mov eax, dword [esp + 0x10]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push edx
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x401816
xor eax, eax
add esp, 8
ret 0x10
mov edx, dword [esp + 0x14]
mov eax, dword [esp]
push esi
lea ecx, [esp + 0x1c]
push 4
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 4]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 8
ret 0x10

Function at 0x401850
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4018a8
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x40ab84
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40189b
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4018aa
xor eax, eax
pop esi
leave
ret 4