joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

Function at 0x4098ac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x4098bb
pop dword [ebp - 0x48]
mov eax, 0xa30416c0
sub eax, 0xa2c37e05
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x3aa85
push 0
mov eax, 0xbb1c12a3
sub eax, 0xbadb3183
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x4cea
mov esi, eax
mov edx, 0x417800
add edx, dword [ebp - 0x48]
mov edi, 0x31baaf96
sub edi, 0x72106712
mov dword [ebp - 0x18], 0xcaa33c3d
mov ebx, dword [edx]
xor dword [ebp - 8], 0xd1bffaf3
add ebx, edi
xor dword [ebp - 0xc], 0xda2e3466
mov dword [esi], ebx
add dword [ebp - 0x1c], 0x99567cdb
add esi, 0xcdfea6e2
sub esi, 0xcdfea6de
add edx, 4
loop 0x40990e
add eax, 0x1267b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x368ef5e9
add ecx, 0xc9b10a17
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x4149f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esp + 0x24], edx
push edi
mov edi, 1
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0xc]
sub ecx, dword [eax]
sub ecx, 0x10
sar ecx, 4
sub ecx, ebx
je 0x414ae5
dec ecx
mov edx, ebx
mov dword [esp + 0x3c], ecx
mov ecx, esi
call fcn.00401360
mov dword [esp + 0x30], eax
mov dl, byte [eax + 8]
lea eax, [esi + 0x10]
test dl, 0xf
jne 0x414a50
mov ecx, dword [eax]
add ecx, 0x38
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x30], ecx
je 0x414af9
and dl, 0xf
mov dword [esp + 0x2c], eax
cmp dl, 3
jne 0x414af9
mov edx, ebx
mov ecx, esi
call fcn.00401360
mov edx, ebx
mov ecx, esi
cmp byte [eax + 8], 3
jne 0x414a86
push 0
call fcn.00401740
add esp, 4
push edx
push eax
push str._lld
jmp 0x414abe
xorps xmm0, xmm0
movsd qword [esp + 0x30], xmm0
call fcn.00401360
cmp byte [eax + 8], 0x13
jne 0x414aa0
movsd xmm0, qword [eax]
jmp 0x414ab1
lea edx, [esp + 0x30]
mov ecx, eax
call fcn.0042f200
movsd xmm0, qword [esp + 0x30]
sub esp, 8
movsd qword [esp], xmm0
push str._.14g
push dword [esp + 0x34]
call fcn.004025a0
add esp, 0x10
test edi, edi
je 0x414ad6
test eax, eax
jg 0x414b7c
xor edi, edi
mov ecx, dword [esp + 0x3c]
inc ebx
test ecx, ecx
jne 0x414a20
test edi, edi
je 0x414b86
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, ebx
mov ecx, esi
call fcn.00401360
mov cl, byte [eax + 8]
and cl, 0xf
cmp cl, 4
je 0x414b3b
cmp cl, 3
jne 0x414bf9
mov edx, eax
mov ecx, esi
call fcn.0041b8a0
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
cmp dword [eax + 0xc], 0
jle 0x414b32
mov ecx, esi
call fcn.00412a50
mov edx, ebx
mov ecx, esi
call fcn.00401360
mov eax, dword [eax]
cmp byte [eax + 4], 4
jne 0x414b49
movzx ecx, byte [eax + 7]
jmp 0x414b4c
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x2c], ecx
add eax, 0x10
je 0x414bf9
test edi, edi
je 0x414ad6
push dword [esp + 0x28]
push ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, dword [esp + 0x2c]
jne 0x414ad6
mov edi, 1
jmp 0x414ad8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edi, dword [eax]
mov eax, dword [esi + 0xc]
push edi
mov byte [eax + 8], 0
add dword [esi + 0xc], 0x10
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
test eax, eax
jne 0x414bb0
mov eax, dword [esi + 0xc]
mov byte [eax + 8], 0
jmp 0x414bc6
mov edx, eax
mov ecx, esi
call fcn.00424040
mov ecx, dword [esi + 0xc]
mov dword [ecx], eax
mov al, byte [eax + 4]
or al, 0x40
mov byte [ecx + 8], al
mov ecx, dword [esi + 0x10]
add dword [esi + 0xc], 0x10
cmp dword [ecx + 0xc], 0
jle 0x414bda
mov ecx, esi
call fcn.00412a50
mov ecx, dword [esi + 0xc]
mov eax, edi
cdq
pop edi
mov dword [ecx], eax
mov eax, 3
mov dword [ecx + 4], edx
mov byte [ecx + 8], 3
add dword [esi + 0xc], 0x10
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
mov edx, ebx
mov ecx, esi
call fcn.00402f50
int3
Function at 0x41b2e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov dword [ebp - 0x10], edx
mov esi, ecx
call dword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll_localeconv]
xor ecx, ecx
xor edi, edi
mov dword [ebp - 0xc], ecx
xorps xmm1, xmm1
mov eax, dword [eax]
movsx eax, byte [eax]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [eax], esi
mov cl, byte [esi]
movzx eax, cl
test byte [eax + 0x436421], 8
je 0x41b340
mov cl, byte [esi + 1]
inc esi
movzx eax, cl
test byte [eax + 0x436421], 8
jne 0x41b330
lea edx, [esi + 1]
cmp cl, 0x2d
jne 0x41b351
mov dword [ebp - 0x18], 1
jmp 0x41b35a
cmp cl, 0x2b
mov dword [ebp - 0x18], edi
cmovne edx, esi
cmp byte [edx], 0x30
jne 0x41b4a1
mov al, byte [edx + 1]
cmp al, 0x78
je 0x41b372
cmp al, 0x58
jne 0x41b4a1
movsd xmm2, qword [0x4391f8]
add edx, 2
xor esi, esi
nop
mov al, byte [edx]
movsx ecx, al
mov dword [ebp - 0x14], edx
mov byte [ebp - 1], al
cmp ecx, dword [ebp - 0x1c]
jne 0x41b39c
test esi, esi
jne 0x41b3f2
mov esi, 1
inc edx
jmp 0x41b380
movzx eax, al
test byte [eax + 0x436421], 0x10
je 0x41b3f2
mov eax, dword [ebp - 8]
test eax, eax
jne 0x41b3ba
cmp byte [ebp - 1], 0x30
jne 0x41b3ba
inc dword [ebp - 0xc]
jmp 0x41b3ea
inc eax
mov dword [ebp - 8], eax
cmp eax, 0x1e
jg 0x41b3e9
test byte [ecx + 0x436421], 2
je 0x41b3d1
add ecx, 0xffffffd0
jmp 0x41b3d7
or ecx, 0x20
sub ecx, 0x57
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm0
jmp 0x41b3ea
inc edi
test esi, esi
je 0x41b3ef
dec edi
inc edx
jmp 0x41b380
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
je 0x41b4a1
mov eax, dword [ebp - 0x10]
shl edi, 2
mov dword [eax], edx
mov al, byte [edx]
cmp al, 0x70
je 0x41b410
cmp al, 0x50
jne 0x41b471
mov al, byte [edx + 1]
inc edx
xor ecx, ecx
cmp al, 0x2d
jne 0x41b425
mov edx, dword [ebp - 0x14]
lea esi, [ecx + 1]
add edx, 2
jmp 0x41b431
cmp al, 0x2b
jne 0x41b42f
mov edx, dword [ebp - 0x14]
add edx, 2
xor esi, esi
mov al, byte [edx]
mov byte [ebp - 1], al
movzx eax, al
test byte [eax + 0x436421], 2
je 0x41b4a1
movsx eax, byte [ebp - 1]
lea ecx, [ecx + ecx*4]
inc edx
lea ecx, [ecx - 0x18]
lea ecx, [eax + ecx*2]
mov al, byte [edx]
mov byte [ebp - 1], al
movzx eax, al
test byte [eax + 0x436421], 2
jne 0x41b442
mov eax, ecx
neg eax
test esi, esi
cmove eax, ecx
add edi, eax
mov eax, dword [ebp - 0x10]
mov dword [eax], edx
cmp dword [ebp - 0x18], 0
je 0x41b47e
xorps xmm1, xmmword [0x439250]
push edi
sub esp, 8
movsd qword [esp], xmm1
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_ldexp]
fstp qword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x20]
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
pop edi
xorps xmm0, xmm0
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x41b6f0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xec
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
mov ebx, edx
lea edx, [esp + 8]
push esi
push edi
mov dword [esp + 0x1c], ebx
mov edi, ecx
call fcn.0041b540
mov esi, eax
test esi, esi
je 0x41b750
mov ecx, dword [esp + 0x10]
sub esi, edi
mov edx, dword [esp + 0x14]
mov al, 3
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov byte [ebx + 8], al
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.00434cb0
mov esp, ebp
pop ebp
ret
push str..xXnN
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
add esp, 8
test eax, eax
je 0x41b785
movzx ebx, byte [eax]
or ebx, 0x20
cmp ebx, 0x6e
jne 0x41b787
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.00434cb0
mov esp, ebp
pop ebp
ret
xor ebx, ebx
push ebx
lea edx, [esp + 0x14]
mov ecx, edi
call fcn.0041b4b0
mov esi, eax
add esp, 4
test esi, esi
jne 0x41b81a
push 0x2e
push edi
call dword [sym.imp.VCRUNTIME140.dll_strchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x41b76e
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41b7b3
sub ecx, edx
cmp ecx, 0xc8
ja 0x41b76e
lea edx, [esp + 0x20]
mov ecx, edi
sub edx, edi
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x41b7d0
call dword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll_localeconv]
sub esi, edi
lea edx, [esp + 0x10]
push ebx
lea ecx, [esp + 0x24]
mov eax, dword [eax]
mov al, byte [eax]
mov byte [esp + esi + 0x24], al
call fcn.0041b4b0
mov esi, eax
add esp, 4
test esi, esi
je 0x41b76e
mov eax, edi
lea ecx, [esp + 0x20]
sub eax, ecx
add esi, eax
test esi, esi
je 0x41b76e
mov ebx, dword [esp + 0x1c]
sub esi, edi
movsd xmm0, qword [esp + 0x10]
mov al, 0x13
mov ecx, dword [esp + 0xf4]
pop edi
movsd qword [ebx], xmm0
mov byte [ebx + 8], al
lea eax, [esi + 1]
pop esi
pop ebx
xor ecx, esp
call fcn.00434cb0
mov esp, ebp
pop ebp
ret
Function at 0x420620
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
mov eax, dword [edi + 8]
sub eax, 9
cmp eax, 6
ja 0x4207ee
lea edx, [edi + 8]
call fcn.0041d4a0
cmp dword [esi + 0x10], 0x2c
lea ecx, [esi + 0x18]
jne 0x420692
cmp dword [esi + 0x20], 0x120
mov eax, dword [esi + 4]
mov dword [esi + 8], eax
je 0x42067c
movups xmm0, xmmword [esi + 0x20]
mov dword [esi + 0x20], 0x120
mov eax, 1
movups xmmword [esi + 0x10], xmm0
jmp 0x420694
mov edx, ecx
mov ecx, esi
call fcn.00416a50
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov eax, 1
jmp 0x420694
xor eax, eax
test eax, eax
je 0x420701
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x44], edi
mov ecx, esi
call fcn.0041f980
mov eax, dword [ebp - 0x3c]
cmp eax, 0xc
jl 0x4206b2
cmp eax, 0xf
jle 0x4206c2
lea eax, [ebp - 0x3c]
mov edx, edi
push eax
mov ecx, esi
call fcn.004204d0
add esp, 4
mov ecx, dword [esi + 0x34]
mov eax, dword [ecx + 0x60]
inc eax
mov dword [ecx + 0x60], eax
movzx eax, ax
cmp eax, 0xc8
jb 0x4206e7
je 0x4207f8
cmp eax, 0xdc
jae 0x420803
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x44]
inc eax
mov ecx, esi
push eax
call fcn.00420620
mov eax, dword [esi + 0x34]
add esp, 4
dec dword [eax + 0x60]
jmp 0x420757
cmp dword [esi + 0x10], 0x3d
jne 0x42080d
cmp dword [esi + 0x20], 0x120
mov eax, dword [esi + 4]
mov dword [esi + 8], eax
je 0x42072b
movups xmm0, xmmword [esi + 0x20]
mov dword [esi + 0x20], 0x120
movups xmmword [esi + 0x10], xmm0
jmp 0x420737
mov edx, ecx
mov ecx, esi
call fcn.00416a50
mov dword [esi + 0x10], eax
lea edx, [ebp - 0x24]
mov ecx, esi
call fcn.0041f640
mov edx, dword [ebp + 8]
cmp eax, edx
je 0x420797
lea ecx, [ebp - 0x24]
push ecx
push eax
mov ecx, esi
call fcn.0041da00
add esp, 8
mov ecx, dword [esi + 0x30]
lea edx, [edi + 8]
movzx eax, byte [ecx + 0x34]
dec eax
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x24], 8
push eax
call fcn.00408a10
mov ecx, dword [ebp - 8]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00434cb0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x24]
mov ecx, dword [esi + 0x30]
cmp eax, 0x12
jne 0x4207c9
mov dword [ebp - 0x24], 8
lea edx, [edi + 8]
mov eax, dword [ecx]
mov ecx, dword [eax + 0x34]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [esi + 0x30]
shr eax, 7
movzx eax, al
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
jmp 0x42077e
cmp eax, 0x13
jne 0x4207e2
mov eax, dword [ecx]
mov ecx, dword [eax + 0x34]
mov eax, dword [ebp - 0x1c]
mov byte [ecx + eax*4 + 3], 2
mov dword [ebp - 0x24], 0x11
mov ecx, dword [esi + 0x30]
lea eax, [ebp - 0x24]
push eax
lea edx, [edi + 8]
jmp 0x42077e
mov edx, str.syntax_error
call fcn.004156e0
push str.C_stack_overflow
push ecx
call fcn.0040df50
mov edx, 5
call fcn.0040e220
mov edx, 0x3d
mov ecx, esi
call fcn.0041d380
int3
Function at 0x423a50
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x360
push 8
push 0
push eax
mov dword [esp + 0x24], eax
call edi
add esp, 0x10
test eax, eax
jne 0x423a96
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00434cb0
mov esp, ebp
pop ebp
ret
lea ebx, [eax + 4]
mov byte [eax + 0xc4], 8
lea esi, [eax + 0x78]
mov word [ebx + 4], 0x808
xor eax, eax
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x60], eax
add dword [ebx + 0x60], 0x10000
mov word [ebx + 8], ax
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x2c], ebx
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x64], eax
mov dword [ebx], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov word [ebx + 6], 0x100
mov dword [esi + 0x58], ebx
mov dword [esi + 0xa4], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov ebx, 0xc
push 0
mov dword [esi], edi
mov dword [esi + 0x2dc], 0
mov dword [esi + 0x2e0], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], fcn.00423a50
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov edi, eax
add esp, 4
xor edi, ebx
nop
movzx edx, byte [esp + ebx + 0x17]
mov ecx, edi
shl ecx, 5
mov eax, edi
add edx, ecx
shr eax, 2
add edx, eax
xor edi, edx
sub ebx, 1
jne 0x423b40
mov dword [esi + 0x1c], ebx
mov edx, 0x423680
mov dword [esi + 0x20], ebx
mov dword [esi + 0x18], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0xa0], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x48], edi
mov dword [esi + 0x52], 0x19320002
mov dword [esi + 0x4d], 0x14000008
mov dword [esi + 8], 0x360
mov byte [esi + 0x40], 3
mov byte [esi + 0x56], 0xd
mov byte [esi + 0x51], 0x19
mov dword [esi + 0x110], ebx
mov dword [esi + 0x114], ebx
mov dword [esi + 0x118], ebx
mov dword [esi + 0x11c], ebx
mov dword [esi + 0x120], ebx
mov dword [esi + 0x124], ebx
mov dword [esi + 0x128], ebx
mov dword [esi + 0x12c], ebx
mov dword [esi + 0x130], ebx
push ebx
mov ebx, dword [esp + 0x14]
mov ecx, ebx
call fcn.0040e2c0
add esp, 4
test eax, eax
je 0x423c3e
mov ecx, ebx
call fcn.004238e0
xor ebx, ebx
mov ecx, dword [esp + 0x24]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00434cb0
mov esp, ebp
pop ebp
ret
Function at 0x423e20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov eax, ecx
mov dword [ebp - 8], edx
mov edx, dword [ebp + 8]
push esi
push edi
mov edi, dword [eax + 0x10]
mov esi, edx
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], edi
mov ebx, dword [edi + 0x48]
xor ebx, edx
test edx, edx
je 0x423e6d
mov edx, dword [ebp - 8]
nop dword [eax + eax]
movzx ecx, byte [edx + esi - 1]
mov eax, ebx
shl eax, 5
add ecx, eax
mov eax, ebx
shr eax, 2
add ecx, eax
xor ebx, ecx
sub esi, 1
jne 0x423e50
mov edx, dword [ebp + 8]
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
dec ecx
and ecx, ebx
mov edi, dword [eax + ecx*4]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x10], eax
test edi, edi
je 0x423eed
movzx eax, byte [edi + 7]
cmp edx, eax
jne 0x423ee6
mov esi, dword [ebp + 8]
lea edx, [edi + 0x10]
mov ecx, dword [ebp - 8]
sub esi, 4
jb 0x423eb1
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x423eb6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x423ea0
cmp esi, 0xfffffffc
je 0x423f1d
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x423ee3
cmp esi, 0xfffffffd
je 0x423f1d
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x423ee3
cmp esi, 0xfffffffe
je 0x423f1d
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x423ee3
cmp esi, 0xffffffff
je 0x423f1d
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x423f1d
mov edx, dword [ebp + 8]
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x423e83
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov eax, dword [edi + 0x1c]
cmp eax, dword [edi + 0x20]
jl 0x423f5e
cmp eax, 0x7fffffff
jne 0x423f3b
mov edx, 1
mov ecx, esi
call fcn.00412c90
cmp dword [edi + 0x1c], 0x7fffffff
je 0x423fad
jmp 0x423f3b
mov ecx, dword [ebp - 0xc]
mov al, byte [edi + 5]
mov cl, byte [ecx + 0x4c]
xor cl, 0x18
test al, cl
je 0x423f32
xor al, 0x18
mov byte [edi + 5], al
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x20]
cmp edx, 0x1fffffff
jg 0x423f4f
add edx, edx
mov ecx, esi
call fcn.00423d50
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
dec ecx
and ecx, ebx
lea eax, [eax + ecx*4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov edx, 4
add eax, 0x11
mov ecx, esi
push 0
push eax
call fcn.00410860
mov esi, eax
mov dword [esi + 8], ebx
lea ecx, [esi + 0x10]
mov ebx, dword [ebp + 8]
push ebx
push dword [ebp - 8]
mov byte [esi + 6], 0
push ecx
mov byte [esi + ebx + 0x10], 0
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x10]
add esp, 0x14
mov byte [esi + 7], bl
mov eax, dword [ecx]
mov dword [esi + 0xc], eax
mov eax, esi
mov dword [ecx], esi
inc dword [edi + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 4
mov ecx, esi
call fcn.0040e220
int3
Function at 0x429f37
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
movzx eax, byte [edi + 8]
and eax, 0x3f
dec eax
cmp eax, 0x15
ja case.0x429e4f.2
movzx eax, byte [eax + 0x42a008]
jmp dword [eax*4 + 0x429fe8]
mov cl, byte [ebx + 7]
mov esi, 1
mov eax, dword [edi]
mov ebx, dword [ebx + 0x10]
shl esi, cl
dec esi
or esi, 1
cmp dword [edi + 4], 0
ja 0x429e92
jb 0x429e78
cmp eax, 0x7fffffff
ja 0x429e92
cdq
idiv esi
lea eax, [edx + edx*2]
lea eax, [ebx + eax*8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434cb0
mov esp, ebp
pop ebp
ret
mov eax, esi
cdq
push edx
push eax
push dword [edi + 4]
push dword [edi]
call fcn.00435c40
lea eax, [eax + eax*2]
lea eax, [ebx + eax*8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434cb0
mov esp, ebp
pop ebp
ret
movsd xmm0, qword [edi]
lea eax, [ebp - 8]
push eax
sub esp, 8
movsd qword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_frexp]
fmul qword [0x439218]
add esp, 0xc
fstp qword [ebp - 0x10]
movsd xmm0, qword [ebp - 0x10]
comisd xmm0, xmmword [0x439230]
jb 0x429f0a
movsd xmm1, qword [0x439220]
comisd xmm1, xmm0
jbe 0x429f0a
call fcn.00435cc0
add eax, dword [ebp - 8]
cmp eax, 0x7fffffff
jbe 0x429f0c
not eax
jmp 0x429f0c
xor eax, eax
mov cl, byte [ebx + 7]
mov esi, 1
shl esi, cl
dec esi
cdq
or esi, 1
idiv esi
jmp 0x429fcd
mov cl, byte [ebx + 7]
mov edx, 1
mov eax, dword [edi]
shl edx, cl
dec edx
and edx, dword [eax + 8]
jmp 0x429fcd
mov eax, dword [edi]
mov dword [ebp - 0xc], eax
cmp byte [eax + 6], 0
lea edi, [eax + 8]
mov dword [ebp - 8], edi
jne 0x429f80
mov esi, dword [eax + 0xc]
mov edx, dword [edi]
xor edx, esi
test esi, esi
je 0x429f7a
lea edi, [eax + 0xf]
add edi, esi
mov ecx, edx
lea edi, [edi - 1]
mov eax, edx
shl ecx, 5
shr eax, 2
add ecx, eax
movzx eax, byte [edi + 1]
add ecx, eax
xor edx, ecx
sub esi, 1
jne 0x429f58
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [edi], edx
mov byte [eax + 6], 1
mov cl, byte [ebx + 7]
mov eax, 1
shl eax, cl
dec eax
and eax, dword [edi]
lea ecx, [eax + eax*2]
jmp 0x429fd0
mov eax, dword [ebx + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434cb0
mov esp, ebp
pop ebp
ret
mov cl, byte [ebx + 7]
mov eax, 1
shl eax, cl
dec eax
and eax, 1
lea ecx, [eax + eax*2]
jmp 0x429fd0
mov cl, byte [ebx + 7]
mov esi, 1
mov eax, dword [edi]
xor edx, edx
shl esi, cl
dec esi
or esi, 1
div esi
lea ecx, [edx + edx*2]
mov eax, dword [ebx + 0x10]
pop edi
pop esi
pop ebx
lea eax, [eax + ecx*8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434cb0
mov esp, ebp
pop ebp
ret
Function at 0x4354af
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4354ee
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4354ee
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4354ee
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4354ee
cmp dword [ecx + 0x74], 0xe
jbe 0x4354ee
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret