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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, 0x471d
mov ecx, 0xdb
xor edi, edi
mov esi, 0x5970
jmp 0x4011c0
mov eax, 0x473c1ab7
imul esi
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x4011c0
mov eax, dword [ebp + 8]
mov esi, edi
test eax, eax
je 0x4012e0
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4012e0
cmp eax, edx
jae 0x4012e0
sub edx, eax
mov dword [ebp + 0xc], edx
mov ebx, 0x5680
lea ecx, [ecx]
mov eax, 0x7e07e07f
imul ebx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x401200
mov ebx, dword [ebp + 8]
mov ecx, 0x381
jmp 0x401220
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x401220
mov ecx, 0x3e76
mov edx, 0x80
mov eax, 8
cmp eax, 0x80
cmovl eax, edx
dec ecx
jne 0x401244
nop
inc edi
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, edi
sub eax, ecx
jne 0x401274
inc edi
cmp edi, 0x3e7c
jl 0x401250
mov ecx, 0x1823
mov eax, 0xb60b60b7
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x401281
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4012b0
lea ecx, [ecx]
mov al, byte [ecx + ebx + 1]
add al, 0x46
xor byte [ecx + ebx], al
inc ecx
cmp ecx, edx
jb 0x4012a0
mov edi, edi
inc esi
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, esi
lea eax, [eax + eax*2]
sub ecx, eax
jne 0x4012cb
add esi, 2
cmp esi, 0x5a43
jl 0x4012b0
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, 0x66666667
imul ebx
sar edx, 2
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x4012e0
mov eax, 0x2bb7
mov edx, 0x16
lea ecx, [ecx]
cmp ecx, edx
cmovg ecx, edx
dec eax
jne 0x401300
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x403160
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [ebp + 0x10], eax
jbe 0x40328a
push ebx
push esi
mov dword [ebp - 0xc], 0x65
push edi
mov edi, edi
add eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x18], eax
mov al, byte [eax]
mov byte [ebp - 1], al
mov eax, 0x32
mov ecx, 0x26fd
mov ebx, 0xbb
xor esi, esi
mov edx, 0x160c
cmp eax, 0x65
cmovl eax, dword [ebp - 0xc]
dec edx
jne 0x4031a3
lea ecx, [ecx]
mov eax, 0x2c0b02c1
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4031b0
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 8]
inc byte [ecx + 0x105]
movzx edx, byte [ecx + 0x105]
movzx eax, byte [eax + 0x128]
add edx, ecx
mov dword [ebp - 0x14], edx
movzx ecx, byte [edx]
add eax, ecx
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x128], al
movzx eax, al
add eax, ecx
push eax
push edx
mov dword [ebp - 0x10], eax
call fcn.00403630
add esp, 8
inc edi
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, edi
lea eax, [eax + eax*2]
sub ecx, eax
jne 0x40321d
add edi, 2
cmp edi, 0x5a43
jl 0x403202
mov eax, 0x2bb7
mov ecx, 0x21
nop
cmp ebx, ecx
cmovg ebx, ecx
dec eax
jne 0x403230
inc esi
mov eax, 0x2aaaaaab
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
add ecx, ecx
mov eax, esi
sub eax, ecx
jne 0x403253
inc esi
cmp esi, 0x1917
jl 0x403238
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
movzx eax, byte [eax]
add al, byte [ecx]
mov ecx, dword [ebp + 8]
movzx eax, al
mov al, byte [eax + ecx]
xor al, byte [ebp - 1]
mov ecx, dword [ebp - 0x18]
mov byte [ecx], al
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebp + 0x10]
jb 0x403180
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4034e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esi + 0x54], 0
mov dword [esi + 0x94], 0xfe07e666
mov dword [esi + 0xa0], 0xfe07e660
mov dword [esi + 0x4c], 0xfe07e668
mov dword [esi + 0x34], 0xfe07e618
add esi, 0x1c
push esi
call fcn.004033d0
add esp, 4
mov cl, al
movzx eax, cl
cmp eax, dword [ebp + 0xc]
jb 0x403531
cmp eax, dword [ebp + 0x10]
jbe 0x403622
test esi, esi
jne 0x403539
xor ecx, ecx
jmp 0x403520
cmp byte [esi + 0x34], 0
jne 0x403571
cmp dword [esi + 0x38], 0
mov byte [esi + 0x34], 1
je 0x403554
call fcn.00402eb0
imul eax, dword [esi + 0x38]
jmp 0x403559
call fcn.00402eb0
mov dword [esi + 0x14], eax
mov dword [esi + 0x54], 0x5204
mov dword [esi + 0xc], 0x75f0
mov dword [esi + 0x3c], 0x68f2
mov ecx, dword [esi + 0x14]
mov ebx, ecx
mov eax, ecx
and eax, 0x3ffff80
shr ebx, 6
xor ebx, eax
mov eax, dword [esi + 0x78]
xor eax, 0x1998
and eax, ecx
mov ecx, dword [esi + 0x54]
shl eax, 0x12
mov edi, ecx
shr ebx, 7
xor ebx, eax
mov eax, ecx
shr eax, 2
and edi, 0x3e000000
xor edi, eax
mov eax, dword [esi + 0x84]
xor eax, 0x1f81998
and eax, ecx
mov ecx, dword [esi + 0xc]
shl eax, 2
mov edx, ecx
shr edi, 0x19
xor edi, eax
mov eax, ecx
and eax, 0x7ff00
shr edx, 0xd
xor edx, eax
mov eax, dword [esi + 0x30]
xor eax, 0xfff81998
and eax, ecx
mov ecx, dword [esi + 0x3c]
shl eax, 7
shr edx, 8
xor edx, eax
mov eax, ecx
shr eax, 3
mov dword [ebp + 8], eax
mov eax, ecx
and eax, 0x1ffffe00
xor dword [ebp + 8], eax
mov eax, dword [esi + 0x18]
shr dword [ebp + 8], 9
xor eax, 0x1998
and eax, ecx
mov ecx, dword [ebp + 8]
shl eax, 0xd
xor ecx, eax
mov dword [esi + 0x3c], ecx
xor ecx, edx
xor ecx, edi
xor ecx, ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x54], edi
mov dword [esi + 0xc], edx
shr ecx, 1
jmp 0x403520
pop edi
pop esi
mov al, cl
pop ebx
pop ebp
ret
Function at 0x442031
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x44205e
call fcn.0042ed35
mov dword [eax], esi
call fcn.0042ed22
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00432058
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x44203a
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x44208d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042ed48
pop ecx
call fcn.0042ed22
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4420b4
test al, 1
je 0x4420b4
test byte [esp + 0xc], 2
je 0x4420b4
call fcn.0042ed35
mov dword [eax], 5
call fcn.0042ed22
mov dword [eax], 0xd
jmp 0x442084
xor eax, eax
pop esi
ret

Function at 0x442f1e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x458640]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00442eb3
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0042d950
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x442f6d
cmp dword [ebp - 0x1c], 5
jb 0x442f85
jmp 0x442f81
cmp dword [ebp - 0x10], 1
jne 0x442f85
cmp dword [ebp - 0x1c], 4
ja 0x442f81
jne 0x442f85
cmp dword [ebp - 0x18], 0
jbe 0x442f85
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x44d964
call fcn.00442d87
test eax, eax
jge 0x442fa6
mov byte [0x45a4c4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042cf8a
add ebp, 0x78
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040c272
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040c272
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040c272
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040c272
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040c272
mov dword [0x41203c], eax
call fcn.0040c272
test eax, eax
jge 0x402550
push 8
call fcn.0040c272
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040c272
pop ecx
push 1
call fcn.0040c272
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040c272
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040c272
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040c272
jmp 0x402495

Function at 0x40c272
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x40c281
pop dword [ebp - 8]
mov eax, 0x40c281
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x3a93e
push 0
mov eax, 0xe0273c06
sub eax, 0xdfe65b2e
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0xc1c9a204
add ecx, 0x3e36aa1b
xor esi, esi
add esi, eax
mov edx, 0xeef478d7
sub edx, 0xeeb33d13
add edx, dword [ebp - 8]
mov ebx, 0x50018ee5
add ebx, 0xc39956a6
mov edi, dword [edx]
mov dword [ebp - 4], 0x20742223
xor edi, ebx
xor dword [ebp - 4], edx
mov dword [esi], edi
sub dword [ebp - 4], 0x40a4a128
add esi, 0xe80b8e41
sub esi, 0xe80b8e3d
add edx, 0x6aa2123d
add edx, 0x955dedc7
loop 0x40c2dd
add eax, 0x7cde9437
sub eax, 0x7cdd70e8
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1000412c
Capabilities:
Set file attributes

Disassembly:
push edx
push ecx
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x100045e5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100045f3
or eax, eax
ret

Function at 0x1000ac8d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x1000ac9c
pop dword [ebp - 0x1c]
mov eax, 0x1000ac9c
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x44cae
push 0
mov eax, 0x8404ba6d
add eax, 0x8c08d5bb
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0xa7abe22a
add ecx, 0x585469a7
xor ebx, ebx
add ebx, eax
mov esi, 0x6b40ba9a
sub esi, 0x5b2e9c9a
add esi, dword [ebp - 0x1c]
mov edi, 0x5438be3
add edi, 0x16d56288
xor dword [ebp - 4], edx
mov edx, dword [esi]
xor dword [ebp - 0x18], ecx
xor edx, edi
mov dword [ebx], edx
add dword [ebp - 4], 0xeca7d42a
add ebx, 0x415470e1
sub ebx, 0x415470dd
add esi, 0x88ebe0f3
add esi, 0x77141f11
loop 0x1000acf8
add eax, 0x12217
mov ebx, eax
add eax, 0xd5bf9701
sub eax, 0xd5bf96fc
mov ecx, 0x10000000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x1000df9d
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x100d01b8
call fcn.100cece0
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.10001da4
and dword [ebp - 4], 0
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.10001da4
mov eax, dword [edi + 0x18]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov al, byte [edi + 0x2c]
mov byte [esi + 0x2c], al
mov al, byte [edi + 0x2d]
mov byte [esi + 0x2d], al
mov al, byte [edi + 0x2e]
mov byte [esi + 0x2e], al
mov al, byte [edi + 0x2f]
mov byte [esi + 0x2f], al
mov al, byte [edi + 0x30]
mov byte [esi + 0x30], al
mov al, byte [edi + 0x31]
mov byte [esi + 0x31], al
mov ax, word [edi + 0x32]
mov word [esi + 0x32], ax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x401bce
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x401bdd
pop dword [ebp - 0x44]
mov eax, 0xbe0ef08f
sub eax, 0xbdced4b2
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x3df25
push 0
mov eax, 0xfda8b5ab
add eax, 0x2999b75
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x116cefad
add ecx, 0xee935e81
xor esi, esi
add esi, eax
mov edx, 0x52270d66
sub edx, 0x51e3df66
add edx, dword [ebp - 0x44]
mov ebx, 0x9fd3137b
xor dword [ebp - 0x18], 0x76e38b15
mov edi, dword [edx]
add dword [ebp - 0x38], edi
xor edi, ebx
xor dword [ebp - 8], 0x6cc3f251
mov dword [esi], edi
add dword [ebp - 0x2c], 0xa0fba407
add esi, 0x6912c16a
sub esi, 0x6912c166
add edx, 4
loop 0x401c38
add eax, 0x25d2e1ba
add eax, 0xda2e49d1
xor ebx, ebx
add ebx, eax
add eax, 0x1afa60bf
add eax, 0xe5059f46
mov ecx, 0x8e7f030c
add ecx, 0x71c0fcf4
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0xdded44
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdded4e
pushal
call 0xdded54
pop ebp
sub ebp, 0x10
sub ebp, 0x9ded44
jmp 0xdded6a
mov eax, 0x9ded44
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c5
mov edx, 0x4a88cbab
xor byte [eax], dl
inc eax
dec ecx
jne 0xdded81
jmp 0xdded94
and byte [esi + 0x20], ah
and dl, byte [edi + 0x2aababab]
push 0x53
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test al, 0x66
adc ebp, dword [edi + 0x11ababab]
sub dword [ebx + 0x495cabab], 0xffffffa8
arpl word [eax], sp
sub ah, byte [edi - 0x57545455]
outsb dx, byte [esi]
sti
iretd
Function at 0x4013ca
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x42904c], 1
mov dword [0x429050], 1
mov dword [0x429054], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40140b
mov eax, 0
jmp 0x4014a5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40142e
mov eax, 0
jmp 0x4014a5
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401450
cmp eax, 0x20b
je 0x401475
jmp 0x4014a0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401462
mov eax, 0
jmp 0x4014a5
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014a5
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x40148d
mov eax, 0
jmp 0x4014a5
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014a5
mov eax, 0
leave
ret

Function at 0x4017df
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x24], 0x64636261
mov dword [ebp - 0x20], 0x31306665
mov dword [ebp - 0x1c], 0x35343332
mov dword [ebp - 0x18], 0x39383736
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
jmp 0x40185d
mov dword [ebp - 0x14], 0
jmp 0x401842
call sym._rand
cdq
shr edx, 0x1c
add eax, edx
and eax, 0xf
sub eax, edx
movzx eax, byte [ebp + eax - 0x24]
mov edx, dword [ebp - 0xc]
add edx, 0x427040
mov byte [edx], al
add dword [ebp - 0xc], 1
add dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
jl 0x40181a
mov eax, dword [ebp - 0xc]
add eax, 0x427040
mov byte [eax], 0x2d
add dword [ebp - 0xc], 1
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jl 0x401811
mov eax, dword [ebp - 0xc]
sub eax, 1
mov byte [eax + 0x427040], 0
mov dword [esp], 0x427040
call sym._strdup
leave
ret
Function at 0x401880
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 8], str.MSAV_SCANNING
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateMutexA]
call eax
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp eax, 0xb7
jne 0x4018f2
mov dword [esp], 0x64
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov dword [esp + 8], str.MSAV_SCANNING
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateMutexA]
call eax
sub esp, 0xc
mov dword [ebp - 0xc], eax
jmp 0x401976
mov dword [esp], str._rScanning_
call sym._printf
mov dword [esp], 0x64
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov dword [esp], 0x42105e
call sym._printf
mov dword [esp], 0x64
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov dword [esp], 0x42106a
call sym._printf
mov dword [esp], 0x64
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov dword [esp], str._rScanning__
call sym._printf
mov dword [esp], 0x64
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
jmp 0x4018aa
Function at 0x402a21
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
not eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
jmp 0x402ad7
mov eax, dword [ebp - 4]
shr eax, 8
mov edx, eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
movzx eax, al
xor eax, dword [ebp - 4]
movzx eax, al
mov eax, dword [eax*4 + 0x422580]
xor eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
shr eax, 8
mov edx, eax
mov eax, dword [ebp - 8]
add eax, 1
movzx eax, byte [eax]
movzx eax, al
xor eax, dword [ebp - 4]
movzx eax, al
mov eax, dword [eax*4 + 0x422580]
xor eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
shr eax, 8
mov edx, eax
mov eax, dword [ebp - 8]
add eax, 2
movzx eax, byte [eax]
movzx eax, al
xor eax, dword [ebp - 4]
movzx eax, al
mov eax, dword [eax*4 + 0x422580]
xor eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
shr eax, 8
mov edx, eax
mov eax, dword [ebp - 8]
add eax, 3
movzx eax, byte [eax]
movzx eax, al
xor eax, dword [ebp - 4]
movzx eax, al
mov eax, dword [eax*4 + 0x422580]
xor eax, edx
mov dword [ebp - 4], eax
add dword [ebp - 8], 4
sub dword [ebp + 0x10], 4
cmp dword [ebp + 0x10], 3
ja 0x402a3a
jmp 0x402b0e
mov eax, dword [ebp - 4]
shr eax, 8
mov edx, eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
movzx eax, al
xor eax, dword [ebp - 4]
movzx eax, al
mov eax, dword [eax*4 + 0x422580]
xor eax, edx
mov dword [ebp - 4], eax
add dword [ebp - 8], 1
sub dword [ebp + 0x10], 1
cmp dword [ebp + 0x10], 0
jne 0x402ae3
mov eax, dword [ebp - 4]
not eax
leave
ret
Function at 0x40d903
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x48]
mov eax, dword [eax + 0x3c]
mov dword [esp], eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__ftelli64]
call eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x48]
mov edx, dword [eax + 0x44]
mov eax, dword [eax + 0x40]
add dword [ebp - 0x20], eax
adc dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
test edx, edx
js 0x40d99b
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov ecx, eax
xor ecx, dword [ebp - 0x18]
mov esi, ecx
mov eax, edx
xor eax, dword [ebp - 0x14]
mov edi, eax
mov eax, edi
or eax, esi
test eax, eax
je 0x40d9a2
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 0x48]
mov ecx, dword [ecx + 0x3c]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], ecx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
call eax
test eax, eax
je 0x40d9a2
mov eax, 0
jmp 0x40d9c9
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x48]
mov eax, dword [eax + 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call sym._fread
add esp, 0x30
pop esi
pop edi
pop ebp
ret
Function at 0x41185a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call sym._fwrite
leave
ret

Function at 0x41389a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x40
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x48]
mov eax, dword [eax + 0x3c]
mov dword [esp], eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__ftelli64]
call eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x48]
mov edx, dword [eax + 0x44]
mov eax, dword [eax + 0x40]
add dword [ebp - 0x30], eax
adc dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
test edx, edx
js 0x413932
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov ecx, eax
xor ecx, dword [ebp - 0x18]
mov esi, ecx
mov eax, edx
xor eax, dword [ebp - 0x14]
mov edi, eax
mov eax, edi
or eax, esi
test eax, eax
je 0x413955
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 0x48]
mov ecx, dword [ecx + 0x3c]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], ecx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
call eax
test eax, eax
je 0x413955
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0x16
cmp dword [ebp - 0x1c], 0
je 0x41394e
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x1c], edx
mov eax, 0
jmp 0x41397c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x48]
mov eax, dword [eax + 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call sym._fwrite
add esp, 0x40
pop esi
pop edi
pop ebp
ret