joyce8/EMBER2024-capa huggingface dataset:
Function at 0x545472
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005453ee
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5455ea
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5455ea
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x545599
jg 0x5454cb
test eax, eax
je 0x54558f
push 1
push 0x1000
call fcn.0053b812
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5454f1
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x545586
push 0x8000
push ebx
call fcn.00529823
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x54551d
jg 0x545518
cmp ecx, 0x1000
jb 0x54551d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0052f5c3
add esp, 0x10
cmp eax, 0xffffffff
je 0x545562
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x545518
jl 0x545549
test ecx, ecx
jne 0x54550a
push dword [ebp - 0xc]
push ebx
call fcn.00529823
push esi
call fcn.0053b86f
add esp, 0xc
xor edi, edi
jmp 0x5455fb
cmp byte [edi + 0x24], 0
je 0x545579
cmp dword [edi + 0x20], 5
jne 0x545579
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x545584
mov edi, dword [edi + 0x18]
jmp 0x545586
xor edi, edi
push esi
call fcn.0053b86f
pop ecx
jmp 0x5455fb
test ecx, ecx
jg 0x54555b
jl 0x545599
test eax, eax
jae 0x54555b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0052db18
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5455bc
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x54555b
jmp 0x5455f3
push ebx
call fcn.0052df40
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x54555b
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x5455fb
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x5455f8
mov edi, dword [edi + 0x18]
jmp 0x5455fb
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0052db18
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x547176
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x547213
push ebx
push esi
call fcn.0054713f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0053ebae
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5471c0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x547212
push edi
push eax
call fcn.0053c455
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5471e0
call fcn.0053b86f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x547211
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0053ebae
add esp, 0x20
test eax, eax
jne 0x5471ff
push edi
call fcn.0053b86f
jmp 0x547207
push ebx
call fcn.0053b86f
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x547216
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x547227
pop esi
ret
push ebx
push edi
push esi
call fcn.0054713f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0053c455
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x54724f
push ebx
push esi
push edi
call fcn.0051c650
add esp, 0xc
push 0
call fcn.0053b86f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x54799b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005474c2
Function at 0x547d03
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5c9040]
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 0x547d4e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00547ea2
test al, al
jne 0x547d48
sub edx, 2
cmp edx, edi
jne 0x547d2e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x547d70
lea eax, [edi + 2]
cmp edx, eax
je 0x547d70
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00547c4f
add esp, 0x10
jmp 0x547e6a
push esi
lea ecx, [ebp - 0x255]
call fcn.00547ea2
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 0x547db3
push dword [ebp - 0x25c]
jmp 0x547d60
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 0x547df0
cmp word [ebp - 0x226], 0
je 0x547e11
cmp word [ebp - 0x226], ax
jne 0x547df0
cmp word [ebp - 0x224], 0
je 0x547e11
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00547c4f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x547e5d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x547dca
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x547e45
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x547e6a
push 0x547a7f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.005300b0
add esp, 0x10
jmp 0x547e3a
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.0051b034
leave
ret

