joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
enter 0x84, 0
sub ebp, 0x82
add byte [eax], 0
add bh, al
inc ebp
inc byte [eax]
add byte [eax], al
add byte [ebp - 0x301781ab], cl
add eax, 0xc3890000
push edx
mov edx, ebx
or dl, 0x40
push edx
mov edx, 0x401e9a
sub edx, fcn.00401665
push edx
xor eax, eax
push fcn.00401665
mov dword [ebp + 0x7e], eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x401058
mov eax, ebx

Function at 0x4015eb
Capabilities:
Delete file
Encode data using base64 via winapi

Disassembly:
push ebx
push ecx
push edx
enter 0x324, 0
push 0
call dword [sym.imp.OLE32.DLL_CoInitialize]
push 0
call dword [sym.imp.OLE32.DLL_CoCreateGuid]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push 1
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 4], 0x14
mov byte [ebp - 0x11c], 0
call dword [sym.imp.CRYPT32.DLL_CryptBinaryToStringW]
lea eax, [ebp - 0x324]
push eax
movzx ebx, word [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
call dword [sym.imp.OLE32.DLL_CoUninitialize]
lea eax, [ebx - 0x41]
leave
pop edx
pop ecx
pop ebx
ret

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

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x77de6485
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x443d03f5
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
jmp 0x431219

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, 0x25cf6c1a
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x3c45c55
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x404f60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
nop
mov esi, dword [edx + 0x28]
xor edi, edi
nop
jmp 0x404eda
movzx ecx, word [edx + 0x26]
nop
jmp 0x404eef
xor eax, eax
jmp 0x404f00
lodsb al, byte [esi]
jmp 0x404f0f
cmp al, 0x61
jmp 0x404f1d
jl 0x404f44
jmp 0x404f29
jmp 0x404f37
sub al, 0x20
nop
jmp 0x404f44
ror edi, 0xd
nop
jmp 0x404f54
add edi, eax
jmp fcn.00404f60
dec ecx
nop
jmp 0x404f73
jne 0x404eef
nop
nop
jmp 0x404f8a
push edx
nop
jmp 0x404f9b
push edi
nop
jmp 0x404fab
mov edx, dword [edx + 0x10]
jmp 0x404fbe
mov eax, dword [edx + 0x3c]
nop
jmp 0x404fcf
add eax, edx
jmp 0x404fdf
mov eax, dword [eax + 0x78]
nop
jmp 0x404ff4
test eax, eax
nop
je 0x4051b1
jmp 0x405009
nop
add eax, edx
push eax
jmp 0x40501d
mov ebx, dword [eax + 0x20]
nop
jmp 0x405031
add ebx, edx
nop
mov ecx, dword [eax + 0x18]
nop
nop
test ecx, ecx
jmp 0x405049
je 0x4051b0
nop
nop
dec ecx
mov esi, dword [ebx + ecx*4]
xor edi, edi
add esi, edx
nop
jmp 0x40506a
xor eax, eax
nop
ror edi, 0xd
jmp 0x40507a
lodsb al, byte [esi]
nop
add edi, eax
nop
jmp 0x40508a
cmp al, ah
nop
jmp 0x40509d
jne 0x40505a
nop
jmp 0x4050b0
add edi, dword [ebp - 8]
nop
cmp edi, dword [ebp + 0x24]
jmp 0x4050cb
jne 0x405038
nop
jmp 0x4050e4
nop
pop eax
nop
mov ebx, dword [eax + 0x24]
add ebx, edx
mov cx, word [ebx + ecx*2]
jmp 0x405100
mov ebx, dword [eax + 0x1c]
add ebx, edx
jmp 0x405116
mov eax, dword [ebx + ecx*4]
nop
jmp 0x40512e
add eax, edx
nop
jmp 0x40513f
mov dword [esp + 0x24], eax
pop ebx
pop ebx
jmp 0x405153
popal
nop
jmp 0x405169
pop ecx
nop
jmp 0x40517c
pop edx
jmp 0x405191
push ecx
nop
jmp 0x4051a1
jmp eax
pop eax
nop
jmp 0x4051c5
pop edi
nop
pop edx
mov edx, dword [edx]
nop
jmp 0x404ec4
Function at 0x4034ea
Capabilities:
Terminate process

Disassembly:
jmp 0x451549
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45155a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405722
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403616
Capabilities:
Query environment variable

Disassembly:
jmp 0x499f62
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x499f73
pop esi
ret
push ebx
push edi
push esi
call fcn.00499e49
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403e9a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x499f9b
push ebx
push esi
push edi
call fcn.0040551a
add esp, 0xc
push 0
call fcn.00406028
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4055dd
Capabilities:
Parse pe header

Disassembly:
jmp 0x440862
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4408a1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4408a1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4408a1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4408a1
cmp dword [ecx + 0x74], 0xe
jbe 0x4408a1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x43e6f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00403675
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x43e72f
sub eax, 1
je 0x43e72a
sub eax, 1
je 0x43e726
xor eax, eax
leave
ret
push 3
jmp 0x43e731
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x48e429
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d57
mov eax, dword [0x4ce028]
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.00405c59
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x48e46b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x48e5c7
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405da3
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 + 0x4d18e0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0040318e
mov ecx, dword [esi*4 + 0x4d18e0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x48e5c0
cmp eax, dword [edi + ecx + 0x24]
jne 0x48e5c0
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48e5c0
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040318e
add esp, 0x14
test edx, edx
jl 0x48e5c0
jg 0x48e536
test eax, eax
jb 0x48e5c0
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x48e5c0
jl 0x48e550
cmp dword [ebp - 0x1008], eax
ja 0x48e5c0
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x48e56e
test ebx, ebx
je 0x48e5a7
cmp ecx, edi
jae 0x48e5a7
mov al, byte [ecx]
cmp al, 0xd
jne 0x48e588
lea eax, [edi - 1]
cmp ecx, eax
jae 0x48e594
cmp byte [ecx + 1], 0xa
jne 0x48e594
inc ecx
jmp 0x48e594
movzx eax, al
movsx eax, byte [eax + 0x4ce340]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x48e56e
cmp edx, ebx
jne 0x48e56e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x48e5c5
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00402f86
leave
ret
Function at 0x48ed06
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x4d18e0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x48ed46
cmp byte [ebx], 0xa
jne 0x48ed46
or byte [eax + edi + 0x28], 4
jmp 0x48ed4b
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x48ee49
mov al, byte [edx]
cmp al, 0x1a
je 0x48ee2b
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x48ed7a
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x48ed9f
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x48eda9
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x48ed5c
jmp 0x48ee49
push 0
lea eax, [ebp - 0xc]
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 0x48ee26
cmp dword [ebp - 0xc], 0
je 0x48ee26
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4d18e0]
test byte [eax + edi + 0x28], 0x48
je 0x48ee00
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x48edeb
mov byte [esi], dl
jmp 0x48edfc
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d18e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x48ee49
cmp byte [ebp - 1], 0xa
jne 0x48ee0f
cmp esi, ebx
jne 0x48ee0f
mov byte [esi], 0xa
jmp 0x48ee48
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401906
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x48ee49
mov byte [esi], 0xd
jmp 0x48ee48
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4d18e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x48ee45
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x48ee49
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x48eea5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4d18e0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x48eee8
cmp word [esi], dx
jne 0x48eee8
or byte [edi + eax + 0x28], 4
jmp 0x48eeed
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x48f040
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x48f020
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x48ef2f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x48ef65
cmp eax, edx
jae 0x48ef71
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x48ef07
jmp 0x48f040
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48f01c
cmp dword [ebp - 0x14], 0
je 0x48f01c
mov eax, dword [ebx*4 + 0x4d18e0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x48eff4
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x48efbd
mov word [esi], cx
jmp 0x48eff0
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4d18e0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4d18e0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4d18e0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x48f040
pop ebx
cmp word [ebp - 4], bx
jne 0x48f005
cmp esi, dword [ebp + 0xc]
jne 0x48f005
mov word [esi], bx
jmp 0x48f03d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401906
add esp, 0x10
cmp word [ebp - 4], bx
je 0x48f040
push 0xd
jmp 0x48f039
mov ecx, dword [ebx*4 + 0x4d18e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x48f037
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x48f040
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x498501
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4ce028]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49854c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004989c3
test al, al
jne 0x498546
sub edx, 2
cmp edx, edi
jne 0x49852c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49856e
lea eax, [edi + 2]
cmp edx, eax
je 0x49856e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004980fa
add esp, 0x10
jmp 0x498668
push esi
lea ecx, [ebp - 0x255]
call fcn.004989c3
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4985b1
push dword [ebp - 0x25c]
jmp 0x49855e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4985ee
cmp word [ebp - 0x226], 0
je 0x49860f
cmp word [ebp - 0x226], ax
jne 0x4985ee
cmp word [ebp - 0x224], 0
je 0x49860f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004980fa
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49865b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4985c8
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x498643
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x498668
push 0x497ae2
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040537b
add esp, 0x10
jmp 0x498638
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402f86
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x40de38
mov ecx, 0x34fe45b9
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x433024
nop
nop
nop
nop
mov eax, section..data_1
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x15a23c5e
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4015a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0x401450
push 0
push 0
call fcn.004f164e
add esp, 0x18
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x10], 0
je 0x401609
push 0xffffffffffffffff
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401609
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], 0
mov esp, ebp
pop ebp
ret

Function at 0x404110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404129
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404164
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x404160
lea ebx, [ebx]
cmp esi, eax
jae 0x404164
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404150
cmp esi, eax
jb 0x40416a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x406420
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x5e20a5
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x704dd8]
xor eax, esp
mov dword [esp + 0x274], eax
push esi
push edi
mov eax, dword [0x704dd8]
xor eax, esp
push eax
lea eax, [esp + 0x284]
mov dword fs:[0], eax
push 0x11c
lea eax, [esp + 0x20]
push 0
push eax
mov esi, ecx
call fcn.004e9ba0
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x2c], 2
jne 0x4064b4
cmp dword [esp + 0x20], 5
jne 0x4064b4
push 0x5fe3ac
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x2bc
push 0
push 0
push 0
push 0x12
jmp 0x4064d6
push 0x5fe3a0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x2bc
push 0
push 0
push 0
push 0x14
call dword [sym.imp.GDI32.dll_CreateFontA]
push 0x4c
mov dword [esi + 0x788], eax
call fcn.004ca5aa
add esp, 4
mov dword [esp + 0xc], eax
mov dword [esp + 0x28c], 0
test eax, eax
je 0x406508
mov ecx, eax
call fcn.00416dd0
jmp 0x40650a
xor eax, eax
mov dword [esp + 0x28c], 0xffffffff
mov dword [esi + 0x750], eax
call fcn.004cb428
mov eax, dword [eax + 8]
mov ecx, dword [esi + 0x750]
push str.SELECT
push eax
call fcn.00416e60
lea ecx, [esp + 0x138]
call dword [sym.imp.DuiLib32.dll_public:_void___thiscall_DuiLib::CDialogBuilder::constructor_void_]
mov edx, dword [esi + 0x6a0]
push 0
push edx
push 0
push 0
push ecx
mov eax, esp
lea ecx, [esp + 0x14c]
mov dword [esp + 0x2a0], 1
mov dword [esp + 0x20], esp
mov dword [eax], str.CChangeMonthBar.xml
call dword [sym.imp.DuiLib32.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CDialogBuilder::Create_class_DuiLib::STRINGorID__wchar_t_const___class_DuiLib::IDialogBuilderCallback___class_DuiLib::CPaintManagerUI___class_DuiLib::CControlUI__]
mov edi, eax
mov eax, dword [esi + 0x4a0]
mov edx, dword [eax + 0x10]
lea ecx, [esi + 0x4a0]
push edi
call edx
cmp byte [esp + 0x294], 0
je 0x4065c9
lea eax, [esp + 0x10]
push 0x4063e0
push eax
call fcn.00405a00
add esp, 8
push eax
lea ecx, [edi + 0x28]
mov byte [esp + 0x290], 2
call dword [sym.imp.DuiLib32.dll_public:_void___thiscall_DuiLib::CEventSource::operator_class_DuiLib::CDelegateBase_const__]
lea ecx, [esp + 0x10]
mov byte [esp + 0x28c], 1
call dword [sym.imp.DuiLib32.dll_public_virtual:_void___thiscall_DuiLib::CDelegateBase::destructor_void_]
jmp 0x4065ee
mov eax, 0x46
mov dword [esi + 0x678], eax
mov dword [esi + 0x67c], eax
mov dword [esi + 0x680], 0x19
mov dword [esi + 0x688], 0x62
mov ecx, esi
call fcn.00405b50
lea ecx, [esp + 0x138]
mov dword [esp + 0x28c], 0xffffffff
call dword [sym.imp.DuiLib32.dll_public:_void___thiscall_DuiLib::CDialogBuilder::destructor_void_]
mov ecx, dword [esp + 0x284]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x274]
xor ecx, esp
call fcn.004e8c89
add esp, 0x284
ret 4