joyce8/EMBER2024-capa huggingface dataset:
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 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
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
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x406128
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40614d
mov dword [0x40a0f4], eax
add esp, 0xfffffff8
push 0x4060ec
push eax
call fcn.00407c20
jmp 0x406152
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x406168
mov dword [0x409054], 0x40624c
jmp 0x406172
mov dword [0x409054], 0x406200
leave
ret

Function at 0x1000125c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
call sub.KERNEL32.DLL_GetEnvironmentStringsA
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x10001299
cmp byte [ebx], 0x3d
je 0x10001285
inc dword [ebp - 0xc]
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
lea ebx, [ebx + edi]
cmp byte [ebx], 0
jne 0x10001278
mov edi, dword [ebp - 0xc]
inc edi
lea edi, [edi*4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_malloc
pop ecx
mov dword [ebp - 8], eax
mov dword [0x10003010], eax
cmp dword [ebp - 8], 0
jne 0x100012cc
xor eax, eax
jmp 0x10001342
mov ebx, dword [ebp - 0x10]
jmp 0x10001325
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
mov dword [ebp - 4], edi
cmp byte [ebx], 0x3d
je 0x1000131f
push dword [ebp - 4]
call sub.CRTDLL.DLL_malloc
pop ecx
mov esi, dword [ebp - 8]
mov dword [esi], eax
or eax, eax
jne 0x10001308
jmp 0x10001342
push ebx
mov edi, dword [ebp - 8]
push dword [edi]
call sub.CRTDLL.DLL_strcpy
add esp, 8
add dword [ebp - 8], 4
mov edx, dword [ebp - 4]
lea ebx, [ebx + edx]
cmp byte [ebx], 0
jne 0x100012d1
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410dc0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov eax, dword [esp + 0xc]
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0x148]
push ebp
mov ebp, dword [esp + 0x14]
shl edx, 4
push edi
mov edi, dword [eax + edx + 0x18]
mov al, byte [edi]
test al, al
mov dword [esp + 8], ebp
mov dword [esp + 0x18], edi
je 0x410ed8
push ebx
push esi
movzx ebx, word [edi + 8]
xor ecx, ecx
mov cl, al
mov al, byte [edi + 2]
test al, al
je 0x410e1f
mov edx, dword [edi + 0x10]
mov esi, dword [esp + 0x24]
test byte [esi + edx], al
je 0x410e1a
mov byte [ebp], 0
inc ebp
jmp 0x410ec4
mov byte [ebp], 1
inc ebp
mov eax, dword [esp + 0x24]
mov esi, dword [edi + 0xc]
add esi, eax
mov ax, word [edi + 6]
test al, 1
je 0x410e90
cmp ecx, 7
lea eax, [esi + ebx]
je 0x410e4d
cmp eax, esi
jbe 0x410e5b
lea esp, [esp]
cmp byte [eax - 1], 0x20
jne 0x410e5b
dec eax
cmp eax, esi
ja 0x410e40
jmp 0x410e5b
cmp esi, eax
jae 0x410e5b
cmp byte [esi], 0x20
jne 0x410e5b
inc esi
cmp esi, eax
jb 0x410e51
sub eax, esi
cmp eax, 0xff
jae 0x410e6a
mov byte [ebp], al
inc ebp
jmp 0x410e7c
mov ecx, eax
shr ecx, 8
mov byte [ebp], 0xff
mov byte [ebp + 2], al
mov byte [ebp + 1], cl
add ebp, 3
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add ebp, eax
jmp 0x410ebe
test al, 8
je 0x410f10
movzx eax, word [esi]
add esi, 2
cmp ebx, eax
jbe 0x410ea0
mov ebx, eax
cmp ebx, 0xff
jae 0x410efc
mov byte [ebp], bl
inc ebp
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add ebp, ebx
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x20]
mov al, byte [edi + 0x18]
add edi, 0x18
test al, al
mov dword [esp + 0x20], edi
jne 0x410df5
pop esi
pop ebx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
push eax
push ecx
push ebp
push edx
call fcn.0040e930
mov ecx, dword [esp + 0x18]
add esp, 0x10
mov eax, ebp
pop edi
sub eax, ecx
pop ebp
pop ecx
ret
mov byte [ebp], 0xff
mov eax, ebx
shr eax, 8
mov byte [ebp + 2], bl
mov byte [ebp + 1], al
add ebp, 3
jmp 0x410eac
test al, 0x20
je 0x410f2e
movzx ecx, byte [edi + 3]
push esi
push ecx
call fcn.00409600
movzx edx, byte [edi + 3]
mov esi, dword [edx + esi]
add esp, 8
jmp 0x410e9a
test al, 0x40
je 0x410eac
cmp ecx, 5
jne 0x410f72
mov ecx, dword [esi]
mov dword [esp + 0x1c], ecx
fld dword [esp + 0x1c]
sub esp, 8
fstp qword [esp]
call fcn.0041f4ff
add esp, 8
test eax, eax
je 0x410fa5
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
add ebp, ebx
jmp 0x410ec0
cmp ecx, 6
jne 0x410fa5
mov ecx, dword [esi + 4]
mov eax, dword [esi]
push ecx
push eax
call fcn.0041f4ff
add esp, 8
test eax, eax
je 0x410fa5
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
add ebp, ebx
jmp 0x410ec0
add esi, ebx
test ebx, ebx
je 0x410ec4
nop
mov al, byte [esi - 1]
dec esi
mov byte [ebp], al
inc ebp
dec ebx
jne 0x410fb0
jmp 0x410ec4
Function at 0x415ba0
Capabilities:
Terminate process

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x415baf
mov edi, 1
push edi
call fcn.00420850
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x415c03
push esi
call fcn.0041f4c0
mov esi, eax
call fcn.00415b70
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov esi, eax
and esi, 8
je 0x415be6
mov edx, dword [fcn.0041afc0]
mov dword [fcn.0041afc0], edx
test al, 0x18
je 0x415bf7
push edi
push 0x24
push 5
call fcn.00417450
add esp, 0xc
test esi, esi
pop esi
je 0x415c1e
push 1
call fcn.0041e7d5
test byte [esp + 0x10], 0x20
je 0x415c1e
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
mov eax, ebx
pop ebx
ret

Function at 0x416780
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov eax, edi
shl eax, 5
lea ebp, [eax + 0x445818]
jmp 0x4167a0
mov edi, dword [esp + 0x14]
lea esp, [esp]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push 0
push ecx
push edx
push edi
or esi, 0xffffffff
call fcn.00420aa1
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4167e3
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ebx
push eax
push edi
call fcn.00428af8
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x4167e3
xor edi, edi
jmp 0x4167e8
mov edi, 1
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
mov ebx, dword [esp + 0x28]
je 0x416889
call fcn.0041f4c0
mov edi, eax
call fcn.00415b70
test esi, esi
mov ecx, dword [edi]
mov dword [eax], ecx
jne 0x41681d
call fcn.0041f4c0
cmp dword [eax], 4
je 0x416795
test bl, 0x1a
je 0x416877
cmp esi, 0xffffffff
jne 0x416850
call fcn.00415b70
mov edx, dword [eax]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.0041b3b0
add esp, 4
push eax
push 0x24
push 2
call fcn.00417450
add esp, 0x10
pop edi
or eax, esi
pop esi
pop ebp
pop ebx
ret
test bl, 6
je 0x416877
call fcn.00415b70
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.0041b3b0
add esp, 4
push eax
push 0x24
push 9
call fcn.00417450
add esp, 0x10
cmp esi, 0xffffffff
je 0x416881
test bl, 6
je 0x416889
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
and bl, 6
neg bl
pop edi
sbb ebx, ebx
not ebx
and ebx, esi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x419ad0
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.0041f4c0
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.00428af8
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x419ba3
call fcn.0041f4c0
cmp dword [eax], 0
je 0x419b17
call fcn.0041f4c0
mov ebp, dword [eax]
jmp 0x419b1a
or ebp, 0xffffffff
call fcn.00415b70
test esi, esi
mov dword [eax], ebp
jne 0x419b2f
call fcn.0041f4c0
cmp dword [eax], 4
je 0x419b7f
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x419b62
cmp esi, 0xffffffff
je 0x419bb4
test al, 6
je 0x419b62
call fcn.00415b70
mov ecx, dword [eax]
push ecx
push ebx
call fcn.0041b3b0
add esp, 4
push eax
push 0x24
push 9
call fcn.00417450
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x419bd2
test al, 6
je 0x419b70
test ah, 2
je 0x419bd2
test esi, esi
jbe 0x419ba7
test ah, 2
je 0x419ba7
add dword [esp + 0x18], esi
sub edi, esi
call fcn.0041f4c0
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.00428af8
mov esi, eax
add esp, 0xc
cmp esi, edi
jne 0x419b04
mov eax, dword [esp + 0x20]
test al, 6
je 0x419bda
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
call fcn.00415b70
mov eax, dword [eax]
push eax
push ebx
call fcn.0041b3b0
add esp, 4
push eax
push 0x24
push 2
call fcn.00417450
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
test ah, 2
je 0x419be3
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x4211a7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4211c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041f44d
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4211ea
test byte [esp + 8], 2
je 0x4211ea
call fcn.0041f4c0
mov dword [eax], 0xd
call fcn.0041f4c9
mov dword [eax], 5
jmp 0x4211c3
xor eax, eax
ret
Function at 0x4233cc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x442020
cmp edx, dword [eax]
je 0x4233ee
add eax, 8
inc ecx
cmp eax, 0x4420b0
jl 0x4233df
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x442020]
jne 0x42351c
mov eax, dword [0x455e80]
cmp eax, 1
je 0x4234f6
test eax, eax
jne 0x42341f
cmp dword [0x441b34], 1
je 0x4234f6
cmp edx, 0xfc
je 0x42351c
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x423456
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004241f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004224b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x423499
lea eax, [ebp - 0x1a4]
push eax
call fcn.004224b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42c6a4
push edi
call fcn.004240f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004241f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00424200
lea eax, [ebp - 0xa0]
push 0x42c684
push eax
call fcn.00424200
push dword [esi + 0x442024]
lea eax, [ebp - 0xa0]
push eax
call fcn.00424200
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00428a6f
add esp, 0x2c
pop edi
jmp 0x42351c
lea eax, [ebp + 8]
lea esi, [esi + 0x442024]
push 0
push eax
push dword [esi]
call fcn.004224b0
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 0x1046c058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1046c1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1046c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1046c06a
add dl, dl
jne 0x1046c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1046c0dc
xor eax, eax
add dl, dl
jne 0x1046c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1046c17d
add dl, dl
jne 0x1046c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1046c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1046c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1046c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1046c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1046c075
mov eax, 1
add dl, dl
jne 0x1046c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1046c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1046c0e1
sub eax, ebx
mov ebx, 1
jne 0x1046c128
mov ecx, 1
add dl, dl
jne 0x1046c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1046c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1046c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1046c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1046c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1046c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1046c136
cmp eax, 0x7d00
jae 0x1046c16d
cmp eax, 0x500
jb 0x1046c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1046c075
cmp eax, 0x7f
ja 0x1046c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1046c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1046c19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1046c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

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

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
pop eax
nop
nop
nop
nop
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
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
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
jne 0x43101e
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x40176a
Capabilities:
Create directory
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x40a020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
mov dword [ebp - 0x10c], 1
call edi
cmp byte [esi + eax - 1], 0x5c
je 0x4017a9
push 0x407380
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call edi
push 0x104
mov ebx, eax
xor edi, edi
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00402330
add esp, 0xc
cmp ebx, 2
jle 0x401827
cmp byte [esi + 1], 0x3a
jne 0x401827
test ebx, ebx
jle 0x40182d
lea eax, [ebp - 0x108]
sub esi, eax
cmp dword [ebp - 0x10c], 0
je 0x40182d
lea eax, [ebp + edi - 0x108]
mov cl, byte [esi + eax]
mov byte [eax], cl
cmp cl, 0x5c
jne 0x401820
cmp edi, 2
je 0x401820
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x401820
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x10c], eax
inc edi
cmp edi, ebx
jl 0x4017dc
jmp 0x40182d
mov dword [ebp - 0x10c], edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004023aa
leave
ret 4
Function at 0x401f88
Capabilities:
Delete directory
Delete file
Move file

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call fcn.00401241
mov ecx, esi
call fcn.00401256
mov ebx, eax
xor edi, edi
cmp ebx, edi
jne 0x401fd1
mov ecx, esi
call fcn.004018ae
mov ebx, eax
cmp ebx, edi
jne 0x401fd1
mov ecx, esi
call fcn.004014f1
mov ebx, eax
cmp ebx, edi
jne 0x401fd1
mov ecx, esi
call fcn.00401603
mov ebx, eax
cmp ebx, edi
jne 0x401fd1
mov ecx, esi
call fcn.00401baf
mov ebx, eax
cmp dword [0x40ab80], edi
jne 0x402036
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esi + 0x1224]
cmp dword [esi + 0x110c], edi
je 0x402010
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call edi
lea eax, [esi + 0x142c]
push eax
call edi
add esi, 0x1328
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x402036
push 5
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push eax
call edi
push 5
push 0
lea eax, [esi + 0x142c]
push eax
call edi
push 5
push 0
add esi, 0x1328
push esi
call edi
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x4023aa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a020]
jne 0x4023b4
repz ret
jmp fcn.00403c77
Function at 0x40564b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40a020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402fe6
and dword [ebp - 0x14], 0
cmp dword [0x40b7d8], 0
mov dword [ebp - 0x18], eax
jne 0x4056fe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4057a6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4057a6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40b7d8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40b7dc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40b7e0], eax
call edi
push eax
call esi
mov dword [0x40b7e8], eax
test eax, eax
je 0x4056fe
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40b7e4], eax
mov eax, dword [0x40b7e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405757
cmp dword [0x40b7e8], ecx
je 0x405757
push eax
call esi
push dword [0x40b7e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405757
test ebx, ebx
je 0x405757
call edi
test eax, eax
je 0x40574e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40574e
test byte [ebp - 8], 1
jne 0x405757
or dword [ebp + 0x10], 0x200000
jmp 0x40578a
mov eax, dword [0x40b7dc]
cmp eax, dword [ebp - 0x18]
je 0x40578a
push eax
call esi
test eax, eax
je 0x40578a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40578a
mov eax, dword [0x40b7e0]
cmp eax, dword [ebp - 0x18]
je 0x40578a
push eax
call esi
test eax, eax
je 0x40578a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40b7d8]
call esi
test eax, eax
je 0x4057a6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4057a8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004023aa
leave
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..idata
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x6f205d4d
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x4a360883
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219