joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e530
Capabilities:
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0xc8]
sub esp, 0xc8
push 0xffffffffffffffff
push 0x422e2b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x42b0e0]
xor eax, ebp
mov dword [ebp + 0xc4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [0x42e3b0], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.1830B7BD_F7A3_4c4d_989B_C004DE465EDE
push str._s__u
lea eax, [ebp]
push 0x40
push eax
call fcn.00413f28
add esp, 0x14
lea edx, [ebp]
push edx
push 1
xor ecx, ecx
push esi
mov word [ebp + 0x80], cx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
mov dword [ebp - 0x18], ebx
cmp ebx, esi
je 0x40e71d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40e5ce
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x3e
lea ecx, [ebp + 0x86]
xor eax, eax
push esi
mov dword [ebp - 4], esi
push ecx
mov word [ebp + 0x84], ax
call fcn.00412bb0
add esp, 0xc
push 0x1f
lea edx, [ebp + 0x84]
push edx
call fcn.0040e220
mov dword [ebp - 0x14], esi
cmp eax, esi
je 0x40e635
lea edx, [ebp - 0x14]
xor ecx, ecx
push edx
mov word [ebp + eax*2 + 0x84], cx
lea eax, [ebp + 0x84]
push 0x427490
push eax
call fcn.004134d6
add esp, 0xc
cmp eax, 1
jne 0x40e635
mov eax, dword [ebp - 0x14]
mov dword [0x42e3b0], eax
jmp 0x40e705
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x40e64f
push 0x5c0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x40e663
push ebx
push esi
call fcn.0040e980
jmp 0x40e665
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x42e3b0], eax
test eax, eax
jne 0x40e687
push 0x428d4c
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], 1
call fcn.0041228b
push eax
lea edx, [ebp + 0x84]
push 0x427490
push edx
mov edi, 1
call fcn.00413ffb
add esp, 0xc
lea esi, [ebp + 0x84]
call fcn.0040e360
test eax, eax
jne 0x40e6fe
push 0x428d4c
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 3
call fcn.0041228b
call fcn.0040e400
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [0x42e3b0]
test esi, esi
je 0x40e6ef
call fcn.0040ea60
mov dword [0x42e3b0], 0
jmp 0x40e6f6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x40e6fc
ret
mov eax, dword [0x42e3b0]
xor esi, esi
inc dword [eax + 0x5bc]
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp edi, esi
jne 0x40e71d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x42e3b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc4]
xor ecx, ebp
call fcn.00411161
add ebp, 0xc8
mov esp, ebp
pop ebp
ret
Function at 0x40e750
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422dd0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x42b0e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x42e3b0]
xor edi, edi
cmp ecx, edi
jne 0x40e79b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x40e7a8
mov dword [ebp - 0x14], edi
jmp 0x40e7c0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x40e856
mov ecx, dword [0x42e3b0]
mov eax, dword [ecx]
cmp eax, edi
je 0x40e787
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40e787
mov ebx, 0x42e3b0
mov dword [ebp - 4], edi
call fcn.0040e870
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x40e7fe
push 0x428d4c
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 1
call fcn.0041228b
mov ecx, dword [0x42e3b0]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x40e818
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, edi
jne 0x40e842
push 0x428d4c
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], 4
call fcn.0041228b
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x40e839
call fcn.0040eb80
mov eax, 0x40e83f
ret
mov eax, dword [0x42e3b0]
mov eax, dword [eax]
test eax, eax
je 0x40e854
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e870
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x40e89d
xor ecx, ecx
jmp 0x40e8a9
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
push esi
mov esi, ecx
test ecx, ecx
je 0x40e95d
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
mov eax, dword [esi]
cmp dword [esp + 0x10], eax
jne 0x40e8d0
mov dword [esp + 0xc], esi
jmp 0x40e930
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x40e929
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40e91c
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x40e930
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40e930
push 0x427e30
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x40e930
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x40e953
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x40e8c2
mov eax, dword [esp + 0xc]
pop edi
pop ebp
test eax, eax
jne 0x40e971
mov ecx, dword [ebx]
add ecx, 8
call fcn.0040eab0
test eax, eax
je 0x40e971
mov edx, dword [esp + 8]
mov dword [eax], edx
pop esi
add esp, 8
ret

Function at 0x40e980
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x422dfb
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x42b0e0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.00412bb0
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x14], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x40ea18
push 0x428d4c
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.0041228b
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x40f8a0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2c14
call fcn.00412d60
mov eax, dword [0x42b0e0]
xor eax, esp
mov dword [esp + 0x2c10], eax
mov eax, dword [esp + 0x2c18]
push edi
xor edi, edi
mov dword [esp + 0xc], eax
cmp eax, edi
je 0x40fa0b
cmp dword [esp + 0x2c20], edi
je 0x40fa0b
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov dword [esp + 0x10], edi
xor ebx, ebx
lea ebx, [ebx]
push ebx
push str..PhysicalDrive_d
lea eax, [esp + 0x30]
push 0x100
push eax
call fcn.00401920
add esp, 0x10
push edi
push edi
push 3
push edi
push 3
push edi
lea ecx, [esp + 0x40]
push ecx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x40f9e4
xor eax, eax
push 0x2710
lea edx, [esp + 0x514]
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.00412bb0
add esp, 0xc
push edi
lea eax, [esp + 0x18]
push eax
push 0x2710
lea ecx, [esp + 0x51c]
push ecx
push 0xc
lea edx, [esp + 0x30]
push edx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40f9d7
push 0x3e8
lea eax, [esp + 0x12c]
push edi
push eax
call fcn.00412bb0
mov edx, dword [esp + 0x534]
lea ecx, [esp + 0x134]
push ecx
push 1
push edx
lea eax, [esp + 0x528]
push eax
call fcn.00410f70
mov edx, dword [esp + 0x2c48]
mov eax, dword [esp + 0x34]
add esp, 0x1c
lea ecx, [esp + 0x128]
push ecx
push edx
push eax
call fcn.00401a80
test eax, eax
jne 0x40f9d7
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], edi
jne 0x40f9ee
inc ebx
cmp ebx, 0x10
jl 0x40f8f0
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x2c10]
xor ecx, esp
call fcn.00411161
add esp, 0x2c14
ret
mov ecx, dword [esp + 0x2c14]
pop edi
xor ecx, esp
xor eax, eax
call fcn.00411161
add esp, 0x2c14
ret
Function at 0x40fcb0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2ec
mov eax, dword [0x42b0e0]
xor eax, esp
mov dword [esp + 0x2e8], eax
push edi
mov edi, dword [esp + 0x2f4]
mov dword [esp + 0x18], edi
test edi, edi
je 0x40feb1
cmp dword [esp + 0x2f8], 0
je 0x40feb1
push 0x64
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00412bb0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 8
push 0
push 0x424378
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40fe78
mov ecx, dword [esp + 4]
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x100]
push eax
push ebx
mov esi, 0x104
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x40fe6b
lea ebx, [ebx]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 1
push 0
lea eax, [esp + 0xf8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40fe39
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1f4]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push str.ServiceName
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40fe2e
push 0x64
push eax
lea eax, [esp + 0x90]
push eax
call fcn.00412bb0
lea ecx, [esp + 0x1fc]
push 0x64
push ecx
lea edi, [esp + 0x9c]
call fcn.0040fba0
add esp, 0x14
test eax, eax
je 0x40fe2e
cmp byte [esp + 0x24], 0
je 0x40fdf2
lea edx, [esp + 0x24]
push edx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x40fe2e
lea eax, [esp + 0x24]
lea esi, [esp + 0x88]
mov ecx, eax
mov edx, 0x64
sub esi, ecx
lea ecx, [edx + 0x7fffff9a]
test ecx, ecx
je 0x40fe21
mov cl, byte [esi + eax]
test cl, cl
je 0x40fe21
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x40fe06
jmp 0x40fe25
test edx, edx
jne 0x40fe26
dec eax
mov byte [eax], 0
mov esi, 0x104
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x100]
push ecx
inc ebx
push ebx
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x40fd50
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
cmp byte [esp + 0x1c], 0
je 0x40feb1
mov edx, dword [esp + 0x2f8]
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
call fcn.00401a80
xor ecx, ecx
test eax, eax
setge cl
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.00411161
add esp, 0x2ec
ret
mov ecx, dword [esp + 0x2ec]
pop edi
xor ecx, esp
xor eax, eax
call fcn.00411161
add esp, 0x2ec
ret
Function at 0x410160
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50c
mov eax, dword [0x42b0e0]
xor eax, esp
mov dword [esp + 0x508], eax
push ebp
mov ebp, dword [esp + 0x514]
test edi, edi
je 0x4102dd
cmp ebp, 0x20
jb 0x4102dd
push 0x400
lea eax, [esp + 0x110]
push 0
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0x400
call fcn.00412bb0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x10]
push eax
push 0x4243e8
push str.Software360SafeLiveup
push connect
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4102dd
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4101f0
sub eax, edx
cmp eax, 0x40
jne 0x4102dd
push ebx
lea edx, [eax + 0x40]
push esi
lea eax, [esp + 0x14]
lea esi, [esp + 0x114]
mov ecx, eax
sub esi, ecx
lea ecx, [edx - 0x60]
test ecx, ecx
je 0x41022e
mov cl, byte [esi + eax]
test cl, cl
je 0x41022e
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x410216
jmp 0x410232
test edx, edx
jne 0x410233
dec eax
mov byte [eax], 0
lea eax, [esp + 0x94]
lea edx, [esp + 0x134]
mov ecx, eax
mov esi, 0x80
sub edx, ecx
lea ecx, [ecx]
lea ecx, [esi + 0x7fffff7e]
test ecx, ecx
je 0x41026b
mov cl, byte [edx + eax]
test cl, cl
je 0x41026b
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x410250
jmp 0x41026f
test esi, esi
jne 0x410270
dec eax
push 0x400
lea edx, [esp + 0x118]
push 0
push edx
mov byte [eax], 0
call fcn.00412bb0
push 0x400
lea ebx, [esp + 0x124]
lea ecx, [esp + 0x24]
call fcn.0040f320
add esp, 0x10
lea eax, [esp + 0x94]
push eax
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop esi
pop ebx
test eax, eax
jne 0x4102dd
lea edx, [esp + 0xc]
push edx
push ebp
push edi
call fcn.00401a80
neg eax
sbb eax, eax
inc eax
pop ebp
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.00411161
add esp, 0x50c
ret
mov ecx, dword [esp + 0x50c]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.00411161
add esp, 0x50c
ret

Function at 0x410300
Capabilities:
Set registry value

Disassembly:
sub esp, 0x188
mov eax, dword [0x42b0e0]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
push esi
push 0x80
lea eax, [esp + 0xc]
push 0
push eax
mov esi, ecx
call fcn.00412bb0
push 0x80
lea ebx, [esp + 0x18]
mov ecx, esi
call fcn.0040f320
lea eax, [esp + 0x98]
mov ecx, eax
add esp, 0x10
mov edx, 0x104
sub esi, ecx
lea esp, [esp]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x41036b
mov cl, byte [esi + eax]
test cl, cl
je 0x41036b
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x410350
jmp 0x41036f
test edx, edx
jne 0x410370
dec eax
lea edx, [esp + 8]
push edx
mov byte [eax], 0
push 0x104
lea eax, [esp + 0x90]
push eax
call fcn.00407d20
lea eax, [esp + 0x88]
pop esi
lea edx, [eax + 1]
pop ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410396
sub eax, edx
push eax
lea ecx, [esp + 0x84]
push ecx
push 1
push 0x4243e8
push str.Software360SafeLiveup
push connect
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.00411161
add esp, 0x188
ret

Function at 0x411161
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b0e0]
jne 0x41116b
repz ret
jmp fcn.00414612
Function at 0x4204a0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00414b0c
and dword [ebp - 4], 0
cmp dword [0x42e128], 0
mov ebx, eax
jne 0x420551
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x420602
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x420602
push eax
call fcn.00414a9a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42e128], eax
call esi
push eax
call fcn.00414a9a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42e12c], eax
call esi
push eax
call fcn.00414a9a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42e130], eax
call esi
push eax
call fcn.00414a9a
pop ecx
mov dword [0x42e138], eax
test eax, eax
je 0x420551
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00414a9a
pop ecx
mov dword [0x42e134], eax
mov eax, dword [0x42e134]
cmp eax, ebx
je 0x4205a9
cmp dword [0x42e138], ebx
je 0x4205a9
push eax
call fcn.00414b15
push dword [0x42e138]
mov esi, eax
call fcn.00414b15
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4205a9
test edi, edi
je 0x4205a9
call esi
test eax, eax
je 0x4205a0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4205a0
test byte [ebp - 0xc], 1
jne 0x4205a9
or dword [ebp + 0x10], 0x200000
jmp 0x4205e2
mov eax, dword [0x42e12c]
cmp eax, ebx
je 0x4205e2
push eax
call fcn.00414b15
pop ecx
test eax, eax
je 0x4205e2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4205e2
mov eax, dword [0x42e130]
cmp eax, ebx
je 0x4205e2
push eax
call fcn.00414b15
pop ecx
test eax, eax
je 0x4205e2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42e128]
call fcn.00414b15
pop ecx
test eax, eax
je 0x420602
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x420604
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001899b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x100189aa
pop dword [ebp - 0x2c]
mov eax, 0x100189aa
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x407b8
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x2a4fefc5
sub ecx, 0x2a4fa784
xor ebx, ebx
add ebx, eax
mov esi, 0x737e1496
sub esi, 0x637a5696
add esi, dword [ebp - 0x2c]
mov edi, 0xe6224621
sub edi, 0xaeaddf01
xor dword [ebp - 0x18], ecx
mov edx, dword [esi]
mov dword [ebp - 0x28], 0x696c84d5
xor edx, edi
add dword [ebp - 0x18], edi
mov dword [ebx], edx
add dword [ebp - 0x28], ecx
add ebx, 0x9045f135
add ebx, 0x6fba0ecf
add esi, 4
loop 0x10018a01
add eax, 0x52700ab6
add eax, 0xad910921
mov ebx, eax
add eax, 0x4fb6ceb7
add eax, 0xb049314e
mov ecx, 0xd9bfe0be
add ecx, 0x36401f42
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x100289d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10035b0c]
test dword [ebp + 8], eax
je 0x10028a7a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call fcn.1001899b
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
mov eax, dword [0x10035b08]
test eax, eax
je 0x10028a6d
lea ecx, [ebp - 0x808]
push ecx
push eax
call fcn.1001899b
mov eax, dword [0x100330ac]
pop ecx
pop ecx
test eax, eax
jle 0x10028a7a
push esi
mov esi, dword [0x10035b10]
push edi
mov edi, dword [0x10035b14]
cdq
push edx
push eax
push edi
push esi
call fcn.10029420
add esi, 1
mov dword [0x10035b10], esi
adc edi, 0
or eax, edx
mov dword [0x10035b14], edi
pop edi
pop esi
jne 0x10028a7a
push dword [0x10035b08]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
pop ecx
jmp 0x10028a7a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028d50
leave
ret
Function at 0x419d518
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor edx, edx
mov dword [ebp - 4], edx
xor edx, edx
push ebp
push 0x419d5af
push dword fs:[edx]
mov dword fs:[edx], esp
mov ecx, eax
mov dl, 1
mov eax, dword [sym.imp.adortl60.bpl__Adodb_TADOQuery_]
call sub.adortl60.bpl__Adodb_TADOQuery__bctr_qqrp18Classes_TComponent
mov ebx, eax
call sub.VEDatasets.bpl__Vedataset_Connection_qqrv
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x268]
lea eax, [ebp - 4]
push eax
call sub.VEDatasets.bpl__Vedataset_FirmaNo_qqrv
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
call sub.VEDatasets.bpl__Vedataset_DonemNo_qqrv
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0x14]
mov ecx, 1
mov eax, 0x419d5c8
call sub.rtl60.bpl__Sysutils_Format_qqrx17System_AnsiStringpx14System_TVarRecxi
mov eax, dword [ebp - 4]
push eax
mov eax, ebx
call sub.adortl60.bpl__Adodb_TADOQuery_GetSQL_qqrv
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_Open_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419d5b6
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret

Function at 0x41a4d30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x41a4d90
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__Sysutils_FileExists_qqrx17System_AnsiString
test al, al
je 0x41a4d7a
push 3
push 0x41a4d9c
push 0x41a4d9c
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
push 0x41a4da0
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a4d97
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret
Function at 0x883d20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x36d000]
push edi
or ebp, 0xffffffff
jmp 0x883d42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x883d49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x883d38
mov eax, 1
add ebx, ebx
jne 0x883d5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x883d6c
jne 0x883d8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x883d8b
dec eax
add ebx, ebx
jne 0x883d78
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x883d50
add ebx, ebx
jne 0x883d87
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x883ddd
xor ecx, ecx
sub eax, 3
jb 0x883da3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x883e12
sar eax, 1
mov ebp, eax
jmp 0x883dae
add ebx, ebx
jne 0x883dae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x883d7c
inc ecx
add ebx, ebx
jne 0x883dbc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x883d7c
add ebx, ebx
jne 0x883dc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x883dbe
jne 0x883dda
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x883dbe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x883dfc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x883dee
jmp 0x883d3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x883dfc
add edi, ecx
jmp 0x883d3e
pop esi
mov edi, esi
mov ecx, 0xf23c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x883e1a
cmp byte [edi], 0xc4
jne 0x883e1a
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 0x883e1f
lea edi, [esi + 0x47f000]
mov eax, dword [edi]
or eax, eax
je 0x883e8e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x484f10]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x48503c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x883e4c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x485040]
or eax, eax
je 0x883e88
mov dword [ebx], eax
add ebx, 4
jmp 0x883e69
call dword [esi + 0x485050]
mov ebp, dword [esi + 0x485044]
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 0x883ec2
sub esp, 0xffffff80
jmp 0x707e84
Function at 0x4019cc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
push 0xd
push esi
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
sub eax, esi
mov dword [esi], 0x42444c7
sub eax, 0xd
mov byte [esi + 8], 0xe9
mov dword [esi + 9], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp + 0xc]
push eax
push 0x40
push 0x10
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
pop ebp
ret 8