joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435160
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x466eb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2a0], eax
xor esi, esi
mov dword [ebp - 0x294], 0x40
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x294]
push ecx
lea edx, [ebp - 0x84]
push edx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x435292
lea eax, [ebp - 0x290]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x84]
push ecx
push edi
inc esi
mov dword [ebp - 0x294], 0x40
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x435194
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x28a]
push eax
mov word [ebp - 0x28c], dx
call fcn.004391a0
add esp, 0xc
lea ecx, [ebp - 0x29c]
push ecx
mov ecx, dword [ebp - 0x290]
lea edx, [ebp - 0x28c]
push edx
lea eax, [ebp - 0x298]
push eax
push 0
push str.ProgramMenuFolder
push ecx
mov dword [ebp - 0x298], 1
mov dword [ebp - 0x29c], 0x208
call ebx
mov edx, dword [ebp - 0x290]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x28c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x435252
sub eax, edx
sar eax, 1
je 0x435194
lea eax, [ebp - 0x28c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x435270
mov ecx, dword [ebp - 0x2a0]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x28c]
push eax
call fcn.00409ef0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00438fc8
mov esp, ebp
pop ebp
ret

Function at 0x4353f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
push 0
mov esi, ecx
mov eax, dword [esi + 0x398]
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 1
jne 0x435430
mov ecx, dword [esi + 4]
push 1
push 0
push 0
push str.http:__shuaji.shendu.com_cindex_log.html
push str.open
push ecx
call ebx
mov edx, dword [0x466c18]
mov eax, dword [edx + 0xc]
mov ecx, 0x466c18
call eax
lea ecx, [ebp - 4]
push ecx
add eax, 0x10
push str.InstallPath
push str.SoftwareShendu_
mov dword [ebp - 4], eax
call fcn.00434e10
add esp, 0xc
push 0xd
push str.ShenduRom.exe
lea ecx, [ebp - 4]
call fcn.00434c50
mov edi, dword [ebp - 4]
mov edx, dword [esi + 4]
push 5
push 0
push 0
push edi
push str.open
push edx
call ebx
push 0
push 0
push 0
mov dword [esi + 0x28], 2
mov dword [esi + 0x384], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
pop esi
pop ebx
test edx, edx
jg 0x4354c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esp, ebp
pop ebp
ret
Function at 0x436860
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, ecx
push 0
push 0xc8
lea ecx, [edi + 0x50]
call fcn.004362d0
push 0
push 0xd3
lea ecx, [edi + 0x50]
call fcn.004362d0
push 0
push 0xd4
lea ecx, [edi + 0x50]
call fcn.004362d0
push 1
push 0xc9
lea ecx, [edi + 0x50]
call fcn.004362d0
push 1
push 0xcb
lea ecx, [edi + 0x50]
call fcn.004362d0
push 1
push 0xcc
lea ecx, [edi + 0x50]
call fcn.004362d0
mov eax, dword [edi + 0x39c]
mov ecx, dword [edi + 0x394]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [edi + 0x394]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
ret

Function at 0x4368f0
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, ecx
push 0
push 0xc9
lea ecx, [edi + 0x50]
call fcn.004362d0
push 0
push 0xcb
lea ecx, [edi + 0x50]
call fcn.004362d0
push 0
push 0xcc
lea ecx, [edi + 0x50]
call fcn.004362d0
mov eax, dword [edi + 0x394]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 0xca
lea ecx, [edi + 0x50]
call fcn.004362d0
push 1
push 0xd6
lea ecx, [edi + 0x50]
call fcn.004362d0
mov ecx, dword [edi + 4]
push 0
push 0x64
push 0x65
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
push 1
push 0xd5
lea ecx, [edi + 0x50]
call fcn.004362d0
pop edi
pop esi
ret

Function at 0x436b60
Capabilities:
Check if file exists
Create directory

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x3a0], 0
push edi
jne 0x436bbb
lea edi, [esi + 0x39c]
push edi
lea ecx, [esi + 0x394]
call fcn.00434d10
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x436bb4
mov edi, dword [edi]
push eax
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x436bb4
mov eax, dword [esi + 4]
push 0
push 0x45edf4
push str._rN_f_bT
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
ret
mov ecx, esi
call fcn.004368f0
push 0
push 0
push esi
push 0x435f40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
ret
Function at 0x436c70
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x466eb0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push 0
push 0x1f9
lea ecx, [esi + 0x50]
call fcn.004362d0
push 0
push 0x1fa
lea ecx, [esi + 0x50]
call fcn.004362d0
push 1
push 0x1fb
lea ecx, [esi + 0x50]
call fcn.004362d0
push 1
push 0x1fc
lea ecx, [esi + 0x50]
call fcn.004362d0
push 1
push 0x205
lea ecx, [esi + 0x50]
call fcn.004362d0
mov ecx, dword [0x469424]
mov eax, dword [esi + 0x30]
push 0
push ecx
push 0x68
push eax
push 0xf
push 0xa
push 0x14f
push 0x110
push 0x50010003
push 0
push str.BUTTON
push 0
mov dword [ebp - 0x14], 0x110
mov dword [ebp - 0x10], 0x14f
mov dword [ebp - 0xc], 0x11a
mov dword [ebp - 8], 0x15e
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 5
push eax
mov dword [esi + 0x398], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x398]
push 0
push 1
push 0xf1
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00438fc8
mov esp, ebp
pop ebp
ret

Function at 0x436d60
Capabilities:
Check if file exists
Create directory
Create thread

Disassembly:
push esi
push edi
push 0
push 0x64
mov edi, ecx
mov eax, dword [edi + 4]
push 0x67
push eax
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x1f7
lea ecx, [edi + 0x50]
call fcn.004362d0
push 0
push 0x1f8
lea ecx, [edi + 0x50]
call fcn.004362d0
push 1
push 0x1f9
lea ecx, [edi + 0x50]
call fcn.004362d0
push 1
push 0x1fa
lea ecx, [edi + 0x50]
call fcn.004362d0
mov ecx, edi
pop edi
pop esi
jmp fcn.00436b60

Function at 0x43726b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x469480], 0
push esi
push edi
jne 0x4371e1
call fcn.0043714d
test eax, eax
je 0x437226
mov eax, dword [0x469480]
cmp eax, 1
jne 0x437202
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x437226
jmp 0x437268
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x437268
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x43722a
xor eax, eax
jmp 0x437268
mov eax, dword [esi]
push dword [0x469480]
call edi
mov edi, eax
test edi, edi
je 0x43724c
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x437268
lea edi, [esi + 0xff0]
push esi
push dword [0x469480]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x437252
mov eax, esi
pop edi
pop esi
ret
jmp 0x4371cd

Function at 0x438fc8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x466eb0]
jne 0x438fd2
repz ret
jmp fcn.00440312
Function at 0x44ece7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x466eb0]
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.00442c68
and dword [ebp - 0x14], 0
cmp dword [0x46a5f4], 0
mov dword [ebp - 0x18], eax
jne 0x44ed9a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x44ee42
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x45ab9c
push ebx
call edi
test eax, eax
je 0x44ee42
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x45ab8c
push ebx
mov dword [0x46a5f4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x46a5f8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x46a5fc], eax
call edi
push eax
call esi
mov dword [0x46a604], eax
test eax, eax
je 0x44ed9a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46a600], eax
mov eax, dword [0x46a600]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x44edf3
cmp dword [0x46a604], ecx
je 0x44edf3
push eax
call esi
push dword [0x46a604]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x44edf3
test ebx, ebx
je 0x44edf3
call edi
test eax, eax
je 0x44edea
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x44edea
test byte [ebp - 8], 1
jne 0x44edf3
or dword [ebp + 0x10], 0x200000
jmp 0x44ee26
mov eax, dword [0x46a5f8]
cmp eax, dword [ebp - 0x18]
je 0x44ee26
push eax
call esi
test eax, eax
je 0x44ee26
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x44ee26
mov eax, dword [0x46a5fc]
cmp eax, dword [ebp - 0x18]
je 0x44ee26
push eax
call esi
test eax, eax
je 0x44ee26
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46a5f4]
call esi
test eax, eax
je 0x44ee42
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x44ee44
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00438fc8
leave
ret
Function at 0x4023a0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
cmp byte [ebx], 0
jne 0x4023d2
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ebx, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push ebx
call fcn.00402200
add esp, 0x14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
call fcn.004042f0
pop ecx
mov esi, eax
test esi, esi
je 0x402427
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
lea eax, [esi + eax*4]
push eax
push esi
push ebx
call fcn.00402200
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x40b500], eax
mov dword [0x40b504], esi
jmp 0x40242f
push 1
call fcn.00401e70
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402440
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov edx, eax
mov dword [ebp - 4], edx
test eax, eax
jne 0x402460
mov eax, dword [0x40b5d4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ebx, eax
xor ecx, ecx
jmp 0x402481
mov edx, ebx
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x40246e
lea esi, [eax + 1]
cmp byte [ebx], 0x3d
je 0x40247f
add ecx, esi
add ebx, esi
cmp byte [ebx], 0
jne 0x402469
inc ecx
push ecx
call fcn.004042f0
pop ecx
mov edi, eax
mov dword [0x40b50c], eax
cmp dword [0x40b50c], 0
je 0x4024ee
mov eax, dword [ebp - 4]
mov ebx, eax
jmp 0x4024cf
mov edx, ebx
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x4024aa
lea esi, [eax + 1]
cmp byte [ebx], 0x3d
je 0x4024cd
mov ecx, edi
mov edx, ebx
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x4024c0
pop eax
add edi, esi
add ebx, esi
cmp byte [ebx], 0
jne 0x4024a5
mov byte [edi], 0
mov eax, dword [ebp - 4]
cmp eax, dword [0x40b5d4]
je 0x4024f6
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x4024f6
push 1
call fcn.00401e70
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x406e52
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x406e61
pop dword [ebp - 0x28]
mov eax, 0x49d6e1d7
sub eax, 0x49967376
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x38369
push 0
mov eax, 0x6b37ef37
sub eax, 0x6af70e5f
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x22f6b0b3
add ecx, 0xdd0992f4
xor ebx, ebx
add ebx, eax
mov edi, 0x413bc4
add edi, dword [ebp - 0x28]
mov edx, 0xa86b87d7
add edx, 0x58ec3af6
add dword [ebp - 4], ecx
mov esi, dword [edi]
mov dword [ebp - 0x14], 0x4ddf979a
add esi, edx
xor dword [ebp - 8], ecx
mov dword [ebx], esi
add dword [ebp - 0x1c], esi
add ebx, 0x8eae171d
sub ebx, 0x8eae1719
add edi, 4
loop 0x406ebc
add eax, 0x1016f
mov ebx, eax
add eax, 0x22b506e9
sub eax, 0x22b506e4
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x4021bd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x4021cc
pop dword [ebp - 0x50]
mov eax, 0x4021cc
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x541350ad
add dword [ebp - 0x60], 0xfa3ef49e
mov dword [ebp - 0x5c], 0xabe86c6b
sub dword [ebp - 0x5c], 0x79b52026
mov dword [ebp - 0x58], 0x3455e8d1
add dword [ebp - 0x58], 0x17f65b5d
mov dword [ebp - 0x54], 0xafe8e8a2
sub dword [ebp - 0x54], 0xafe8e8a2
lea eax, [ebp - 0x60]
push eax
mov eax, 0x637aadd9
sub eax, 0x633a9ce5
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xbcd9ee6e
sub dword [ebp - 0x60], 0x48678518
mov dword [ebp - 0x5c], 0xaff70dd4
add dword [ebp - 0x5c], 0x917553a1
mov dword [ebp - 0x58], 0xd1ba4b3d
sub dword [ebp - 0x58], 0x6e4aded1
mov dword [ebp - 0x54], 0x5abd125d
sub dword [ebp - 0x54], 0x5abd125d
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0xa690cf0a
add eax, 0x59af41ee
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x355ac
push 0
call eax
mov ecx, 0x3ce4
xor esi, esi
add esi, eax
mov edi, 0x433600
add edi, dword [ebp - 0x50]
mov ebx, 0x1e309012
sub dword [ebp - 0x4c], 0x68ea8ad1
mov edx, dword [edi]
xor dword [ebp - 0x34], ebx
add edx, ebx
xor dword [ebp - 0x10], 0xe56be960
mov dword [esi], edx
sub dword [ebp - 8], eax
add esi, 0x65e18846
add esi, 0x9a1e77be
add edi, 4
loop 0x4022d9
add eax, 0xff224714
add eax, 0xde9f4f
mov ebx, eax
add eax, 0xd371da7
add eax, 0xf2c8e25e
mov ecx, 0xe8190dbc
sub ecx, 0xe7d90dbc
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x40a8b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x40a8bf
pop dword [ebp - 0x18]
mov eax, 0x6763b2cb
sub eax, 0x67230a0c
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x6d33ce04
add dword [ebp - 0x28], 0xe11e7747
mov dword [ebp - 0x24], 0xd1dea65c
sub dword [ebp - 0x24], 0x9fab5a17
mov dword [ebp - 0x20], 0x1046eec6
sub dword [ebp - 0x20], 0xc3faaa98
mov dword [ebp - 0x1c], 0xd06594e9
sub dword [ebp - 0x1c], 0xd06594e9
lea eax, [ebp - 0x28]
push eax
mov eax, 0x9271acce
add eax, 0x6dcfa3b2
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xa708191
sub dword [ebp - 0x28], 0x95fe183b
mov dword [ebp - 0x24], 0x94f87420
add dword [ebp - 0x24], 0xac73ed55
mov dword [ebp - 0x20], 0x27982ccc
sub dword [ebp - 0x20], 0xc428c060
mov dword [ebp - 0x1c], 0x4ac14e2a
add dword [ebp - 0x1c], 0xb53eb1d6
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3d08c
push 0
call eax
mov ecx, 0x51e3
xor ebx, ebx
add ebx, eax
mov esi, 0x8c376424
sub esi, 0x8bf57024
add esi, dword [ebp - 0x18]
mov edi, 0x54275796
add edi, 0x72cf250
mov edx, dword [esi]
sub edx, edi
sub dword [ebp - 0x14], ebx
mov dword [ebx], edx
xor dword [ebp - 0x10], esi
add ebx, 0x47bd7b83
sub ebx, 0x47bd7b7f
add esi, 4
loop 0x40a9d8
add eax, 0x5deb2bd5
sub eax, 0x5de9f176
mov ebx, eax
add eax, 0x48eea1fb
sub eax, 0x48eea1f6
mov ecx, 0xa6fe003c
add ecx, 0x5941ffc4
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x410a37
Capabilities:
Parse pe header

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

Function at 0x40ec10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40c015
lea edi, [esi - 0xb015]
push edi
jmp 0x40ec2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40ec31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40ec20
mov eax, 1
add ebx, ebx
jne 0x40ec43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40ec38
jne 0x40ec54
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40ec38
xor ecx, ecx
sub eax, 3
jb 0x40ec68
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40ecda
mov ebp, eax
add ebx, ebx
jne 0x40ec73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40ec80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40eca4
inc ecx
add ebx, ebx
jne 0x40ec90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40ec85
jne 0x40eca1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40ec85
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40ecc4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40ecb5
jmp 0x40ec26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40ecc4
add edi, ecx
jmp 0x40ec26
pop esi
mov edi, esi
mov ecx, 0xce
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40ece2
cmp byte [edi], 1
jne 0x40ece2
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 0x40ece7
lea edi, [esi + 0xc000]
mov eax, dword [edi]
or eax, eax
je 0x40ed5f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe0c0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe124]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40ed14
mov ecx, edi
jns 0x40ed43
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe128]
or eax, eax
je 0x40ed59
mov dword [ebx], eax
add ebx, 4
jmp 0x40ed31
call dword [esi + 0xe138]
mov ebp, dword [esi + 0xe12c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x40ed93
sub esp, 0xffffff80
jmp 0x401ea3
Function at 0x46a390
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x57000]
push edi
or ebp, 0xffffffff
jmp 0x46a3b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x46a3b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46a3a8
mov eax, 1
add ebx, ebx
jne 0x46a3cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x46a3dc
jne 0x46a3fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46a3fb
dec eax
add ebx, ebx
jne 0x46a3e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x46a3c0
add ebx, ebx
jne 0x46a3f7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x46a44d
xor ecx, ecx
sub eax, 3
jb 0x46a413
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46a482
sar eax, 1
mov ebp, eax
jmp 0x46a41e
add ebx, ebx
jne 0x46a41e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46a3ec
inc ecx
add ebx, ebx
jne 0x46a42c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46a3ec
add ebx, ebx
jne 0x46a439
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46a42e
jne 0x46a44a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46a42e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46a46c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46a45e
jmp 0x46a3ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46a46c
add edi, ecx
jmp 0x46a3ae
pop esi
lea edi, [esi + 0x67000]
mov eax, dword [edi]
or eax, eax
je 0x46a4cb
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6fc60]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6fc88]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46a489
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6fc8c]
or eax, eax
je 0x46a4c5
mov dword [ebx], eax
add ebx, 4
jmp 0x46a4a6
call dword [esi + 0x6fc94]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x46a4fc
cmp al, 0xef
ja 0x46a4ef
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x46a4d1
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x46a4de
mov ebp, dword [esi + 0x6fc90]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x46a530
sub esp, 0xffffff80
jmp 0x410a50
Function at 0x404574
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406dec
test esi, esi
jne 0x4045ac
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406f28
jmp 0x4045ca
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044b8
mov edi, eax
test esi, esi
je 0x4045ca
cmp dword [ebx], 0
je 0x4045ca
dec esi
jmp 0x4045b3
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4045fc
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x57e008], 0x8088405
inc edx
mov dword [ebx + 0x57e008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x405e7c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x58b050], 0
je 0x405edd
cmp word [0x58b32c], 0xd7b2
jne 0x405ea5
cmp dword [0x58b334], 0
jbe 0x405ea5
mov eax, 0x58b328
call dword [0x58b344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x405f08
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x57e030], 0
jne 0x405ef9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406088
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x57e034], 0
je 0x4060ae
mov edx, esi
mov eax, ebx
call dword [0x57e034]
jmp 0x4060bd
mov eax, 8
call fcn.00404200
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x58b051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406050
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc