joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4021de
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0x10]
mov byte [ebp - 0x1c], al
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jge 0x4022e0
mov eax, dword [ebp - 0xc]
lea edx, [eax*4]
mov eax, dword [ebp + 0xc]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], str.__trace
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x4022d6
mov eax, dword [ebp - 0xc]
add eax, 1
cmp dword [ebp + 8], eax
jne 0x402269
mov eax, dword [ebp - 0xc]
lea edx, [eax*4]
mov eax, dword [ebp + 0xc]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Argument_is_missing_for___s__option.
mov dword [esp + 4], 1
mov dword [esp], 0
call fcn.004020fd
mov eax, 0
jmp 0x4022e5
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
lea edx, [eax*4]
mov eax, dword [ebp + 0xc]
add eax, edx
mov eax, dword [eax]
mov dword [esp], eax
mov ecx, 0x426020
call fcn.0041eae0
sub esp, 4
cmp byte [ebp - 0x1c], 0
je 0x4022b4
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0040216b
xor eax, 1
test al, al
je 0x4022b4
mov eax, 1
jmp 0x4022b9
mov eax, 0
test al, al
je 0x4022df
mov ecx, 0x426020
call fcn.00418450
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call eax
sub esp, 4
jmp 0x4022df
add dword [ebp - 0xc], 1
jmp 0x4021f1
nop
mov eax, 1
leave
ret

Function at 0x40d410
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004141f0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004141f0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x40d470
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x4263bc]
test esi, esi
jle 0x40d570
mov eax, dword [0x4263c0]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x40d4a0
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40d51f
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x40d490
mov dword [esp], ebx
call fcn.0040dde0
mov edi, eax
test eax, eax
je 0x40d597
mov eax, dword [0x4263c0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0040def0
mov edx, dword [0x4263c0]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40d577
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40d518
sub eax, 4
and eax, 0xfffffffb
jne 0x40d526
add dword [0x4263bc], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x4263c0]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40d518
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0040d410
xor esi, esi
jmp 0x40d4aa
mov eax, dword [0x4263c0]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0040d410
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0040d410
lea esi, [esi]
nop

Function at 0x40da50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4263d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4263d0]
sub esp, 4
test ebx, ebx
je 0x40daa5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40da9e
test esi, esi
je 0x40da9e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40da80
mov dword [esp], 0x4263d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40e110
Capabilities:
Allocate thread local storage

Disassembly:
push esi
push ebx
sub esp, 4
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40e140
mov dword [esi], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
add esp, 4
pop ebx
pop esi
jmp fcn.00414420
add esp, 4
pop ebx
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x40e180
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40e1c0
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x40e1e8
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x40e580
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40e5b8
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [0x4263f4], eax
call fcn.00414420
test eax, eax
sete al
movzx eax, al
mov dword [0x421020], eax
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40e5a3

Function at 0x40e660
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x24
mov edx, dword [0x421020]
test edx, edx
js 0x40e680
mov eax, dword [0x4263f8]
test edx, edx
jne 0x40e694
add esp, 0x24
pop ebx
pop esi
ret
call fcn.0040e5c0
mov edx, dword [0x421020]
mov eax, dword [0x4263f8]
test edx, edx
je 0x40e678
mov esi, dword [0x4263f4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
mov eax, dword [esp + 0x1c]
add esp, 0x24
pop ebx
pop esi
ret
Function at 0x40e730
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, 1
push ebx
mov ebx, eax
sub esp, 0x3c
mov eax, dword [eax + 0xc]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [edx]
test eax, eax
jne 0x40e777
jmp 0x40e840
mov dword [0x4263f8], ecx
mov eax, dword [edi]
add esi, 1
mov eax, dword [eax]
mov dword [edi], eax
test eax, eax
je 0x40e840
mov ebp, dword [eax + 0x18]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], edi
mov edx, dword [ebx + 4]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], 0xa
mov dword [esp], 1
call eax
test eax, eax
jne 0x40e876
test ebp, ebp
je 0x40e7f0
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0xa
mov dword [esp], 1
call ebp
cmp eax, 7
je 0x40e8a5
cmp eax, 8
jne 0x40e876
mov eax, dword [edi]
mov ecx, dword [eax]
mov eax, dword [0x421020]
test eax, eax
js 0x40e888
test eax, eax
je 0x40e760
mov eax, dword [0x4263f4]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40e766
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
add esi, 1
mov eax, dword [eax]
mov dword [edi], eax
test eax, eax
jne 0x40e777
lea esi, [esi]
mov eax, dword [esp + 0x24]
mov edx, dword [ebx + 4]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], 0x1a
mov dword [esp], 1
call eax
test eax, eax
je 0x40e8a0
add esp, 0x3c
mov eax, 2
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x28], ecx
call fcn.0040e5c0
mov eax, dword [0x421020]
mov ecx, dword [esp + 0x28]
jmp 0x40e801
mov eax, 5
mov ecx, dword [esp + 0x2c]
mov dword [ecx], esi
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40e8c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x421020]
mov ebx, dword [esp + 0x30]
test eax, eax
js 0x40e940
test eax, eax
jne 0x40e8f0
mov eax, dword [0x4263f8]
mov dword [0x4263f8], ebx
mov dword [ebx], eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [0x4263f4]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x4263f4]
mov dword [ebx], esi
sub esp, 4
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40e8e5
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
jmp eax
call fcn.0040e5c0
mov eax, dword [0x421020]
jmp 0x40e8d4
Function at 0x40e950
Capabilities:
Set thread local storage value

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [esp + 0x20]
mov ebx, dword [eax]
mov eax, dword [0x421020]
test eax, eax
js 0x40e9a0
test eax, eax
jne 0x40e978
mov dword [0x4263f8], ebx
add esp, 0x18
pop ebx
ret
mov eax, dword [0x4263f4]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40e96d
add esp, 0x18
pop ebx
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0040e5c0
mov eax, dword [0x421020]
jmp 0x40e963

Function at 0x40ea90
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov eax, dword [0x421020]
mov ebx, dword [esp + 0x40]
test eax, eax
js 0x40eb10
mov esi, dword [0x4263f8]
test eax, eax
jne 0x40eb24
mov dword [esp + 0x28], esi
test esi, esi
je 0x40eb04
mov eax, esi
lea edi, [esp + 0x28]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x40eaf6
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp], 1
call ecx
cmp eax, 6
je 0x40eb58
cmp eax, 8
jne 0x40eb88
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x40eabb
mov eax, 5
add esp, 0x30
pop ebx
pop esi
pop edi
ret
call fcn.0040e5c0
mov eax, dword [0x421020]
mov esi, dword [0x4263f8]
test eax, eax
je 0x40eaad
mov esi, dword [0x4263f4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x40eaad
mov eax, dword [esp + 0x28]
mov dword [ebx + 0xc], 0
lea ecx, [esp + 0x2c]
mov edx, edi
mov dword [esp + 0x28], esi
mov dword [ebx + 0x10], eax
mov eax, ebx
call fcn.0040e4c0
cmp eax, 7
jne 0x40eb09
mov eax, edi
call fcn.0040e6d0
lea esi, [esi]
nop
mov eax, 3
jmp 0x40eb09
Function at 0x40d6d0
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
sub esp, 0x438
push ebx
push esi
push edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.00401f80
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x431a9d
mov eax, dword [0x4a7cfc]
test eax, eax
je 0x431ab6
mov byte [esp + 0xf], 0
mov esi, 0x4a8e80
cmp eax, 1
je 0x431aca
push 0x4a7cfc
lea ecx, [esp + 0x13]
mov eax, 0x4a7d14
call fcn.0040f3b0
test al, al
je 0x431aeb
mov dl, byte [0x4a8e80]
mov bl, byte [0x4a8e81]
push 0x4a7cf8
lea eax, [esp + 0x234]
push eax
push 0x104
push 0x4a7d14
mov byte [0x4a7d00], dl
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov ecx, dword [0x4a7cfc]
push ecx
push 0x4a7d14
call fcn.00401440
test eax, eax
jne 0x431aff
cmp bl, 1
je 0x431b23
call fcn.004101f0
call fcn.004103e0
cmp byte [0x4a7d00], 0
jne 0x40d7a8
mov esi, 0x4a84b8
call fcn.0040e1e0
push 1
mov ecx, 0x4a7f20
call fcn.00409560
cmp byte [0x4a7d00], 0
jne 0x40d7c7
mov ecx, 0x4a84b8
call fcn.00401000
mov ebx, 0x4a8e80
call fcn.0040ebc0
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
pop edi
pop esi
pop ebx
add esp, 0x438
ret
push 0x10
push 0x4846d6
push str.This_is_a_compiled_AutoIt_script._AV_researchers_please_email_avsupport_autoitscript.com_for_support.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40d7dc
lea ecx, [esp + 0x20]
mov dword [0x49729c], 0xffffffff
push ecx
jmp 0x40d7d6
mov edx, dword [0x4a7d04]
push 0xffffffffffffffff
push edx
push 1
xor bl, bl
call fcn.00403e90
mov al, byte [0x497290]
mov byte [0x4a8e83], al
jmp 0x40d769
lea ecx, [esp + 0x20]
mov dword [0x49729c], 1
push ecx
jmp 0x40d7d6
mov ebx, 0x4a8e80
call fcn.0040ebc0
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [0x49729c], 1
jmp 0x40d7dc
call fcn.0043604b
test al, al
jne 0x40d78b
push 0x104
lea eax, [esp + 0x234]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp byte [esp + 0xf], 0
je 0x431ba4
mov edi, 0x484740
lea esi, [esp + 0x10]
call fcn.00401b70
mov edi, 0x4a7d14
mov eax, esi
call fcn.0040d330
mov edi, 0x484740
mov eax, esi
call fcn.0040d330
mov edx, dword [esp + 0x10]
push 1
lea ecx, [esp + 0x24]
push ecx
push edx
lea eax, [esp + 0x23c]
push eax
push 0x484744
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, esi
call fcn.00402620
jmp 0x40d7c7
push 1
lea ecx, [esp + 0x24]
push ecx
push edi
lea edx, [esp + 0x23c]
push edx
push 0x484744
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40d7c7
Function at 0x40312d
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 8]
and dword [ebp - 0x20], eax
stosd dword es:[edi], eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x406954]
test eax, eax
je 0x40317f
push eax
call fcn.004040d8
cmp eax, 1
pop ecx
jb 0x40317f
push dword [0x406954]
call fcn.004040d8
pop ecx
xor edx, edx
push 0x14
pop ecx
div ecx
mov ecx, dword [0x406958]
add ecx, 0x64
cmp ecx, eax
jb 0x4031a3
push dword [0x406954]
call fcn.004040d8
add eax, 0x4e20
push eax
push dword [0x406954]
call fcn.0040408f
add esp, 0xc
mov dword [0x406954], eax
mov byte [ebp - 1], 1
movzx esi, byte [ebp - 1]
push esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov bx, ax
shr ebx, 0xf
and bl, 1
cmp byte [esi + 0x406c7c], bl
jne 0x4031ce
inc byte [ebp - 1]
cmp byte [ebp - 1], 0xff
jb 0x4031a7
jmp 0x4031d8
movzx eax, byte [ebp - 1]
mov byte [eax + 0x406c7c], bl
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov al, byte [ebp - 1]
cmp al, 0xff
jae 0x40323f
cmp al, 1
je 0x40321c
cmp al, 2
je 0x403228
cmp al, 0xa0
je 0x40323f
neg bl
movzx esi, al
sbb ebx, ebx
push 0
add ebx, 0x101
push esi
mov dword [ebp - 0x20], ebx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov ebx, eax
mov eax, dword [ebp - 8]
mov edi, ebx
shl edi, 8
or edi, esi
jmp 0x403248
neg bl
sbb ebx, ebx
add ebx, 0x202
jmp 0x403232
neg bl
sbb ebx, ebx
add ebx, 0x205
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x20], ebx
mov ebx, eax
jmp 0x403248
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x20], 0
jne 0x403282
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x4032f2
test eax, eax
je 0x4032f2
lea edx, [eax + ecx]
cmp dl, byte [0x406c7c]
je 0x4032f2
mov ebx, eax
add al, cl
mov dword [ebp - 0x20], 0x200
mov edi, ecx
mov byte [0x406c7c], al
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [0x406958]
mov edx, dword [0x406954]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 0x10], eax
mov eax, dword [0x406958]
mov ecx, dword [0x406954]
mov edx, dword [ebp - 0x20]
lea eax, [eax + eax*4]
mov dword [ecx + eax*4], edx
mov eax, dword [0x406958]
mov ecx, dword [0x406954]
lea eax, [eax + eax*4]
mov dword [ecx + eax*4 + 4], edi
mov eax, dword [0x406958]
mov ecx, dword [0x406954]
lea eax, [eax + eax*4]
mov dword [ecx + eax*4 + 8], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x406958]
mov edx, dword [0x406954]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 0xc], eax
inc dword [0x406958]
push 0
push 0xa
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40375d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x11b]
mov byte [ebp - 0x11c], bl
cmp dword [ebp + 8], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
je 0x403933
cmp dword [ebp + 0xc], ebx
je 0x403933
push esi
push 0x406b74
lea eax, [ebp - 0x11c]
push 0xff
push eax
push 0x406d7c
mov edi, 0x40610c
push str.toolbar_image
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x11c], bl
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
je 0x40386c
push 0x2050
push ebx
push ebx
lea eax, [ebp - 0x11c]
push ebx
push eax
push ebx
mov byte [0x406c7b], 1
call dword [sym.imp.USER32.dll_LoadImageA]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x403826
lea ecx, [ebp - 0x1c]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
cmp dword [ebp - 0x14], 0xa
jl 0x403826
mov eax, dword [ebp - 0x18]
push 7
cdq
pop ecx
idiv ecx
cmp eax, 0xa
jl 0x403826
push ebx
call esi
cmp dword [ebp - 0x18], eax
jle 0x403867
mov eax, dword [0x406964]
or eax, 0x12030
push eax
lea eax, [ebp - 0x11c]
push eax
push str.Invalid_toolbar_image_n_nReverting_to_stock_toolbar
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x406b74
push ebx
push str.toolbar_image
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [ebp - 4], ebx
je 0x40386c
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
jne 0x40388c
push ebx
push ebx
push ebx
push ebx
push 0xfa2
push ebx
mov byte [0x406c7b], bl
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [ebp - 4], eax
mov eax, dword [0x406948]
cmp eax, ebx
je 0x40389c
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 4]
mov dword [0x406948], eax
mov eax, dword [0x406950]
cmp eax, ebx
je 0x4038b4
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
push dword [0x406948]
call fcn.00403670
pop ecx
mov dword [0x406950], eax
pop ecx
lea eax, [ebp - 0x1c]
push eax
push 0x18
push dword [0x406948]
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [ebp - 0x18]
push 7
cdq
pop ecx
idiv ecx
push ecx
mov dword [0x406010], eax
mov eax, dword [ebp - 0x14]
mov dword [0x406014], eax
call esi
mov edi, eax
push 4
movzx eax, byte [0x406041]
add edi, eax
call esi
mov ecx, dword [0x406014]
push 7
add ecx, eax
lea eax, [ecx + edi*2]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
movzx edi, byte [0x406041]
call esi
mov ecx, eax
mov eax, dword [0x406010]
add eax, edi
pop esi
lea eax, [eax + eax*2]
add ecx, eax
lea eax, [edi + ecx*2]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
pop edi
pop ebx
leave
ret
Function at 0x403937
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
push esi
push edi
push 0x4f
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x240]
mov dword [ebp - 0x244], ebx
push 0x40
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], bl
mov esi, dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp esi, ebx
stosb byte es:[edi], al
je 0x403a98
cmp byte [esi], bl
je 0x403a98
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.00403fe1
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
inc eax
test al, 0x10
jne 0x4039f5
lea eax, [ebp - 0x104]
push 0x2a
push eax
call fcn.0040434e
pop ecx
test eax, eax
pop ecx
jne 0x4039fd
lea eax, [ebp - 0x104]
push 0x3f
push eax
call fcn.0040434e
pop ecx
test eax, eax
pop ecx
jne 0x4039fd
push ebx
push 0x80
push 3
push ebx
push 3
lea eax, [ebp - 0x104]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x403a98
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
jmp 0x403a9a
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp byte [esi], bl
mov edi, eax
je 0x403a23
push esi
call fcn.00404200
movsx ebx, byte [eax + esi - 1]
pop ecx
cmp ebx, 0x5c
jne 0x403a36
cmp edi, 0xffffffff
je 0x403a98
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4039f5
or ebx, 0xffffffff
cmp edi, ebx
je 0x403a98
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x218]
push 0x4066d8
push eax
call fcn.004042b7
pop ecx
test eax, eax
pop ecx
je 0x403a71
lea eax, [ebp - 0x218]
push 0x4066d4
push eax
call fcn.004042b7
pop ecx
test eax, eax
pop ecx
jne 0x403a8c
lea eax, [ebp - 0x244]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403a88
push edi
call esi
mov edi, ebx
cmp edi, ebx
jne 0x403a43
cmp edi, ebx
je 0x403a98
push edi
call esi
jmp 0x4039f5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403a9f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
mov byte [ebp - 0x12c], bl
push 8
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
mov dword [ebp - 0x28], ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x403aef
cmp byte [eax], bl
je 0x403aef
lea ecx, [ebp - 0x12c]
push ecx
push eax
call fcn.00403fe1
pop ecx
pop ecx
jmp 0x403b09
lea eax, [ebp - 0x12c]
push 0x103
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x12c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
je 0x403b29
cmp dword [ebp - 0xc], ebx
jne 0x403b73
mov edi, dword [ebp - 8]
jmp 0x403b78
push ebx
push 0x80
push 3
push ebx
push 3
lea eax, [ebp - 0x12c]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403b51
xor eax, eax
jmp 0x403b7a
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
jne 0x403b6e
xor edi, edi
jmp 0x403b78
cmp dword [ebp - 4], ebx
je 0x403b78
mov edi, 0x7ffffffe
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret