joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b344
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x42b379
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403b7c
jmp 0x42b383
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00403ae8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x42c0e0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x42c118
mov eax, esi
call fcn.0043e9bc
test al, al
je 0x42c118
mov eax, dword [ebx + 0x74]
call fcn.0043e6c0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42c118
push 0
mov eax, dword [ebx + 0x74]
call fcn.0043e6c0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x42ebb4
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403a94
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42ec03
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00403cc4
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x436494
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x4467f8], 0
sete dl
or al, dl
jne 0x4365d4
mov eax, dword [0x4467fc]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4467f8]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x4365a3
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x4467f8]
call fcn.00410cc8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x43659b
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x43659b
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x43659b
mov eax, dword [ebp - 0x14]
call fcn.0043e6c0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43659b
push ebp
call fcn.00436450
pop ecx
test al, al
jne 0x43659b
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x436557
mov eax, dword [ebp - 0x14]
call fcn.0043d04c
dec eax
jle 0x43659b
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov bx, 0xffc1
call fcn.00402f74
cmp byte [ebp - 1], 0
je 0x43659b
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x43659b
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4467fc]
call fcn.00435c9c
inc edi
dec esi
jne 0x4364ea
mov eax, dword [0x4467fc]
cmp dword [eax + 8], 0
jle 0x4365bb
mov eax, dword [0x4467fc]
call fcn.00435d2c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4365d4
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004362b8
pop ecx
test al, al
jne 0x4365d4
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43c058
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x43c089
je 0x43c0e3
sub eax, 7
je 0x43c0aa
dec eax
je 0x43c0d4
sub eax, 0x17
je 0x43c188
jmp 0x43c1c6
add eax, 0xffffff00
sub eax, 9
jb 0x43c174
add eax, 0xffffff09
sub eax, 0xb
jb 0x43c13c
jmp 0x43c1c6
mov eax, ebx
call fcn.00423338
mov edi, eax
test edi, edi
je 0x43c226
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x43c22f
jmp 0x43c226
test byte [ebx + 0x44], 0x20
jne 0x43c22f
jmp 0x43c226
mov edx, esi
mov eax, ebx
call fcn.00439724
cmp dword [esi + 0xc], 0xffffffff
jne 0x43c22f
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.00406c18
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.00438270
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.0043bf30
test eax, eax
je 0x43c22f
mov dword [esi + 0xc], 1
jmp 0x43c22f
mov edx, esi
mov eax, ebx
call fcn.0043bfc4
test al, al
je 0x43c226
cmp dword [esi + 0xc], 0
jne 0x43c22f
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
mov eax, ebx
call fcn.0043e6c0
push eax
call sub.user32.dll_DefWindowProcA
jmp 0x43c22f
mov eax, ebx
call fcn.00438dc0
test al, al
jne 0x43c22f
jmp 0x43c226
mov eax, ebx
call fcn.0043e6c0
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x43c226
cmp dword [0x44593c], 0
je 0x43c226
mov eax, dword [0x44593c]
cmp ebx, dword [eax + 0x24]
jne 0x43c226
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x44593c]
call fcn.00439658
jmp 0x43c226
mov eax, dword [0x4467c0]
cmp byte [eax + 0x20], 0
je 0x43c226
mov eax, dword [0x4467c0]
cmp dword [eax + 0x1c], 0
je 0x43c226
mov eax, dword [esi]
mov edx, dword [0x4467c0]
cmp eax, dword [edx + 0x1c]
jne 0x43c226
lea eax, [ebp - 0x110]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.0042327c
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb7
call fcn.00402f74
jmp 0x43c22f
mov edx, esi
mov eax, ebx
call fcn.00439724
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43c6f0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1e8], 0
je 0x43c70c
cmp dword [esi + 4], 0
je 0x43c739
test byte [ebx + 0x45], 1
jne 0x43c72b
mov eax, ebx
call fcn.0043b694
test eax, eax
jne 0x43c72b
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x43c849
mov edx, esi
mov eax, ebx
call fcn.0043c368
jmp 0x43c849
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x43c842
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043e6c0
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00439658
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043c6f0
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043e6c0
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c849
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4434b4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00443118
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00403ed8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x443512
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x445c84]
mov dl, 1
mov eax, dword [0x443010]
call fcn.004094c0
call fcn.004034f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44351c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00403ed8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x443574
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x445e34]
mov dl, 1
mov eax, dword [0x443010]
call fcn.004094c0
call fcn.004034f0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00443148
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4436f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403ed8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x443709
test al, 0x10
jne 0x44370d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x10001080
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov byte [ebp - 0x24], 0x64
mov byte [ebp - 0x23], 0x65
mov byte [ebp - 0x22], 0x73
mov byte [ebp - 0x21], 0x6b
mov byte [ebp - 0x20], 0x74
mov byte [ebp - 0x1f], 0x6f
mov byte [ebp - 0x1e], 0x70
mov byte [ebp - 0x1d], 0x2e
mov byte [ebp - 0x1c], 0x69
mov byte [ebp - 0x1b], 0x6e
mov byte [ebp - 0x1a], 0x69
mov byte [ebp - 0x19], 0
mov byte [0x10003016], 0
mov byte [0x10003023], 0
mov byte [0x10003033], 0
mov byte [0x1000303f], 0
mov byte [0x1000304d], 0
mov byte [0x1000305a], 0
mov byte [0x10003065], 0
mov byte [0x10003072], 0
mov byte [0x1000307e], 0
mov byte [0x1000308c], 0
mov byte [0x1000309d], 0
mov byte [0x100030a6], 0
mov byte [0x100030b1], 0
mov byte [0x100030ba], 0
mov byte [0x100030c6], 0
mov byte [0x100030cf], 0
mov byte [0x100030db], 0
mov byte [0x100030e4], 0
push 0x1000309e
push 0x10002060
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
push 0x1000307f
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
push 1
push 0
push 0
push section..data
push 0
push 0
call dword [ebp - 0x18]
push 0x10003034
push 0x10002094
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
push 0x10003066
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x24]
push eax
call dword [ebp - 8]
mov dword [0x100030ec], eax
push 0x40
push 0x1000
push 0x1000
push 0
call dword [ebp - 0x10]
mov dword [0x100030e8], eax
push 0
push 0x100030f4
push 0x1000
mov ecx, dword [0x100030e8]
push ecx
mov edx, dword [0x100030ec]
push edx
call dword [ebp - 0xc]
mov eax, dword [0x100030e8]
mov cl, byte [eax]
mov byte [0x100030f0], cl
mov dword [ebp - 4], 0x42
movzx edx, byte [0x100030f0]
xor edx, 0x4e
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x28], 0
jmp 0x10001232
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [0x100030f4]
jae 0x1000125c
mov edx, dword [0x100030e8]
add edx, dword [ebp - 0x28]
movzx eax, byte [edx]
xor eax, dword [ebp - 0x14]
add eax, dword [ebp - 4]
mov ecx, dword [0x100030e8]
add ecx, dword [ebp - 0x28]
mov byte [ecx], al
jmp 0x10001229
call dword [0x100030e8]
cmp dword [ebp + 0x14], 0x7000
jne 0x10001270
call fcn.10001000
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401000
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x40105e
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
jne 0x40105e
push eax
push str.Check_OS_type_Error__
push str.Message
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x18]
sub ecx, 0
mov byte [eax], 0
je 0x401135
dec ecx
je 0x4010d5
dec ecx
je 0x40109d
push 0
push str.Unknown_OS_type__
push str.Message
push 0
mov byte [eax], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret
mov ecx, dword [esp + 0xc]
cmp ecx, 4
ja 0x4010a9
mov byte [eax], 0xd
cmp ecx, 5
jne 0x401138
mov edi, dword [esp + 0x14]
mov edx, 0x8ae
cmp edx, edi
pop edi
sbb cl, cl
pop esi
and cl, 2
add cl, 0xe
mov byte [eax], cl
mov eax, 1
add esp, 0x9c
ret
mov ecx, dword [esp + 0xc]
cmp ecx, 4
ja 0x4010f9
jne 0x4010e8
mov ecx, dword [esp + 0x10]
test ecx, ecx
ja 0x4010f9
mov byte [eax], 0xa
pop edi
mov eax, 1
pop esi
add esp, 0x9c
ret
mov ecx, dword [esp + 0x14]
mov byte [eax], 0xb
cmp cx, 0x8ae
jbe 0x40110a
mov byte [eax], 0xf
jne 0x40111d
mov byte [eax], 0xc
pop edi
mov eax, 1
pop esi
add esp, 0x9c
ret
cmp cx, 0x7ce
jne 0x401138
mov byte [eax], 0xb
pop edi
mov eax, 1
pop esi
add esp, 0x9c
ret
mov byte [eax], 9
pop edi
mov eax, 1
pop esi
add esp, 0x9c
ret
Function at 0x401630
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x41229b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
push ebp
push esi
lea eax, [esp + 0x10]
push edi
push eax
xor edi, edi
push str.EnumPCI
mov esi, ecx
push 0x80000002
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4017db
push edi
push edi
mov edx, dword [esp + 0x1c]
push edi
push edi
push edi
push edi
lea ecx, [esp + 0x30]
push edi
push ecx
push edi
push edi
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push edi
push str.EnumPCI
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4017c8
cmp dword [esp + 0x18], edi
jbe 0x40175a
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
or ebx, 0xffffffff
mov edx, dword [0x417498]
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push 0xff
push eax
push edi
push ecx
mov dword [esp + 0x134], 0
call ebp
test eax, eax
jne 0x401798
lea ecx, [esp + 0x10]
call fcn.0040ca13
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
call fcn.0040cb2f
mov eax, dword [esi + 0xd0]
lea ecx, [esp + 0x10]
push eax
call fcn.0040b7e2
cmp eax, ebx
jne 0x401791
mov ecx, dword [esi + 0xcc]
push ecx
lea ecx, [esp + 0x14]
call fcn.0040b7e2
cmp eax, ebx
jne 0x40176a
lea ecx, [esp + 0x10]
mov dword [esp + 0x124], ebx
call fcn.0040ca88
mov eax, dword [esp + 0x18]
inc edi
cmp edi, eax
jb 0x4016cf
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4017ec
lea edx, [esp + 0x10]
push edx
lea ecx, [esi + 0xc4]
call fcn.0040cadf
lea ecx, [esp + 0x10]
mov dword [esp + 0x124], ebx
call fcn.0040ca88
mov eax, 1
jmp 0x4017ee
lea eax, [esp + 0x10]
push eax
jmp 0x40176f
mov edx, dword [esi]
push 0
push 0
push str.Enum_Key_Fail___
mov ecx, esi
call dword [edx + 0x8c]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x124], ebx
call fcn.0040ca88
jmp 0x4017ec
mov edx, dword [esi]
push edi
push edi
push str.Open_key_fail___
mov ecx, esi
call dword [edx + 0x8c]
jmp 0x4017ec
mov eax, dword [esi]
push edi
push edi
push str.Get_keyCount_fail___
mov ecx, esi
call dword [eax + 0x8c]
xor eax, eax
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret
Function at 0x401810
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4122b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x417498]
push esi
push edi
mov dword [esp + 8], eax
push str.c:csb.log
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.0040cb2f
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 8]
push 0x417348
push edx
call fcn.00402740
mov esi, eax
mov eax, dword [esp + 0x10]
add esp, 8
lea ecx, [esp + 8]
mov eax, dword [eax - 8]
push eax
call fcn.0040cc1a
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push esi
push ecx
push 1
push edx
call fcn.004025d6
push esi
call fcn.00402559
add esp, 0x14
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.0040ca88
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x405685
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x417f28
cmp edx, dword [eax]
je 0x4056a7
add eax, 8
inc ecx
cmp eax, 0x417fb8
jl 0x405698
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x417f28]
jne 0x4057d5
mov eax, dword [0x41a664]
cmp eax, 1
je 0x4057af
test eax, eax
jne 0x4056d8
cmp dword [0x4177e4], 1
je 0x4057af
cmp edx, 0xfc
je 0x4057d5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40570f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405870
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405960
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405752
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405960
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x414654
push edi
call fcn.00407740
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405870
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405880
lea eax, [ebp - 0xa0]
push 0x414634
push eax
call fcn.00405880
push dword [esi + 0x417f2c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405880
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004076b2
add esp, 0x2c
pop edi
jmp 0x4057d5
lea eax, [ebp + 8]
lea esi, [esi + 0x417f2c]
push 0
push eax
push dword [esi]
call fcn.00405960
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40b140
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00403420
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x40b20b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x40b20b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x40b1be
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x40b1c9
or bh, 8
and edi, 0x8000000
je 0x40b1e4
mov eax, dword [0x41bdbc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x40b20b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b5e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40b60b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40b62f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x40b64a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x411152
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x411180
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41119e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004110b8
jmp 0x41119e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41119e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004110b8
test edi, edi
mov eax, edi
jne 0x411188
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8