joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4356e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48eb68
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4b5048]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x28]
mov esi, dword [ebp + 8]
xor bl, bl
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
xor eax, eax
push eax
push 0x4a2010
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00404a80
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
mov ecx, section..data
push eax
mov dword [ebp - 4], 0
call fcn.00404a80
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x43579b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x435791
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43581a
push edx
push ecx
call fcn.0044cee7
add esp, 8
cmp dword [ebp - 0x2c], 0
je 0x4357fc
cmp dword [ebp + 0x18], 0
jbe 0x4357fc
cmp dword [esi + 0x14], 8
jb 0x4357af
mov esi, dword [esi]
lea eax, [ebp - 0x30]
push eax
push 2
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4357fc
cmp dword [edi + 0x14], 8
jb 0x4357cf
mov edi, dword [edi]
push dword [ebp + 0x18]
mov eax, dword [ebp - 0x34]
push dword [ebp - 0x2c]
push dword [eax]
push 0
push edi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x30]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044d750
mov esp, ebp
pop ebp
ret
call fcn.0046811a
int3

Function at 0x435930
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4b5048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
push 0
mov dword [ebp - 0x234], edi
push eax
mov dword [ebp - 0x234], edi
call fcn.004372b0
push 0
push 2
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4359d6
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4359cf
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
cmp ebx, dword [ebp - 0x228]
je 0x4359c5
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4359a0
jmp 0x4359ce
mov ecx, dword [ebp - 0x218]
mov dword [edi + 0x1c], ecx
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0044d750
mov esp, ebp
pop ebp
ret 4
Function at 0x435ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e9b8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4b5048]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x44]
push eax
push 0x20219
push 0
push str.SoftwareWorking_SolutionsAcquire
push 0x80000002
mov dword [ebp - 0x44], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x435d14
xor eax, eax
mov dword [esi + 0x10], 0
push eax
mov dword [esi + 0x14], 7
mov ecx, esi
push 0x4a2010
mov word [esi], ax
call fcn.00404a80
jmp 0x435e53
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push str.mainexe
push dword [ebp - 0x44]
call edi
test eax, eax
jne 0x435e2b
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x18]
shr ecx, 1
inc ecx
cmp ecx, eax
ja 0x435d73
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x435d80
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.0042f500
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x48]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push 0
push str.mainexe
push dword [ebp - 0x44]
call edi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004321d0
mov edi, eax
add esp, 8
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x435e23
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x435df1
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x435de7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x435e70
push edx
push ecx
call fcn.0044cee7
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x40]
call fcn.00404910
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movups xmm0, xmmword [ebp - 0x28]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044d750
mov esp, ebp
pop ebp
ret
call fcn.0046811a
int3
Function at 0x435e80
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
mov dword [ebp - 8], ebx
mov eax, dword [ebx + 0x1c]
cmp eax, 1
jb 0x435ee1
push eax
push 0
push 0x100000
mov byte [ebp - 1], 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x435ec8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
neg ebx
push esi
sbb bl, bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and bl, byte [ebp - 1]
jne 0x435ede
push str.Acquire_Control_Screen
push str.TMainControl
call dword [sym.imp.USER32.dll_FindWindowW]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 8]
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x436ef0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebx + 0x1c], 0
je 0x435f35
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
cmp esi, edi
je 0x435f3b
lea eax, [ebp - 8]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x435f2e
mov eax, dword [ebp - 8]
cmp eax, dword [ebx + 0x1c]
je 0x435f82
add esi, 4
cmp esi, edi
jne 0x435f16
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
sub edi, esi
test edi, 0xfffffffc
je 0x435f89
mov eax, esi
mov edi, dword [eax]
test esi, esi
je 0x435f79
mov ecx, dword [ebp - 0xc]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x435f6f
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x435fc2
push ecx
push esi
call fcn.0044cee7
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
mov esi, dword [ebp - 0x14]
jmp 0x435f47
test esi, esi
je 0x435fb9
mov ecx, dword [ebp - 0xc]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x435faf
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x435fc2
push ecx
push esi
call fcn.0044cee7
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0046811a
int3
Function at 0x437070
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
xor bl, bl
cmp dword [eax + 0x14], 8
jb 0x437081
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43709d
test al, 0x10
mov ecx, 1
movzx eax, bl
cmove eax, ecx
pop ebx
pop ebp
ret
mov al, bl
pop ebx
pop ebp
ret

Function at 0x437120
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
cmp dword [eax + 0x14], 8
jb 0x437131
mov eax, dword [eax]
push esi
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43716f
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
xor edx, edx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x44ff32
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x47cd64
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047cbda

Function at 0x47f66c
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047f5ee
Function at 0x41c5ea
Capabilities:
Parse pe header

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

Function at 0x4225df
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x479298
push 0x479290
push str.FlsAlloc
push 0x1f
call fcn.0042249e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x422613
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b144]
call esi
jmp 0x422619
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42265d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4792a8
push 0x4792a0
push str.FlsGetValue
push 0x21
call fcn.0042249e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x422694
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42269c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4792b0
push 0x4792a8
push str.FlsSetValue
push 0x22
call fcn.0042249e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4226d6
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42b144]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x423e8e
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 0x423f2b
push ebx
push esi
call fcn.00423e57
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.00423deb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x423ed8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x423f2a
push edi
push eax
call fcn.004228a1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x423ef8
call fcn.004228ef
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x423f29
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00423deb
add esp, 0x20
test eax, eax
jne 0x423f17
push edi
call fcn.004228ef
jmp 0x423f1f
push ebx
call fcn.004228ef
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 0x42a170
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42a19d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42a19d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4163fe
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x423458]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407f05
mov dword [ebp - 0x14], eax
cmp dword [0x460c7c], esi
jne 0x4164f1
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41647e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4165d1
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4165d1
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4165d1
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x460c7c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x460c80], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x460c84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x460c8c], eax
test eax, eax
je 0x4164ee
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x460c88], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x416516
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x416509
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41652b
push 4
pop eax
jmp 0x4165d3
cmp dword [ebp - 0x14], esi
je 0x41652b
push dword [0x460c7c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x416510
mov eax, dword [0x460c88]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x416589
cmp dword [0x460c8c], edi
je 0x416589
push eax
call ebx
push dword [0x460c8c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x416589
test eax, eax
je 0x416589
call ecx
test eax, eax
je 0x41657e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41657e
test byte [ebp - 8], 1
jne 0x416589
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4165b9
mov eax, dword [0x460c80]
cmp eax, edi
je 0x4165b6
push eax
call ebx
test eax, eax
je 0x4165b6
call eax
mov esi, eax
test esi, esi
je 0x4165b6
mov eax, dword [0x460c84]
cmp eax, edi
je 0x4165b6
push eax
call ebx
test eax, eax
je 0x4165b6
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x460c7c]
call ebx
test eax, eax
je 0x4165d1
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4165d3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406ea2
mov esp, ebp
pop ebp
ret
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 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x407ee0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
jmp 0x407efa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407f01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407ef0
mov eax, 1
add ebx, ebx
jne 0x407f13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407f08
jne 0x407f24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407f08
xor ecx, ecx
sub eax, 3
jb 0x407f38
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x407faa
mov ebp, eax
add ebx, ebx
jne 0x407f43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407f50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x407f74
inc ecx
add ebx, ebx
jne 0x407f60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407f55
jne 0x407f71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407f55
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x407f94
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x407f85
jmp 0x407ef6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x407f94
add edi, ecx
jmp 0x407ef6
pop esi
mov edi, esi
mov ecx, 0x59
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x407fb2
cmp byte [edi], 0
jne 0x407fb2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x407fb7
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x408026
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x81dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x82a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x407fe4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x82ac]
or eax, eax
je 0x408020
mov dword [ebx], eax
add ebx, 4
jmp 0x408001
call dword [esi + 0x82a8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x408057
cmp al, 0xef
ja 0x40804a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x40802c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x408039
mov ebp, dword [esi + 0x82b0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40808b
sub esp, 0xffffff80
jmp 0x40128d
Function at 0x100034f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x100034ff
pop dword [ebp - 0x38]
mov eax, 0xc4d4edb4
add eax, 0x4b2b474b
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x3dc18
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0x3ab61cd1
sub ecx, 0x3ab5c9b4
mov edx, eax
mov ebx, 0x786ce81a
add ebx, 0x9795f9e6
add ebx, dword [ebp - 0x38]
mov esi, 0x72e4db80
sub dword [ebp - 4], edx
mov edi, dword [ebx]
sub dword [ebp - 0x24], 0x176d402
sub edi, esi
xor dword [ebp - 0x10], esi
mov dword [edx], edi
add dword [ebp - 0x14], 0xc35c3a30
add edx, 4
add ebx, 0xb201e11b
add ebx, 0x4dfe1ee9
loop 0x10003553
add eax, 0x13f47
xor ebx, ebx
add ebx, eax
add eax, 0x83aa29e0
sub eax, 0x83aa29db
mov ecx, 0x217d1cbd
add ecx, 0xee82e343
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x4021b9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
mov esi, ecx
call fcn.0040239a
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push bind
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x108], eax
je 0x4022b2
mov al, byte [0x4141b0]
push 0x3f
mov byte [ebp - 0x108], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
mov ebx, str.SMSNF100
push ebx
stosw word es:[edi], ax
call sub.MSVCRT.dll_strlen
pop ecx
mov edi, dword [sym.imp.KERNEL32.DLL_ReadFile]
lea ecx, [ebp - 8]
push 0
and dword [ebp - 8], 0
push ecx
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x108]
push eax
push dword [esi + 0x108]
call edi
push dword [ebp - 4]
lea eax, [ebp - 0x108]
push ebx
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
je 0x40225b
mov ecx, esi
call fcn.0040239a
xor eax, eax
jmp 0x4022be
xor ebx, ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 4]
push 2
push eax
mov dword [ebp - 4], ebx
push dword [esi + 0x108]
call edi
cmp word [ebp - 4], bx
jbe 0x4022b2
cmp word [ebp - 4], 0x100
jae 0x4022b2
lea eax, [ebp - 8]
push ebx
push eax
movzx eax, word [ebp - 4]
push eax
lea eax, [ebp - 0x208]
push eax
push dword [esi + 0x108]
call edi
lea eax, [ebp - 0x208]
push 4
push eax
lea eax, [esi + 0x114]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
xor eax, eax
cmp dword [esi + 0x108], 0xffffffff
setne al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40230f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x110], edi
je 0x40232f
push 0x413530
push esi
call fcn.004056b4
pop ecx
pop ecx
push edi
push esi
call fcn.004051e6
pop ecx
cmp eax, 0xffffffff
pop ecx
mov dword [esi + 0x10c], eax
je 0x40238a
push str.SMSNF100
push eax
mov dword [ebp - 4], edi
call fcn.00405202
pop ecx
lea eax, [ebp - 4]
pop ecx
mov dword [ebp - 8], 4
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_WriteFile]
push eax
lea eax, [ebp - 8]
push 2
push eax
push dword [esi + 0x10c]
call edi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [esi + 0x114]
push 4
push eax
push dword [esi + 0x10c]
call edi
xor eax, eax
cmp dword [esi + 0x10c], 0xffffffff
pop edi
pop esi
setne al
leave
ret