Function at 0x54e420
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x54e44d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x54e44d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401110
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, eax
cmp word [ebx], 0x22
jne 0x40114f
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x401144
cmp ax, 0x22
je 0x40114a
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
jne 0x401132
cmp word [ebx], 0x22
jne 0x40115c
add ebx, 2
jmp 0x40115c
cmp byte [ebx], 0x20
jbe 0x40115c
add ebx, 2
cmp byte [ebx], 0x20
ja 0x401154
movzx eax, word [ebx]
test ax, ax
je 0x401176
cmp ax, 0x20
ja 0x401176
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
jne 0x401164
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x18], 1
movzx eax, word [ebp - 0x14]
jne 0x401196
mov eax, 0xa
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
call fcn.00401000
push 0x1f4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4011bb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x4011c5
repz ret
jmp fcn.004011ca
Function at 0x423060
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x142c
call fcn.0040fce0
mov eax, dword [0x42dbf8]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x142c], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xffffff
mov eax, dword [ebp - 0x142c]
mov byte [eax + 0x1580], 0
lea ecx, [ebp - 0x414]
push ecx
push 0x400
lea edx, [ebp - 0x1418]
push edx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4231e5
mov dword [ebp - 0x141c], 0
jmp 0x4230d3
mov eax, dword [ebp - 0x141c]
add eax, 1
mov dword [ebp - 0x141c], eax
mov ecx, dword [ebp - 0x414]
shr ecx, 2
cmp dword [ebp - 0x141c], ecx
jae 0x4231e5
mov edx, dword [ebp - 0x141c]
mov eax, dword [ebp + edx*4 - 0x1418]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1420], eax
cmp dword [ebp - 0x1420], 0
je 0x4231d3
lea ecx, [ebp - 0x1428]
push ecx
push 4
lea edx, [ebp - 0x1424]
push edx
mov eax, dword [ebp - 0x1420]
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4231d3
push 0x400
lea ecx, [ebp - 0x410]
push ecx
mov edx, dword [ebp - 0x1424]
push edx
mov eax, dword [ebp - 0x1420]
push eax
call sub.PSAPI.DLL_GetModuleFileNameExA
mov dword [ebp - 0x418], 0
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x410]
push edx
mov ecx, dword [ebp - 0x142c]
call fcn.00422990
movzx eax, al
test eax, eax
je 0x4231d3
cmp dword [ebp - 0x418], 0x34000
jne 0x4231d3
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x141c]
mov eax, dword [ebp + edx*4 - 0x1418]
cmp eax, dword [ebp - 4]
jae 0x4231ba
mov ecx, dword [ebp - 0x141c]
mov edx, dword [ebp + ecx*4 - 0x1418]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x141c]
mov ecx, dword [ebp + eax*4 - 0x1418]
push ecx
mov ecx, dword [ebp - 0x142c]
call fcn.00422940
mov edx, dword [ebp - 0x1420]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4230c4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x4231fd
mov eax, dword [ebp - 0x142c]
mov byte [eax + 0x1580], 1
cmp dword [ebp - 8], 4
jge 0x42320e
mov ecx, dword [ebp - 0x142c]
call fcn.00422cb0
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0040e454
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ed0
mov ecx, 0x4ba36ce3
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x53250339
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x403d5b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Py_Initialize
push edi
call esi
push str.Py_SetProgramName
push edi
mov ebx, eax
call esi
push str.Py_Finalize
push edi
mov dword [ebp - 4], eax
call esi
push str.PyRun_SimpleString
push edi
mov dword [ebp - 0xc], eax
call esi
push str.PySys_GetObject
push edi
mov dword [ebp - 8], eax
call esi
push str.Py_OptimizeFlag
push edi
mov dword [ebp - 0x10], eax
call esi
xor esi, esi
cmp dword [0x40c2ac], esi
jne 0x403db5
xor eax, eax
jmp 0x403dff
cmp ebx, esi
je 0x403dfc
cmp dword [ebp - 4], esi
je 0x403dfc
cmp dword [ebp - 0xc], esi
je 0x403dfc
cmp dword [ebp - 8], esi
je 0x403dfc
cmp dword [ebp - 0x10], esi
je 0x403dfc
cmp eax, esi
je 0x403dfc
xor ecx, ecx
cmp dword [ebp + 8], esi
push 0x40c800
setne cl
mov dword [eax], ecx
call dword [ebp - 4]
call ebx
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.00403c3a
add esp, 0xc
mov esi, eax
call dword [ebp - 0xc]
mov eax, esi
jmp 0x403dff
or eax, 0xffffffff
pop esi
pop ebx
leave
ret

Function at 0x404257
Capabilities:
Delete file
Read .ini file

Disassembly:
mov eax, 0x1004
call fcn.00406600
mov eax, dword [0x40c17c]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push ebp
push esi
push edi
push dword [0x40dbec]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebp, 0x1000
push ebp
lea eax, [esp + 0x18]
push eax
mov ebx, 0x4074e8
push ebx
push str.title
mov esi, 0x4083d8
push esi
call edi
push 0x50
pop ecx
lea eax, [esp + 0x10]
mov edx, 0x40c620
call fcn.0040159b
push dword [0x40dbec]
lea eax, [esp + 0x14]
push ebp
push eax
push ebx
push str.info
push esi
call edi
mov ecx, ebp
lea eax, [esp + 0x10]
mov edx, 0x40ca40
call fcn.0040159b
push dword [0x40dbec]
push 0x50
push 0x40da80
push ebx
push str.build_info
push esi
call edi
push dword [0x40dbec]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 1
push str.target_compile
push esi
call ebp
push dword [0x40dbec]
mov dword [0x40c674], eax
push 1
push str.target_optimize
push esi
call ebp
push dword [0x40dbec]
mov dword [0x40c670], eax
push 0xa
push 0x40da50
push ebx
push str.target_version
push esi
call edi
push dword [0x40dbec]
push 0x50
push 0x40c7a0
push ebx
push str.name
push str.metadata
call edi
push dword [0x40dbec]
push 0x104
push 0x40c680
push ebx
push str.install_script
push esi
call edi
push 0x40c620
call fcn.00402490
push eax
mov dword [0x40da40], eax
call fcn.0040415b
pop ecx
pop ecx
push dword [0x40dad4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [0x40dbec]
test eax, eax
pop edi
pop esi
pop ebp
pop ebx
je 0x404399
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x40dbf0]
test eax, eax
je 0x4043a9
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x1000]
xor ecx, esp
xor eax, eax
call fcn.004065b0
add esp, 0x1004
ret
Function at 0x40109c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x4062ac]
mov edx, dword [0x40722c]
mov eax, ecx
push esi
xor eax, dword [esp + 8]
mov esi, 0xff
shr ecx, 8
and eax, esi
push edi
mov eax, dword [edx + eax*4]
xor eax, ecx
mov ecx, dword [0x4062b4]
mov dword [0x4062ac], eax
and eax, esi
add eax, dword [0x4062b0]
mov edi, ecx
and edi, esi
imul eax, eax, 0x8088405
inc eax
mov dword [0x4062b0], eax
shr eax, 0x18
xor eax, edi
pop edi
shr ecx, 8
mov eax, dword [edx + eax*4]
pop esi
xor eax, ecx
mov dword [0x4062b4], eax
mov eax, dword [esp + 4]
ret

Function at 0x401196
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push dword [ebp + 0xc]
call fcn.004010fb
push 0xc
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.00403f0c
add esp, 0x10
xor edi, edi
lea esi, [ebp + edi - 0xc]
call fcn.00401083
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.0040109c
inc edi
pop ecx
cmp edi, 0xc
jl 0x4011b9
test byte [0x4062c4], 8
movzx ax, byte [ebp - 1]
pop edi
pop esi
je 0x4011f0
movzx ecx, word [0x4063cc]
shr ecx, 8
jmp 0x4011f9
mov ecx, dword [0x4063d0]
shr ecx, 0x18
movzx eax, ax
sub eax, ecx
neg eax
sbb eax, eax
leave
ret
Function at 0x4015bd
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
push 1
pop esi
cmp dword [0x40727c], esi
je 0x40163d
xor edi, edi
cmp dword [0x40729c], edi
jne 0x401647
mov ecx, dword [0x407258]
cmp ecx, edi
jg 0x4015e6
mov dword [0x40729c], edi
jmp 0x401647
cmp dword [0x407264], edi
jg 0x401685
mov eax, 0x400
cmp ecx, eax
jge 0x4015fd
mov eax, ecx
push eax
push dword [0x407270]
push dword [0x407234]
call fcn.00401cce
add esp, 0xc
cmp eax, edi
mov dword [0x407264], eax
jg 0x40162e
push dword [0x407234]
call fcn.00401d50
pop ecx
mov dword [0x40729c], eax
jmp 0x401647
call fcn.004042f5
test eax, eax
je 0x40164d
mov dword [0x40727c], esi
mov dword [0x40729c], 0x20000008
or ax, 0xffff
jmp 0x4016a0
cmp dword [0x407250], edi
je 0x40167b
mov eax, dword [0x407264]
mov esi, dword [0x407270]
cmp eax, edi
jle 0x40167b
mov edi, eax
call fcn.00401083
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.0040109c
inc esi
dec edi
pop ecx
jne 0x401666
mov eax, dword [0x407270]
mov dword [0x40728c], eax
mov eax, dword [0x40728c]
dec dword [0x407258]
dec dword [0x407264]
movzx ax, byte [eax]
inc dword [0x40728c]
pop edi
pop esi
ret

Function at 0x4016a3
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov ecx, dword [0x407268]
mov edx, dword [esp + 8]
mov eax, esi
push edi
and eax, 0xffff
mov edi, eax
dec eax
test edi, edi
je 0x4016de
push ebx
inc eax
movzx edi, byte [edx]
movzx ebx, cl
xor edi, ebx
mov ebx, dword [0x40722c]
shr ecx, 8
mov edi, dword [ebx + edi*4]
xor ecx, edi
inc edx
dec eax
jne 0x4016c3
pop ebx
cmp dword [0x407280], 0
mov dword [0x407268], ecx
jne 0x401743
test esi, esi
je 0x401743
push esi
push dword [esp + 0x10]
push dword [0x407238]
call fcn.00401d05
add esp, 0xc
cmp eax, esi
je 0x40171b
push dword [0x407238]
call fcn.00401d50
pop ecx
mov dword [0x40729c], eax
jmp 0x401745
mov eax, dword [0x4072bc]
add dword [0x407244], esi
push 1
add dword [eax + 0x182c], esi
mov eax, dword [0x4072bc]
mov dword [eax + 0x1840], 2
call fcn.00404306
pop ecx
xor eax, eax
pop edi
pop esi
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret
Function at 0x401d75
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call fcn.00403fb2
lea eax, [ebp - 0x108]
push eax
call fcn.0040400d
add esp, 0xc
test eax, eax
jbe 0x401dc6
lea eax, [ebp - 0x108]
push eax
call fcn.00403e42
test eax, eax
pop ecx
je 0x401dc6
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
and byte [ebp + eax - 0x109], 0
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00403ab5
lea eax, [ebp - 0x314]
push eax
call fcn.0040400d
add esp, 0x18
test eax, eax
jbe 0x401e67
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00403fb2
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00403f90
lea eax, [ebp - 0x210]
push eax
call fcn.00401d75
add esp, 0x14
test eax, eax
je 0x401e63
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401e5f
lea eax, [ebp - 0x108]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jmp 0x401e61
test al, 0x10
jne 0x401e67
xor eax, eax
leave
ret
push 1
pop eax
leave
ret

Function at 0x401e6c
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
and eax, 0xff
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
pop eax
ret

Function at 0x402045
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub eax, 0
je 0x4020b0
dec eax
je 0x4020a5
dec eax
je 0x402095
dec eax
je 0x402083
dec eax
je 0x402073
dec eax
je 0x402063
xor eax, eax
pop ebp
ret
push 0x104
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x4020c4
push 0x104
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x4020c4
push dword [ebp + 0xc]
call fcn.00402127
mov eax, dword [ebp + 0xc]
pop ecx
and byte [eax + 2], 0
jmp 0x4020c4
push dword [ebp + 0xc]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x4020c4
push dword [ebp + 0xc]
call fcn.00402127
pop ecx
jmp 0x4020c4
mov eax, dword [0x4072bc]
add eax, 0x1410
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp + 0xc]
call esi
mov ecx, dword [ebp + 0xc]
cmp byte [eax + ecx - 1], 0x5c
jne 0x4020e5
push ecx
call esi
mov ecx, dword [ebp + 0xc]
and byte [eax + ecx - 1], 0
push 1
pop eax
pop esi
pop ebp
ret

Function at 0x4020eb
Capabilities:
Create process on windows

Disassembly:
xor eax, eax
push 5
push eax
push eax
push dword [esp + 0x10]
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret
Function at 0x402127
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp + 8]
push esi
mov esi, dword [ebp + 8]
push eax
push 0x20019
push 0
and byte [esi], 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402182
lea eax, [ebp - 4]
mov dword [ebp - 8], 1
push eax
lea eax, [ebp - 8]
push esi
push eax
push 0
push str.ProgramFilesDir
push dword [ebp + 8]
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x402b29
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x104]
push 0x104
push ecx
push eax
mov dword [0x407224], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x402b6f
mov al, byte [esi + 1]
inc esi
test al, al
je 0x402b81
cmp al, 0x22
je 0x402b81
jmp 0x402b61
test al, al
je 0x402b81
cmp al, 0x20
je 0x402b81
cmp al, 9
je 0x402b81
mov al, byte [esi + 1]
inc esi
jmp 0x402b6f
cmp byte [esi], 0
je 0x402b87
inc esi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.00402baf
pop ecx
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x404b24
Capabilities:
Terminate process

Disassembly:
cmp dword [esp + 4], 0x20000008
mov eax, 0x7d2
jne 0x404b34
dec eax
push 0
push 0
push eax
push 0x5dd
push 0x10
push dword [0x4071f8]
call fcn.00404a92
add esp, 0x18
call dword [sym.imp.ole32.dll_CoUninitialize]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

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

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x9ab0b45
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
mov eax, section..text_1
nop
mov ebx, 0x42f314
nop
mov ecx, 0x1db5577a
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
popal
nop
nop
nop
nop
jmp 0x431219