joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x4035f7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00403e11
jmp 0x4036ac
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x403619
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x40361b
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x4036a0
jg 0x403630
test esi, esi
je 0x4036a0
test ecx, ecx
jl 0x403679
jg 0x40363a
test eax, eax
je 0x403679
cmp edi, ecx
jg 0x40364e
jl 0x403644
cmp esi, eax
jae 0x40364e
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.004269a0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x40367c
mov edx, dword [ebp + 8]
test edi, edi
jl 0x4036a0
jg 0x403686
test esi, esi
je 0x4036a0
cmp dword [ebx + 0x4c], 0
je 0x4036a0
push dword [ebx + 0x4c]
push esi
push 1
push edx
call fcn.0042c583
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4036b5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x4036dc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00403ed8
jmp 0x4037ab
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x4036fe
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x403700
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x40379f
jg 0x40371d
test esi, esi
je 0x40379f
test ecx, ecx
jl 0x40376a
jg 0x403727
test eax, eax
je 0x40376a
cmp ebx, ecx
jg 0x40373b
jl 0x403731
cmp esi, eax
jae 0x40373b
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.004269a0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x403771
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x40379f
jg 0x40377b
test esi, esi
je 0x40379f
cmp dword [edi + 0x4c], 0
je 0x40379f
mov ecx, edi
call fcn.00404488
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.0042ab67
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403a2d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x45a064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x403a53
xor eax, eax
jmp 0x403b18
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x403a7c
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x403a7c
dec dword [edx]
mov eax, ebx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x403b18
cmp dword [esi + 0x4c], 0
je 0x403b16
mov ecx, esi
call fcn.00404488
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x403aa9
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0042c8a1
cmp eax, edi
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x403b16
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x403b16
cmp eax, 1
jle 0x403ae5
cmp eax, 3
jne 0x403b16
push dword [esi + 0x4c]
movsx ecx, byte [ebp - 0x25]
push ecx
jmp 0x403a9b
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x30], eax
je 0x403b08
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.0042c583
add esp, 0x10
cmp dword [ebp - 0x30], eax
jne 0x403b16
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x34], eax
mov eax, ebx
jne 0x403b18
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f8e5
leave
ret 4

