joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ba30
Capabilities:
Log keystrokes

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, ecx
movzx ecx, word [edi]
test cx, cx
je 0x41baf4
cmp word [edi + 2], 0
jne 0x41ba5c
push 1
push dword [esp + 0x20]
call fcn.0041bb00
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret
call fcn.00413080
cmp ax, 0x56
jne 0x41baa0
mov cx, word [edi + 2]
call fcn.00413080
cmp ax, 0x4b
jne 0x41baa0
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 + 0x4e3170]
call ebx
add esp, 8
test eax, eax
je 0x41bae8
inc esi
cmp esi, 0x6d
jl 0x41bab0
cmp byte [esp + 0x14], 0
jne 0x41baf4
mov ecx, edi
call fcn.0041b940
movzx ecx, ax
test cx, cx
je 0x41baf4
pop edi
pop esi
pop ebx
add esp, 4
jmp fcn.0041c3c0
mov al, byte [esi*8 + 0x4e3174]
pop edi
pop esi
pop ebx
pop ecx
ret
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret

Function at 0x41bb00
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, edx
cmp di, 0xa
jne 0x41bb11
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 0x41bb6d
cmp bl, 0xff
jne 0x41bb6d
cmp byte [esp + 0x14], 0
je 0x41bb72
movzx eax, di
test eax, 0xffffff80
jne 0x41bb72
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 0x41bb72
mov ecx, edi
call fcn.00413080
mov edx, 1
mov ecx, edi
mov bl, al
call fcn.004062e0
test eax, eax
setne cl
test cl, 0x38
je 0x41bb78
pop ebx
pop edi
xor al, al
pop esi
ret
test esi, esi
je 0x41bbb6
mov al, cl
and al, 6
cmp al, 6
jne 0x41bb89
or byte [esi], 8
jmp 0x41bba7
test cl, 2
je 0x41bb98
mov al, byte [esi]
test al, 3
jne 0x41bb98
or al, 1
mov byte [esi], al
test cl, 4
je 0x41bba7
mov al, byte [esi]
test al, 0xc
jne 0x41bba7
or al, 4
mov byte [esi], al
test cl, 1
je 0x41bbb6
mov al, byte [esi]
test al, 0x30
jne 0x41bbb6
or al, 0x10
mov byte [esi], al
mov al, bl
pop ebx
pop edi
pop esi
ret
Function at 0x41c3c0
Capabilities:
Log keystrokes

Disassembly:
push ebx
mov ebx, ecx
movzx edx, bx
mov eax, edx
cmp edx, 0x11c
ja 0x41c438
je 0x41c434
sub eax, 0x1d
cmp eax, 0x36
ja case.0x41c449.286
movzx eax, byte [eax + 0x41c4ec]
jmp dword [eax*4 + 0x41c4a0]
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.0x41c449.286
movzx eax, byte [eax + 0x41c54c]
jmp dword [eax*4 + 0x41c524]
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 0x41c491
movzx eax, dl
push 1
or eax, 0xe000
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
test eax, eax
jne 0x41c49d
push 1
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
pop ebx
ret
Function at 0x41e270
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 8]
not ecx
cmp esi, 8
jb 0x41e32d
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 + 0x4bce40]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bce40]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bce40]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bce40]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bce40]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bce40]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bce40]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bce40]
sub edi, 1
jne 0x41e286
pop edi
test esi, esi
je 0x41e34b
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bce40]
sub esi, 1
jne 0x41e331
not ecx
mov eax, ecx
pop esi
ret

Function at 0x41e750
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
test byte [esi], 1
jne 0x41e783
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 0x41e77c
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 0x41e7a8
ja 0x41e7a4
cmp ebp, ecx
jbe 0x41e7a8
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 0x41fb80
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 0x41fbb6
cmp byte [ecx + 1], 0x3a
jne 0x41fbb6
mov al, byte [ecx + 2]
add ecx, 2
mov dl, al
cmp al, 0x5c
jne 0x41fbbf
mov dl, byte [ecx + 1]
lea esi, [ecx + 1]
cmovne esi, ecx
test dl, dl
je 0x41fc18
mov al, byte [esi]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, al
je 0x41fbec
nop dword [eax + eax]
cmp al, 0x5c
je 0x41fc25
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x41fbe0
xor esi, esi
test ebx, ebx
je 0x41fc18
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
call ebp
test eax, eax
jne 0x41fc0a
call edi
cmp eax, 0xb7
jne 0x41fc2a
test esi, esi
je 0x41fc18
mov byte [esi], 0x5c
inc esi
mov al, byte [esi]
test al, al
jne 0x41fbe0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
mov byte [esi], 0
jmp 0x41fbf2
test esi, esi
je 0x41fc31
mov byte [esi], 0x5c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret

Function at 0x41fc40
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 0x41fc7d
cmp word [ecx + 2], 0x3a
jne 0x41fc7d
movzx eax, word [ecx + 4]
add ecx, 4
movzx edi, ax
movzx edx, ax
cmp ax, 0x5c
jne 0x41fc8d
movzx edx, word [ecx + 2]
cmp edi, 0x5c
lea esi, [ecx + 2]
cmovne esi, ecx
test dx, dx
je 0x41fd01
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 0x41fcca
cmp ax, 0x5c
je 0x41fd0e
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x41fcb8
xor esi, esi
test ebx, ebx
je 0x41fd01
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
call ebp
test eax, eax
jne 0x41fce8
call edi
cmp eax, 0xb7
jne 0x41fd15
test esi, esi
je 0x41fd01
mov eax, 0x5c
mov word [esi], ax
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x41fcb0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
xor eax, eax
mov word [esi], ax
jmp 0x41fcd0
test esi, esi
je 0x41fd21
mov eax, 0x5c
mov word [esi], ax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x41fd30
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 0x41ff41
mov eax, dword [esi + 0x30]
and eax, dword [esi + 0x34]
cmp eax, 0xffffffff
je 0x41ff41
mov ebx, dword [ebp + 0xc]
mov dword [esi + 8], 0
test bl, 1
je 0x41fde2
cmp word [esi + 0x70], 0
mov ebx, dword [ebp + 8]
jne 0x41fd93
mov edx, ebx
mov ecx, esi
call fcn.0041ef20
cmp dword [esi + 8], 0
jne 0x41ff30
mov eax, 1
mov word [esi + 0x70], ax
push dword [ebx + 0x2c]
mov edx, edi
mov ecx, esi
push dword [ebx + 0x28]
call fcn.0041f220
add esp, 8
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], edx
cmp dword [esi + 8], 0
jne 0x41fdcb
mov eax, dword [esi + 0xe8]
or eax, dword [esi + 0xec]
je 0x41fdcb
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.0041edb0
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 0x41fe18
test bl, 2
je 0x41fe0f
mov edx, 1
mov ecx, edi
test ebx, ebx
jns 0x41fe02
call fcn.0041fc40
jmp 0x41fe07
call fcn.0041fb80
test eax, eax
je 0x41ff29
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 4
je 0x41fe65
xor edx, edx
mov ecx, edi
test ebx, ebx
jns 0x41fe2c
call fcn.0041fc40
jmp 0x41fe31
call fcn.0041fb80
test eax, eax
je 0x41ff29
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 0x41fe5a
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x41fe60
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov eax, dword [ebp + 8]
cmp edi, 0xffffffff
je 0x41ff29
mov edx, eax
mov ecx, esi
call fcn.0041ef20
cmp dword [esi + 8], 0
jne 0x41ff0c
cmp dword [esi + 0x4c], 0
jne 0x41fea2
push 0x4000
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 0x4c], eax
test eax, eax
jne 0x41fea2
mov dword [esi + 8], 2
cmp dword [esi + 8], 0
jne 0x41ff0c
mov edx, dword [esi + 0x4c]
mov ecx, esi
push 0
push 0x4000
call fcn.0041f220
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x41feed
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 0x41fee6
cmp dword [esp + 0xc], ebx
jne 0x41fee6
cmp dword [esi + 8], 0
je 0x41fea8
jmp 0x41feed
mov dword [esi + 8], 3
cmp dword [esi + 8], 0
mov ebx, dword [ebp + 0xc]
jne 0x41ff0c
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 0x41ff30
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0041edb0
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.0041edb0
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 0x4224d0
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 0x42252b
mov edx, 0x8b1f
call fcn.00423010
mov edx, 0x808
mov ecx, esi
call fcn.00423010
mov edx, dword [edi + 4]
mov ecx, esi
call fcn.00423010
movzx edx, word [edi + 6]
mov ecx, esi
call fcn.00423010
mov edx, 0xb02
mov ecx, esi
call fcn.00423010
mov eax, dword [edi + 0x20]
lea edx, [edi + 0x48]
inc eax
mov ecx, esi
push eax
call fcn.004230d0
add esp, 4
pop edi
pop esi
pop ebx
ret
mov edx, 0x4034b50
call fcn.00423010
mov edx, 0x403
mov ecx, esi
call fcn.00423010
mov edx, 0x2d
mov ecx, esi
call fcn.00423010
movzx edx, word [edi + 0x30]
mov ecx, esi
call fcn.00423010
movzx edx, word [edi + 2]
mov ecx, esi
call fcn.00423010
mov edx, dword [edi + 4]
mov ecx, esi
call fcn.00423010
movzx edx, word [edi + 6]
mov ecx, esi
call fcn.00423010
mov edx, dword [edi + 8]
mov ecx, esi
call fcn.00423010
movzx edx, word [edi + 0xa]
mov ecx, esi
call fcn.00423010
or edx, 0xffffffff
mov ecx, esi
call fcn.00423010
or edx, 0xffffffff
mov ecx, esi
call fcn.00423010
or edx, 0xffffffff
mov ecx, esi
call fcn.00423010
or edx, 0xffffffff
mov ecx, esi
call fcn.00423010
mov edx, dword [edi + 0x20]
mov ecx, esi
call fcn.00423010
mov edx, dword [edi + 0x24]
mov ecx, esi
add edx, 0x14
call fcn.00423010
push dword [edi + 0x20]
lea edx, [edi + 0x48]
mov ecx, esi
call fcn.004230d0
add esp, 4
mov edx, 1
mov ecx, esi
call fcn.00423010
mov edx, 0x10
mov ecx, esi
call fcn.00423010
mov edx, dword [edi + 0x18]
mov ecx, esi
call fcn.00423010
mov edx, dword [edi + 0x18]
mov ecx, esi
mov eax, dword [edi + 0x1c]
shrd edx, eax, 0x10
call fcn.00423010
mov eax, dword [edi + 0x18]
mov cl, 0x20
mov edx, dword [edi + 0x1c]
call fcn.004b75e0
mov edx, eax
mov ecx, esi
call fcn.00423010
movzx edx, word [edi + 0x1e]
mov ecx, esi
call fcn.00423010
mov edx, dword [edi + 0x10]
mov ecx, esi
call fcn.00423010
mov edx, dword [edi + 0x10]
mov ecx, esi
mov eax, dword [edi + 0x14]
shrd edx, eax, 0x10
call fcn.00423010
mov eax, dword [edi + 0x10]
mov cl, 0x20
mov edx, dword [edi + 0x14]
call fcn.004b75e0
mov edx, eax
mov ecx, esi
call fcn.00423010
movzx edx, word [edi + 0x16]
mov ecx, esi
call fcn.00423010
mov eax, dword [edi + 0x24]
test eax, eax
je 0x422681
mov edx, dword [edi + 0x40]
mov ecx, esi
push eax
call fcn.004230d0
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x422e60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test edx, edx
jne 0x422e67
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
not ecx
cmp esi, 8
jb 0x422f27
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 + 0x4bce40]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bce40]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bce40]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bce40]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bce40]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bce40]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bce40]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bce40]
sub edi, 1
jne 0x422e80
pop edi
test esi, esi
je 0x422f4a
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 + 0x4bce40]
sub esi, 1
jne 0x422f30
not ecx
mov eax, ecx
pop esi
ret

