joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457ab0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x457ae3
push esi
call fcn.00465e60
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x457adc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x457b69
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x457b52
mov eax, dword [esi + 8]
test eax, eax
je 0x457b07
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x457b4e
cmp eax, 2
je 0x457b52
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x457afa
cmp eax, 3
je 0x457b2d
cmp eax, 1
jne 0x457afa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x457afa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x457afa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00457b90
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x457b78
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00457b90
add esp, 4
pop esi
ret

Function at 0x458400
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x458421
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x458421
mov eax, dword [eax + 0x44]
test eax, eax
je 0x458421
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4926a4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4926dc
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00490731
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00490709
jmp 0x4926e8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x493d99
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x493ddb
call fcn.0049984e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x493ddb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x493dd2
xor eax, eax
jmp 0x493de3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00493de9
pop edi
pop esi
pop ebx
ret 4
Function at 0x499d7e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x499dac
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x499dca
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00499ce4
jmp 0x499dca
mov eax, dword [esi + 0x14]
test eax, eax
je 0x499dca
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00499ce4
test edi, edi
mov eax, edi
jne 0x499db4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

Function at 0x40cb40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x40cb4f
pop dword [ebp - 0x40]
mov eax, 0xb06c59d3
add eax, 0x4fd4717c
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x3bfd9
push 0
mov eax, 0x4787ae3d
sub eax, 0x4746cd1d
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0x52a1
xor edx, edx
add edx, eax
mov edi, 0xf0fee568
add edi, 0xf429298
add edi, dword [ebp - 0x40]
mov esi, 0xf9ad7928
sub esi, 0xfda41b4c
xor dword [ebp - 0x18], eax
mov ebx, dword [edi]
xor dword [ebp - 0x24], edi
add ebx, esi
sub dword [ebp - 0x3c], ecx
mov dword [edx], ebx
sub dword [ebp - 0xc], 0x6655a9c4
add edx, 0x478047cc
sub edx, 0x478047c8
add edi, 0x20028855
add edi, 0xdffd77af
loop 0x40cbaa
add eax, 0x8de3ef18
add eax, 0x721d4e3f
mov ebx, eax
add eax, 0x6120c152
sub eax, 0x6120c14d
mov ecx, 0x48916294
add ecx, 0xb7ae9d6c
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x401224
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x42bbc4]
mov ecx, dword [0x4289bc]
sub esp, 0x82c
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x4012b3
mov edi, ecx
mov ebx, eax
cmp dword [0x42bbc4], 0xae9
jne 0x4012a7
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateActCtxA]
push esi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x428]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push esi
lea eax, [ebp - 0x828]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
push str.Lagipi_xazaciraroz_dafiyoxad_kosifu
push 0x422674
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
push edi
call fcn.00401069
add edi, 8
dec ebx
jne 0x401248
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40131b
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x40
push 0x1000
push dword [0x42bbc4]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x4289bc], eax
ret

Function at 0x403c3f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4250f0]
jne 0x403c49
repz ret
jmp fcn.004090c9
Function at 0x40ad01
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4250f0]
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.00405958
and dword [ebp - 0x14], 0
cmp dword [0x4274f8], 0
mov dword [ebp - 0x18], eax
jne 0x40adb4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40ae5c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40ae5c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4274f8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4274fc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x427500], eax
call edi
push eax
call esi
mov dword [0x427508], eax
test eax, eax
je 0x40adb4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x427504], eax
mov eax, dword [0x427504]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40ae0d
cmp dword [0x427508], ecx
je 0x40ae0d
push eax
call esi
push dword [0x427508]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40ae0d
test ebx, ebx
je 0x40ae0d
call edi
test eax, eax
je 0x40ae04
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40ae04
test byte [ebp - 8], 1
jne 0x40ae0d
or dword [ebp + 0x10], 0x200000
jmp 0x40ae40
mov eax, dword [0x4274fc]
cmp eax, dword [ebp - 0x18]
je 0x40ae40
push eax
call esi
test eax, eax
je 0x40ae40
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40ae40
mov eax, dword [0x427500]
cmp eax, dword [ebp - 0x18]
je 0x40ae40
push eax
call esi
test eax, eax
je 0x40ae40
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4274f8]
call esi
test eax, eax
je 0x40ae5c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40ae5e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403c3f
leave
ret
Function at 0x4031e2
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 4]
xor esi, esi
cmp dword [0x980120], 0x594
mov dword [ebp - 0xc], eax
jne 0x40322e
push 0x402e40
push 0x402e50
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push 0x402e58
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov eax, dword [0x80c4c8]
push ebx
mov ebx, dword [0x80c4cc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0x30], 0x9e3779b9
call fcn.004031db
mov eax, dword [0x80c4d0]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x2c], eax
mov eax, dword [0x80c4d4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x14], 2
add dword [ebp - 0x14], 3
mov eax, dword [ebp - 0x10]
mov ecx, eax
shl ecx, 4
cmp dword [0x980120], 0xc
mov dword [ebp - 4], ecx
jne 0x4032d8
push esi
lea eax, [ebp - 0xc4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x44c]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
lea eax, [ebp - 0x38]
push eax
push esi
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x2c]
add dword [ebp - 4], ecx
mov ecx, dword [0x980120]
cmp ecx, 0xfa9
jne 0x4032f6
mov dword [0x97f6bc], 0xedeb2e40
cmp ecx, 0x3eb
jne 0x403304
mov dword [0x97f070], esi
mov ecx, dword [ebp - 8]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x14]
shr eax, cl
mov dword [0x97f6b8], 0xf4ea3dee
add eax, dword [ebp - 0x24]
mov ecx, eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor ecx, dword [ebp - 4]
cmp dword [0x980120], 0x213
mov dword [ebp - 0x18], ecx
jne 0x403343
push 0x402e6c
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp - 0x18]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
mov eax, dword [ebp - 0xc]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax]
mov ecx, dword [ebp - 0x14]
shr eax, cl
add eax, ebx
xor eax, edx
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x30]
sub dword [ebp - 8], eax
dec dword [ebp - 0x20]
jne 0x40326d
cmp dword [0x980120], 0xa6d
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
pop ebx
jne 0x4033a4
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov eax, dword [ebp - 0xc]
mov dword [edi + 4], eax
pop edi
pop esi
leave
ret 4
Function at 0x40368c
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x980120], 0x400
push edi
jne 0x4036fe
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll__hwrite]
push esi
push esi
call fcn.00403bb2
push esi
push esi
call fcn.00403bb2
push esi
call fcn.00403d7c
add esp, 0x14
push esi
push esi
push esi
call fcn.00404653
pop ecx
mov dword [esp + 4], esi
mov dword [esp], esi
call fcn.0040313f
fstp st(0)
push esi
call fcn.004046d8
pop ecx
push esi
call fcn.0040446a
pop ecx
push esi
push esi
call fcn.00403aa6
pop ecx
pop ecx
mov eax, dword [0x80cb54]
mov dword [0x980120], eax
mov eax, dword [0x80cb2c]
mov dword [0x980124], eax
call fcn.0040346e
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [esp + 0x10], ebx
jle 0x403765
cmp dword [esp + 0x18], 0x785074d5
jne 0x403773
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x403720
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x402fe0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x40302c
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, ebx
jle 0x4037a2
cmp dword [esp + 0x18], 0x785074d5
jne 0x4037ab
inc edi
cmp edi, 0x11915
jl 0x403775
mov eax, dword [0x97f074]
mov dword [0x97f6b4], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x405050
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80b0e8]
jne 0x40505a
repz ret
jmp fcn.0040ae82
Function at 0x40aba5
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.00407862
and dword [ebp - 4], 0
cmp dword [0x80d420], 0
mov ebx, eax
jne LeaveCriticalSection
push 0x401bb4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je GetOEMCP
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401ba8
push edi
call esi
test eax, eax
je GetFileType
push eax
call fcn.004077f0
mov dword [esp], 0x401b98
push edi
mov dword [0x80d420], eax
call esi
push eax
call fcn.004077f0
mov dword [esp], 0x401b84
push edi
mov dword [0x80d424], eax
call esi
push eax
call fcn.004077f0
mov dword [esp], 0x401b68
push edi
mov dword [0x80d428], eax
call esi
push eax
call fcn.004077f0
pop ecx
mov dword [0x80d430], eax
test eax, eax
je 0x40ac56
push 0x401b50
push edi
call esi
push eax
call fcn.004077f0
pop ecx
mov dword [0x80d42c], eax
mov eax, dword [0x80d42c]
cmp eax, ebx
je 0x40acae
cmp dword [0x80d430], ebx
je 0x40acae
push eax
call fcn.0040786b
push dword [TlsAlloc]
mov esi, eax
call fcn.0040786b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40acae
test edi, edi
je 0x40acae
call esi
test eax, eax
je TlsFree
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40aca5
test byte [ebp - 0xc], 1
jne 0x40acae
or dword [ebp + 0x10], 0x200000
jmp GetCurrentThreadId
mov eax, dword [0x80d424]
cmp eax, ebx
je 0x40ace7
push eax
call fcn.0040786b
pop ecx
test eax, eax
je 0x40ace7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ace7
mov eax, dword [0x80d428]
cmp eax, ebx
je 0x40ace7
push eax
call fcn.0040786b
pop ecx
test eax, eax
je 0x40ace7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x80d420]
call fcn.0040786b
pop ecx
test eax, eax
je 0x40ad07
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp GetOEMCP
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402d40
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x433880], 0
push esi
push edi
jne 0x402eab
mov eax, dword fs:[0x30]
xor esi, esi
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [edx + 0x18]
test eax, eax
je 0x402eb6
nop
mov edi, eax
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
test eax, eax
je 0x402da3
mov ecx, dword [eax + edi + 0xc]
lea esi, [eax + edi]
mov eax, dword [ecx + edi]
or eax, 0x20202020
cmp eax, 0x6c64746e
jne 0x402da3
mov eax, dword [ecx + edi + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x402dac
mov edx, dword [edx]
mov eax, dword [edx + 0x18]
test eax, eax
jne 0x402d70
test esi, esi
je 0x402eb6
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x1c]
add edx, 0xfffffffe
mov ecx, dword [esi + 0x20]
add eax, edi
push ebx
mov ebx, dword [esi + 0x18]
add ecx, edi
xor esi, esi
mov dword [ebp - 0xc], eax
add edx, edi
lea eax, [ebx - 1]
lea eax, [ecx + eax*4]
lea edx, [edx + ebx*2]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
nop
mov ecx, dword [eax]
mov edx, 0x775a
add ecx, edi
cmp word [ecx], dx
mov edx, dword [ebp - 4]
jne 0x402e1c
call fcn.004023c0
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [esi*8 + 0x433884], eax
movzx eax, word [edx]
mov eax, dword [ecx + eax*4]
mov dword [esi*8 + 0x433888], eax
inc esi
cmp esi, 0x1f4
je 0x402e2d
mov eax, dword [ebp - 8]
sub eax, 4
sub edx, 2
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
sub ebx, 1
jne 0x402de0
lea eax, [esi - 1]
mov dword [0x433880], esi
xor edi, edi
test eax, eax
je 0x402eaa
nop dword [eax]
mov ecx, esi
xor eax, eax
sub ecx, edi
sub ecx, 1
je 0x402ea2
nop dword [eax + eax]
mov ecx, dword [eax*8 + 0x433888]
mov ebx, dword [eax*8 + 0x433890]
mov dword [ebp - 0xc], ecx
cmp ecx, ebx
jbe 0x402e98
mov ecx, dword [eax*8 + 0x43388c]
mov edx, dword [eax*8 + 0x433884]
mov dword [eax*8 + 0x433884], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax*8 + 0x433888], ebx
mov dword [eax*8 + 0x43388c], edx
mov dword [eax*8 + 0x433890], ecx
mov esi, dword [0x433880]
mov ecx, esi
inc eax
sub ecx, edi
dec ecx
cmp eax, ecx
jb 0x402e50
inc edi
lea eax, [esi - 1]
cmp edi, eax
jb 0x402e40
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406c45
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x409704
push ebx
push esi
call fcn.00409630
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004095c4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4096b1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x409703
push edi
push eax
call fcn.00409efa
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4096d1
call fcn.0040818e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x409702
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004095c4
add esp, 0x20
test eax, eax
jne 0x4096f0
push edi
call fcn.0040818e
jmp 0x4096f8
push ebx
call fcn.0040818e
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40a600
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411fc0
push 0x411fb8
push str.FlsAlloc
push 0x1f
call fcn.0040a51c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a634
push dword [ebp + 8]
mov ecx, esi
call dword [0x410124]
call esi
jmp 0x40a63a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40a67e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411fd0
push 0x411fc8
push str.FlsGetValue
push 0x21
call fcn.0040a51c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a6b5
push dword [ebp + 8]
mov ecx, esi
call dword [0x410124]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40a6bd
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411fd8
push 0x411fd0
push str.FlsSetValue
push 0x22
call fcn.0040a51c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a6f7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x410124]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x401ee2
Capabilities:
Terminate process

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

Function at 0x402793
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x4027a2
pop dword [ebp - 0x4c]
mov eax, 0x4027a2
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x3a792
push 0
mov eax, 0xf3f5987
add eax, 0xf1018751
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x282158b5
add ecx, 0xd7def1e4
mov esi, eax
mov edi, 0xcace2b3f
sub edi, 0xca8cef7b
add edi, dword [ebp - 0x4c]
mov edx, 0xb9c6492c
add edx, 0x95dd38fc
add dword [ebp - 0x14], ebx
mov ebx, dword [edi]
xor ebx, edx
mov dword [esi], ebx
xor dword [ebp - 0x48], 0x2ab94eb7
add esi, 4
add edi, 0x6b7cb55
add edi, 0xf94834af
loop 0x4027fc
add eax, 0x11d37
xor ebx, ebx
add ebx, eax
add eax, 0x39226876
add eax, 0xc6dd978f
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret