joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ada3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040ef30
mov eax, dword [0x432080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00419858
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41ade5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41af41
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00425f30
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x433c40]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041bda0
mov ecx, dword [esi*4 + 0x433c40]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x41af3a
cmp eax, dword [ecx + edi + 0x24]
jne 0x41af3a
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41af3a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041bda0
add esp, 0x14
test edx, edx
jl 0x41af3a
jg 0x41aeb0
test eax, eax
jb 0x41af3a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41af3a
jl 0x41aeca
cmp dword [ebp - 0x1008], eax
ja 0x41af3a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41aee8
test ebx, ebx
je 0x41af21
cmp ecx, edi
jae 0x41af21
mov al, byte [ecx]
cmp al, 0xd
jne 0x41af02
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41af0e
cmp byte [ecx + 1], 0xa
jne 0x41af0e
inc ecx
jmp 0x41af0e
movzx eax, al
movsx eax, byte [eax + 0x432338]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41aee8
cmp edx, ebx
jne 0x41aee8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41af3f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040e4a2
leave
ret
Function at 0x41b238
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x433c40]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41b278
cmp byte [ebx], 0xa
jne 0x41b278
or byte [edi + eax + 0x28], 4
jmp 0x41b27d
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41b37c
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41b35f
inc eax
cmp dl, 0xd
je 0x41b2a9
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41b2cf
cmp eax, ecx
jae 0x41b2dd
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41b291
jmp 0x41b37c
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b35a
cmp dword [ebp - 0x10], 0
je 0x41b35a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x433c40]
test byte [eax + edi + 0x28], 0x48
je 0x41b334
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41b31f
mov byte [esi], dl
jmp 0x41b330
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x433c40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41b37c
cmp byte [ebp - 1], 0xa
jne 0x41b343
cmp esi, ebx
jne 0x41b343
mov byte [esi], 0xa
jmp 0x41b37b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041bdbe
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41b37c
mov byte [esi], 0xd
jmp 0x41b37b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x433c40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b379
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b37c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41b385
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x433c40]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41b3cb
cmp word [ebx], dx
jne 0x41b3cb
or byte [eax + edi + 0x28], 4
jmp 0x41b3d0
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x41b533
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x41b513
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41b411
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41b447
cmp eax, edx
jae 0x41b455
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41b3ec
jmp 0x41b533
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b50e
cmp dword [ebp - 0x18], 0
je 0x41b50e
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x433c40]
test byte [eax + edi + 0x28], 0x48
je 0x41b4e4
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x41b4a8
mov word [esi], cx
jmp 0x41b4df
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x433c40]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x433c40]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x433c40]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41b533
pop eax
cmp word [ebp - 4], ax
jne 0x41b4f4
cmp esi, ebx
jne 0x41b4f4
mov word [esi], ax
jmp 0x41b530
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041bdbe
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41b533
push 0xd
pop eax
jmp 0x41b4ef
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x433c40]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41b52d
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41b533
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41f440
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41f4dd
push ebx
push esi
call fcn.0041f409
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041e1f7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41f48a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f4dc
push edi
push eax
call fcn.0041bf9f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41f4aa
call fcn.00418ceb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f4db
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041e1f7
add esp, 0x20
test eax, eax
jne 0x41f4c9
push edi
call fcn.00418ceb
jmp 0x41f4d1
push ebx
call fcn.00418ceb
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x421ecc
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00418a00
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x421f3b
cmp esi, dword [ebp - 4]
je 0x421f36
cmp dword [ebp + 0xc], 0
je 0x421f36
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x421f13
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00421a1e
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x421f3d
xor eax, eax
inc eax
jmp 0x421f3d
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x421fa2
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x432080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00418a00
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00418a00
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x422019
cmp word [ecx], dx
je 0x422019
mov eax, dword [0x42b894]
push edi
dec eax
push eax
push 0x42b780
call fcn.00421f41
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x42208c
cmp word [eax], dx
je 0x42208c
mov eax, dword [edi]
test eax, eax
je 0x42203d
cmp word [eax], dx
je 0x42203d
lea eax, [ebp - 0x10]
push eax
call fcn.00421924
jmp 0x422046
lea eax, [ebp - 0x10]
push eax
call fcn.004219bf
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4220b6
mov eax, dword [0x42b77c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x42b470
call fcn.00421f41
add esp, 0xc
test al, al
je 0x4220b6
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x422081
cmp word [eax], di
je 0x422081
lea eax, [ebp - 0x10]
push eax
call fcn.00421924
pop ecx
jmp 0x4220b8
lea eax, [ebp - 0x10]
push eax
call fcn.004219bf
jmp 0x42207e
mov eax, dword [edi]
test eax, eax
je 0x4220a3
cmp word [eax], dx
je 0x4220a3
lea eax, [ebp - 0x10]
push eax
call fcn.004218d9
pop ecx
jmp 0x4220b6
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x422181
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00421dc6
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x422181
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x422181
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x422181
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42210e
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00419422
test ebx, ebx
je 0x42217c
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00419422
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x422181
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x422181
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0042437a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x422183
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e4a2
leave
ret
Function at 0x4247a5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00424721
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x424914
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x424914
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4248c9
jg 0x424801
test eax, eax
je 0x4248bf
push 1
push 0x1000
call fcn.00418d8e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x424824
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4248b6
push 0x8000
push ebx
call fcn.004166b0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x42484d
jg 0x424848
cmp ecx, 0x1000
jb 0x42484d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041a5f2
add esp, 0x10
cmp eax, 0xffffffff
je 0x424892
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x424848
jl 0x424879
test ecx, ecx
jne 0x42483a
push dword [ebp - 0xc]
push ebx
call fcn.004166b0
push esi
call fcn.00418ceb
add esp, 0xc
xor ebx, ebx
jmp 0x424922
cmp byte [edi + 0x24], 0
je 0x4248a9
cmp dword [edi + 0x20], 5
jne 0x4248a9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4248b4
mov ebx, dword [edi + 0x18]
jmp 0x4248b6
xor ebx, ebx
push esi
call fcn.00418ceb
pop ecx
jmp 0x424922
test ecx, ecx
jg 0x42488b
jl 0x4248c9
test eax, eax
jae 0x42488b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041bdbe
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4248e9
cmp byte [edi + 0x1c], 0
je 0x42488b
jmp 0x42491a
push ebx
call fcn.0041fe9d
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42488b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x424922
cmp byte [edi + 0x1c], 0
je 0x42491f
mov ebx, dword [edi + 0x18]
jmp 0x424922
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041bdbe
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x425ef0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x425f1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x425f1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x412d70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe000]
push edi
jmp 0x412d8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x412d91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x412d80
mov eax, 1
add ebx, ebx
jne 0x412da3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x412db4
jne 0x412dd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x412dd3
dec eax
add ebx, ebx
jne 0x412dc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x412d98
add ebx, ebx
jne 0x412dcf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x412e25
xor ecx, ecx
sub eax, 3
jb 0x412deb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x412e5a
sar eax, 1
mov ebp, eax
jmp 0x412df6
add ebx, ebx
jne 0x412df6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x412dc4
inc ecx
add ebx, ebx
jne 0x412e04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x412dc4
add ebx, ebx
jne 0x412e11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x412e06
jne 0x412e22
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412e06
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x412e44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x412e36
jmp 0x412d86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x412e44
add edi, ecx
jmp 0x412d86
pop esi
mov edi, esi
mov ecx, 0xe000
jmp 0x412e87
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x412e87
cmp ecx, 4
jb 0x412e8c
mov eax, dword [edi]
sub al, 1
jne 0x412e87
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
sub ecx, 4
stosd dword es:[edi], eax
sub ecx, 1
jae 0x412e64
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x412edd
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x128c0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x128fc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x412e92
mov ecx, edi
jns 0x412ec1
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12904]
or eax, eax
je 0x412ed7
mov dword [ebx], eax
add ebx, 4
jmp 0x412eaf
call dword [esi + 0x12900]
mov ebp, dword [esi + 0x12908]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x412f11
sub esp, 0xffffff80
jmp 0x401e84
Function at 0x401520
Capabilities:
Get disk information

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
mov dword [esp + 0xc], ecx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
xor esi, esi
push eax
push 0x104
xor ebx, ebx
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x4015f2
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401612
lea ebp, [esp + 0x18]
push ebp
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x4015bb
mov ecx, dword [esp + 0x10]
mov edi, ebp
xor eax, eax
lea edx, [ebx + ecx + 4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, 1
lea ebx, [ebx + ecx + 1]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 1]
or ecx, 0xffffffff
mov dword [esp + 0x14], eax
lea ebp, [esp + eax + 0x18]
xor eax, eax
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x401573
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.MyReadCDLetter_GetLogicalDriveStrings
call fcn.0041119c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00405530
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x401620
Capabilities:
Create process on windows
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41756b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x264
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x20]
push 0x421850
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
mov ecx, 0x41
mov dword [esp + 0x14], eax
lea edi, [esp + 0x68]
mov dword [esp + 0x18], eax
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x16c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], eax
call fcn.0041119c
mov esi, dword [esp + 0x27c]
push str.Autorun.Inf
push esi
lea ecx, [esp + 0x10]
push str._s_s
push ecx
mov dword [esp + 0x284], 0
call fcn.0041076a
mov edx, dword [esp + 0x18]
add esp, 0x10
lea eax, [esp + 0x64]
push edx
push 0x104
push eax
push 0x421850
push str.OPEN
push str.AUTORUN
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edi, [esp + 0x64]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4016f4
lea ecx, [esp + 0x64]
lea edx, [esp + 0x168]
push ecx
push esi
push str._s_s
push edx
jmp 0x401707
push str.Setup.exe
push esi
lea eax, [esp + 0x170]
push str._s_s
push eax
call fcn.004061fd
add esp, 0x10
lea ecx, [esp + 0xc]
lea edx, [esp + 0x20]
lea eax, [esp + 0x168]
push ecx
push edx
push 0
push 0
push 0x20
push 1
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401759
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.MyRunCD_CreateProcess
call fcn.0041119c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00405530
add esp, 8
lea ecx, [esp + 8]
mov dword [esp + 0x274], 0xffffffff
call fcn.0041112e
mov ecx, dword [esp + 0x26c]
pop edi
mov eax, 1
mov dword fs:[0], ecx
pop esi
add esp, 0x270
ret 4
Function at 0x401790
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4175b7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
push 0x421850
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], ebx
call fcn.0041119c
push 0x421850
lea ecx, [esp + 0x18]
mov dword [esp + 0x14c], ebx
call fcn.0041119c
push 0x421850
lea ecx, [esp + 0x10]
mov byte [esp + 0x14c], 1
call fcn.0041119c
push 0x421850
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 2
call fcn.0041119c
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x3c]
add esi, 0x108
rep stosd dword es:[edi], eax
push esi
lea eax, [esp + 0x14]
push 0x41d474
push eax
mov byte [esp + 0x154], 3
call fcn.0041076a
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.00411420
lea ecx, [esp + 0x20]
call fcn.004055f0
mov ecx, dword [esp + 0x150]
push str.AutoRun.Inf
push ecx
lea edx, [esp + 0x1c]
push str._s_s
push edx
mov byte [esp + 0x158], 4
call fcn.0041076a
mov eax, dword [esp + 0x24]
add esp, 0x10
lea ecx, [esp + 0x20]
push ebx
push eax
call fcn.004056b3
test eax, eax
jne 0x4018ea
push str._t_tIs_not_exist_Autorun.inf_file_r_n
call fcn.004055e0
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x148], 3
call fcn.0040562d
lea ecx, [esp + 0x18]
mov byte [esp + 0x148], 2
call fcn.0041112e
lea ecx, [esp + 0xc]
mov byte [esp + 0x148], 1
call fcn.0041112e
lea ecx, [esp + 0x14]
mov byte [esp + 0x148], bl
call fcn.0041112e
lea ecx, [esp + 0x10]
mov dword [esp + 0x148], 0xffffffff
call fcn.0041112e
xor eax, eax
jmp 0x4019ff
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor esi, esi
push 0x421850
lea ecx, [esp + 0x20]
call fcn.0041126b
push 0x421850
lea ecx, [esp + 0x14]
call fcn.0041126b
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x40]
push esi
rep stosd dword es:[edi], eax
push str.DRIVER_NAME
lea ecx, [esp + 0x24]
push str._s__d
push ecx
call fcn.0041076a
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
add esp, 0x10
lea eax, [esp + 0x40]
push edx
push 0x104
push eax
push 0x421850
push ecx
push str.INFOMATION
call ebp
lea edx, [esp + 0x40]
lea eax, [esp + 0x10]
push edx
push 0x41d474
push eax
call fcn.0041076a
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.00411420
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], ebx
jle 0x4019a3
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
call fcn.004103e4
test eax, eax
je 0x40199b
inc esi
cmp esi, 0x14
jl 0x4018f3
jmp 0x4019a3
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x14c], 3
call fcn.0040562d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 2
call fcn.0041112e
lea ecx, [esp + 0x10]
mov byte [esp + 0x14c], 1
call fcn.0041112e
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], bl
call fcn.0041112e
lea ecx, [esp + 0x14]
mov dword [esp + 0x14c], 0xffffffff
call fcn.0041112e
mov eax, dword [esp + 0x20]
pop ebp
mov ecx, dword [esp + 0x140]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x140
ret 4