Function at 0x422f50
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 + 0x4bce40]
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 + 0x4bce40]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x422fa0
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 + 0x4bce40]
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 + 0x4bce40]
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
Function at 0x423010
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push edi
mov edi, ecx
cmp dword [edi + 0x20], 0
jne 0x4230ca
mov eax, dword [edi]
push ebx
mov ebx, edx
mov byte [esp + 8], dl
shr ebx, 8
mov byte [esp + 9], bl
test al, 0x10
je 0x423052
push esi
lea ecx, [edi + 0x34]
call fcn.00422fa0
mov dl, bl
mov byte [esp + 0xc], al
lea ecx, [edi + 0x34]
call fcn.00422fa0
mov byte [esp + 0xd], al
mov eax, dword [edi]
pop esi
pop ebx
test al, 1
je 0x423092
mov edx, dword [edi + 0x28]
mov ecx, edx
mov eax, dword [edi + 0x2c]
add ecx, 2
adc eax, 0
test eax, eax
jb 0x42307c
ja 0x423070
cmp ecx, dword [edi + 0x30]
jb 0x42307c
mov dword [edi + 0x20], 0xb
pop edi
add esp, 8
ret
mov ecx, dword [edi + 4]
mov ax, word [esp + 4]
mov word [edx + ecx], ax
add dword [edi + 0x28], 2
adc dword [edi + 0x2c], 0
jmp 0x4230bb
push 0
lea eax, [esp + 0xc]
push eax
push 2
lea eax, [esp + 0x10]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4230b4
cmp dword [esp + 8], 2
je 0x4230bb
mov dword [edi + 0x20], 3
test dword [edi], 0x40000000
je 0x4230ca
mov dword [edi + 0x20], 0x14
pop edi
add esp, 8
ret