Function at 0x404510
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x45a064]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x404592
cmp byte [esi + 0x3d], 0
je 0x404592
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x404564
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x404568
sub eax, 1
je 0x40456c
dec eax
sub eax, 1
je 0x404592
xor al, al
jmp 0x404594
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x404589
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0042c583
add esp, 0x10
cmp edi, eax
jne 0x404564
cmp byte [esi + 0x3d], 0
sete al
jmp 0x404594
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040f8e5
leave
ret
Function at 0x406873
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
mov esi, ecx
xor cl, cl
push edi
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x406a0d
mov edx, 0x10000000
cmp eax, 0x7c
je 0x406a0d
cmp eax, 0x29
jne 0x4068b0
cmp dword [esi + 0x10], 0
jne 0x406a0d
cmp eax, eax
jne 0x4068b0
test dword [esi + 0x50], edx
je 0x406a13
cmp eax, 0x2e
jne 0x4068cb
push 5
lea ecx, [esi + 0x24]
call fcn.00406aed
mov ecx, esi
call fcn.0040684b
jmp 0x4069f7
cmp eax, 0x5c
jne 0x40691d
mov ecx, esi
call fcn.0040684b
test byte [esi + 0x50], 0x80
je 0x406911
mov al, byte [esi + 0x48]
cmp al, 0x62
jne 0x4068fa
push 4
lea ecx, [esi + 0x24]
call fcn.00406aed
mov ecx, esi
call fcn.0040684b
jmp 0x4069fe
cmp al, 0x42
jne 0x406911
push 4
lea ecx, [esi + 0x24]
call fcn.00406aed
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x4068ee
mov ecx, esi
call fcn.00407f7f
jmp 0x4069f7
cmp eax, 0x5b
jne 0x406980
mov ecx, esi
call fcn.0040684b
lea ecx, [esi + 0x24]
call fcn.00409561
mov eax, dword [esi + 0x4c]
cmp eax, 0x5e
jne 0x40694a
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.0040684b
mov eax, dword [esi + 0x4c]
test dword [esi + 0x50], 0x20000000
je 0x406968
cmp eax, 0x5d
jne 0x406968
push eax
lea ecx, [esi + 0x24]
call fcn.004095ab
mov ecx, esi
call fcn.0040684b
mov ecx, esi
call fcn.00409360
cmp dword [esi + 0x4c], 0x5d
je 0x4068bf
push 4
jmp 0x406a15
cmp eax, 0x28
jne 0x40699d
mov ecx, esi
call fcn.0040684b
mov ecx, esi
call fcn.00408060
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x406a13
jmp 0x4069ec
cmp eax, 0x5e
jne 0x4069a9
push 2
jmp 0x4068e6
cmp eax, 0x24
jne 0x4069b5
push 3
jmp 0x4068e6
cmp eax, 0x2a
je 0x406a09
cmp eax, 0x2b
je 0x406a09
cmp eax, 0x3f
je 0x406a09
cmp eax, 0x7b
je 0x406a09
cmp eax, 0x7d
jne 0x4069d3
test dword [esi + 0x50], edx
je 0x406a05
cmp eax, 0x5d
jne 0x4069dd
test dword [esi + 0x50], edx
je 0x406979
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.0040823f
mov bl, 1
mov ecx, esi
call fcn.0040684b
test bl, bl
je 0x4069fe
mov ecx, esi
call fcn.00408165
mov cl, 1
jmp 0x40687a
push 6
jmp 0x406a15
push 0xa
jmp 0x406a15
pop edi
pop esi
mov al, cl
pop ebx
ret
push 5
call fcn.00405ab6
int3
Function at 0x40832c
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
mov esi, ecx
xor cl, cl
push edi
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x4084c9
mov edx, 0x10000000
cmp eax, 0x7c
je 0x4084c9
cmp eax, 0x29
jne 0x408369
cmp dword [esi + 0x10], 0
jne 0x4084c9
cmp eax, eax
jne 0x408369
test dword [esi + 0x50], edx
je 0x4084cf
cmp eax, 0x2e
jne 0x408384
push 5
lea ecx, [esi + 0x24]
call fcn.00406aed
mov ecx, esi
call fcn.00408303
jmp 0x4084b3
cmp eax, 0x5c
jne 0x4083d9
mov ecx, esi
call fcn.00408303
test byte [esi + 0x50], 0x80
je 0x4083cd
movzx eax, word [esi + 0x48]
cmp eax, 0x62
jne 0x4083b5
push 4
lea ecx, [esi + 0x24]
call fcn.00406aed
mov ecx, esi
call fcn.00408303
jmp 0x4084ba
cmp eax, 0x42
jne 0x4083cd
push 4
lea ecx, [esi + 0x24]
call fcn.00406aed
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x4083a9
mov ecx, esi
call fcn.004097d8
jmp 0x4084b3
cmp eax, 0x5b
jne 0x40843c
mov ecx, esi
call fcn.00408303
lea ecx, [esi + 0x24]
call fcn.0040a74b
mov eax, dword [esi + 0x4c]
cmp eax, 0x5e
jne 0x408406
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.00408303
mov eax, dword [esi + 0x4c]
test dword [esi + 0x50], 0x20000000
je 0x408424
cmp eax, 0x5d
jne 0x408424
push eax
lea ecx, [esi + 0x24]
call fcn.0040a795
mov ecx, esi
call fcn.00408303
mov ecx, esi
call fcn.0040a567
cmp dword [esi + 0x4c], 0x5d
je 0x408378
push 4
jmp 0x4084d1
cmp eax, 0x28
jne 0x408459
mov ecx, esi
call fcn.00408303
mov ecx, esi
call fcn.004098b9
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x4084cf
jmp 0x4084a8
cmp eax, 0x5e
jne 0x408465
push 2
jmp 0x4083a1
cmp eax, 0x24
jne 0x408471
push 3
jmp 0x4083a1
cmp eax, 0x2a
je 0x4084c5
cmp eax, 0x2b
je 0x4084c5
cmp eax, 0x3f
je 0x4084c5
cmp eax, 0x7b
je 0x4084c5
cmp eax, 0x7d
jne 0x40848f
test dword [esi + 0x50], edx
je 0x4084c1
cmp eax, 0x5d
jne 0x408499
test dword [esi + 0x50], edx
je 0x408435
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.00409a98
mov bl, 1
mov ecx, esi
call fcn.00408303
test bl, bl
je 0x4084ba
mov ecx, esi
call fcn.004099be
mov cl, 1
jmp 0x408333
push 6
jmp 0x4084d1
push 0xa
jmp 0x4084d1
pop edi
pop esi
mov al, cl
pop ebx
ret
push 5
call fcn.00405ab6
int3

Function at 0x412374
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x43346f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004332ee
Function at 0x401b50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov ecx, edx
mov eax, edx
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [edx*4 + 0x478240], eax
inc edx
cmp edx, 0x100
jb 0x401b52
push esi
mov eax, 0x478244
mov esi, 0x1c0
mov edx, dword [eax - 4]
lea eax, [eax + 0x10]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x478240]
mov dword [eax + 0x3ec], edx
mov edx, dword [eax - 0x10]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x478240]
mov dword [eax + 0x3f0], edx
mov edx, dword [eax - 0xc]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x478240]
mov dword [eax + 0x3f4], edx
mov edx, dword [eax - 8]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x478240]
mov dword [eax + 0x3f8], edx
sub esi, 1
jne 0x401bf7
mov dword [0x478238], 0x401c70
pop esi
ret
Function at 0x401db0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
nop dword [eax + eax]
movzx ecx, byte [eax + str.cw]
mov byte [ecx + 0x475fd8], al
inc eax
cmp eax, 0x100
jb 0x401dc0
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
nop dword [eax]
movzx edi, byte [ebx + str.cw]
mov eax, edi
and al, 0x80
movzx ecx, al
neg ecx
lea eax, [edi + edi]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
movzx esi, cl
mov ecx, edi
mov edx, esi
shl ecx, 8
xor edx, edi
mov eax, edx
shl eax, 8
or eax, edi
shl eax, 8
or eax, edi
shl eax, 8
or eax, esi
mov dword [ebx*4 + 0x4760d8], eax
mov eax, ecx
or ecx, esi
or eax, edi
shl eax, 8
or eax, esi
shl ecx, 8
or ecx, edx
shl esi, 8
shl ecx, 8
or esi, edx
or ecx, edi
shl eax, 8
mov dword [ebx*4 + 0x4768d8], ecx
or eax, edx
shl esi, 8
or esi, edi
mov dword [ebx*4 + 0x4764d8], eax
shl esi, 8
or esi, edi
mov dword [ebx*4 + 0x476cd8], esi
movzx ebx, byte [ebx + 0x475fd8]
mov eax, ebx
and al, 0x80
movzx ecx, al
neg ecx
lea eax, [ebx + ebx]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
movzx esi, cl
mov eax, esi
and al, 0x80
movzx ecx, al
neg ecx
lea eax, [esi + esi]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
movzx edx, cl
mov eax, edx
and al, 0x80
movzx ecx, al
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
movzx ecx, cl
mov eax, ecx
mov edi, ecx
xor ecx, edx
xor edi, esi
xor eax, ebx
mov dword [ebp - 8], ecx
xor edi, ebx
mov dword [ebp - 0xc], eax
xor ecx, ebx
mov ebx, dword [ebp - 8]
xor ebx, esi
mov edx, dword [ebp - 0xc]
mov eax, edi
mov esi, dword [ebp - 4]
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edx
shl eax, 8
or eax, ebx
mov dword [esi*4 + 0x4770d8], eax
mov eax, ecx
shl eax, 8
or eax, edx
shl eax, 8
or eax, ebx
shl eax, 8
or eax, edi
mov dword [esi*4 + 0x4774d8], eax
mov eax, edx
shl eax, 8
or eax, ebx
shl ebx, 8
or ebx, edi
shl eax, 8
shl ebx, 8
or eax, edi
or ebx, ecx
shl eax, 8
shl ebx, 8
or eax, ecx
or ebx, edx
mov dword [esi*4 + 0x4778d8], eax
mov dword [esi*4 + 0x477cd8], ebx
mov ebx, esi
inc ebx
mov dword [ebp - 4], ebx
cmp ebx, 0x100
jb 0x401de0
pop edi
pop esi
mov dword [0x478234], 0x4025a0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401f50
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
shr edi, 2
xor edx, edx
mov eax, edi
mov dword [ebp - 4], 1
shr eax, 1
add eax, 3
mov dword [ecx], eax
add ecx, 0x10
test edi, edi
je 0x401f85
mov eax, dword [esi]
lea esi, [esi + 4]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, edi
jb 0x401f78
mov ebx, dword [ecx + edi*4 - 4]
lea eax, [edi + 0xe]
lea eax, [edi + eax*2]
lea esi, [ecx + eax*4]
mov dword [ebp + 8], esi
xor esi, esi
mov eax, dword [ebp + 8]
nop word [eax + eax]
test esi, esi
jne 0x402001
movzx eax, bl
mov esi, dword [ebp - 4]
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
mov eax, ebx
shr eax, 0x10
movzx eax, al
shr ebx, 8
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + str.cw]
mov eax, 0x1b
xor ebx, esi
add esi, esi
or ebx, edx
test esi, 0x100
cmovne esi, eax
mov dword [ebp - 4], esi
mov esi, edi
jmp 0x40204e
cmp esi, 4
jne 0x402051
cmp edi, 6
jbe 0x402051
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + str.cw]
or ebx, edx
mov eax, dword [ebp + 8]
xor ebx, dword [ecx]
dec esi
mov dword [ecx + edi*4], ebx
add ecx, 4
cmp ecx, eax
jne 0x401fa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403190
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x474014]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x4031d9
push str.SetDefaultDllDirectories
push 0x46cc90
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4031d9
push 0xc00
call eax
test eax, eax
jne 0x403278
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x403278
cmp eax, 0x104
ja 0x403278
cmp word [ebp + eax*2 - 0x2d6], 0x5c
je 0x403213
mov ecx, 0x5c
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
mov cl, byte [str.userenv]
push esi
mov esi, str.userenv
test cl, cl
je 0x403277
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
inc esi
mov eax, edi
test cl, cl
je 0x403250
nop dword [eax + eax]
movzx ecx, cl
mov word [eax], cx
add eax, 2
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x403240
xor ecx, ecx
mov dword [eax], 0x64002e
push 8
mov dword [eax + 4], 0x6c006c
mov word [eax + 8], cx
lea eax, [ebp - 0x2d4]
push ecx
push eax
call ebx
mov cl, byte [esi]
test cl, cl
jne 0x403234
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043858c
mov esp, ebp
pop ebp
ret
Function at 0x407df0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
mov esi, ecx
mov ecx, 0x20
push edi
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [esi + 0x78], 0
cmova eax, ecx
mov dword [esi + 0x7c], 0
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x30], 1
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 1
mov dword [esi + 0x70], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x90], 0xffffffff
mov dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x58], 0
cmp eax, dword [esi + 0x20]
je 0x407eee
lea edi, [esi + 0xc8]
mov ebx, ecx
nop dword [eax]
cmp dword [edi + 8], 0
je 0x407ecd
mov ecx, edi
call fcn.00406de0
add edi, 0x28
sub ebx, 1
jne 0x407ec0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x407ee9
mov eax, dword [esi + 0x14]
push ecx
push eax
mov eax, dword [eax + 4]
call eax
mov dword [esi + 0x5c], ebx
mov eax, dword [esi]
mov dword [esi + 0x20], eax
mov edx, dword [esi + 0x10]
lea ecx, [esi + 0x98]
call fcn.00406cb0
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea eax, [ecx + 5]
lea eax, [eax + eax*4]
lea ebx, [esi + eax*8]
lea eax, [ecx + 1]
mov ecx, ebx
mov dword [esi + 0x58], eax
call fcn.00406d90
mov edi, eax
test edi, edi
jne 0x407f5f
lea ecx, [ebx + 0x20]
call fcn.00408630
mov edi, eax
test edi, edi
jne 0x407f5f
lea ecx, [ebx + 0x1c]
call fcn.00408630
mov edi, eax
test edi, edi
jne 0x407f5f
push ebx
call fcn.00407b00
mov edi, eax
test edi, edi
je 0x407f5f
mov ecx, esi
mov dword [esi + 0x44], 0
call fcn.00406e50
mov ecx, edi
call fcn.00406ca0
test eax, eax
je 0x407f6d
mov dword [esi + 0x40], eax
cmp dword [esi + 0x38], 0
jne 0x407f86
cmp dword [esi + 0x40], 0
jne 0x407f86
cmp dword [esi + 0x3c], 0
jne 0x407f86
mov dword [esi + 0x44], 0
xor ecx, ecx
cmp dword [esi + 0x44], ecx
pop edi
pop esi
cmovne eax, ecx
pop ebx
ret

