joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x4042e8
Capabilities:
Encode data using xor

Disassembly:
push 0x53c209e2
mov edi, 0x2c2bc9f9
pop eax
xor edi, eax
mov ecx, edi
xor ecx, 0xffffffff
and ecx, 0x2e0e9435
and edi, 0xd1f16bca
or edi, ecx
mov edx, edi
add esp, 0xfffffffc
mov dword [esp], edx
mov ecx, 0x7800a0ac
xor ecx, 0x5bede509
push ecx
mov edi, 0x7386dcc6
mov esi, 0x650061b3
xor esi, edi
pop eax
mov ebx, 0x30200a4
mov eax, 0x20d50350
xor ebx, eax
mov eax, 0x489c2206
xor ebx, eax
mov edi, 0x4f024fce
mov esi, 0x7f8dd868
xor esi, edi
xor ebx, esi
mov eax, 0x5bc4b654
xor ebx, eax
push ebx
pop esi
mov edx, esi
add esp, 0xfffffffc
mov dword [esp], edx
pop ecx
or ecx, 0
je 0x403f23
add al, 0
add byte [eax], al
xor eax, eax
mov dword [0x40c02c], eax
mov byte [0x40c033], 2
mov byte [0x40c034], 2
mov byte [0x40c035], 3
mov word [0x40c3dc], 0
mov word [0x40c3ec], 1
call fcn.0040285c
mov eax, 0x40c038
mov edx, 0x404398
call fcn.00403c25
mov eax, 0x40c204
mov edx, 0x404398
call fcn.00403c25
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404391
ret

Function at 0x40520c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405245
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40524e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405258
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405279
mov al, byte [esp]
jmp 0x40527b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x406271
Capabilities:
Encode data using xor

Disassembly:
cmp byte [ebp - 0xc], 0
je 0x4061c6
mov eax, dword [ebp - 0x18]
xor edx, edx
jmp 0x4061d9
movsx eax, word [ebp - 0x40]
cmp eax, dword [ebp - 0x18]
jg 0x4061d2
mov eax, dword [ebp - 0x18]
movsx edx, word [ebp - 0x40]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 4]
lea ebx, [ebp - 0x3d]
cmp byte [ebp - 0x3e], 0
je 0x4061f6
cmp esi, dword [ebp + 8]
jne 0x4061f6
mov al, 0x2d
stosb byte es:[edi], al
lodsb al, byte [esi]
cmp al, 0x23
je 0x406222
cmp al, 0x30
je 0x406222
cmp al, 0x2e
je 0x4061f6
cmp al, 0x2c
je 0x4061f6
cmp al, 0x27
je 0x406229
cmp al, 0x22
je 0x406229
cmp al, 0x45
je 0x406237
cmp al, 0x65
je 0x406237
cmp al, 0x3b
je 0x40626e
or al, al
je 0x40626e
stosb byte es:[edi], al
jmp 0x4061f6
call 0x406274
jmp 0x4061f6
mov ah, al
lodsb al, byte [esi]
cmp al, ah
je 0x4061f6
or al, al
je 0x40626e
stosb byte es:[edi], al
jmp 0x40622b
mov ah, byte [esi]
cmp ah, 0x2b
je 0x406245
cmp ah, 0x2d
jne 0x40621f
xor ah, ah
mov ecx, 0xffffffff
inc ecx
inc esi
cmp byte [esi], 0x30
je 0x40624a
cmp ecx, 4
jb 0x40625b
mov ecx, 4
push ebx
mov bl, byte [ebp - 0x3d]
movsx edx, word [ebp - 0x40]
sub edx, dword [ebp - 0x18]
call fcn.00405e95
pop ebx
jmp 0x4061f6
mov eax, edi
sub edi, dword [esi + 0x3002842]
mov edi, 0xa10424
xor esi, edi
mov ecx, 0x2a315459
xor esi, ecx
xor esi, 0x29d0a83f
mov ecx, 0x23ed40
mov edx, 0x1580100f
xor ecx, edx
mov ebx, 0x16c6d6fb
xor ebx, 0x3652adc
xor ebx, ecx
xor esi, ebx
mov eax, dword [esi]
push 0x25ce7d32
mov esi, 0x63d32b05
pop edi
xor esi, edi
push esi
mov ebx, 0x20c5635
mov esi, 0x44110002
xor ebx, esi
pop ecx
xor ebx, ecx
mov edi, 0x34200614
mov esi, 0x4a0580c2
xor edi, esi
push edi
push 0xd405839
mov edx, 0x7365deef
jae 0x40633b

Function at 0x4069dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406a24
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406978
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a2b
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406c2c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406cba
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406c77
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x406ca4
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406c8b
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x406c9a
lea edx, [ebp - 4]
call fcn.00406af0
test ebx, ebx
je 0x406c9a
dec ebx
jmp 0x406c7c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406cc1
lea eax, [ebp - 4]
call fcn.00403198
ret
Function at 0x406699
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4066bd
xor eax, eax
test eax, eax
je 0x4066d0
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4066d0
xor ecx, ecx
jmp 0x4066d3
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4067fc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4318ec], 0
push esi
jne 0x406833
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40680d
mov dword [ecx*4 + 0x4318e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406808
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406864
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4318e8]
xor eax, esi
inc ecx
dec edx
jne 0x406846
pop edi
not eax
pop esi
ret 0xc

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 0x40168b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov esi, ebx
add esi, dword [esi + 0x3c]
mov esi, dword [esi + 0x78]
add esi, ebx
mov dword [ebp + 0x401704], esi
mov ecx, dword [esi + 0x18]
dec ecx
mov esi, dword [esi + 0x20]
add esi, ebx
xor eax, eax
mov edi, dword [esi]
add edi, ebx
push esi
lea esi, [ebp + 0x401708]
push ecx
push 0xf
nop
nop
nop
nop
pop ecx
repe cmpsb byte [esi], byte es:[edi]
je 0x4016ce
nop
nop
nop
nop
pop ecx
inc eax
pop esi
add esi, 4
loop 0x4016a6
jmp 0x4016f7
pop esi
pop ecx
mov edi, dword [ebp + 0x401704]
add eax, eax
mov esi, dword [edi + 0x24]
add esi, ebx
add esi, eax
movzx eax, word [esi]
imul eax, eax, 4
mov esi, dword [edi + 0x1c]
add esi, ebx
add esi, eax
mov eax, dword [esi]
add eax, ebx
mov dword [ebp + 0x401717], eax
ret
push 0xbff76dac
pop eax
mov dword [ebp + 0x401717], eax
ret

Function at 0x401c7b
Capabilities:
Execute anti-debugging instructions

Disassembly:
pushal
call dword [ebp + 0x401387]
neg eax
mov dword [ebp + 0x402198], eax
lea eax, [ebp + 0x4013e2]
push eax
call dword [ebp + 0x40138b]
cmp word [ebp + 0x4013e6], 6
jne 0x401cc7
nop
nop
nop
nop
push 3
pop ebx
call fcn.00402071
or eax, eax
je 0x402083
cmp eax, 1
je 0x402107
cmp eax, 2
je 0x402176
popal
ret
push 0xa
pop ebx
call fcn.00402071
xchg ecx, eax
lea edi, [ebp + 0x401cc9]
push ecx
xor al, al
scasb al, byte es:[edi]
jne 0x402095
loop 0x402095
push 0
push edi
call dword [ebp + 0x4013af]
push edi
call dword [ebp + 0x401383]
push 0
call 0x4020c6
dec esp
insd dword es:[edi], dx
and byte gs:[eax + 0x6f], dl
jb 0x4020db
inc esi
popal
jbe 0x40212e
jb 0x4020ef
je 0x40213b
je 0x4020c5
nop
call dword [ebp + 0x4013b3]
mov dword [ebp + 0x4019fc], eax
pop ecx
lea edi, [ebp + 0x401d7f]
xor al, al
scasb al, byte es:[edi]
jne 0x4020db
loop 0x4020db
push edi
xor ecx, ecx
inc ecx
scasb al, byte es:[edi]
jne 0x4020e3
pop edi
push ecx
push edi
push dword [ebp + 0x4019fc]
call dword [ebp + 0x4013b7]
push dword [ebp + 0x4019fc]
add bh, bh
xchg ebp, eax
mov bh, 0x13
inc eax
add bh, bh
mov ch, 0xfc
sbb dword [eax], eax
call dword [ebp + fcn.0040135f]
jmp 0x401cc7
call 0x40211a
push ebx
dec eax
inc ebp
dec esp
dec esp
xor esi, dword [edx]
inc esp
dec esp
dec esp
add byte [eax + 0x4b95ff90], dl
adc eax, dword [eax]
or eax, eax
je 0x401cc7
call 0x40213f
push ebx
push 0x456c6c65
js 0x40219a
arpl word [ebp + 0x74], si
inc ecx
add byte [eax + 0x50909090], dl
nop
nop
nop
nop
push eax
call dword [ebp + 0x401717]
or eax, eax
je 0x401cc7
push eax
push 5
pop ebx
call fcn.00402071
lea edi, [ebp + 0x401fbe]
xchg ecx, eax
xor al, al
scasb al, byte es:[edi]
jne 0x402160
loop 0x402160
pop eax
xor ebx, ebx
push 5
push ebx
push ebx
push edi
push ebx
push ebx
call eax
jmp 0x401cc7
push 6
pop ebx
call fcn.00402071
xchg ecx, eax
xor al, al
lea edi, [ebp + 0x40203f]
scasb al, byte es:[edi]
jne 0x402187
push edi
push 0
call dword [ebp + 0x4013bb]
jmp 0x401cc7
add byte [eax], al
Function at 0x40211a
Capabilities:
Execute anti-debugging instructions

Disassembly:
pushal
call dword [ebp + 0x401387]
neg eax
mov dword [ebp + 0x402198], eax
lea eax, [ebp + 0x4013e2]
push eax
call dword [ebp + 0x40138b]
cmp word [ebp + 0x4013e6], 6
jne 0x401cc7
nop
nop
nop
nop
push 3
pop ebx
call fcn.00402071
or eax, eax
je 0x402083
cmp eax, 1
je 0x402107
cmp eax, 2
je 0x402176
popal
ret
push 0xa
pop ebx
call fcn.00402071
xchg ecx, eax
lea edi, [ebp + 0x401cc9]
push ecx
xor al, al
scasb al, byte es:[edi]
jne 0x402095
loop 0x402095
push 0
push edi
call dword [ebp + 0x4013af]
push edi
call dword [ebp + 0x401383]
push 0
call 0x4020c6
dec esp
insd dword es:[edi], dx
and byte gs:[eax + 0x6f], dl
jb 0x4020db
inc esi
popal
jbe 0x40212e
jb 0x4020ef
je 0x40213b
je 0x4020c5
nop
call dword [ebp + 0x4013b3]
mov dword [ebp + 0x4019fc], eax
pop ecx
lea edi, [ebp + 0x401d7f]
xor al, al
scasb al, byte es:[edi]
jne 0x4020db
loop 0x4020db
push edi
xor ecx, ecx
inc ecx
scasb al, byte es:[edi]
jne 0x4020e3
pop edi
push ecx
push edi
push dword [ebp + 0x4019fc]
call dword [ebp + 0x4013b7]
push dword [ebp + 0x4019fc]
add bh, bh
xchg ebp, eax
mov bh, 0x13
inc eax
add bh, bh
mov ch, 0xfc
sbb dword [eax], eax
call dword [ebp + fcn.0040135f]
jmp 0x401cc7
call 0x40211a
push ebx
dec eax
inc ebp
dec esp
dec esp
xor esi, dword [edx]
inc esp
dec esp
dec esp
add byte [eax + 0x4b95ff90], dl
adc eax, dword [eax]
or eax, eax
je 0x401cc7
call 0x40213f
push ebx
push 0x456c6c65
js 0x40219a
arpl word [ebp + 0x74], si
inc ecx
add byte [eax + 0x50909090], dl
nop
nop
nop
nop
push eax
call dword [ebp + 0x401717]
or eax, eax
je 0x401cc7
push eax
push 5
pop ebx
call fcn.00402071
lea edi, [ebp + 0x401fbe]
xchg ecx, eax
xor al, al
scasb al, byte es:[edi]
jne 0x402160
loop 0x402160
pop eax
xor ebx, ebx
push 5
push ebx
push ebx
push edi
push ebx
push ebx
call eax
jmp 0x401cc7
push 6
pop ebx
call fcn.00402071
xchg ecx, eax
xor al, al
lea edi, [ebp + 0x40203f]
scasb al, byte es:[edi]
jne 0x402187
push edi
push 0
call dword [ebp + 0x4013bb]
jmp 0x401cc7
add byte [eax], al
Function at 0x40219c
Capabilities:
Encode data using xor
Execute anti-debugging instructions

Disassembly:
mov dword [ebp + 0x4022b2], edi
mov dword [ebp + 0x4022b6], ecx
lea eax, [ebp + 0x4013e2]
push eax
call dword [ebp + 0x40138b]
mov ax, word [ebp + 0x4022c2]
cmp word [ebp + 0x4013e8], ax
je 0x402201
nop
nop
nop
nop
mov ax, word [ebp + 0x4013e8]
mov word [ebp + 0x4022c2], ax
call dword [ebp + 0x401387]
mov dword [ebp + 0x402560], eax
rdtsc
xchg ebx, eax
call fcn.004024f9
mov dword [ebp + 0x4022ba], eax
rdtsc
xchg edx, ebx
call fcn.004024f9
mov word [ebp + 0x4010f0], ax
call fcn.00402518
call fcn.0040245d
lea esi, [ebp + 0x4022dc]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.0040245d
lea esi, [ebp + fcn.004022f9]
movsb byte es:[edi], byte [esi]
call fcn.0040245d
lea esi, [ebp + 0x402312]
movsw word es:[edi], word [esi]
movsd dword es:[edi], dword [esi]
call fcn.0040245d
lea esi, [ebp + 0x402330]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.0040245d
lea esi, [ebp + 0x40234e]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.0040245d
lea esi, [ebp + 0x40236b]
movsw word es:[edi], word [esi]
mov eax, dword [ebp + 0x4022ba]
stosd dword es:[edi], eax
call fcn.0040245d
lea esi, [ebp + 0x402385]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.0040245d
lea esi, [ebp + 0x4023a0]
movsw word es:[edi], word [esi]
mov esi, dword [ebp + 0x4022be]
mov eax, dword [ebp + 0x4022b6]
mov ebx, 4
xor edx, edx
div ebx
xchg ecx, eax
mov eax, dword [ebp + 0x4022ba]
movsd dword es:[edi], dword [esi]
xor dword [edi - 4], eax
loop 0x402293
push edi
push 0x4000
push 0x14a7
push dword [ebp + 0x4022be]
call dword [ebp + 0x4013ab]
pop edi
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x3e3f30a3
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..rdata
mov ebx, 0x42e1d0
nop
mov ecx, 0x52a403c1
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x623b7530
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x2b0723e2
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x480a8e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004681a7
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x480ac6
xor eax, eax
jmp 0x480af2
cmp esi, dword [ebp - 4]
je 0x480aef
cmp dword [ebp + 0xc], 0
je 0x480aef
push dword [edi + 0x9c]
call fcn.0048069c
push dword [edi + 0x9c]
mov esi, eax
call fcn.00465be2
pop ecx
pop ecx
cmp esi, eax
je 0x480ac2
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408ed0
mov ecx, 0x1ce01aac
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x6a952e35
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4027e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40401d], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.Marmimo
push str.Mimoclass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402828
xor eax, eax
jmp 0x402843
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x431003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x403408
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406108
test esi, esi
jne 0x403440
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406244
jmp 0x40345e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004032ec
mov edi, eax
test esi, esi
je 0x40345e
cmp dword [ebx], 0
je 0x40345e
dec esi
jmp 0x403447
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x403b54
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x54d020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403bec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403bcc
xor eax, eax
push ebp
push 0x403bc5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403c24
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403bcc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x54d020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x54d020], ax
mov esp, ebp
pop ebp
ret