Function at 0x4230d0
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
push edi
mov edi, edx
test ebx, ebx
je 0x4231de
cmp dword [esi + 0x20], 0
jne 0x4231de
test byte [esi], 0x10
je 0x42316d
mov ecx, dword [esi + 0x40]
mov eax, ecx
test ecx, ecx
je 0x423110
cmp dword [esi + 0x44], ebx
jae 0x423110
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 0x40], 0
xor eax, eax
test eax, eax
jne 0x423136
lea eax, [ebx + ebx]
push eax
push 0
mov dword [esi + 0x44], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 0x40], eax
test eax, eax
jne 0x423136
mov dword [esi + 0x20], 2
jmp 0x4231cf
push ebx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor edi, edi
test ebx, ebx
je 0x42316a
push ebp
nop dword [eax + eax]
mov eax, dword [esi + 0x40]
lea ecx, [esi + 0x34]
mov dl, byte [eax + edi]
call fcn.00422fa0
mov ecx, dword [esi + 0x40]
mov byte [edi + ecx], al
inc edi
cmp edi, ebx
jb 0x423150
pop ebp
mov edi, dword [esi + 0x40]
test byte [esi], 1
je 0x4231ac
mov edx, dword [esi + 0x28]
mov ecx, edx
mov eax, dword [esi + 0x2c]
add ecx, ebx
adc eax, 0
test eax, eax
jb 0x423193
ja 0x42318a
cmp ecx, dword [esi + 0x30]
jb 0x423193
mov dword [esi + 0x20], 0xb
jmp 0x4231cf
mov eax, dword [esi + 4]
push ebx
add eax, edx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [esi + 0x28], ebx
adc dword [esi + 0x2c], 0
jmp 0x4231cf
push 0
lea eax, [esp + 0x14]
push eax
push ebx
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4231c8
cmp dword [esp + 0x10], ebx
je 0x4231cf
mov dword [esi + 0x20], 3
test dword [esi], 0x40000000
je 0x4231de
mov dword [esi + 0x20], 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x423320
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov eax, dword [esi]
test eax, 0x40000000
je 0x42333f
pop edi
mov dword [esi + 0x20], 0x14
xor eax, eax
pop esi
pop ebx
pop ecx
ret
test al, al
jns 0x42337c
mov ecx, dword [esi + 0x6c]
mov edi, dword [esi + 0x68]
cmp ecx, edi
jae 0x42339c
mov eax, dword [esp + 0x14]
sub edi, ecx
mov dword [esp + 0xc], edi
push ebp
mov ebp, edi
cmp edi, eax
jbe 0x423366
mov edi, eax
mov ebp, eax
mov dword [esp + 0x10], edi
mov eax, dword [esi + 0x64]
push edi
add eax, ecx
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [esi + 0x6c], ebp
pop ebp
jmp 0x4233a7
push 0
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x1c]
push ebx
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4233a3
mov dword [esi + 0x20], 7
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov edi, dword [esp + 0xc]
add dword [esi + 0x58], edi
mov edx, ebx
mov ecx, dword [esi + 0x60]
adc dword [esi + 0x5c], 0
push edi
call fcn.00422e60
add esp, 4
mov dword [esi + 0x60], eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4254e0
Capabilities:
Accept command line arguments
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, ecx
mov dword [ebp - 4], eax
push esi
mov esi, edx
push edi
test eax, eax
je 0x425665
cmp dword [eax + 0x18], 0
jne 0x425665
cmp dword [eax + 0x3c], 0
je 0x425665
cmp dword [eax + 0x1c], 0
je 0x425665
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, eax
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x425520
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
lea ecx, [eax + 8]
cmp eax, ecx
sbb eax, eax
test ecx, eax
je 0x4255d2
mov ecx, ebx
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425550
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
lea ecx, [eax + 8]
cmp eax, ecx
sbb edx, edx
and edx, ecx
mov ecx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425574
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
lea ecx, [eax + 8]
cmp edx, 0x400
ja 0x4255b1
cmp eax, ecx
sbb eax, eax
and eax, ecx
call fcn.004b7430
mov edi, esp
test edi, edi
je 0x4255d4
mov dword [edi], 0xcccc
add edi, 8
jmp 0x4255d4
cmp eax, ecx
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x4255d4
mov dword [edi], 0xdddd
add edi, 8
jmp 0x4255d4
xor edi, edi
mov edx, edi
mov ecx, ebx
sub edx, ebx
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4255e0
mov ecx, ebx
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x4255f4
mov eax, dword [ebp - 4]
push 0
push 0
push 0
push dword [eax + 0x3c]
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov esi, eax
push 0x64
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, edi
sub ebx, edi
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ebx + ecx - 2], ax
test ax, ax
jne 0x425630
test edi, edi
je 0x425659
add edi, 0xfffffff8
cmp dword [edi], 0xdddd
jne 0x425659
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, esi
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret