joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ca70
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x288
xor eax, eax
push ebp
push esi
mov ebp, ecx
nop dword [eax]
mov esi, dword [eax*8 + 0x4e98b8]
test esi, esi
je 0x41ca95
cmp esi, ebp
je 0x41cac1
inc eax
cmp eax, 0xa
jl 0x41ca80
cmp eax, 0xa
mov ecx, 9
cmovl ecx, eax
mov dword [esp + 0xc], ecx
test edx, edx
je 0x41cae6
pop esi
mov dword [ecx*8 + 0x4e98b8], ebp
mov eax, edx
mov dword [ecx*8 + 0x4e98bc], edx
pop ebp
add esp, 0x288
ret
test edx, edx
je 0x41cad6
cmp dword [eax*8 + 0x4e98bc], 0
jne 0x41cad6
mov dword [eax*8 + 0x4e98bc], edx
mov eax, dword [eax*8 + 0x4e98bc]
pop esi
pop ebp
add esp, 0x288
ret
push ebx
xor ebx, ebx
push ebx
push ebp
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov dword [esp + 0xc], eax
test eax, eax
je 0x41cbb9
push edi
mov ecx, 0x19
lea edi, [esp + 0x18]
mov esi, str.SYSTEMCurrentControlSetControlKeyboard_Layouts_
lea eax, [esp + 0x7c]
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
pop edi
test eax, eax
je 0x41cb51
push ebx
push ecx
lea eax, [esp + 0x94]
push eax
push str.Layout_File
lea edx, [esp + 0x24]
call fcn.0049ea80
add esp, 0x10
test eax, eax
je 0x41cb51
lea eax, [esp + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
jmp 0x41cb53
xor esi, esi
mov eax, dword [esp + 0xc]
cmp ebp, eax
je 0x41cb64
push 0
push eax
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
test esi, esi
je 0x41cbb9
push str.KbdLayerDescriptor
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41cbb2
call eax
cmp dword [0x4e9888], 0
mov ebx, eax
je 0x41cba7
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x4e9888]
test eax, eax
je 0x41cba7
cmp dword [esp + 0xc], 0
je 0x41cba7
mov ebx, dword [ebx + 0x50]
jmp 0x41cbaa
mov ebx, dword [ebx + 0x28]
not ebx
and ebx, 1
add ebx, 3
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
mov dword [eax*8 + 0x4e98bc], ebx
mov dword [eax*8 + 0x4e98b8], ebp
mov eax, ebx
pop ebx
pop esi
pop ebp
add esp, 0x288
ret
Function at 0x41cc50
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
push edi
mov ebp, edx
mov bl, cl
xor edi, edi
cmp byte [edi*8 + 0x4e4174], bl
je 0x41cdcf
inc edi
cmp edi, 0x6d
jl 0x41cc60
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
lea ecx, [ebx - 0x41]
mov esi, eax
cmp cl, 0x19
ja 0x41cd5f
push 0x100
lea eax, [esp + 0x2c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov dword [esp + 0x14], eax
push esi
push eax
push 2
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x38]
push eax
push 0
push 0x6e
call dword [sym.imp.USER32.dll_ToUnicodeEx]
cmp eax, 2
jne 0x41ccc9
movzx eax, word [esp + 0x18]
mov dword [esp + 0x14], eax
push esi
push 0
push 2
lea eax, [esp + 0x24]
movzx edi, bl
push eax
lea eax, [esp + 0x38]
push eax
push 0
push edi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
mov dword [esp + 0x24], eax
test eax, eax
jns 0x41cd05
push esi
push 0
push 2
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x38]
push eax
push 0
push 0x6e
call dword [sym.imp.USER32.dll_ToUnicodeEx]
mov eax, dword [esp + 0x14]
test ax, ax
je 0x41cd4d
push 1
push esi
lea edx, [esp + 0x1b]
mov ecx, eax
call fcn.0041cfc0
mov bh, al
add esp, 8
test bh, bh
je 0x41cd4d
mov dl, byte [esp + 0x13]
lea ecx, [esp + 0x28]
call fcn.0041c560
push esi
push 0
push 2
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x38]
push eax
push 0
movzx eax, bh
push eax
call dword [sym.imp.USER32.dll_ToUnicodeEx]
cmp dword [esp + 0x24], 0
je 0x41cd5b
movzx eax, word [esp + 0x18]
jmp 0x41cd6f
xor eax, eax
jmp 0x41cd6f
push esi
push 2
movzx edi, bl
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
movzx eax, ax
mov word [ebp], ax
test ax, ax
je 0x41cd8b
pop edi
xor eax, eax
mov word [ebp + 2], ax
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
cmp byte [esp + 0x130], 0
je 0x41cdbc
test bl, bl
je 0x41cdbc
push edi
push str.vk_02X
push dword [esp + 0x134]
push ebp
call fcn.0049d580
add esp, 0x10
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
pop edi
xor eax, eax
mov word [ebp], ax
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
mov esi, dword [esp + 0x12c]
dec esi
push esi
push dword [edi*8 + 0x4e4170]
push ebp
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
xor eax, eax
mov word [ebp + esi*2], ax
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
Function at 0x41cef0
Capabilities:
Log keystrokes

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, ecx
movzx ecx, word [edi]
test cx, cx
je 0x41cfb6
cmp word [edi + 2], 0
jne 0x41cf1c
push 1
push dword [esp + 0x20]
call fcn.0041cfc0
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret
call fcn.004133b0
cmp ax, 0x56
jne 0x41cf60
mov cx, word [edi + 2]
call fcn.004133b0
cmp ax, 0x4b
jne 0x41cf60
push 0x10
lea eax, [esp + 0x10]
push eax
lea eax, [edi + 4]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
mov ecx, dword [esp + 0x18]
add esp, 0xc
xor ebx, ebx
movzx edx, al
cmp word [ecx], bx
pop edi
cmove ebx, edx
pop esi
mov al, bl
pop ebx
pop ecx
ret
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
xor esi, esi
nop dword [eax + eax]
push edi
push dword [esi*8 + 0x4e4170]
call ebx
add esp, 8
test eax, eax
je 0x41cfaa
inc esi
cmp esi, 0x6d
jl 0x41cf70
cmp byte [esp + 0x14], 0
jne 0x41cfb6
xor edx, edx
mov ecx, edi
call fcn.0041ce00
movzx ecx, ax
test cx, cx
je 0x41cfb6
pop edi
pop esi
pop ebx
add esp, 4
jmp fcn.0041d880
mov al, byte [esi*8 + 0x4e4174]
pop edi
pop esi
pop ebx
pop ecx
ret
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret

Function at 0x41cfc0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, edx
cmp di, 0xa
jne 0x41cfd1
pop edi
mov al, 0xd
pop esi
ret
push ebx
push dword [esp + 0x10]
push edi
call dword [sym.imp.USER32.dll_VkKeyScanExW]
movzx ebx, ax
mov ecx, ebx
shr ecx, 8
cmp cl, 0xff
jne 0x41d02d
cmp bl, 0xff
jne 0x41d02d
cmp byte [esp + 0x14], 0
je 0x41d032
movzx eax, di
test eax, 0xffffff80
jne 0x41d032
push 0x103
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
test eax, eax
je 0x41d032
mov ecx, edi
call fcn.004133b0
mov edx, 1
mov ecx, edi
mov bl, al
call fcn.004065c0
test eax, eax
setne cl
test cl, 0x38
je 0x41d038
pop ebx
pop edi
xor al, al
pop esi
ret
test esi, esi
je 0x41d076
mov al, cl
and al, 6
cmp al, 6
jne 0x41d049
or byte [esi], 8
jmp 0x41d067
test cl, 2
je 0x41d058
mov al, byte [esi]
test al, 3
jne 0x41d058
or al, 1
mov byte [esi], al
test cl, 4
je 0x41d067
mov al, byte [esi]
test al, 0xc
jne 0x41d067
or al, 4
mov byte [esi], al
test cl, 1
je 0x41d076
mov al, byte [esi]
test al, 0x30
jne 0x41d076
or al, 0x10
mov byte [esi], al
mov al, bl
pop ebx
pop edi
pop esi
ret
Function at 0x41d880
Capabilities:
Log keystrokes

Disassembly:
push ebx
mov ebx, ecx
movzx edx, bx
mov eax, edx
cmp edx, 0x11c
ja 0x41d8f8
je 0x41d8f4
sub eax, 0x1d
cmp eax, 0x36
ja case.0x41d909.286
movzx eax, byte [eax + 0x41d9ac]
jmp dword [eax*4 + 0x41d960]
mov al, 0xa0
pop ebx
ret
mov al, 0xa2
pop ebx
ret
mov al, 0xa4
pop ebx
ret
mov al, 0x6a
pop ebx
ret
mov al, 0x6d
pop ebx
ret
mov al, 0x6b
pop ebx
ret
mov al, 0x2e
pop ebx
ret
mov al, 0xc
pop ebx
ret
mov al, 0x2d
pop ebx
ret
mov al, 0x26
pop ebx
ret
mov al, 0x28
pop ebx
ret
mov al, 0x25
pop ebx
ret
mov al, 0x27
pop ebx
ret
mov al, 0x24
pop ebx
ret
mov al, 0x23
pop ebx
ret
mov al, 0x21
pop ebx
ret
mov al, 0x22
pop ebx
ret
mov al, 0x13
pop ebx
ret
mov al, 0xd
pop ebx
ret
sub eax, 0x11d
cmp eax, 0x40
ja case.0x41d909.286
movzx eax, byte [eax + 0x41da0c]
jmp dword [eax*4 + 0x41d9e4]
mov al, 0xa1
pop ebx
ret
mov al, 0xa3
pop ebx
ret
mov al, 0xa5
pop ebx
ret
mov al, 0x5b
pop ebx
ret
mov al, 0x5c
pop ebx
ret
mov al, 0x90
pop ebx
ret
mov al, 0x6f
pop ebx
ret
mov al, 0x5d
pop ebx
ret
mov al, 0x2c
pop ebx
ret
test ebx, 0x100
je 0x41d951
movzx eax, dl
push 1
or eax, 0xe000
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
test eax, eax
jne 0x41d95d
push 1
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
pop ebx
ret
Function at 0x41f730
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 8]
not ecx
cmp esi, 8
jb 0x41f7ed
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bdf50]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bdf50]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bdf50]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bdf50]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bdf50]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bdf50]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bdf50]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bdf50]
sub edi, 1
jne 0x41f746
pop edi
test esi, esi
je 0x41f80b
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bdf50]
sub esi, 1
jne 0x41f7f1
not ecx
mov eax, ecx
pop esi
ret

Function at 0x41fc10
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
test byte [esi], 1
jne 0x41fc43
push 0
lea eax, [esp + 8]
push eax
push dword [esp + 0x14]
push edx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41fc3c
mov dword [esi + 8], 7
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
pop esi
pop ecx
ret
mov ecx, dword [esi + 0x10]
xor eax, eax
push ebx
mov ebx, dword [esi + 0x18]
push ebp
push edi
mov edi, dword [esp + 0x18]
mov ebp, edi
add ebp, ebx
adc eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x14]
jb 0x41fc68
ja 0x41fc64
cmp ebp, ecx
jbe 0x41fc68
mov edi, ecx
sub edi, ebx
mov ecx, dword [esi + 4]
push edi
add ecx, ebx
push ecx
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, edi
add dword [esi + 0x18], edi
adc dword [esi + 0x1c], 0
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
Function at 0x421050
Capabilities:
Create directory

Disassembly:
sub esp, 0x10
mov al, byte [ecx]
mov dword [esp + 4], 0xc
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
mov dword [esp], ecx
push ebx
mov ebx, edx
push ebp
push esi
push edi
test al, al
je 0x421086
cmp byte [ecx + 1], 0x3a
jne 0x421086
mov al, byte [ecx + 2]
add ecx, 2
mov dl, al
cmp al, 0x5c
jne 0x42108f
mov dl, byte [ecx + 1]
lea esi, [ecx + 1]
cmovne esi, ecx
test dl, dl
je 0x4210e8
mov al, byte [esi]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, al
je 0x4210bc
nop dword [eax + eax]
cmp al, 0x5c
je 0x4210f5
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4210b0
xor esi, esi
test ebx, ebx
je 0x4210e8
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
call ebp
test eax, eax
jne 0x4210da
call edi
cmp eax, 0xb7
jne 0x4210fa
test esi, esi
je 0x4210e8
mov byte [esi], 0x5c
inc esi
mov al, byte [esi]
test al, al
jne 0x4210b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
mov byte [esi], 0
jmp 0x4210c2
test esi, esi
je 0x421101
mov byte [esi], 0x5c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret

Function at 0x421110
Capabilities:
Create directory

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
movzx esi, word [ecx]
mov ebx, edx
mov dword [esp + 0x10], 0xc
mov eax, esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 1
mov dword [esp + 0xc], ecx
push edi
test si, si
je 0x42114d
cmp word [ecx + 2], 0x3a
jne 0x42114d
movzx eax, word [ecx + 4]
add ecx, 4
movzx edi, ax
movzx edx, ax
cmp ax, 0x5c
jne 0x42115d
movzx edx, word [ecx + 2]
cmp edi, 0x5c
lea esi, [ecx + 2]
cmovne esi, ecx
test dx, dx
je 0x4211d1
movzx ecx, word [esi]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
nop word [eax + eax]
movzx eax, cx
test ax, ax
je 0x42119a
cmp ax, 0x5c
je 0x4211de
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x421188
xor esi, esi
test ebx, ebx
je 0x4211d1
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
call ebp
test eax, eax
jne 0x4211b8
call edi
cmp eax, 0xb7
jne 0x4211e5
test esi, esi
je 0x4211d1
mov eax, 0x5c
mov word [esi], ax
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x421180
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
xor eax, eax
mov word [esi], ax
jmp 0x4211a0
test esi, esi
je 0x4211f1
mov eax, 0x5c
mov word [esi], ax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x421200
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x421411
mov eax, dword [esi + 0x30]
and eax, dword [esi + 0x34]
cmp eax, 0xffffffff
je 0x421411
mov ebx, dword [ebp + 0xc]
mov dword [esi + 8], 0
test bl, 1
je 0x4212b2
cmp word [esi + 0x70], 0
mov ebx, dword [ebp + 8]
jne 0x421263
mov edx, ebx
mov ecx, esi
call fcn.004203e0
cmp dword [esi + 8], 0
jne 0x421400
mov eax, 1
mov word [esi + 0x70], ax
push dword [ebx + 0x2c]
mov edx, edi
mov ecx, esi
push dword [ebx + 0x28]
call fcn.004206f0
add esp, 8
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], edx
cmp dword [esi + 8], 0
jne 0x42129b
mov eax, dword [esi + 0xe8]
or eax, dword [esi + 0xec]
je 0x42129b
mov eax, 5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, esi
mov word [esi + 0x70], ax
call fcn.00420270
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
test byte [eax + 8], 0x10
je 0x4212e8
test bl, 2
je 0x4212df
mov edx, 1
mov ecx, edi
test ebx, ebx
jns 0x4212d2
call fcn.00421110
jmp 0x4212d7
call fcn.00421050
test eax, eax
je 0x4213f9
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 4
je 0x421335
xor edx, edx
mov ecx, edi
test ebx, ebx
jns 0x4212fc
call fcn.00421110
jmp 0x421301
call fcn.00421050
test eax, eax
je 0x4213f9
mov eax, dword [ebp + 8]
push 0
mov eax, dword [eax + 8]
push eax
push 2
push 0
push 0
push 0x40000000
push edi
test ebx, ebx
jns 0x42132a
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x421330
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov eax, dword [ebp + 8]
cmp edi, 0xffffffff
je 0x4213f9
mov edx, eax
mov ecx, esi
call fcn.004203e0
cmp dword [esi + 8], 0
jne 0x4213dc
cmp dword [esi + 0x4c], 0
jne 0x421372
push 0x4000
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 0x4c], eax
test eax, eax
jne 0x421372
mov dword [esi + 8], 2
cmp dword [esi + 8], 0
jne 0x4213dc
mov edx, dword [esi + 0x4c]
mov ecx, esi
push 0
push 0x4000
call fcn.004206f0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4213bd
push 0
lea eax, [esp + 0x10]
push eax
push ebx
push dword [esi + 0x4c]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4213b6
cmp dword [esp + 0xc], ebx
jne 0x4213b6
cmp dword [esi + 8], 0
je 0x421378
jmp 0x4213bd
mov dword [esi + 8], 3
cmp dword [esi + 8], 0
mov ebx, dword [ebp + 0xc]
jne 0x4213dc
mov ecx, dword [ebp + 8]
lea eax, [ecx + 0x1c]
push eax
lea eax, [ecx + 0xc]
push eax
lea eax, [ecx + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp ebx, 4
je 0x421400
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00420270
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 8], 1
mov ecx, esi
call fcn.00420270
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421cc0
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], edx
lea eax, [esp + 0x28]
push eax
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x421cec
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov ebx, dword [esp + 0x28]
mov esi, ebx
and esi, 1
mov eax, ebx
mov ecx, esi
or ecx, 2
and al, 2
mov eax, ebx
cmove ecx, esi
mov edx, ecx
or edx, 4
and al, 4
cmove edx, ecx
mov ecx, ebx
mov eax, edx
or eax, 0x10
and ecx, 0x10
cmove eax, edx
mov edx, 0x81000000
mov ebp, eax
or ebp, 0x20
and bl, 0x20
cmove ebp, eax
test ecx, ecx
mov eax, 0x41000000
cmove eax, edx
or ebp, eax
test esi, esi
jne 0x421d40
or ebp, 0x800000
push 0
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], ecx
cmp eax, 0x28
jbe 0x421e1b
mov eax, dword [edi + 0x18]
or eax, dword [edi + 0x1c]
jne 0x421e1b
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
push eax
push eax
push dword [edi + 0x64]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x18]
push 0
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [edi + 0x64]
call ebx
push 0
push 0
push 0x24
push dword [edi + 0x64]
call esi
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea eax, [esp + 0x28]
push eax
push dword [edi + 0x64]
call ebx
mov eax, 0x54ad
cmp word [esp + 0x14], ax
jne 0x421e10
cmp dword [edi + 0x54], 0
mov eax, dword [esp + 0x1c]
lea ecx, [eax + 0x34]
jb 0x421e10
ja 0x421dcd
cmp dword [edi + 0x50], ecx
jbe 0x421e10
push 0
push 0
push eax
push dword [edi + 0x64]
call esi
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea eax, [esp + 0x2c]
push eax
push dword [edi + 0x64]
call ebx
mov eax, dword [esp + 0x20]
cmp eax, 0x5a4d
je 0x421e0a
cmp eax, 0x454e
je 0x421e0a
cmp eax, 0x454c
je 0x421e0a
cmp eax, 0x4550
jne 0x421e10
or ebp, 0x400000
push 0
push 0
push 0
push dword [edi + 0x64]
call esi
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
sub ecx, 0xd53e8000
mov ebx, dword [esp + 0x24]
push 0
push 0x989680
sbb eax, 0x19db1de
push eax
push ecx
mov dword [ebx + 0x10], ebp
call fcn.004b8310
mov ecx, dword [esp + 0x3c]
mov dword [ebx], eax
sub ecx, 0xd53e8000
mov eax, dword [esp + 0x40]
push 0
push 0x989680
sbb eax, 0x19db1de
push eax
push ecx
call fcn.004b8310
mov ecx, dword [esp + 0x2c]
mov dword [ebx + 4], eax
sub ecx, 0xd53e8000
mov eax, dword [esp + 0x30]
push 0
push 0x989680
sbb eax, 0x19db1de
push eax
push ecx
call fcn.004b8310
mov dword [ebx + 8], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
movzx ecx, word [esp + 0x14]
movzx eax, word [esp + 0x18]
pop edi
shl ecx, 0x10
pop esi
or ecx, eax
xor eax, eax
pop ebp
mov dword [ebx + 0xc], ecx
pop ebx
add esp, 0x4c
ret
Function at 0x423990
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
mov esi, edx
push edi
mov edi, ecx
mov ecx, esi
cmp dword [esi], 0
jge 0x4239eb
mov edx, 0x8b1f
call fcn.004244d0
mov edx, 0x808
mov ecx, esi
call fcn.004244d0
mov edx, dword [edi + 4]
mov ecx, esi
call fcn.004244d0
movzx edx, word [edi + 6]
mov ecx, esi
call fcn.004244d0
mov edx, 0xb02
mov ecx, esi
call fcn.004244d0
mov eax, dword [edi + 0x20]
lea edx, [edi + 0x48]
inc eax
mov ecx, esi
push eax
call fcn.00424590
add esp, 4
pop edi
pop esi
pop ebx
ret
mov edx, 0x4034b50
call fcn.004244d0
mov edx, 0x403
mov ecx, esi
call fcn.004244d0
mov edx, 0x2d
mov ecx, esi
call fcn.004244d0
movzx edx, word [edi + 0x30]
mov ecx, esi
call fcn.004244d0
movzx edx, word [edi + 2]
mov ecx, esi
call fcn.004244d0
mov edx, dword [edi + 4]
mov ecx, esi
call fcn.004244d0
movzx edx, word [edi + 6]
mov ecx, esi
call fcn.004244d0
mov edx, dword [edi + 8]
mov ecx, esi
call fcn.004244d0
movzx edx, word [edi + 0xa]
mov ecx, esi
call fcn.004244d0
or edx, 0xffffffff
mov ecx, esi
call fcn.004244d0
or edx, 0xffffffff
mov ecx, esi
call fcn.004244d0
or edx, 0xffffffff
mov ecx, esi
call fcn.004244d0
or edx, 0xffffffff
mov ecx, esi
call fcn.004244d0
mov edx, dword [edi + 0x20]
mov ecx, esi
call fcn.004244d0
mov edx, dword [edi + 0x24]
mov ecx, esi
add edx, 0x14
call fcn.004244d0
push dword [edi + 0x20]
lea edx, [edi + 0x48]
mov ecx, esi
call fcn.00424590
add esp, 4
mov edx, 1
mov ecx, esi
call fcn.004244d0
mov edx, 0x10
mov ecx, esi
call fcn.004244d0
mov edx, dword [edi + 0x18]
mov ecx, esi
call fcn.004244d0
mov edx, dword [edi + 0x18]
mov ecx, esi
mov eax, dword [edi + 0x1c]
shrd edx, eax, 0x10
call fcn.004244d0
mov eax, dword [edi + 0x18]
mov cl, 0x20
mov edx, dword [edi + 0x1c]
call fcn.004b85e0
mov edx, eax
mov ecx, esi
call fcn.004244d0
movzx edx, word [edi + 0x1e]
mov ecx, esi
call fcn.004244d0
mov edx, dword [edi + 0x10]
mov ecx, esi
call fcn.004244d0
mov edx, dword [edi + 0x10]
mov ecx, esi
mov eax, dword [edi + 0x14]
shrd edx, eax, 0x10
call fcn.004244d0
mov eax, dword [edi + 0x10]
mov cl, 0x20
mov edx, dword [edi + 0x14]
call fcn.004b85e0
mov edx, eax
mov ecx, esi
call fcn.004244d0
movzx edx, word [edi + 0x16]
mov ecx, esi
call fcn.004244d0
mov eax, dword [edi + 0x24]
test eax, eax
je 0x423b41
mov edx, dword [edi + 0x40]
mov ecx, esi
push eax
call fcn.00424590
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x424320
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test edx, edx
jne 0x424327
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
not ecx
cmp esi, 8
jb 0x4243e7
push edi
mov edi, esi
shr edi, 3
nop dword [eax]
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bdf50]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bdf50]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bdf50]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bdf50]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bdf50]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bdf50]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bdf50]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bdf50]
sub edi, 1
jne 0x424340
pop edi
test esi, esi
je 0x42440a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bdf50]
sub esi, 1
jne 0x4243f0
not ecx
mov eax, ecx
pop esi
ret

Function at 0x424410
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x4bdf50]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bdf50]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x424460
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebx
mov ebx, ecx
movsx ecx, dl
push esi
push edi
mov edx, dword [ebx]
mov eax, edx
xor eax, ecx
mov esi, dword [ebx + 8]
movzx eax, al
mov edi, esi
shr edx, 8
and edi, 0xfffd
or edi, 2
mov eax, dword [eax*4 + 0x4bdf50]
xor eax, edx
mov dword [ebx], eax
movzx eax, al
add eax, dword [ebx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [ebx + 4], eax
shr eax, 0x18
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x4bdf50]
mov eax, edi
xor eax, 1
mov dword [ebx + 8], esi
imul eax, edi
pop edi
pop esi
pop ebx
shr eax, 8
xor al, cl
ret