joyce8/EMBER2024-capa huggingface dataset:
Function at 0x586919
Capabilities:
Encode data using xor

Disassembly:
xchg edx, eax
dec esi
xchg edx, eax
idiv byte [esi - 0x69]
or byte [edx - 0xf9ec98e], cl
xchg byte [edx + ecx*2 - 0x103f3410], al
or ch, ch
cmpsb byte [esi], byte es:[edi]
xor edi, ecx
jae 0x58691c
adc bl, cl
dec esp
dec edx
pop ecx
popal
mov byte [esi], 0x56
mov edx, es
int1
invalid

Function at 0x64fd6e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x656260
cmp edx, dword [eax]
je 0x64fd90
add eax, 8
inc ecx
cmp eax, 0x6562f0
jl 0x64fd81
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x656260]
jne 0x64febe
mov eax, dword [0xa598a4]
cmp eax, 1
je 0x64fe98
test eax, eax
jne 0x64fdc1
cmp dword [0x6561a4], 1
je 0x64fe98
cmp edx, 0xfc
je 0x64febe
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x64fdf8
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00650480
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.006506b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x64fe3b
lea eax, [ebp - 0x1a4]
push eax
call fcn.006506b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x653750
push edi
call fcn.00651e80
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00650480
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00650490
lea eax, [ebp - 0xa0]
push 0x653730
push eax
call fcn.00650490
push dword [esi + 0x656264]
lea eax, [ebp - 0xa0]
push eax
call fcn.00650490
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00651df4
add esp, 0x2c
pop edi
jmp 0x64febe
lea eax, [ebp + 8]
lea esi, [esi + 0x656264]
push 0
push eax
push dword [esi]
call fcn.006506b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x406060
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x416b5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4041d4
call fcn.00406df3
push 4
mov dword [esp + 0x18], 0
call fcn.0040807a
mov edi, eax
add esp, 4
test edi, edi
je 0x4060d4
push ebx
call fcn.00406ba7
mov dword [edi], eax
call fcn.00406966
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406c90
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4060c8
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00406cb8
pop ebx
jmp 0x4060d6
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x408799
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41adc0]
jne 0x4087a3
repz ret
jmp fcn.0040e9bc
Function at 0x413883
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41adc0]
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.0040abba
and dword [ebp - 0x14], 0
cmp dword [0x431ed0], 0
mov dword [ebp - 0x18], eax
jne 0x413936
push 0x403e80
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4139de
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403e74
push ebx
call edi
test eax, eax
je 0x4139de
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403e64
push ebx
mov dword [0x431ed0], eax
call edi
push eax
call esi
push 0x403e50
push ebx
mov dword [0x431ed4], eax
call edi
push eax
call esi
push 0x403e34
push ebx
mov dword [0x431ed8], eax
call edi
push eax
call esi
mov dword [0x431ee0], eax
test eax, eax
je 0x413936
push 0x403e1c
push ebx
call edi
push eax
call esi
mov dword [0x431edc], eax
mov eax, dword [0x431edc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41398f
cmp dword [0x431ee0], ecx
je 0x41398f
push eax
call esi
push dword [0x431ee0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41398f
test ebx, ebx
je 0x41398f
call edi
test eax, eax
je 0x413986
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x413986
test byte [ebp - 8], 1
jne 0x41398f
or dword [ebp + 0x10], 0x200000
jmp 0x4139c2
mov eax, dword [0x431ed4]
cmp eax, dword [ebp - 0x18]
je 0x4139c2
push eax
call esi
test eax, eax
je 0x4139c2
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4139c2
mov eax, dword [0x431ed8]
cmp eax, dword [ebp - 0x18]
je 0x4139c2
push eax
call esi
test eax, eax
je 0x4139c2
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x431ed0]
call esi
test eax, eax
je 0x4139de
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4139e0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408799
leave
ret

Function at 0x415030
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov eax, 0x6b
mov edx, 0x72
mov word [0x32d2620], ax
mov word [0x32d2624], dx
mov ecx, 0x6e
mov edx, 0x65
xor eax, eax
push 0x32d2620
mov dword [0x32d262c], 0x320033
mov dword [0x32d2634], 0x6c006c
mov word [0x32d2626], cx
mov dword [0x32d2628], 0x6c0065
mov dword [0x32d2630], 0x64002e
mov word [0x32d2622], dx
mov word [0x32d2638], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [0x32d4d80]
lea ecx, [esp]
push ecx
push 0x40
mov dword [0x32d261c], eax
mov eax, dword [0x436c7c]
push edx
push eax
mov byte [0x431ef3], 0x65
mov dword [0x431ee9], 0x75747269
mov word [0x431eed], 0x6c61
mov byte [0x431ee8], 0x56
mov word [0x431ef4], 0x7463
mov byte [0x431ef6], 0
mov dword [0x431eef], 0x746f7250
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret
Function at 0x415120
Capabilities:
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x1280
call fcn.004141f0
cmp dword [0x32d4d80], 0x37
push esi
jne 0x415221
push 0
lea eax, [esp + 0x284]
push eax
push 0x403f0c
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0
call esi
xor eax, eax
lea edx, [esp + 8]
push edx
push eax
push eax
push eax
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_ReadFileScatter]
push 0
lea eax, [esp + 0x684]
push eax
push 0x403f18
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea ecx, [esp + 0xa84]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 0x60]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
call esi
push 0x403f40
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
lea ecx, [esp + 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
push 0x30
lea eax, [esp + 0x34]
push 0
push eax
mov dword [esp + 0x38], 0
call fcn.0040b030
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
mov edx, dword [0x32d4d84]
mov dword [esp + 4], edx
mov eax, 0x5d1
add dword [esp + 4], eax
mov eax, dword [esp + 4]
mov cl, byte [eax + ebx]
mov edx, dword [0x436c7c]
mov byte [edx + ebx], cl
pop esi
add esp, 0x1280
ret
Function at 0x415460
Capabilities:
Accept command line arguments
Get geographical location
Query environment variable

Disassembly:
mov eax, dword [0x32d4d80]
mov ecx, dword [0x436c7c]
sub esp, 0x97c
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
je 0x41565e
mov dword [esp + 0x34], 0x9e3779b9
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [0x42fa40]
mov edx, dword [0x42fa44]
mov dword [esp + 0x14], eax
mov eax, dword [0x42fa48]
mov dword [esp + 0x40], ecx
mov ecx, dword [0x42fa4c]
mov ebx, 0xc6ef3720
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x24], 0x20
mov eax, edi
shl eax, 4
add eax, dword [esp + 0x2c]
mov esi, edi
shr esi, 5
cmp dword [0x32d4d80], 0x1b
mov dword [esp + 0x10], eax
lea ebp, [ebx + edi]
jne 0x415510
push 0
call dword [sym.imp.KERNEL32.dll_ConvertThreadToFiber]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push 0
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
add esi, dword [esp + 0x3c]
xor eax, ebp
xor edx, edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], eax
mov dword [0x32d0e1c], edx
mov eax, dword [esp + 0x1c]
add dword [0x32d0e1c], eax
mov eax, dword [0x32d0e1c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x38]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov eax, ecx
shl eax, 4
add eax, dword [esp + 0x40]
cmp dword [0x32d4d80], 0x1be
mov dword [esp + 0x10], eax
lea esi, [ebx + ecx]
jne 0x4155a6
push edx
lea eax, [esp + 0x18c]
push eax
push edx
push edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
shr ecx, 5
add ecx, dword [esp + 0x30]
cmp dword [0x32d4d80], 0x979
mov dword [0x32d0e20], 0xff6b3619
mov dword [0x32d0e24], 0xffffffff
mov dword [esp + 0x1c], ecx
jne 0x4155e2
lea ecx, [esp + 0x48]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [esp + 0x10]
xor eax, esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
xor dword [esp + 0x10], eax
sub edi, dword [esp + 0x10]
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x34]
add dword [esp + 0x18], eax
add ebx, 0x61c88647
dec dword [esp + 0x24]
jne 0x4154cd
cmp dword [0x32d4d80], 0x8d4
jne 0x415626
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov dword [eax], edi
mov dword [eax + 4], edx
cmp dword [0x32d4d80], 0x17
jne 0x415649
lea eax, [esp + 0x48]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ecx, dword [esp + 0x20]
add ecx, 8
dec dword [esp + 0x28]
mov dword [esp + 0x20], ecx
jne 0x415490
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x97c
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6a
sub eax, 0x403d10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x408ed0
nop
nop
mov ecx, 0x331538af
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x9924701
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x4025c0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x4027e3
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.USER32.dll_PhysicalToLogicalPoint]
nop dword [eax]
push 0
push 0
call esi
push str.RX_Engine_n
push 0x42af98
call fcn.00401100
add byte [edi + ebp], 0x25
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x42af98
call fcn.00401100
xor byte [edi + ebp], 0xb7
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x42af98
call fcn.00401100
xor byte [edi + ebp], 0xca
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x42af98
call fcn.00401100
add byte [edi + ebp], 0xf4
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x42af98
call fcn.00401100
add byte [edi + ebp], 0x15
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x42af98
call fcn.00401100
xor byte [edi + ebp], 0x68
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x42af98
call fcn.00401100
add byte [edi + ebp], 0xef
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x42af98
call fcn.00401100
add byte [edi + ebp], 0xfc
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x42af98
call fcn.00401100
add byte [edi + ebp], 0xb6
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x42af98
call fcn.00401100
add esp, 8
xor byte [edi + ebp], 0x2f
push 0
push 0
call esi
push str.RX_Engine_n
push 0x42af98
call fcn.00401100
add byte [edi + ebp], 0x30
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x42af98
call fcn.00401100
add byte [edi + ebp], 0xf9
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x42af98
call fcn.00401100
add byte [edi + ebp], 0x83
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x42af98
call fcn.00401100
xor byte [edi + ebp], 0xcf
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x42af98
call fcn.00401100
add byte [edi + ebp], 4
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x42af98
call fcn.00401100
xor byte [edi + ebp], 0x13
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x42af98
call fcn.00401100
add byte [edi + ebp], 0xa1
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x42af98
call fcn.00401100
add byte [edi + ebp], 0x63
add esp, 8
inc edi
cmp edi, ebx
jb 0x4025e0
pop esi
pop ebp
pop edi
pop ebx
ret
Function at 0x402ce0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [0x42a014]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
push edi
mov eax, dword [ebx + 0x3c]
xor esi, esi
mov dword [esp + 0x10], 0
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov dword [esp + 0x1c], eax
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edi, ebx
mov dword [esp + 0x18], eax
test eax, eax
je 0x402dc9
mov ebp, dword [esp + 0x44]
mov edx, dword [edi]
xorps xmm0, xmm0
add edx, ebx
mov dword [esp + 0x30], 0
mov eax, edx
mov dword [esp + 0x34], 0
movups xmmword [esp + 0x20], xmm0
lea ecx, [eax + 1]
mov dword [esp + 0x14], ecx
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402d50
sub eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push edx
call fcn.00401430
test ebx, ebx
je 0x402d89
cmp ebp, 3
jbe 0x402d89
lea eax, [esp + 0x20]
push 0x14d
push eax
call fcn.00402f00
add esp, 8
test eax, eax
je 0x402d89
cmp eax, ebp
je 0x402de2
mov ecx, dword [esp + 0x34]
add edi, 4
cmp ecx, 0x10
jb 0x402dbe
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402db4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402e31
push ecx
push edx
call fcn.00405523
add esp, 8
inc esi
cmp esi, dword [esp + 0x18]
jb 0x402d25
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
add eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405531
add esp, 0x2c
ret
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x24]
lea eax, [eax + esi*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + ebx]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x34]
cmp ecx, 0x10
jb 0x402dc9
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402e25
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402e31
push ecx
push edx
call fcn.00405523
add esp, 8
jmp 0x402dc9
call fcn.00409f9f
int3
Function at 0x4034f0
Capabilities:
Access peb ldr_data
Create thread
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x4b2200], eax
push 0xda4c2ca8
push dword [0x4b2200]
call fcn.00402ce0
add esp, 8
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
call edx
push 0
call dword [sym.imp.ole32.dll_OleRun]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x403460
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_AddAce]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40615c
Capabilities:
Parse pe header

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

Function at 0x41045c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4204c8
push 0x4204c0
push str.FlsAlloc
push 0x1e
call fcn.00410326
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410490
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d14c]
call esi
jmp 0x410496
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4104da
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4204d8
push 0x4204d0
push str.FlsGetValue
push 0x20
call fcn.00410326
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410511
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d14c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x412102
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00411da4

Function at 0x41210d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00411f33
Function at 0x41391c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004062c0
mov eax, dword [0x42a014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00411d7d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41395e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x413aba
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041c670
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x42bad0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00413d42
mov ecx, dword [esi*4 + 0x42bad0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x413ab3
cmp eax, dword [edi + ecx + 0x24]
jne 0x413ab3
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413ab3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00413d42
add esp, 0x14
test edx, edx
jl 0x413ab3
jg 0x413a29
test eax, eax
jb 0x413ab3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x413ab3
jl 0x413a43
cmp dword [ebp - 0x1008], eax
ja 0x413ab3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x413a61
test ebx, ebx
je 0x413a9a
cmp ecx, edi
jae 0x413a9a
mov al, byte [ecx]
cmp al, 0xd
jne 0x413a7b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x413a87
cmp byte [ecx + 1], 0xa
jne 0x413a87
inc ecx
jmp 0x413a87
movzx eax, al
movsx eax, byte [eax + 0x42a970]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x413a61
cmp edx, ebx
jne 0x413a61
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x413ab8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00405531
leave
ret
Function at 0x417237
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 0x4172d4
push ebx
push esi
call fcn.00417200
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.00415deb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x417281
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4172d3
push edi
push eax
call fcn.00410b46
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4172a1
call fcn.0041004b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4172d2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00415deb
add esp, 0x20
test eax, eax
jne 0x4172c0
push edi
call fcn.0041004b
jmp 0x4172c8
push ebx
call fcn.0041004b
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