joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d330
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x4466c0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40d40c
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x40d421
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x40d3e0
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x40d378
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x40d388
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x40d3d3
test edx, edx
jne 0x40d3c6
test ecx, ecx
je 0x40d370
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call ecx
cmp eax, 6
je 0x40d430
cmp eax, 8
je 0x40d370
mov eax, 3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 5
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40d362
call sym.unk_1049
mov eax, dword [0x4466c0]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jns 0x40d354
call sym.unk_1051
mov eax, dword [0x4466c0]
jmp 0x40d354
mov dword [edi + 0xc], 0
mov eax, dword [ebp - 0x14]
mov edx, ebx
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, edi
call sym.unk_1064
cmp eax, 7
jne 0x40d3cb
mov eax, dword [0x4466c0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40d483
mov edi, dword [eax + 0x30]
test edi, edi
js 0x40d4ae
mov esi, dword [eax + 0x30]
test esi, esi
jne 0x40d48f
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call sym.unk_1049
mov eax, dword [0x4466c0]
jmp 0x40d461
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40d472
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d472
call sym.unk_1051
mov eax, dword [0x4466c0]
jmp 0x40d468
Function at 0x40d5b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov eax, dword [0x4466c0]
test eax, eax
je 0x40d610
mov esi, dword [eax + 0x30]
test esi, esi
js 0x40d630
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x40d650
mov eax, dword [eax + 0x28]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
mov eax, edi
call sym.unk_1066
cmp eax, 7
je 0x40d6a0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call sym.unk_1049
mov eax, dword [0x4466c0]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x40d5d2
jmp 0x40d630
call sym.unk_1051
mov eax, dword [0x4466c0]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x40d5d9
jmp 0x40d650
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
sub esp, 4
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
mov eax, edi
call sym.unk_1066
cmp eax, 7
jne 0x40d601
lea esi, [esi]
mov eax, dword [0x4466c0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40d6ed
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x40d6f9
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x40d6ce
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40d6bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d6bd
call sym.unk_1049
mov eax, dword [0x4466c0]
jmp 0x40d6ac
call sym.unk_1051
mov eax, dword [0x4466c0]
jmp 0x40d6b3
Function at 0x40d710
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x4466c0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40d7a4
mov esi, dword [eax + 0x30]
test esi, esi
js 0x40d7c0
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x40d7e0
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x40d798
lea edx, [ebp - 0x14]
mov eax, edi
call sym.unk_1064
cmp eax, 7
jne 0x40d85f
mov eax, dword [0x4466c0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40d836
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40d850
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40d810
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
lea edx, [ebp - 0x14]
mov eax, edi
call sym.unk_1066
jmp 0x40d755
call sym.unk_1049
mov eax, dword [0x4466c0]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x40d730
lea esi, [esi]
call sym.unk_1051
mov eax, dword [0x4466c0]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x40d73b
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40d73e
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40d787
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d787
call sym.unk_1049
mov eax, dword [0x4466c0]
mov edx, dword [eax + 0x30]
test edx, edx
jns 0x40d779
nop
lea esi, [esi]
call sym.unk_1051
mov eax, dword [0x4466c0]
jmp 0x40d779
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x40d870
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x40d902
mov eax, dword [0x4466c0]
test eax, eax
je 0x40d8f6
mov ebx, dword [eax + 0x30]
test ebx, ebx
js 0x40d971
mov ecx, dword [eax + 0x30]
test ecx, ecx
jne 0x40d917
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call sym.unk_1066
cmp eax, 7
jne 0x40d98f
mov eax, dword [0x4466c0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40d962
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40d980
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40d943
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call sym.unk_1049
mov eax, dword [0x4466c0]
jmp 0x40d892
mov dword [esp], edi
call sym.unk_1065
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40d8a7
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40d8e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d8e5
call sym.unk_1049
mov eax, dword [0x4466c0]
jmp 0x40d8d0
call sym.unk_1051
mov eax, dword [0x4466c0]
jmp 0x40d89d
call sym.unk_1051
mov eax, dword [0x4466c0]
jmp 0x40d8db
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x40db70
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov edx, eax
je 0x40dba0
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], eax
call sym.unk_1042
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret
Function at 0x40e250
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push ebx
sub esp, 0x124
mov ebx, dword [esp + 0x130]
call sym.__errno
mov dword [eax], 0
test ebx, ebx
je 0x40e457
cmp byte [ebx], 0
je 0x40e423
mov dword [esp], ebx
call sub.KERNEL32.dll_GetFileAttributesA
sub esp, 4
cmp eax, 0xffffffff
je 0x40e448
test al, 0x10
je 0x40e423
mov dword [esp + 4], ebx
mov eax, 0x104
lea esi, [esp + 0x10]
mov dword [esp + 8], eax
mov dword [esp], esi
call sub.msvcrt.dll__fullpath
mov ecx, esi
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [ecx]
add ecx, 4
lea edx, [ebx - 0x1010101]
not ebx
and edx, ebx
mov eax, edx
and eax, 0x80808080
je 0x40e2c0
and edx, 0x8080
jne 0x40e2e6
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, esi
lea edx, [ecx + 0x233]
mov dword [esp], edx
call sub.msvcrt.dll_malloc
test eax, eax
mov ebx, eax
je 0x40e439
mov dword [esp + 4], esi
lea esi, [eax + 0x22c]
mov dword [esp], esi
call sub.msvcrt.dll_strcpy
cmp byte [ebx + 0x22c], 0
je 0x40e3c0
mov ecx, esi
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
mov eax, edx
and eax, 0x80808080
je 0x40e330
and edx, 0x8080
jne 0x40e356
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, esi
cmp byte [ebx + ecx + 0x22b], 0x2f
je 0x40e3c0
mov ecx, esi
lea esi, [esi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
mov eax, edx
and eax, 0x80808080
je 0x40e370
and edx, 0x8080
jne 0x40e396
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, esi
cmp byte [ebx + ecx + 0x22b], 0x5c
je 0x40e3c0
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov word [eax + esi], 0x5c
lea esi, [esi]
lea edi, [edi]
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov word [eax + esi], 0x2a
mov eax, 0xffffffff
xor edx, edx
mov dword [ebx + 0x224], eax
xor ecx, ecx
xor esi, esi
mov dword [ebx + 0x228], edx
xor eax, eax
mov edx, 0x104
mov dword [ebx + 0x118], ecx
xor ecx, ecx
mov word [ebx + 0x11c], si
lea esi, [ebx + 0x120]
mov word [ebx + 0x11e], ax
mov dword [esp], esi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memset
add esp, 0x124
mov eax, ebx
pop ebx
pop esi
ret
call sym.__errno
mov dword [eax], 0x14
xor eax, eax
add esp, 0x124
pop ebx
pop esi
ret
call sym.__errno
mov dword [eax], 0xc
xor eax, eax
jmp 0x40e430
call sym.__errno
mov dword [eax], 2
xor eax, eax
jmp 0x40e430
call sym.__errno
mov dword [eax], 0xe
xor eax, eax
jmp 0x40e430
Function at 0x410e70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.unk_6
Function at 0x4012d0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4154a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x1c]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x401328
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
push str.Unable_to_open_process_token:__d
mov edx, dword [ebp + 8]
push edx
call section..text
add esp, 0xc
jmp 0x4013b5
mov eax, 0xc
imul ecx, eax, 0
lea edx, [ebp + ecx - 0x10]
push edx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x401366
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
push str.Unable_to_lookup_privilege:__d
mov ecx, dword [ebp + 8]
push ecx
call section..text
add esp, 0xc
jmp 0x4013b5
mov edx, 0xc
imul eax, edx, 0
mov dword [ebp + eax - 8], 2
mov dword [ebp - 0x14], 1
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4013b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
push str.Unable_to_adjust_token_privileges:__d
mov ecx, dword [ebp + 8]
push ecx
call section..text
add esp, 0xc
cmp dword [ebp - 0x1c], 0
je 0x4013c5
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402451
mov esp, ebp
pop ebp
ret
Function at 0x409c9b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4154a0]
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.004066b4
mov dword [ebp - 0x14], eax
cmp dword [0x4173c8], esi
jne 0x409d8e
push 0x800
push esi
push 0x413d34
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x409d1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x409e6e
push esi
push esi
push 0x413d34
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x409e6e
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x409e6e
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4173c8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4173cc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4173d0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4173d8], eax
test eax, eax
je 0x409d8b
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4173d4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x409db3
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x409da6
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x409dc8
push 4
pop eax
jmp 0x409e70
cmp dword [ebp - 0x14], esi
je 0x409dc8
push dword [0x4173c8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x409dad
mov eax, dword [0x4173d4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x409e26
cmp dword [0x4173d8], edi
je 0x409e26
push eax
call ebx
push dword [0x4173d8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x409e26
test eax, eax
je 0x409e26
call ecx
test eax, eax
je 0x409e1b
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 0x409e1b
test byte [ebp - 8], 1
jne 0x409e26
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x409e56
mov eax, dword [0x4173cc]
cmp eax, edi
je 0x409e53
push eax
call ebx
test eax, eax
je 0x409e53
call eax
mov esi, eax
test esi, esi
je 0x409e53
mov eax, dword [0x4173d0]
cmp eax, edi
je 0x409e53
push eax
call ebx
test eax, eax
je 0x409e53
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4173c8]
call ebx
test eax, eax
je 0x409e6e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x409e70
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402451
mov esp, ebp
pop ebp
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x402143
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 4, 0
mov esi, eax
lea edx, [eax - 1]
mov ebx, eax
and edx, dword [0x403050]
mov eax, 0x403054
call fcn.0040207c
lea edx, [ebp - 4]
push edx
mov edx, esi
or dl, 0x40
mov edi, 0x402e02
push edx
sub edi, fcn.004025ac
push edi
xor eax, eax
push fcn.004025ac
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp - 4], 0
je 0x4021ae
mov eax, fcn.004025ac
mov ebx, esi
mov edx, edi
call fcn.0040207c
mov edx, 0x1c000
mov eax, 0x403054
mov ebx, esi
call fcn.00402467
leave
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x402326
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebx
push ecx
push edx
push esi
enter 0x5e4, 0
sub ebp, 0x8e
lea ebx, [ebp - 0x42]
push ebx
xor eax, eax
push ebx
mov word [ebp - 0x42], ax
call dword [sym.imp.SHLWAPI.DLL_PathAddExtensionW]
lea eax, [ebp - 0x556]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push 0x104
lea ebx, [ebp - 0x34e]
push ebx
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
push 0x104
lea eax, [ebp - 0x146]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push 0
push 0
push 3
push 0
push 0
push 0x80000000
lea ebx, [ebp - 0x556]
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
lea eax, [ebp + 0x3e]
push eax
push eax
mov byte [ebp + 0x3e], 0
call dword [sym.imp.SHLWAPI.DLL_PathAddExtensionA]
xor eax, eax
push ebx
mov word [ebp + 0x7e], ax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp + 0x7e]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
push 0
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsW]
lea eax, [ebp - 0x146]
push eax
lea ebx, [esi - 3]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov eax, ebx
lea esp, [ebp + 0x8e]
pop ebp
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x408780
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push esi
je 0x408801
or byte [edx - 0x4417a9af], ch
test al, 0
or dword [ebx - 0x3ca2a13a], 0x90909090
nop
cmc
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x4f]
rol ch, 1
adc dword [ecx], eax
add dl, ch
pop dword [edi]
add byte [eax], al
mov ebx, 0x6840f
add byte [eax], al
add eax, 0xffff05de
mov gs, ebx
or byte [esi - 0x6c], al
ret 0x581
Function at 0x401690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, edx
push edi
push 0
push dword [section..data]
mov dword [ebp - 8], edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
test ebx, ebx
je 0x4016d4
mov edi, esi
mov ecx, eax
sub edi, eax
mov edx, ebx
mov eax, dword [edi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x4016c3
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x4016ef
mov edx, edi
sub esi, eax
lea ecx, [ebx + eax]
sub edx, ebx
mov al, byte [ecx + esi]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x4016e4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
mov ebx, esi
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
shr ebx, 2
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
test ebx, ebx
je 0x401731
lea ecx, [ebx + edx]
mov edx, dword [eax]
movzx ecx, cl
ror edx, cl
mov ecx, dword [ebp - 8]
add eax, 4
xor edx, ecx
sub edx, ebx
mov dword [eax - 4], edx
mov edx, dword [ebp - 0xc]
dec ebx
jne 0x401714
test esi, esi
je 0x40173d
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x401735
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 4]
mov esi, eax
mov edx, esi
mov ecx, ebx
call section..text
push ebx
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.0040129c
add esp, 0x18
sub ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret