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

Disassembly:
add ebx, dword [ebp - 0x49]
add eax, 0xc3b97474
out 0x1c, eax
mov ch, 0x61
push edx
mov ebx, dword [ecx - 0x48b23bf5]
or byte [eax], 0x1f
or eax, esp
dec ebp
mov bh, 0x80
or byte [edi], bl
push edi
sbb dword [eax], esi
lodsd eax, dword [esi]
scasd eax, dword es:[edi]
out 0xe7, al
xchg ebp, eax
cmp al, 0x2b
xchg ebx, eax
lodsb al, byte [esi]
salc
mov word [ecx + 0x42], es
pop ss
fucom st(3)
adc eax, dword [0x9d49d0d5]
sbb eax, ecx
pop edx
mov ch, 0x75
sbb eax, 0x87a2e098
lodsd eax, dword [esi]
xchg edi, eax
mov edx, 0x1d4f0f22
wait
sub eax, 0x94cedba7
or bh, byte [ebx + 0x140fdf0d]
salc
jne 0x409567
cdq
jns 0x409511
sbb edx, esi
shr dword [ecx + ecx - 0x2c88e014], cl
loop 0x409531
mov bh, 0x19
lahf
inc esp
sub dword [edi - 0x22], edx
dec ebp
loope 0x4095e6
pop es
inc ebx
mov bl, 0x70
fisttp dword gs:[eax - 0x51]
mul byte [esi]
xchg edx, eax
sbb esi, dword [esi]
sbb eax, 0xe39955f8
int1
dec edi
pop esi
scasb al, byte es:[edi]
cmp al, 0x2d
loop 0x4095a1
and ch, al
dec dword [ebp - 0x3e]
in eax, dx
lcall 0x3eb0, 0xeea8f33a
pushal
test ah, cl
imul esp, edi, 0xdb3e4a6f
xchg ecx, eax
adc bl, byte [ebp - 0x4b5735ff]
or al, 0x7c
push edi
invalid
or byte [edi + 0x7a2716fb], 0xef
dec esp
dec ebx
not byte [ebp + 0x7e43371c]
or cl, byte [ebp - 0x1b60cd1a]
enter 0xffffffffffff8ab3, 0x47
insd dword es:[edi], dx
mov edi, 0xc719d79d
inc edi
cld
jns 0x4095f6
invalid
sbb eax, 0xfd4795ce
sbb bh, byte [esi + 0x2b97dbfe]
or dl, byte [ebp + 0x7a]
push edx
mov ah, 0x1a
stc
push ebx
stosd dword es:[edi], eax
jmp 0x40967a
arpl word [edi - 0x6e], sp
sub ch, byte [ebx - 0x5873cfb7]
sub edi, dword [edx + ebp*4 + 0x69d31e3a]
pushal
ljmp 0xd43

Function at 0x41df0a
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [eax]
push dword [ebx]
add byte [eax - 0x74aa6f70], dl
in al, dx
add dword [eax], 0
push ebx
xor ecx, ecx
mov dword [ebp + 0x7f], ecx
add byte [ebp - 8], dl
mov ebx, eax
xor eax, eax
push ebp
add byte [eax], al
jns 0x41df6a
add byte [edi + edi*8 - 0x4c], ah
add byte [ecx - 0x5efe4de0], cl
hlt
cld
mov eax, dword [ebp + 0x6e]
add byte [eax], cl
call dword [ecx]
mov edx, dword [ebp - 4]
mov eax, dword [eax]
add al, ch
add dword [0xae0000], eax
invalid

Function at 0x43dbda
Capabilities:
Encode data using xor

Disassembly:
mov dword [0x8810bcd], eax
clc
mov edi, 0xf7d69a4
pop ecx
mov bl, 0x21
wait
jno 0x43dbec
adc eax, 0x81abe107
or byte [edx + 0x51], dh
jmp 0x33506587
rol dword [edi + 0x72ec80d], cl
add al, 0x3c
jge 0x43db74
mov ecx, 0x6b804005
pop ecx
or al, byte [ebp + 0x1affa629]
test dword [ecx], ebp
cmpsb byte [esi], byte es:[edi]
call [edx]
invalid
Function at 0x43e98e
Capabilities:
Encode data using xor

Disassembly:
enter 0xffffffffffffd887, 0x41
dec esi
inc ebx
les edi, [esi]
fimul dword [eax + 8]
aad 0xc8
inc edi
cdq
pop es
arpl word [edx], di
dec edx
in al, 0xde
xchg esi, eax
lahf
jno 0x43e997
test al, 1
int 0x12
inc edx
pop edi
movsb byte es:[edi], byte [esi]
test dword [ebp + eax - 0xf], 0xb2431de6
in al, dx
add al, 0x81
cmp bh, bl
adc dword [edi + esi*2], ebp
lahf
cmc
mov ss, word [edx]
xor ebp, dword [eax + ebx*8 - 0x2b620c4e]
popfd
popal
lds edi, [eax + 0xc88449c]
pushfd
inc esp
mov byte [ecx + edi*4], cl
and byte [ebx], 0x68
jp 0x43e942
mov ecx, 0x7a682382
mov dh, 0xdc
loop 0x43e960
invalid
fsubr st(2), st(0)
rol dword [eax - 0x62], 1
inc eax
sahf
mov al, 0xf
sub cl, byte [ecx + edx*2 - 0xc4f61a5]
sahf
mov al, 0xf3
adc dh, byte [bx + si]
sub esp, dword [ebx + 0x4e]
push ecx
lea ebp, [edi - 0x43459e4]
push esp
or dword [edx + 0x526e1d91], esp
mov ecx, 0xc5fb7311
xchg esi, eax
lcall 0xcf48, 0xa3d6d3cb
push cs
sub eax, 0x215d73d
xor byte ss:[ebx - 0x4e4b9875], 0xf6
sub dword [edx], ecx
add ecx, esp
sub byte [ebp + 0x54], dl
wait
or dword [ebx + 0x6354a7c7], eax
xor ecx, dword [edx]
shl byte [edi - 0x1e554d4d], 1
mov esi, 0x78847ec1
out dx, al
les esi, [ebx - 0x81f68ac]
xor cl, ch
xchg ebp, eax
stosd dword es:[edi], eax
jb 0x43e9e5
jnp 0x43e9e4
outsb dx, byte [esi]
dec ebp
jp 0x43e982
xchg ebp, eax
mov ch, ah
xchg edx, eax
add ah, byte [eax - 0x4d]
push esi
pop eax
cmp byte [ecx - 0x5cd3fe46], ah
stosd dword es:[edi], eax
imul ebp, ebp, 0x9fa77558
lodsd eax, dword [esi]
test dword [ecx - 0x12], esi
push ecx
mov edx, 0x8f769e21
popfd
mov ebx, 0xaf9538cb
mov byte [0x5da4321c], bl
in eax, 0xcb
invalid
Function at 0x4880a6
Capabilities:
Encode data using xor

Disassembly:
je 0x4880dd
cwde
xlatb
std
dec esi
salc
xor eax, 0xb6cb0b99
sub eax, 0x932ada09
sub dl, byte [ebx + 0x177be55b]
pop ebx
in eax, 0x7b
pop ss
xor byte [eax], 0x58
sbb eax, dword [ecx + 0x4bd6b8a1]
pop eax
sbb dword [0x4ae42f03], esi
js 0x4880f7
invalid
dec esp
stosb byte es:[edi], al
add esi, dword [ebp + 0x75a6976c]
insb byte es:[edi], dx
xchg edi, eax
cmpsb byte [esi], byte es:[edi]
jne 0x488061
push ds
insb byte es:[edi], dx
xchg edi, eax
cmpsb byte [esi], byte es:[edi]
jne 0x488061
push ds
push ebx
mov ch, 0xa3
cmp edi, dword [ebx - 0x363f5257]
popfd
cld
xchg edx, eax
cmp esp, dword [ecx + ecx - 0x49]
or byte [esi + 0x60713e75], ah
push edi
test al, 0x95
adc al, 0x37
jmp 0x488072
test eax, 0xd27ddfc2
dec edi
aad 0x8b
and edi, esi
mov ebx, gs
mul dword [0x6ca58a1c]
insb byte es:[edi], dx
js 0x488070
dec esp
push ebx
pop edi
test byte [edi + 0x44], cl
xor byte [edi + eax*8 - 0x4e6539f3], ch
push es
cdq
and byte [ebx + 0x53], 0x85
dec edi
ja 0x488132
out 0x94, eax
mov dword [0x3f6e684d], eax
xchg ebp, eax
aam 0x7b
mov dword [0x3e6637d6], eax
xchg ecx, eax
dec ebp
push 0xd4953f6e
jnp 0x4880a2
salc
aaa
xchg cx, ax
sbb al, 0xdb
in eax, 0x13
push cs
jns 0x488154
or al, 0xfa
test byte [esi - 0x54], bh
les esp, [ecx]
or edx, edx
out dx, al
aas
int 0xf
mov edi, 0xae22e3c
jae 0x4880c8
jne 0x488134
aad 0xcf
ljmp 0xee68
lock adc bh, byte [ecx + 0x61cf67b2]
mov ecx, 0x61cf67b2
sal ecx, 1
mov dh, 0xf8
or eax, dword [ebp - 0x48]
invalid
push ebp
lodsb al, byte [esi]
sbb ah, byte [edx + edx - 0x3d]
add ebp, esp
mov dl, byte [esi + 0x3c]
std
invalid

Function at 0x49aec2
Capabilities:
Encode data using xor

Disassembly:
in eax, 0x23
adc ch, byte [ebx]
jae 0x49aef5
mov dh, 0xc6
lodsd eax, dword [esi]
push ss
ret 0xe7c
inc ecx
stc
aad 0xf8
xchg esi, eax
jo 0x49af60
mov dword [ecx], edx
movsb byte es:[edi], byte [esi]
mov al, byte [0x6f71d6c8]
and eax, 0x13a6006b
xchg ebp, eax
cmpsd dword [si], dword es:[di]
xchg ebp, eax
ret 0xfc08
jbe 0x49afa5
mov dl, 0x5b
and al, 0x82
mov word [edx + 0x70], es
dec ecx
add eax, 0x7a30b219
push ecx
jp 0x49afb3
mov bh, byte [esi]
cmpsd dword [esi], dword es:[edi]
jb 0x49af7a
mov ah, byte [eax + 0x3a]
and ebp, dword [ecx - 0x74d8c43e]
adc edi, dword [edx + 0x7dde362]
jecxz 0x49af52
pop es
fld xword [edx]
xor eax, 0xf7f7e1dd
sub cl, byte [esi + ebp*4 + 0x7029be72]
loope 0x49af73
imul dword [edx]
mov word [esi + 0x7029be72], gs
and bl, byte [edx - 0x2da464c4]
xor al, 0xb1
xchg ecx, eax
inc edx
xor al, 0x15
cmp byte [edx], 0x40
pop ebp
das
mov edx, dword [ebx - 0x1d277764]
push 0xddccc4f3
retf 0x6f13
xchg byte [eax + eax*2], ah
fist dword [edi - 0x74]
fisub word [ebx]
mov bl, 8
std
fisubr dword [edx + eax*4 + 0x62]
wait
sub cl, byte [ebx + 0x18]
fdivr dword [edx + 0x5c15cbda]
and byte [edx - 0x65], 0x2a
dec ebx
sbb al, bl
mov edx, 0x5c15cbda
sbb ebp, dword [ebp + 0x239f05f6]
lds dx, [esp + edx - 0x1c]
mov dl, dl
push ds
pop ebp
add bh, dh
pop esp
push 0x42
invalid
Function at 0x4c3eb6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4ca230
cmp edx, dword [eax]
je 0x4c3ed8
add eax, 8
inc ecx
cmp eax, 0x4ca2c0
jl 0x4c3ec9
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4ca230]
jne 0x4c4006
mov eax, dword [0x4ce8b8]
cmp eax, 1
je 0x4c3fe0
test eax, eax
jne 0x4c3f09
cmp dword [0x4ca174], 1
je 0x4c3fe0
cmp edx, 0xfc
je 0x4c4006
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c3f40
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004c45d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c4800
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c3f83
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c4800
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c7928
push edi
call fcn.004c5fd0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004c45d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c45e0
lea eax, [ebp - 0xa0]
push 0x4c7908
push eax
call fcn.004c45e0
push dword [esi + 0x4ca234]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c45e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004c5f44
add esp, 0x2c
pop edi
jmp 0x4c4006
lea eax, [ebp + 8]
lea esi, [esi + 0x4ca234]
push 0
push eax
push dword [esi]
call fcn.004c4800
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x4060b6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004021ba
and dword [ebp - 4], 0
cmp dword [0x40b654], 0
mov ebx, eax
jne 0x406167
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406218
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406218
push eax
call fcn.00402148
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b654], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b658], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b65c], eax
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b664], eax
test eax, eax
je 0x406167
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b660], eax
mov eax, dword [0x40b660]
cmp eax, ebx
je 0x4061bf
cmp dword [0x40b664], ebx
je 0x4061bf
push eax
call fcn.004021c3
push dword [0x40b664]
mov esi, eax
call fcn.004021c3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4061bf
test edi, edi
je 0x4061bf
call esi
test eax, eax
je 0x4061b6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4061b6
test byte [ebp - 0xc], 1
jne 0x4061bf
or dword [ebp + 0x10], 0x200000
jmp 0x4061f8
mov eax, dword [0x40b658]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4061f8
mov eax, dword [0x40b65c]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b654]
call fcn.004021c3
pop ecx
test eax, eax
je 0x406218
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40621a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x4099a4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a77
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a90
push ebx
push 0x409a9c
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409a24
mov al, 0x62
call fcn.00409648
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00409978
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a2d
call fcn.00409978
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a7e
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409b30
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
jmp 0x409bd9
cmp dword [esi + 0x10], 0x1000
jne 0x409bc5
test byte [esi + 0x15], 1
jne 0x409bc5
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b84
cmp eax, 2
je 0x409b84
cmp eax, 0x10
je 0x409b84
cmp eax, 0x20
jne 0x409b99
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b99
mov bl, 1
xor ebp, ebp
jmp 0x409baa
mov eax, dword [esi]
add eax, ebp
call fcn.00409b28
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b9d
test bl, bl
je 0x409bc5
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b5c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x40324b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push edi
xor edi, edi
test ecx, ecx
js 0x403274
mov eax, dword [0x435a78]
push edi
add eax, ecx
push edi
push eax
push dword [0x40b014]
mov dword [0x40d96c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.004030cc
test eax, eax
js 0x40334a
push ebx
push esi
push 4
lea eax, [ebp + 8]
push eax
push dword [0x40b014]
call fcn.00406955
test eax, eax
je 0x403345
push dword [ebp + 8]
add dword [0x40d96c], 4
call fcn.004030cc
mov esi, eax
test esi, esi
js 0x403341
cmp dword [ebp + 0x10], edi
jne 0x403315
mov ecx, dword [ebp + 8]
test ecx, ecx
jle 0x403341
mov ebx, 0x4000
mov edi, 0x41f548
cmp ecx, ebx
mov eax, ebx
cmovl eax, ecx
push eax
push edi
push dword [0x40b014]
mov dword [ebp - 4], eax
call fcn.00406955
test eax, eax
je 0x403345
push dword [ebp - 4]
push edi
push dword [ebp + 0xc]
call fcn.00406a18
test eax, eax
je 0x403311
mov eax, dword [ebp - 4]
add esi, eax
mov ecx, dword [ebp + 8]
add dword [0x40d96c], eax
sub ecx, eax
mov dword [ebp + 8], ecx
test ecx, ecx
jg 0x4032cd
jmp 0x403341
push 0xfffffffffffffffe
jmp 0x403347
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
cmp dword [ebp + 8], eax
cmovl eax, dword [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [0x40b014]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403345
mov esi, dword [ebp - 4]
add dword [0x40d96c], esi
mov eax, esi
jmp 0x403348
push 0xfffffffffffffffd
pop eax
pop esi
pop ebx
pop edi
leave
ret 0x10

Function at 0x40336d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
cmp dword [ebp + 8], 0
je 0x403395
mov eax, dword [0x40d980]
test eax, eax
je 0x40338c
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x40d980], 0
leave
ret
cmp dword [0x40d980], 0
je 0x4033a7
push 0
call fcn.0040621c
leave
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x435a24]
jbe 0x403411
cmp dword [0x434a18], 0
je 0x4033ec
test byte [0x435b14], 1
je 0x403411
call fcn.0040334f
push eax
lea eax, [ebp - 0x80]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push 0
call fcn.00405d09
leave
ret
push 0
push 0x4036f0
push 0
push 0x6f
push dword [0x434a14]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x40d980], eax
call dword [sym.imp.USER32.dll_ShowWindow]
leave
ret
Function at 0x405ded
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405e07
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4

Function at 0x405e0d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push 4
pop eax
mov word [ebp - 0x1e], ax
mov eax, 0x409780
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov word [ebp - 0x20], 1
mov dword [ebp - 0x10], 0x409770
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405e7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405e85
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
je 0x405e7f
xor eax, eax
jmp 0x405e85
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret 4
Function at 0x4061ab
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
lea eax, [ebp - 0x23c]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
ja 0x4061e5
test eax, eax
je 0x4061e5
add eax, eax
cmp word [ebp + eax - 0x23e], 0x5c
je 0x4061e7
mov ecx, 0x4092b0
jmp 0x4061ec
xor eax, eax
mov ecx, 0x4092b2
push dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x23c]
add eax, 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 0x40624a
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40626d
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406313
pop ecx
pop ecx
inc dword [0x435af0]
ret 8

Function at 0x406313
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, 0x400
mov dword [0x4319d0], 0x55004e
mov ebp, 0x4319d0
mov dword [0x4319d4], 0x4c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
je 0x406369
push 1
push 0
push esi
call fcn.00406928
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x406449
cmp eax, ebx
jg 0x406449
push ebx
mov esi, 0x4311d0
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x406449
cmp eax, ebx
jg 0x406449
push esi
push ebp
push str._ls_ls_r_n
push 0x430dd0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x435a34]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.00405e89
push 4
push 0xc0000000
push esi
call fcn.00406928
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406449
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x406442
push esi
push edi
push ebx
call fcn.00406955
test eax, eax
je 0x406442
push str._Rename__r_n
push edi
call fcn.00406b43
test eax, eax
jne 0x40644e
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x430dd0
lea eax, [ecx + edi]
push eax
call fcn.004066c1
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebp]
push eax
push edi
push ebx
call fcn.00406a18
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x4099a4
add eax, 0xa
push eax
call fcn.00406b43
mov ecx, eax
test ecx, ecx
je 0x406413
lea edx, [edi + esi]
jmp 0x40646d
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x406467
sub ecx, edi
inc ecx
jmp 0x406415