joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412c80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x442f78
push 0x41af00
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x4460f4]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.00411a10
test al, al
jne 0x412ce6
mov esi, dword [0x4474c0]
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x4460f4
call fcn.0041b070
add esp, 0xc
mov eax, esi
jmp 0x412e4a
push str.explorer.exe
push dword [ebp + 8]
call fcn.0040e600
add esp, 8
cmp eax, 0xffffffff
jne 0x412d0b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x412e17
push eax
call fcn.0040e560
add esp, 4
mov esi, eax
test esi, esi
je 0x412e17
push 0x104
lea eax, [ebp - 0x224]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.GLogon.exe
push 0x104
push 0x4340a4
lea eax, [ebp - 0x224]
push eax
call fcn.0041a08c
add esp, 8
push eax
call fcn.0041dea4
push 0x44
push 0
lea eax, [ebp - 0x27c]
push eax
call fcn.0041ad60
add esp, 0x18
mov dword [ebp - 0x27c], 0x44
mov dword [ebp - 0x274], str.Winsta0Default
xorps xmm0, xmm0
movups xmmword [ebp - 0x238], xmm0
mov dword [ebp - 0x228], 0
push 1
push esi
lea eax, [ebp - 0x228]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
jne 0x412db3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x412e17
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x27c]
push eax
push 0
push dword [ebp - 0x228]
push 0x420
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x224]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x412e09
push dword [ebp - 0x234]
call edi
push dword [ebp - 0x238]
call edi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call edi
push dword [ebp - 0x228]
call sub.USERENV.dll_DestroyEnvironmentBlock
mov dword [ebp - 4], 0xfffffffe
call fcn.00412e66
push str.GLogon.exe
push dword [ebp + 8]
call fcn.0040e600
add esp, 8
push eax
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
cmove eax, dword [0x4474c0]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00417e4f
mov esp, ebp
pop ebp
ret
Function at 0x4141f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43256b
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x4460f4]
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 ebx, dword [ebp + 8]
lea ecx, [ebp - 0x16c]
push 0
push 0x433478
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x158], 0xf
mov dword [ebp - 0x15c], 0
mov byte [ebp - 0x16c], 0
call fcn.0040a320
mov ecx, 0xf
mov dword [ebp - 4], 0
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsGLogon.exe
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
push 0x104
lea eax, [ebp - 0x154]
push 0
movsw word es:[edi], word [esi]
push eax
movsb byte es:[edi], byte [esi]
call fcn.0041ad60
add esp, 0xc
mov dword [ebp - 0x174], 0x104
lea eax, [ebp - 0x170]
mov dword [ebp - 0x178], 1
push eax
push 0x20019
push 0
lea eax, [ebp - 0x50]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4142f1
lea eax, [ebp - 0x16c]
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov ecx, ebx
push eax
mov byte [ebx], 0
call fcn.004066b0
mov ecx, dword [ebp - 0x158]
cmp ecx, 0x10
jb 0x4143ec
inc ecx
push ecx
jmp 0x4143db
lea eax, [ebp - 0x174]
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x178]
push eax
push 0
push 0
push dword [ebp - 0x170]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4143a3
mov eax, dword [ebp - 0x174]
dec eax
cmp eax, 0x104
jae 0x41439e
push dword [ebp - 0x170]
mov byte [ebp + eax - 0x154], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x154], 0
jne 0x41434d
xor ecx, ecx
jmp 0x41435f
lea ecx, [ebp - 0x154]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x414356
sub ecx, edx
push ecx
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x16c]
call fcn.0040a320
lea eax, [ebp - 0x16c]
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov ecx, ebx
push eax
mov byte [ebx], 0
call fcn.004066b0
lea ecx, [ebp - 0x16c]
call fcn.004034c0
jmp 0x4143ec
call fcn.00417fd3
push dword [ebp - 0x170]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x16c]
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov ecx, ebx
push eax
mov byte [ebx], 0
call fcn.004066b0
mov eax, dword [ebp - 0x158]
cmp eax, 0x10
jb 0x4143ec
inc eax
push eax
push dword [ebp - 0x16c]
lea ecx, [ebp - 0x16c]
call fcn.0040a640
mov eax, ebx
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.00417e4f
mov esp, ebp
pop ebp
ret 4
Function at 0x415850
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], 0
mov eax, dword [edi]
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0x4163c0
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [ebp - 8]
test esi, esi
je 0x4158b4
cmp dword [edi], 0
jle 0x4158a1
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4158c0
Capabilities:
Acquire debug privileges
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432716
mov eax, dword fs:[0]
push eax
sub esp, 0x490
mov eax, dword [0x4460f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x43c]
call fcn.00416400
lea ecx, [ebp - 0x43c]
mov dword [ebp - 4], 0
call fcn.004141e0
push eax
push 0x201eb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x415b2c
lea ecx, [ebp - 0x434]
call fcn.00416400
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 1
call fcn.004141e0
push eax
push 1
push 1
push 0
push 0x2000000
lea ecx, [ebp - 0x43c]
call fcn.00416430
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x415b21
call fcn.0040e330
mov dword [ebp - 0x440], eax
lea ecx, [ebp - 0x434]
push 4
lea eax, [ebp - 0x440]
push eax
push 0xc
call fcn.00416430
push eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x415b21
lea eax, [ebp - 0x448]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x415b21
mov eax, dword [ebp - 0x448]
lea ecx, [ebp - 0x434]
push 0
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp - 0x444]
push 0
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x430]
push 0x10
push eax
push 0
mov dword [ebp - 0x430], 1
mov dword [ebp - 0x424], 2
call fcn.00416430
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x415b21
push 1
lea ecx, [ebp - 0x434]
mov dword [ebp - 0x438], 0
call fcn.00416430
push eax
lea eax, [ebp - 0x438]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x415b21
push 0x44
lea eax, [ebp - 0x49c]
push 0
push eax
call fcn.0041ad60
add esp, 0xc
mov dword [ebp - 0x49c], 0x44
lea eax, [ebp - 0x420]
mov dword [ebp - 0x494], str.winsta0default
xorps xmm0, xmm0
movups xmmword [ebp - 0x458], xmm0
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0041ad60
push dword [esi]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push str._s__d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x458]
lea ecx, [ebp - 0x434]
push eax
lea eax, [ebp - 0x49c]
push eax
push 0
push dword [ebp - 0x438]
lea eax, [ebp - 0x218]
push 0x430
push 0
push 0
push 0
push eax
push 0
call fcn.00416430
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x415b11
push 0x7d0
push dword [ebp - 0x458]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x454]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x458]
call esi
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x415b21
push eax
call sub.USERENV.dll_DestroyEnvironmentBlock
lea ecx, [ebp - 0x434]
call fcn.00416410
lea ecx, [ebp - 0x43c]
call fcn.00416410
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417e4f
mov esp, ebp
pop ebp
ret 4
Function at 0x415b60
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4460f4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x415ba5
lea eax, [ebp - 0x20]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x415bb5
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417e4f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
push 0
push 0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x415b9c
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.00417e4f
mov esp, ebp
pop ebp
ret
Function at 0x415dc0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
mov eax, dword [0x4460f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0
push 2
mov dword [ebp - 0x338], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [ebp - 0x334]
push 0x22c
push 0
push eax
mov dword [ebp - 0x340], ebx
call fcn.0041ad60
add esp, 0xc
mov dword [ebp - 0x334], 0x22c
lea eax, [ebp - 0x334]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
mov ecx, esi
call fcn.004163b0
lea ecx, [ebp - 0x104]
push 0xfde9
mov dword [ebp - 0x108], ecx
lea ecx, [ebp - 0x108]
push eax
call fcn.00405450
push dword [ebp - 0x108]
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
lea ecx, [ebp - 0x104]
mov eax, dword [ebp - 0x108]
sete bl
cmp eax, ecx
je 0x415e75
push eax
call fcn.0041d363
add esp, 4
test bl, bl
je 0x415f68
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x32c]
cmp ecx, eax
jae 0x415f00
mov esi, dword [edi]
cmp esi, ecx
ja 0x415f00
mov edx, dword [edi + 8]
mov ebx, ecx
sub ebx, esi
sar ebx, 2
cmp eax, edx
jne 0x415ef2
mov ecx, edx
sub ecx, eax
sar ecx, 2
cmp ecx, 1
jae 0x415ef2
sub eax, esi
mov ecx, 0x3fffffff
sar eax, 2
sub ecx, eax
cmp ecx, 1
jb 0x415f9d
sub edx, dword [edi]
lea esi, [eax + 1]
sar edx, 2
mov ecx, 0x3fffffff
mov eax, edx
mov dword [ebp - 0x33c], edx
shr eax, 1
sub ecx, eax
add eax, edx
xor edx, edx
cmp ecx, dword [ebp - 0x33c]
mov ecx, edi
cmovae edx, eax
cmp edx, esi
cmovae esi, edx
push esi
call fcn.004162e0
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x415f5e
mov eax, dword [edi]
mov eax, dword [eax + ebx*4]
jmp 0x415f5c
mov ebx, dword [edi + 8]
cmp eax, ebx
jne 0x415f4f
mov ecx, ebx
sub ecx, eax
sar ecx, 2
cmp ecx, 1
jae 0x415f4f
mov edx, dword [edi]
mov ecx, 0x3fffffff
sub eax, edx
sar eax, 2
sub ecx, eax
cmp ecx, 1
jb 0x415f9d
sub ebx, edx
lea esi, [eax + 1]
sar ebx, 2
mov ecx, 0x3fffffff
mov eax, ebx
xor edx, edx
shr eax, 1
sub ecx, eax
add eax, ebx
cmp ecx, ebx
mov ecx, edi
cmovae edx, eax
cmp edx, esi
cmovae esi, edx
push esi
call fcn.004162e0
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x415f5e
mov eax, dword [ebp - 0x32c]
mov dword [ecx], eax
mov esi, dword [ebp - 0x338]
add dword [edi + 4], 4
mov ebx, dword [ebp - 0x340]
lea eax, [ebp - 0x334]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x415e20
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417e4f
mov esp, ebp
pop ebp
ret 8
push str.vector_T__too_long
call fcn.004168eb
int3

Function at 0x415fb0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push dword [eax]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x415fdc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret 4
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..idata
nop
mov ebx, 0x40915c
nop
nop
mov ecx, 0xa0d0ae2
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
mov ecx, 0x14214338
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x40560d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x40561c
pop dword [ebp - 0x18]
mov eax, 0x9eb09c45
sub eax, 0x9e704629
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x49be6bc0
add dword [ebp - 0x28], 0x493d98b
mov dword [ebp - 0x24], 0xe14ba0e4
add dword [ebp - 0x24], 0x50e7ab61
mov dword [ebp - 0x20], 0x81e418f0
add dword [ebp - 0x20], 0xca682b3e
mov dword [ebp - 0x1c], 0xc66cafa9
add dword [ebp - 0x1c], 0x39935057
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x783bb590
sub dword [ebp - 0x28], 0x3c94c3a
mov dword [ebp - 0x24], 0xb1bba954
sub dword [ebp - 0x24], 0x704f47df
mov dword [ebp - 0x20], 0x653c5a1c
add dword [ebp - 0x20], 0xfe331250
mov dword [ebp - 0x1c], 0x124f72f4
add dword [ebp - 0x1c], 0xedb08d0c
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x31f28945
sub eax, 0x31b1b8f9
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x39d4f
push 0
call eax
mov ecx, 0x43e867ba
add ecx, 0xbc17e186
xor ebx, ebx
add ebx, eax
mov esi, 0x9b405b3c
add esi, 0x650154c4
add esi, dword [ebp - 0x18]
mov edi, 0x196c4416
sub edi, 0xf1cc7a8
xor dword [ebp - 0x14], 0xa288f99b
mov edx, dword [esi]
sub edx, edi
sub dword [ebp - 0x10], 0xec82de45
mov dword [ebx], edx
mov dword [ebp - 8], 0x113d9357
add ebx, 0xa381fc8e
sub ebx, 0xa381fc8a
add esi, 4
loop 0x40573b
add eax, 0x117d3
mov ebx, eax
add eax, 0x21c2c84
sub eax, 0x21c2c7f
mov ecx, 0xee3839a0
add ecx, 0x1207c660
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x401460
Capabilities:
Contain obfuscated stackstrings
Get file size
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x19c
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 0x71664165
mov dword [ebp - 0x28], 0x64575073
mov dword [ebp - 0x2c], 0x51794d6e
mov dword [ebp - 0x30], 0x68787654
mov dword [ebp - 0x34], 0x69546848
mov dword [ebp - 0x38], 0x45626544
mov dword [ebp - 0x3c], 0x526a714c
lea esi, [ebp - 0x60]
mov ecx, esi
call fcn.00401348
sub esp, 0xc
push esi
call fcn.00401648
add esp, 4
push eax
call sub.KERNEL32.DLL_GetModuleHandleA
add esp, 0xc
mov esi, eax
lea edi, [ebp - 0x7c]
mov ecx, edi
call fcn.00401368
sub esp, 0xc
push edi
call fcn.00401660
add esp, 8
push eax
push esi
call sub.KERNEL32.DLL_GetProcAddress
add esp, 8
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0xa0]
mov ecx, edi
call fcn.00401398
sub esp, 0xc
push edi
call fcn.00401678
add esp, 8
push eax
push esi
call sub.KERNEL32.DLL_GetProcAddress
add esp, 8
mov ebx, eax
lea edi, [ebp - 0x6c]
mov ecx, edi
call fcn.004013d8
sub esp, 0xc
push edi
call fcn.00401690
add esp, 8
push eax
push esi
call sub.KERNEL32.DLL_GetProcAddress
add esp, 8
mov dword [ebp - 0x20], eax
lea edi, [ebp - 0x54]
mov ecx, edi
call fcn.004013f8
sub esp, 0xc
push edi
call fcn.00401648
add esp, 8
push eax
mov dword [ebp - 0x18], esi
push esi
call sub.KERNEL32.DLL_GetProcAddress
add esp, 8
mov dword [ebp - 0x14], eax
sub esp, 4
lea esi, [ebp - 0x1a4]
push 0x104
push esi
push 0
call ebx
sub esp, 4
push 0x5c
push esi
call fcn.00410621
add esp, 0x10
test eax, eax
je 0x4015a1
mov byte [eax], 0
lea edi, [ebp - 0x8c]
mov ecx, edi
call fcn.00401418
sub esp, 0xc
push edi
call fcn.004016a8
add esp, 8
push eax
push esi
call sub.KERNEL32.DLL_lstrcatA
add esp, 8
sub esp, 4
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push esi
call dword [ebp - 0x20]
add esp, 4
mov edi, eax
cmp edi, 0xffffffff
je 0x401639
sub esp, 8
push 0
push edi
call sub.KERNEL32.DLL_GetFileSize
add esp, 8
mov ebx, eax
push 0x40
push 0x1000
push ebx
push 0
call dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4015fb
sub esp, 0xc
lea ecx, [ebp - 0x40]
push 0
push ecx
push ebx
push eax
push edi
call dword [ebp - 0x14]
add esp, 0xc
add dword [ebp - 0x10], 4
sub esp, 0xc
push edi
call sub.KERNEL32.DLL_CloseHandle
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x401639
call dword [ebp - 0x10]
lea edi, [ebp - 0x48]
mov ecx, edi
call fcn.00401448
sub esp, 0xc
push edi
call fcn.004016c0
add esp, 8
push eax
push dword [ebp - 0x18]
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 4
push 0xffffffffffffffff
call eax
add esp, 0xc
lea eax, [ebp - 0x3c]
add esp, 0x19c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401714
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov eax, 0x31
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
nop
movzx ebx, byte [ecx + eax - 0x31]
xor ebx, eax
mov byte [edx + eax - 0x31], bl
inc eax
cmp eax, 0x3a
jne 0x401724
pop ebx
ret
Function at 0x40176c
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov eax, 0x31
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
nop
movzx ebx, byte [ecx + eax - 0x31]
xor ebx, eax
mov byte [edx + eax - 0x31], bl
inc eax
cmp eax, 0x3e
jne 0x40177c
pop ebx
ret

Function at 0x4017c4
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov eax, 0x31
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
nop
movzx ebx, byte [ecx + eax - 0x31]
xor ebx, eax
mov byte [edx + eax - 0x31], bl
inc eax
cmp eax, 0x44
jne 0x4017d4
pop ebx
ret

Function at 0x40181c
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov eax, 0x31
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
nop
movzx ebx, byte [ecx + eax - 0x31]
xor ebx, eax
mov byte [edx + eax - 0x31], bl
inc eax
cmp eax, 0x3d
jne 0x40182c
pop ebx
ret

Function at 0x401874
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov eax, 0x31
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
nop
movzx ebx, byte [ecx + eax - 0x31]
xor ebx, eax
mov byte [edx + eax - 0x31], bl
inc eax
cmp eax, 0x40
jne 0x401884
pop ebx
ret

Function at 0x4018cc
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov eax, 0x31
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
nop
movzx ebx, byte [ecx + eax - 0x31]
xor ebx, eax
mov byte [edx + eax - 0x31], bl
inc eax
cmp eax, 0x37
jne 0x4018dc
pop ebx
ret

Function at 0x40ba0c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
mov al, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov byte [ebp - 5], al
mov al, byte [edx]
mov bl, al
xor bl, byte [ebp + 0xc]
lock cmpxchg byte [edx], bl
jne 0x40ba21
mov byte [ebp + 0xc], al
mov al, byte [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xd]
movzx eax, al
add esp, 0xc
pop ebx
pop ebp
ret

Function at 0x40bf9c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
mov ax, word [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov word [ebp - 6], ax
mov ax, word [edx]
mov bx, ax
xor bx, word [ebp + 0xc]
lock cmpxchg word [edx], bx
jne 0x40bfb4
mov word [ebp + 0xc], ax
mov ax, word [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov word [ebp - 0xe], ax
mov ax, word [ebp - 0xe]
movzx eax, ax
add esp, 0xc
pop ebx
pop ebp
ret

Function at 0x40c4fc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [edx]
mov ebx, eax
xor ebx, dword [ebp + 0xc]
lock cmpxchg dword [edx], ebx
jne 0x40c511
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add esp, 0xc
pop ebx
pop ebp
ret
Function at 0x40d7bc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
mov edi, dword [ebp - 0x1c]
mov edx, dword [edi + 4]
mov eax, dword [edi]
mov ecx, edx
mov ebx, eax
xor ebx, dword [ebp - 0x18]
xor ecx, dword [ebp - 0x14]
lock cmpxchg8b qword [edi]
jne 0x40d7e5
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40da20
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x20]
test edi, edi
je 0x40db52
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x40db52
cmp dword [esp + 0x28], 0
je 0x40db52
mov dword [esp], str.borlndmm
call sub.KERNEL32.DLL_GetModuleHandleA
sub esp, 4
mov esi, eax
test esi, esi
je 0x40db52
mov ebp, dword [esp + 0x2c]
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysGetMem_qqri
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov dword [edi], eax
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysFreeMem_qqrpv
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov dword [ebx], eax
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysReallocMem_qqrpvi
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysAllocMem_qqri
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov dword [ebp], eax
mov dword [esp], esi
mov dword [esp + 4], str._Borlndmm_SysRegisterExpectedMemoryLeak_qqrpi
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
mov dword [esp], esi
mov esi, dword [esp + 0x34]
mov dword [esp + 4], str._Borlndmm_SysUnregisterExpectedMemoryLeak_qqrpi
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov dword [esi], eax
mov eax, dword [edi]
mov dword [0x424e80], eax
cmp dword [ebp], 0
jne 0x40db06
mov dword [ebp], 0x40d9f0
mov eax, dword [esp + 0x30]
cmp dword [eax], 0
jne 0x40db15
mov dword [eax], 0x40d9e0
mov ecx, dword [esi]
test ecx, ecx
je 0x40db42
cmp dword [edi], 0
je 0x40db52
cmp dword [ebx], 0
je 0x40db52
mov esi, dword [esp + 0x28]
cmp dword [esi], 0
je 0x40db52
cmp dword [ebp], 0
je 0x40db52
cmp dword [eax], 0
je 0x40db52
xor eax, eax
test ecx, ecx
setne al
jmp 0x40db54
mov dword [esi], 0x40d9e0
mov ecx, 0x40d9e0
cmp dword [edi], 0
jne 0x40db20
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret