joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a70
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
jmp loc.0045657b

Function at 0x405a9f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a528]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a52c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405aef
test edi, edi
jne 0x405aac
and word [esi], di
jmp loc.0045e7ad
mov eax, esi
jmp 0x405ae9

Function at 0x405af3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405b1b
jmp loc.0045850b
xor eax, eax
pop esi
pop ebp
ret 0xc

Function at 0x405b22
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ebx, 0x4308b8
push 0x40a54c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x405b71
push 1
push 0
push esi
call fcn.00405a70
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x405c98
cmp eax, edi
jg 0x405c98
mov esi, 0x4310b8
push edi
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405c98
cmp eax, edi
jg 0x405c98
push esi
push ebx
push str._ls_ls_r_n
push 0x4304b8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x434ed0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405e26
push 4
push 0xc0000000
push esi
call fcn.00405a70
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405c98
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
jmp 0x4594d3
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x405cd1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x18]
push edi
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov word [esi], di
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405d45
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x800
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405d32
jmp loc.00457151
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x7fe], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x40621c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4318bc], 0
push esi
jne 0x406253
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 0x40622d
mov dword [ecx*4 + 0x4318b8], eax
inc ecx
jmp loc.0045a694
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406284
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 + 0x4318b8]
xor eax, esi
inc ecx
dec edx
jne 0x406266
pop edi
not eax
pop esi
ret 0xc
Function at 0x1001be00
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1001bfc4
pushal
mov esi, section.UPX1
lea edi, [esi - 0x15000]
or ebp, 0xffffffff
push edi
jmp 0x1001be2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1001be31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1001be20
mov eax, 1
add ebx, ebx
jne 0x1001be43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1001be38
jne 0x1001be54
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1001be38
xor ecx, ecx
sub eax, 3
jb 0x1001be68
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1001beda
mov ebp, eax
add ebx, ebx
jne 0x1001be73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1001be80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1001bea4
inc ecx
add ebx, ebx
jne 0x1001be90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1001be85
jne 0x1001bea1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1001be85
add ecx, 2
cmp ebp, 0xfffff300
lea edx, [edi + ebp]
adc ecx, 1
cmp ebp, 0xfffffffc
jbe 0x1001bec4
mov al, byte [edx]
mov byte [edi], al
inc edx
inc edi
dec ecx
jne 0x1001beb5
jmp 0x1001be26
mov eax, dword [edx]
mov dword [edi], eax
add edx, 4
add edi, 4
sub ecx, 4
ja 0x1001bec4
add edi, ecx
jmp 0x1001be26
mov ecx, 0x147
pop esi
mov edi, esi
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1001bee2
cmp byte [edi], 5
jne 0x1001bee2
mov bl, byte [edi + 4]
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x1001bee7
lea edi, [esi + 0x19000]
mov eax, dword [edi]
or eax, eax
je 0x1001bf56
mov ebx, dword [edi + 4]
add ebx, esi
add edi, 8
lea eax, [eax + esi + 0x1b000]
push eax
call dword [esi + 0x1b064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1001bf14
mov ecx, edi
push edi
push ebp
dec eax
repne scasb al, byte es:[edi]
call dword [esi + 0x1b068]
or eax, eax
je 0x1001bf50
mov dword [ebx], eax
add ebx, 4
jmp 0x1001bf31
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1001bf87
cmp al, 0xef
ja 0x1001bf7a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1001bf5c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1001bf69
mov ebp, dword [esi + 0x1b06c]
mov ebx, 0x1000
lea edi, [esi - 0x1000]
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x1001bfbb
sub esp, 0xffffff80
jmp 0x10002920
Function at 0x4037c4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0xfab008], 0x8088405
inc edx
mov dword [ebx + 0xfab008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x425738
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push ebp
mov edi, ecx
mov ecx, dword [ebp + 8]
mov esi, ecx
shr esi, 2
je 0x425765
lea edi, [edi + esi*4]
lea edx, [edx + esi*4]
lea eax, [eax + esi*4]
neg esi
mov ebx, dword [eax + esi*4]
mov ebp, dword [edx + esi*4]
mov dword [edi + esi*4], ebx
xor dword [eax + esi*4], ebp
inc esi
jne 0x425756
and ecx, 3
je 0x42577d
mov bl, byte [ecx + eax - 1]
mov bh, byte [ecx + edx - 1]
mov byte [ecx + edi - 1], bl
xor byte [ecx + eax - 1], bh
dec ecx
jne 0x42576a
pop ebp
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x425788
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push ebp
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push esi
shr esi, 2
je 0x4257c1
lea ecx, [ecx + esi*4]
lea edi, [edi + esi*4]
lea edx, [edx + esi*4]
lea eax, [eax + esi*4]
neg esi
mov ebp, dword [eax + esi*4]
mov ebx, dword [edi + esi*4]
xor ebx, dword [edx + esi*4]
mov dword [edx + esi*4], ebx
xor ebx, dword [ecx + esi*4]
mov dword [edi + esi*4], ebp
mov dword [eax + esi*4], ebx
inc esi
jne 0x4257a9
pop esi
and esi, 3
je 0x4257e6
mov bl, byte [esi + eax - 1]
mov bh, byte [esi + edx - 1]
xor bh, byte [esi + edi - 1]
mov byte [esi + edx - 1], bh
xor bh, byte [esi + ecx - 1]
mov byte [esi + edi - 1], bl
mov byte [esi + eax - 1], bh
dec esi
jne 0x4257c7
pop ebp
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x4257f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov esi, ecx
shr esi, 2
je 0x42581c
lea edi, [edi + esi*4]
lea edx, [edx + esi*4]
lea eax, [eax + esi*4]
neg esi
mov ebx, dword [edx + esi*4]
xor ebx, dword [eax + esi*4]
mov dword [edi + esi*4], ebx
mov dword [eax + esi*4], ebx
inc esi
jne 0x42580d
and ecx, 3
je 0x425834
mov bl, byte [ecx + edx - 1]
xor bl, byte [ecx + eax - 1]
mov byte [ecx + edi - 1], bl
mov byte [ecx + eax - 1], bl
dec ecx
jne 0x425821
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x42583c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
shr ecx, 1
lea edi, [eax + ecx*8]
lea edx, [edx + ecx*8]
neg ecx
mov ebx, dword [edx + ecx*8]
mov eax, dword [edx + ecx*8 + 4]
xor dword [edi + ecx*8], ebx
xor dword [edi + ecx*8 + 4], eax
inc ecx
jne 0x425848
pop edi
pop ebx
ret
Function at 0x426164
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call dword [eax + 0x20]
mov esi, eax
mov eax, esi
shr eax, 2
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.00425dbc
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0xef66a3
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, esi
add eax, eax
push eax
mov eax, dword [ebp - 8]
pop edx
mov ecx, edx
cdq
idiv ecx
mov edi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
dec edi
test edi, edi
jl 0x426212
inc edi
mov edx, dword [ebp - 0x10]
mov eax, ebx
mov ecx, esi
call fcn.00403510
mov edx, ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
call fcn.0042583c
lea eax, [ebx + esi]
mov ebx, eax
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, esi
call fcn.00403510
mov edx, ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov edx, dword [ebp - 0x10]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
call fcn.0042583c
lea eax, [ebx + esi]
mov ebx, eax
dec edi
jne 0x4261bf
mov eax, esi
add eax, eax
push eax
mov eax, dword [ebp - 8]
pop edx
mov ecx, edx
cdq
idiv ecx
mov edi, edx
cmp esi, edi
jg 0x426260
mov edx, dword [ebp - 0x10]
mov eax, ebx
mov ecx, esi
call fcn.00403510
mov edx, ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
call fcn.0042583c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x10]
mov ecx, esi
call fcn.00403510
lea eax, [ebx + esi]
mov ebx, eax
sub edi, esi
test edi, edi
jle 0x42628a
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
dec edi
test edi, edi
jl 0x42628a
inc edi
xor eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
mov dl, byte [edx + eax]
xor byte [ebx + eax], dl
inc eax
dec edi
jne 0x42627a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xef66aa
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00425f58
ret

Function at 0x434a6c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
mov bl, dl
dec ebx
test ebx, ebx
jl 0x434ac0
inc ebx
xor edx, edx
mov ecx, edx
shl ecx, 2
movzx esi, byte [eax + ecx]
lea esi, [esi*4 + 0xfab780]
mov esi, dword [esi]
movzx edi, byte [eax + ecx + 1]
lea edi, [edi*4 + 0xfabb80]
xor esi, dword [edi]
movzx edi, byte [eax + ecx + 2]
lea edi, [edi*4 + 0xfabf80]
xor esi, dword [edi]
movzx edi, byte [eax + ecx + 3]
lea edi, [edi*4 + 0xfac380]
xor esi, dword [edi]
lea ecx, [eax + ecx]
mov dword [ecx], esi
inc edx
dec ebx
jne 0x434a7b
pop edi
pop esi
pop ebx
ret
Function at 0x454c20
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x454c26
ret

Function at 0x45f15c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0xf2f70d
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.004053b8
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0xf2f724
call fcn.00405014
mov eax, ebx
call fcn.00424050
mov edi, eax
dec edi
test edi, edi
jl 0x45f214
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.00424024
mov edx, dword [0xf43874]
call fcn.00403f90
test al, al
je 0x45f210
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.00424024
lea edx, [ebp - 0x14]
call fcn.00493338
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.004053b8
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405088
inc esi
dec edi
jne 0x45f1c2
mov al, byte [0xf2f728]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0xf2f734
mov eax, dword [ebp - 0xc]
call fcn.0040f27c
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.00404d74
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.00493338
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0xf2f724
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f8]
call fcn.00493338
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0xf2f724
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0xf2f724
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0xf2f740
call fcn.0040aedc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xf2f714
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00404d00
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404d00
lea eax, [ebp - 0x14]
call fcn.00404cdc
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404d00
ret
Function at 0x49b198
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, ecx
mov dword [ebp - 4], eax
mov esi, dword [0xfbd31c]
mov eax, dword [ebp - 4]
mov byte [eax + 0x210], 1
xor eax, eax
push ebp
push 0xf6b771
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00493368
add dword [ebp - 0xc], 4
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00494590
mov eax, dword [esi]
call fcn.00481e78
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
add edx, dword [ebp - 0x14]
cmp eax, edx
jge 0x49b20a
mov eax, dword [esi]
call fcn.00481e78
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x4c]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
call fcn.00481e84
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x48]
add edx, dword [ebp - 0x18]
cmp eax, edx
jge 0x49b22e
mov eax, dword [esi]
call fcn.00481e84
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x48]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
call fcn.00481e6c
cmp eax, dword [ebp - 0x18]
jle 0x49b244
mov eax, dword [esi]
call fcn.00481e6c
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
call fcn.00481e60
cmp eax, dword [ebp - 0xc]
jle 0x49b25a
mov eax, dword [esi]
call fcn.00481e60
mov dword [ebp - 0xc], eax
push 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call fcn.00499b20
push eax
call fcn.004083d8
call fcn.00407938
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x214]
cmp eax, 0xfa
jbe 0x49b321
mov eax, ebx
call fcn.00404fc8
cmp eax, 0x64
jge 0x49b321
cmp dword [0xfb83a4], 0
je 0x49b321
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x1016
call fcn.00408428
cmp dword [ebp - 8], 0
je 0x49b321
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x1018
call fcn.00408428
cmp dword [ebp - 8], 0
je 0x49b2e4
mov bl, 2
jmp 0x49b2ff
lea edx, [ebp - 0x20]
mov eax, dword [0xfc55d4]
call fcn.0049e430
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
jle 0x49b2fd
xor ebx, ebx
jmp 0x49b2ff
mov bl, 1
xor eax, eax
mov al, bl
mov eax, dword [eax*4 + 0xfb84ac]
or eax, 0x40000
push eax
push 0x64
mov eax, dword [ebp - 4]
call fcn.00499b20
push eax
call dword [0xfb83a4]
mov eax, dword [0xfbd14c]
mov eax, dword [eax]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 4]
call fcn.00497254
push 4
mov eax, dword [ebp - 4]
call fcn.00499b20
push eax
call fcn.00408420
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x7c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xf6b778
call fcn.00407938
mov edx, dword [ebp - 4]
mov dword [edx + 0x214], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x210], 0
ret
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 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..3ean
mov ebx, 0x40915c
nop
mov ecx, 0x1af95861
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..7LWLf
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x1b073c88
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x40105e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4010b5
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4010a7
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4010a3
cmp edi, eax
jae 0x4010a7
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x401095
cmp edi, eax
jb 0x4010ab
xor eax, eax
jmp 0x4010b4
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x4014c2
Capabilities:
Delete directory
Delete file

Disassembly:
cmp dword [edi + 0xc], 0x8004ffff
push esi
je 0x401506
xor esi, esi
cmp dword [edi + 0x14], esi
je 0x4014ee
test esi, esi
js 0x40153b
cmp esi, dword [edi + 0x14]
jge 0x40153b
mov eax, dword [edi + 0x10]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, dword [edi + 0x14]
jne 0x4014d3
lea esi, [edi + 0x10]
call fcn.004027dd
lea esi, [edi + 0x1c]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call fcn.00402725
mov eax, dword [edi + 0x20]
sub eax, 0x10
call fcn.00401153
mov eax, dword [edi + 0x1c]
sub eax, 0x10
call fcn.00401153
lea esi, [edi + 0x10]
call fcn.004027dd
mov eax, dword [edi + 8]
sub eax, 0x10
call fcn.00401153
mov eax, dword [edi + 4]
sub eax, 0x10
pop esi
jmp fcn.00401153
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]

Function at 0x401950
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
mov edi, eax
mov eax, dword [edi]
push 0
push eax
call ebx
test eax, eax
jne 0x40197d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40197d
xor al, al
jmp 0x401a02
mov eax, dword [0x413b20]
push esi
mov ecx, 0x413b20
call dword [eax + 0xc]
add eax, 0x10
push 0x104
lea esi, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.00402b4a
mov edi, dword [edi]
push eax
push 0
push 0x411398
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, eax
or eax, 0xffffffff
call fcn.00402b7f
test edi, edi
je 0x4019f4
cmp edi, 0x6f
je 0x4019f4
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push esi
call ebx
test eax, eax
jne 0x4019da
lea eax, [esi - 0x10]
jmp 0x4019fa
mov edi, dword [ebp + 8]
add edi, 0x1c
lea eax, [ebp - 4]
call fcn.0040266a
lea eax, [esi - 0x10]
call fcn.00401153
mov al, 1
jmp 0x401a01
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401153
xor al, al
pop esi
pop edi
pop ebx
leave
ret 4