joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1035e9d0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1035ebbd
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2e2000]
push edi
jmp 0x1035e9fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1035ea01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1035e9f0
mov eax, 1
add ebx, ebx
jne 0x1035ea13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1035ea24
jne 0x1035ea43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1035ea43
dec eax
add ebx, ebx
jne 0x1035ea30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1035ea08
add ebx, ebx
jne 0x1035ea3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1035ea95
xor ecx, ecx
sub eax, 3
jb 0x1035ea5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1035eaca
sar eax, 1
mov ebp, eax
jmp 0x1035ea66
add ebx, ebx
jne 0x1035ea66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1035ea34
inc ecx
add ebx, ebx
jne 0x1035ea74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1035ea34
add ebx, ebx
jne 0x1035ea81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1035ea76
jne 0x1035ea92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1035ea76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1035eab4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1035eaa6
jmp 0x1035e9f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1035eab4
add edi, ecx
jmp 0x1035e9f6
pop esi
mov edi, esi
mov ecx, 0x6685
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1035ead2
cmp byte [edi], 0x26
jne 0x1035ead2
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 0x1035ead7
lea edi, [esi + 0x356000]
mov eax, dword [edi]
or eax, eax
je 0x1035eb4f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x397650]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x397744]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1035eb04
mov ecx, edi
jns 0x1035eb33
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 + 0x397748]
or eax, eax
je 0x1035eb49
mov dword [ebx], eax
add ebx, 4
jmp 0x1035eb21
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1035eb80
cmp al, 0xef
ja 0x1035eb73
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1035eb55
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1035eb62
mov ebp, dword [esi + 0x39774c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x1035ebb4
sub esp, 0xffffff80
jmp 0x1007aee3
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x465008]
jne 0x40100a
repz ret
jmp fcn.004019c6

Function at 0x40908b
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.004034d0
and dword [ebp - 4], 0
cmp dword [0x4699a0], 0
mov ebx, eax
jne 0x40913c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4091ed
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4091ed
push eax
call fcn.0040345e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4699a0], eax
call esi
push eax
call fcn.0040345e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4699a4], eax
call esi
push eax
call fcn.0040345e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4699a8], eax
call esi
push eax
call fcn.0040345e
pop ecx
mov dword [0x4699b0], eax
test eax, eax
je 0x40913c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040345e
pop ecx
mov dword [0x4699ac], eax
mov eax, dword [0x4699ac]
cmp eax, ebx
je 0x409194
cmp dword [0x4699b0], ebx
je 0x409194
push eax
call fcn.004034d9
push dword [0x4699b0]
mov esi, eax
call fcn.004034d9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409194
test edi, edi
je 0x409194
call esi
test eax, eax
je 0x40918b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40918b
test byte [ebp - 0xc], 1
jne 0x409194
or dword [ebp + 0x10], 0x200000
jmp 0x4091cd
mov eax, dword [0x4699a4]
cmp eax, ebx
je 0x4091cd
push eax
call fcn.004034d9
pop ecx
test eax, eax
je 0x4091cd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4091cd
mov eax, dword [0x4699a8]
cmp eax, ebx
je 0x4091cd
push eax
call fcn.004034d9
pop ecx
test eax, eax
je 0x4091cd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4699a0]
call fcn.004034d9
pop ecx
test eax, eax
je 0x4091ed
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4091ef
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b7ff
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x1bdfeac], 0x930
jne 0x40b81c
push str.pejideduroc
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [0x1bdfeac], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x1bdfcf0], eax
jne 0x40b83c
lea eax, [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
leave
ret
Function at 0x40b846
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
cmp edi, 0x19f
jne 0x40b860
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
xor edx, edx
cmp edi, esi
jle 0x40b890
lea ecx, [ebp - 8]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call fcn.0040b83e
mov eax, dword [ebp - 8]
add eax, 0x64
mov dword [ebp - 4], eax
sub dword [ebp - 4], 0x64
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
add eax, edx
xor byte [eax], cl
inc edx
cmp edx, edi
jl 0x40b866
pop esi
cmp edi, 0x2d
jne 0x40b8a7
or dword [0x1bdffe4], 0xffffffff
mov dword [0x1bdffe0], 0xa62e7790
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 0x41093d
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x41094e
lcall 0x5de5, 0x8b10c483
jmp int.0344ae9c

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x41094e
lcall 0x5de5, 0x8b10c483
jmp int.0344ae9c
Function at 0x1000f363
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000f3a2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000f3a2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000f3a2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000f3a2
cmp dword [ecx + 0x74], 0xe
jbe 0x1000f3a2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001201f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100120bc
push ebx
push esi
call fcn.10011fe8
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10011f7c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10012069
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100120bb
push edi
push eax
call fcn.10012fda
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10012089
call fcn.10010ac4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100120ba
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10011f7c
add esp, 0x20
test eax, eax
jne 0x100120a8
push edi
call fcn.10010ac4
jmp 0x100120b0
push ebx
call fcn.10010ac4
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10012329
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10019888
push 0x10019880
push str.FlsAlloc
push 0x1f
call fcn.10012245
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001235d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10018150]
call esi
jmp 0x10012363
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100123a7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10019898
push 0x10019890
push str.FlsGetValue
push 0x21
call fcn.10012245
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100123de
push dword [ebp + 8]
mov ecx, esi
call dword [0x10018150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100123e6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100198a0
push 0x10019898
push str.FlsSetValue
push 0x22
call fcn.10012245
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10012420
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10018150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10017aa0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10017acd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10017acd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4060a4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40610a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404764
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403084
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4060f4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406111
lea eax, [ebp - 0x10]
call fcn.004044f4
ret

Function at 0x40b204
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b23d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004045e4
jmp 0x40b246
mov eax, ebx
mov edx, esi
call fcn.00404548
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b250
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b271
mov al, byte [esp]
jmp 0x40b273
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b8f8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b770
mov eax, dword [0x46a98c]
cmp byte [eax], 0
je 0x40b974
mov eax, dword [0x46a7a0]
call fcn.00402d14
call fcn.00402864
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408a4c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b9bc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b9aa
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46a74c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46b664]
call fcn.004055b8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40c210
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c2e6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040458c
lea eax, [ebp - 8]
call fcn.00404a04
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004049b4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c2d0
mov eax, ebx
call fcn.004026fc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c2c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004049b4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c2b3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c2f8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c2b3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c2d0
mov eax, dword [ebp - 0x10]
call fcn.0040271c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c2ed
lea eax, [ebp - 8]
call fcn.004044f4
ret

Function at 0x40c7f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c854
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404764
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040851c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c85b
lea eax, [ebp - 0xc]
call fcn.004044f4
ret

Function at 0x41a9dc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x46b884
cmp dword [edi], 0
jne 0x41aa58
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x46b880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4693f0
mov ecx, 2
call fcn.004028f8
mov edx, 0x41a9b4
lea eax, [esi + 5]
call fcn.0041a9d4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a9d4
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41aa2d
mov dword [0x46b880], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41c004
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41c00a
ret
Function at 0x450d50
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x450efb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x450edc
mov dl, 1
mov eax, dword [0x412060]
call fcn.00403774
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004044f4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x450ecb
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043ea40
test al, al
je 0x450ebe
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x450f0c
lea eax, [ebp - 0x254]
call fcn.004090c0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x450ebe
xor eax, eax
push ebp
push 0x450eb7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x450f44
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x450ea0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404764
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x450ea0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404764
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450ebe
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x450dc1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415b3c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450f02
lea eax, [ebp - 0x260]
call fcn.004044f4
ret

Function at 0x451830
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x46bbb0]
cmp byte [eax + 0xa5], 0
jne 0x4518a1
cmp dword [0x46bbc8], 0
jne 0x451862
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4517ec
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x46bbc8], eax
cmp dword [0x46bbc4], 0
jne 0x45187d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x46bbc4], eax
cmp dword [0x46bbcc], 0
jne 0x4518a1
push esp
push 0
push 0
push 0x451790
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x46bbcc], eax
pop edx
ret
Function at 0x451998
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4519af
add esp, 0xfffffff0
call fcn.00403ac8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041994c
mov eax, dword [0x46a898]
cmp word [eax + 2], 0
jne 0x4519d7
mov eax, dword [0x46a898]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00453088
mov eax, dword [0x46a948]
cmp word [eax + 2], 0
jne 0x4519f1
mov eax, dword [0x46a948]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00453280
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411c44]
call fcn.00403774
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411c44]
call fcn.00403774
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 [0x41beb8]
call fcn.0042355c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x451b78
mov eax, dword [0x46a7bc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042392c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x453820
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46a7bc]
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.0040c788
test eax, eax
je 0x451ae6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408a88
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c7b0
test eax, eax
je 0x451afa
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.00404764
mov eax, dword [0x46a6a0]
cmp byte [eax], 0
jne 0x451b2e
mov eax, ebx
call fcn.00451ca0
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.004539fc
mov eax, ebx
call fcn.004543c0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x451b6e
call fcn.00403b20
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret