joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e90
Capabilities:
Get file version info

Disassembly:
sub esp, 0x1c
mov edx, dword [esp + 0x20]
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
push ecx
lea eax, [esp + 0x1c]
push edx
xor esi, esi
xor edi, edi
mov dword [esp + 0x14], eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
test ebp, ebp
je 0x401f26
xor ecx, ecx
mov edx, 2
mul edx
seto cl
push ebx
neg ecx
or ecx, eax
push ecx
call sub.mfc90u.dll_new__
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x401f1a
mov eax, dword [esp + 0x30]
push ebx
push ebp
push edi
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x401f11
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x405814
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401f11
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
xor ecx, ecx
or esi, eax
or edi, ecx
push ebx
call sub.mfc90u.dll_delete__
add esp, 4
pop ebx
mov edx, edi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x1c
ret
mov edx, edi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x1c
ret

Function at 0x401fd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x3c
mov eax, dword [0x407130]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
mov ebx, dword [esp + 0x44]
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
xor eax, eax
push str.kernel32.dll
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.GetUserDefaultUILanguage
push edi
call ebp
test eax, eax
je 0x402039
call eax
movzx eax, ax
lea esi, [esp + 0x10]
mov dword [esp + 0x14], eax
call fcn.00401f90
push str.GetSystemDefaultUILanguage
push edi
call ebp
call eax
movzx eax, ax
mov dword [esp + 0x14], eax
jmp 0x402113
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x4020e2
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40211c
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push ecx
mov dword [esp + 0x34], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4020d5
cmp dword [esp + 0x24], 1
jne 0x4020d5
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x2c]
push 0x405864
push eax
call dword [sym.imp.MSVCR90.dll_swscanf]
add esp, 0xc
cmp eax, 1
jne 0x4020d5
mov eax, dword [esp + 0x20]
movzx ecx, ax
lea esi, [esp + 0x10]
mov dword [esp + 0x14], ecx
call fcn.00401f90
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40211c
push 0x405850
call esi
test eax, eax
je 0x40211c
lea ecx, [esp + 0x14]
push ecx
push 0x401f70
push 1
push 0x10
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
mov eax, dword [esp + 0x14]
test ax, ax
je 0x40211c
lea esi, [esp + 0x10]
call fcn.00401f90
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403952
add esp, 0x3c
ret
Function at 0x402190
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x208
mov eax, dword [0x407130]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push esi
mov esi, dword [esp + 0x218]
push edi
mov edi, dword [esp + 0x218]
push pe_nt_image_headers32
lea ecx, [esp + 0x14]
push ecx
push 0x1001
xor eax, eax
push edi
mov dword [esp + 0x1c], esi
mov word [esp + 0x20], ax
call ebx
test eax, eax
jne 0x4021f4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.00403952
add esp, 0x208
ret
lea eax, [esp + 0x10]
mov edx, esi
mov ecx, eax
sub edx, ecx
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x402200
push pe_nt_image_headers32
lea eax, [esp + 0x14]
push eax
push 0x1002
xor edx, edx
push edi
mov word [esp + 0x20], dx
call ebx
test eax, eax
je 0x402255
cmp word [esp + 0x10], 0
je 0x402255
lea ecx, [esp + 0xc]
push 0x405940
push ecx
call fcn.00402140
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00402140
add esp, 0x10
push pe_nt_image_headers32
lea edx, [esp + 0x14]
push edx
push 0x1004
xor ecx, ecx
push edi
mov word [esp + 0x20], cx
call ebx
test eax, eax
jne 0x402285
push pe_nt_image_headers32
lea eax, [esp + 0x14]
push eax
push 0xb
push edi
call ebx
test eax, eax
je 0x4022ae
cmp word [esp + 0x10], 0
je 0x4022ae
lea ecx, [esp + 0xc]
push 0x40584c
push ecx
call fcn.00402140
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00402140
add esp, 0x10
mov ecx, dword [esp + 0x210]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00403952
add esp, 0x208
ret

Function at 0x4023e0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x2ac
mov eax, dword [0x407130]
xor eax, esp
mov dword [esp + 0x2a8], eax
mov eax, dword [esp + 0x2b4]
push ebx
push esi
mov esi, dword [esp + 0x2c0]
push edi
call fcn.00401f40
push 0x50
lea ecx, [esp + 0x10]
mov ebx, edx
movzx edx, word [esp + 0x2c0]
push ecx
mov edi, eax
push 3
xor eax, eax
push edx
mov word [esp + 0x1c], ax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40249a
push esi
lea eax, [esp + 0xb0]
push 0x104
push eax
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xbc]
push 0x104
push edx
call dword [sym.imp.MSVCR90.dll_wcscat_s]
add esp, 0x18
lea eax, [esp + 0xac]
call fcn.00401f40
cmp edi, eax
jne 0x40249a
cmp ebx, edx
jne 0x40249a
lea eax, [esp + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2a8]
xor ecx, esp
call fcn.00403952
add esp, 0x2ac
ret
mov ecx, dword [esp + 0x2b4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00403952
add esp, 0x2ac
ret
Function at 0x412565
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004123e4

Function at 0x41695c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004162ca

Function at 0x416967
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416505

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x31035806
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
mov ecx, 0x3074544
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..reloc
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x266c304a
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..rdata
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x24b0e17
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x7c04b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x31000
lea edi, [esi - 0x280000]
push edi
jmp 0x7c04ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7c04d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7c04c0
mov eax, 1
add ebx, ebx
jne 0x7c04e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7c04f4
jne 0x7c0513
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7c0513
dec eax
add ebx, ebx
jne 0x7c0500
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7c04d8
add ebx, ebx
jne 0x7c050f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x7c0565
xor ecx, ecx
sub eax, 3
jb 0x7c052b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7c059a
sar eax, 1
mov ebp, eax
jmp 0x7c0536
add ebx, ebx
jne 0x7c0536
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7c0504
inc ecx
add ebx, ebx
jne 0x7c0544
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7c0504
add ebx, ebx
jne 0x7c0551
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7c0546
jne 0x7c0562
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7c0546
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7c0584
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7c0576
jmp 0x7c04c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7c0584
add edi, ecx
jmp 0x7c04c6
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7c05a2
cmp byte [edi], 0x11
jne 0x7c05a2
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 0x7c05a7
lea edi, [esi + 0x3b9000]
mov eax, dword [edi]
or eax, eax
je 0x7c061f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x419844]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4199c0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7c05d4
mov ecx, edi
jns 0x7c0603
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 + 0x4199c4]
or eax, eax
je 0x7c0619
mov dword [ebx], eax
add ebx, 4
jmp 0x7c05f1
call dword [esi + 0x4199d4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x7c0650
cmp al, 0xef
ja 0x7c0643
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x7c0625
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x7c0632
mov ebp, dword [esi + 0x4199c8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x7c0684
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x4b3a80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x71000]
push edi
jmp 0x4b3a9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b3aa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b3a90
mov eax, 1
add ebx, ebx
jne 0x4b3ab3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b3ac4
jne 0x4b3ae3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b3ae3
dec eax
add ebx, ebx
jne 0x4b3ad0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b3aa8
add ebx, ebx
jne 0x4b3adf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b3b35
xor ecx, ecx
sub eax, 3
jb 0x4b3afb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b3b6a
sar eax, 1
mov ebp, eax
jmp 0x4b3b06
add ebx, ebx
jne 0x4b3b06
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b3ad4
inc ecx
add ebx, ebx
jne 0x4b3b14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b3ad4
add ebx, ebx
jne 0x4b3b21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b3b16
jne 0x4b3b32
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b3b16
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b3b54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b3b46
jmp 0x4b3a96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b3b54
add edi, ecx
jmp 0x4b3a96
pop esi
mov edi, esi
mov ecx, 0x377e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b3b72
cmp byte [edi], 0x11
jne 0x4b3b72
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 0x4b3b77
lea edi, [esi + 0xaf000]
mov eax, dword [edi]
or eax, eax
je 0x4b3bef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb6d14]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb6e68]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b3ba4
mov ecx, edi
jns 0x4b3bd3
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 + 0xb6e6c]
or eax, eax
je 0x4b3be9
mov dword [ebx], eax
add ebx, 4
jmp 0x4b3bc1
call dword [esi + 0xb6e7c]
mov ebp, dword [esi + 0xb6e70]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x4b3c23
sub esp, 0xffffff80
jmp 0x416310
Function at 0x409070
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
push ebx
mov edx, 0xd
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x409077
mov byte [esp], 0
lea eax, [esp + 4]
push eax
push 0x28
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.ADVAPI32.DLL_OpenProcessToken
and eax, eax
je 0x40911f
lea eax, [esp + 8]
lea eax, [esp + 8]
push eax
push str.SeDebugPrivilege
push 0
call sub.ADVAPI32.DLL_LookupPrivilegeValueA
and eax, eax
je 0x409116
lea eax, [esp + 0x10]
lea ebp, [esp + 0x10]
mov dword [ebp], 1
lea ebp, [esp + 8]
push dword [ebp]
lea ebp, [esp + 0x14]
pop eax
mov dword [ebp + 4], eax
lea ebp, [esp + 8]
push dword [ebp + 4]
lea ebp, [esp + 0x14]
pop eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], 2
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push eax
push 0x10
lea eax, [esp + 0x1c]
push eax
push 0
push dword [esp + 0x18]
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
mov byte [esp], al
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
movsx eax, byte [esp]
movsx eax, al
jmp 0x40912a
add esp, 0x34
pop ebx
pop ebp
ret

Function at 0x409820
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
xor eax, eax
push eax
push dword [esp + 0xc]
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x409842
mov dword [esp], 1
jmp 0x409852
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x40998b
mov ebx, dword [esp + 0x10]
cmp ebx, 1
je 0x40988a
push 0x10
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x40987a
mov dword [esp], 1
jmp 0x40988a
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x40998b
mov ebx, dword [esp + 0x14]
cmp ebx, 1
je 0x4098c2
push 0x11
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x4098b2
mov dword [esp], 1
jmp 0x4098c2
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x40998b
mov ebx, dword [esp + 0x18]
cmp ebx, 1
je 0x4098fa
push 0x12
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x4098ea
mov dword [esp], 1
jmp 0x4098fa
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x40998b
mov ebx, dword [esp + 0x10]
cmp ebx, 1
jne 0x409926
push 0x10
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x409926
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x40998b
mov ebx, dword [esp + 0x14]
cmp ebx, 1
jne 0x409952
push 0x11
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x409952
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x40998b
mov ebx, dword [esp + 0x18]
cmp ebx, 1
jne 0x40997e
push 0x12
call sub.USER32.DLL_GetAsyncKeyState
mov ebx, eax
and ebx, 0x8000
and ebx, ebx
je 0x40997e
mov dword [esp], 0
xor edx, edx
xor eax, eax
jmp 0x40998b
xor edx, edx
mov eax, 1
jmp 0x40998b
add esp, 4
pop ebx
ret 0x10
Function at 0x40cc5c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x40cd40
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test byte [ebp + 0x10], 1
mov ebx, eax
je 0x40ccf6
push edi
push edi
push edi
push dword [ebp + 0xc]
call fcn.0040d7f0
mov ebx, eax
cmp ebx, edi
je 0x40cd35
push dword [ebp + 8]
push dword [0x4a12dc]
call fcn.00414b97
mov esi, eax
mov eax, 0x10000
push eax
push ebx
mov dword [esi + 0x18], eax
call fcn.0040d793
push eax
push ebx
call fcn.0040d779
push eax
call fcn.0040d385
mov dword [esi], eax
cmp eax, edi
je 0x40ccee
mov dword [esi + 0x14], ebx
mov dword [ebp - 4], esi
jmp 0x40cd35
push ebx
call fcn.0040d7a0
jmp 0x40cd35
push ebx
push edi
push dword [0x4a0b04]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x40cd35
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push esi
push dword [ebp + 8]
call fcn.0040d36f
push esi
push edi
push dword [0x4a0b04]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
leave
ret 0xc
Function at 0x40ce85
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
push dword [0x4a12dc]
xor ebx, ebx
call fcn.00414c34
mov esi, eax
test esi, esi
je 0x40d00b
mov eax, dword [esi]
mov dword [ebp - 4], eax
cmp dword [esi + 0x14], ebx
je 0x40cf37
push dword [ebp + 8]
call fcn.0040d4b7
jmp 0x40cec8
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], bl
jne 0x40cec0
push dword [esi + 0x14]
call fcn.0040d7c9
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
xor ebx, ebx
push ebx
mov eax, esi
mov byte [esi + 0x1c], 1
call fcn.0040cd5a
pop ecx
lea eax, [ebp + 0xc]
push eax
push ebx
push esi
push 0x40cdcd
push 0x2000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x40cf0c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], 0xffffffff
je 0x40cf1d
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040d587
mov eax, dword [esi]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x34]
mov esi, dword [esi]
mov eax, dword [esi]
push 1
push ebx
push ebx
push esi
call dword [eax + 0x30]
jmp 0x40d00b
test byte [ebp + 0xc], 1
je 0x40cf40
xor ebx, ebx
inc ebx
test byte [ebp + 0xc], 2
je 0x40cfcd
push esi
call fcn.0040d024
lea eax, [esi + 4]
push 0x10
push eax
call fcn.00415460
pop ecx
pop ecx
lea edx, [ebp - 4]
push edx
push dword [ebp - 4]
mov edi, eax
mov eax, dword [0x4a12f0]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x40d00b
mov eax, dword [ebp - 4]
mov dword [edi], eax
mov byte [edi + 5], bl
mov byte [edi + 4], 1
mov eax, dword [ebp - 4]
push dword [esi + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
push dword [esi + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
cmp dword [ebp + 0x10], 0xffffffff
je 0x40cfb1
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040d4e7
jmp 0x40cfbd
mov eax, dword [ebp - 4]
push dword [esi + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
push 0
push 0
push eax
call dword [ecx + 0x30]
jmp 0x40d00b
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x34]
cmp dword [ebp + 0x10], 0xffffffff
je 0x40cfef
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040d587
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
push 0
push 0
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x40d00b
xor edi, edi
inc edi
mov byte [esi + 0x1c], 1
mov byte [esi + 0x1e], bl
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40d9a9
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x40d9f8
push dword [esp + 0x10]
push 0x40d927
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x4a1320]
cmp esi, ebx
je 0x40da4c
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x40d9f0
cmp byte [esi + 0x10], bl
je 0x40d9f0
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, edi
cmp edi, ebx
jne 0x40d9cd
jmp 0x40da4c
mov esi, dword [0x4a1320]
cmp esi, ebx
je 0x40da4c
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x40da45
cmp byte [esi + 0x11], bl
je 0x40da22
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x40da38
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push edi
push 0x4a1320
call fcn.0041548d
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x40da03
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x40e0ff
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4a1330], 0
jne 0x40e111
call fcn.0040e050
push esi
push edi
push dword [0x4a132c]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call edi
mov esi, eax
test esi, esi
jne 0x40e136
call fcn.0040e050
push dword [0x4a132c]
call edi
mov esi, eax
mov eax, dword [ebp + 8]
push 0x11
lea ecx, [esi + 8]
pop edx
mov edi, eax
imul edi, edi, 0x53a9b4fb
xor eax, eax
inc eax
sub eax, edi
mov dword [ecx + 0x44], eax
imul eax, eax, 0x53a9b4fb
xor edi, edi
inc edi
sub edi, eax
mov eax, edi
mov dword [ecx], eax
add ecx, 4
dec edx
jne 0x40e13f
and dword [esi], edx
push 0x1f
mov dword [esi + 4], 0xa
pop edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, esi
call fcn.0040e009
dec edi
pop ecx
pop ecx
jne 0x40e170
pop edi
pop esi
leave
ret 4

Function at 0x40fa83
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x4a19dc]
call fcn.00414c34
mov edi, eax
test edi, edi
je 0x40fae5
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x40faac
push dword [esp + 0xc]
push edi
call eax
jmp 0x40fae5
push ebx
push esi
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthA]
push dword [esp + 0x14]
mov esi, eax
push esi
call fcn.00415a10
mov ebx, eax
lea eax, [esi + 1]
push eax
push ebx
mov byte [ebx], 0
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextA]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
sub esi, eax
push esi
call fcn.00415b60
pop esi
pop ebx
pop edi
ret 8