Function at 0x407fa0
Capabilities:
Hash data using sha256

Disassembly:
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
ret

Function at 0x407ff0
Capabilities:
Hash data using sha256

Disassembly:
mov dword [ecx], 0x408000
jmp fcn.00407fa0

Function at 0x4085d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
push 0
push dword [ebp + 8]
push edx
push 0
push 0
call fcn.004415b5
add esp, 0x18
mov dword [esi], eax
mov ecx, eax
call fcn.00408550
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40b500
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x475e51], 0
push esi
mov esi, edx
jne 0x40b539
mov edx, ecx
lea ecx, [ebp - 0xc]
call fcn.00409ce0
push esi
mov ecx, eax
call fcn.00408800
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.004087b0
test esi, esi
jmp 0x40b543
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40b54c
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40b560
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x475e51], 0
jne 0x40b597
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.00409ce0
mov ecx, eax
call fcn.00408800
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.004087b0
test esi, esi
pop esi
jmp 0x40b5a0
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40b5a8
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40b5b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x475e51], 0
jne 0x40b5e9
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.00409ce0
push 0
mov ecx, eax
call fcn.00408800
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.004087b0
test esi, esi
pop esi
jmp 0x40b5f4
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40b5fc
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40b610
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d4b8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x474014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [0x475e51], 0
jne 0x40b67f
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.00409ce0
push 0
mov ecx, eax
call fcn.00408800
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.004087b0
test esi, esi
je 0x40b6a0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40b6a0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40b6c1
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x50]
call fcn.0040b710
push 0
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0
call fcn.0040c970
test al, al
jne 0x40b6e3
xor bl, bl
jmp 0x40b6ed
lea ecx, [ebp - 0x50]
call fcn.0040b450
mov bl, al
lea ecx, [ebp - 0x50]
call fcn.0040b730
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret