joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b6b1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x41b6d3
cmp dword [edi + 0x3c], 0
jne 0x41b6d3
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00422ca8
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0041b700
pop edi
pop esi
pop ebx
ret 8

Function at 0x41cca2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41ccda
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.0041a768
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041a740
jmp 0x41cce6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x41e2de
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 0x41e320
call fcn.00422ca8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41e320
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41e317
xor eax, eax
jmp 0x41e328
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041e32e
pop edi
pop esi
pop ebx
ret 4

Function at 0x423468
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 0x423496
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4234b4
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004233ce
jmp 0x4234b4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4234b4
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004233ce
test edi, edi
mov eax, edi
jne 0x42349e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10071a2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100f05c]
jne 0x10071ab
ret
jmp 0x10071b0
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x100f05c]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x100f1a4]
test eax, eax
je 0x10071d4
call eax
cmp dword [0x100f1a8], 0
je 0x100721b
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x100f1a8]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.010071a2
add ebp, 0x2a8
leave
ret

Function at 0x10072e9
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001888
call fcn.01007558
cmp word [0x1000000], 0x5a4d
jne 0x1007328
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x1007328
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x1007341
cmp ecx, 0x20b
je 0x100732e
and dword [ebp - 0x1c], 0
jmp 0x1007358
cmp dword [eax + 0x1000084], 0xe
jbe 0x1007328
xor ecx, ecx
cmp dword [eax + 0x10000f8], ecx
jmp 0x1007352
cmp dword [eax + 0x1000074], 0xe
jbe 0x1007328
xor ecx, ecx
cmp dword [eax + 0x10000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100f1ac], 0xffffffff
or dword [0x100f1b0], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100f080]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100f07c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100f1b4], eax
call fcn.01007552
cmp dword [0x100f060], 0
jne 0x10073b5
push fcn.01007552
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01007540
push 0x100f010
push 0x100f00c
call sub.msvcrt.dll__initterm
mov eax, dword [0x100f078]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100f074]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x34], eax
push 0x100f008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010065ea
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], 0
jne 0x100742d
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1007462
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01007593
ret
Function at 0x1008785
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xb8]
sub esp, 0x138
mov eax, dword [0x100f05c]
push ebx
push esi
push edi
push 5
pop edx
push 0x47
mov ecx, edx
mov esi, 0x1001924
lea edi, [ebp + 0xa0]
rep movsd dword es:[edi], dword [esi]
pop ecx
xor ebx, ebx
inc ebx
push ebx
xor esi, esi
push 2
mov dword [ebp + 0xb4], eax
xor eax, eax
push esi
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
push esi
mov dword [ebp - 0x7c], 0x11c
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x74], esi
mov word [ebp + 0x98], si
call sub.KERNEL32.dll_VerSetConditionMask
push ebx
push ebx
push edx
push eax
call sub.KERNEL32.dll_VerSetConditionMask
push 3
push 0x20
push edx
push eax
call sub.KERNEL32.dll_VerSetConditionMask
push edx
push eax
push 3
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
cmp eax, ebx
jne 0x1008815
push 0x47e
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
jmp 0x100887d
mov edi, 0x105
push ebx
lea eax, [edi + 0xa]
push eax
push esi
push esi
call fcn.01008a06
cmp eax, esi
mov dword [ebp - 0x80], eax
je 0x1008869
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
je 0x100887b
cmp eax, edi
jbe 0x100884a
cmp edi, 0x105
je 0x1008895
lea edi, [eax + 1]
xor eax, eax
cmp eax, esi
je 0x100881a
push 0x1001908
push dword [ebp - 0x80]
push 0x10018fc
push 2
call fcn.0100848d
add esp, 0x10
test eax, eax
jne 0x10088a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100887b
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp + 0xb4]
pop edi
pop esi
pop ebx
call fcn.010071a2
add ebp, 0xb8
leave
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100887b
push 0x42b
jmp 0x1008875
call fcn.0100767a
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, esi
je 0x100887b
lea eax, [ebp + 0xa0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x10088d4
push dword [ebp + 0xc0]
call eax
mov esi, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x100887d
Function at 0x1009b9b
Capabilities:
Initialize winsock library

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x1a0
mov eax, dword [0x100f05c]
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0x128]
cmp edi, esi
mov dword [ebp + 0x11c], eax
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x78], esi
je 0x1009d0b
mov ebx, dword [ebp + 0x130]
cmp ebx, esi
je 0x1009d0b
mov eax, dword [ebx]
cmp eax, esi
je 0x1009bf9
cmp eax, 2
jb 0x1009d0b
cmp dword [ebp + 0x12c], esi
je 0x1009d0b
cmp dword [0x100f08c], esi
jne 0x1009c2a
lea eax, [ebp - 0x74]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1009c20
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
jmp 0x1009d17
mov dword [0x100f08c], 1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 5
push eax
mov dword [ebp - 0x7c], eax
call fcn.01007c3d
cmp eax, esi
mov dword [ebp - 0x78], eax
je 0x1009cb6
lea ecx, [ebp - 0x7c]
push ecx
push eax
push edi
call fcn.01007a97
test eax, eax
je 0x1009d1d
push dword [ebp - 0x78]
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0x80], eax
jne 0x1009c73
lea eax, [ebp - 0x78]
push eax
call fcn.01008301
jmp 0x1009c8a
push 2
push 4
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
cmp eax, esi
mov dword [0x100f1a0], eax
jne 0x1009c9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1009d1d
push 0x42b
jmp 0x1009d17
lea eax, [ebp - 0x78]
push eax
call fcn.01008301
push esi
push esi
push edi
push 0x11
call fcn.01008a06
cmp eax, esi
jne 0x1009cc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1009d1d
push 8
jmp 0x1009d17
mov ecx, dword [0x100f1a0]
cmp ecx, esi
je 0x1009d1d
cmp dword [ebp + 0x134], esi
mov eax, dword [ecx]
mov dword [ebp - 0x78], eax
jne 0x1009cf1
cmp eax, esi
je 0x1009d06
push 0x1001958
push dword [ecx]
call dword [sym.imp.msvcrt.dll_strtok]
pop ecx
pop ecx
mov dword [ebp - 0x78], eax
cmp eax, esi
je 0x1009d06
push ebx
push dword [ebp + 0x12c]
push eax
call fcn.010079ab
test eax, eax
je 0x1009d1d
xor eax, eax
inc eax
jmp 0x1009d1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1009d1d
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp + 0x11c]
pop edi
pop esi
pop ebx
call fcn.010071a2
add ebp, 0x120
leave
ret 0x10
Function at 0x100a0fe
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x100a259
push esi
call fcn.01009eee
cmp eax, 1
je 0x100a259
push esi
mov dword [ebp + 8], esi
call fcn.01009aaf
cmp eax, 1
jne 0x100a136
add esi, 4
mov dword [ebp + 8], esi
push dword [ebp + 8]
call fcn.0100a046
test eax, eax
jne 0x100a152
call fcn.010076ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100a28b
cmp dword [ebp + 0x14], ebx
je 0x100a18f
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x100a18f
push dword [ebp + 0x14]
push dword [ebp + 8]
push 0x1001978
push 2
call fcn.0100848d
add esp, 0x10
test eax, eax
je 0x100a1b3
call fcn.0100767a
cmp eax, ebx
jne 0x100a1a3
push 0x12
call fcn.01007da1
jmp 0x100a1ad
push dword [ebp + 8]
push 0x100195c
push 1
call fcn.0100848d
add esp, 0xc
jmp 0x100a179
push ebx
push ebx
push eax
push 0x12
call fcn.01008a06
mov edx, eax
cmp edx, ebx
jne 0x100a1d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100a1c5
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.010076ff
push 8
pop eax
jmp 0x100a28b
push edi
push 8
pop ecx
push ebx
push dword [ebp + 0xc]
xor eax, eax
push dword [ebp + 0x10]
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edx
call sub.MPR.dll_WNetAddConnection2W
mov esi, eax
cmp esi, ebx
pop edi
je 0x100a21d
cmp esi, 0x4b8
je 0x100a216
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.010076ff
jmp 0x100a255
call fcn.01008b86
jmp 0x100a255
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
call fcn.01009d37
push eax
call fcn.01007824
test eax, eax
jne 0x100a255
push dword [ebp + 8]
call fcn.0100a0eb
push 0x1580
call fcn.01009a00
push eax
call fcn.010076a1
mov esi, 0x4b8
mov eax, esi
jmp 0x100a28b
cmp dword [ebp + 0xc], ebx
je 0x100a289
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x100a289
push 0x157e
call fcn.01009a00
push eax
call fcn.010076a1
mov esi, 0xa0010001
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100a255
xor eax, eax
pop esi
pop ebx
leave
ret 0x10
Function at 0x401160
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 4], 0
jne 0x401173
xor eax, eax
pop esi
pop ebp
ret 8
push edi
push 0x410
call fcn.00404954
push 0x410
mov edi, eax
push 0
push edi
call fcn.00406390
add esp, 0x10
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.0040a23b
mov dword [eax], 0
push dword [esi]
push 0x208
push edi
push 0
push dword [ebp + 0xc]
push str.DllInjector
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4011f8
call fcn.0040a23b
cmp dword [eax], 0
jne 0x4011f8
test esi, esi
je 0x4011f8
nop dword [eax + eax]
cmp esi, 0x207
je 0x4011f8
cmp esi, 0x206
je 0x4011f8
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
push edi
call fcn.004046c0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x401940
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x421040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 2
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 0x240], edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4019a1
nop dword [eax]
test edi, edi
je 0x401ac2
mov dword [edi], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004046b2
mov esp, ebp
pop ebp
ret
xor al, al
xor esi, esi
push 0x228
mov byte [ebp - 0x231], al
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.00406390
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x401a09
nop dword [eax]
test edi, edi
je 0x4019ea
mov dword [edi], 2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004046b2
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x238]
nop
mov edx, dword ds:[ebp - 0x23c]
lea ecx, [ebp - 0x20c]
call fcn.00401220
cmp al, 1
jne 0x401a51
test esi, esi
mov byte [ebp - 0x231], al
cmove esi, dword [ebp - 0x228]
test edi, edi
je 0x401a51
nop dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x228], eax
je 0x401a51
mov byte [edi], 1
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
nop
cmp eax, 1
je 0x401a10
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x231], 0
mov edi, dword [ebp - 0x240]
jne 0x401a98
test edi, edi
je 0x401ac2
mov dword [edi], 3
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004046b2
mov esp, ebp
pop ebp
ret
cmp byte ds:[ebp + 0xc], 1
push esi
push 0
jne 0x401aa9
push 0x1000
jmp 0x401aae
push 0x80
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
jne 0x401ac4
test edi, edi
je 0x401ac2
mov dword [edi], 4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004046b2
mov esp, ebp
pop ebp
ret
Function at 0x4021c0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x421040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
mov esi, ecx
mov bl, dl
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x402216
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp bl, 1
jne 0x40225d
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004046b2
mov esp, ebp
pop ebp
ret
cmp bl, 1
je 0x40225d
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40225d
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 1
push 0x41d1e8
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004046b2
mov esp, ebp
pop ebp
ret
Function at 0x405303
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x405342
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x405342
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405342
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x405342
cmp dword [ecx + 0x74], 0xe
jbe 0x405342
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40e90e
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 0x40e9ab
push ebx
push esi
call fcn.0040e8d7
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.0040e86b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40e958
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40e9aa
push edi
push eax
call fcn.0040bf54
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40e978
call fcn.0040bf1a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40e9a9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040e86b
add esp, 0x20
test eax, eax
jne 0x40e997
push edi
call fcn.0040bf1a
jmp 0x40e99f
push ebx
call fcn.0040bf1a
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 0x40ebab
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x418f50
push 0x418f48
push str.FlsAlloc
push 0x1f
call fcn.0040eac7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ebdf
push dword [ebp + 8]
mov ecx, esi
call dword [0x4171a8]
call esi
jmp 0x40ebe5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40ec29
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x418f60
push 0x418f58
push str.FlsGetValue
push 0x21
call fcn.0040eac7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ec60
push dword [ebp + 8]
mov ecx, esi
call dword [0x4171a8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40ec68
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x418f68
push 0x418f60
push str.FlsSetValue
push 0x22
call fcn.0040eac7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40eca2
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4171a8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4161d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4161fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4161fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x42e2c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
je 0x42e2f4
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, esi
call fcn.0042e300
lea eax, [ebx + 1]
cmp eax, 2
jb 0x42e2ed
mov dword [esi], ebx
call fcn.004733d0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x42ef3c
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, edx
cmp edx, 4
jb 0x42ef74
imul esi, dword [ecx], 0x5bd1e995
mov edi, esi
shr edi, 0x18
xor edi, esi
imul esi, edi, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, esi
add ecx, 4
add edx, 0xfffffffc
cmp edx, 3
ja 0x42ef4e
cmp edx, 1
je 0x42ef95
cmp edx, 2
je 0x42ef8c
cmp edx, 3
jne 0x42efa0
movzx edx, byte [ecx + 2]
shl edx, 0x10
xor eax, edx
movzx edx, byte [ecx + 1]
shl edx, 8
xor eax, edx
movzx ecx, byte [ecx]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul ecx, ecx, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
pop esi
pop edi
pop ebp
ret 8
Function at 0x432cd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
movdqu xmm1, xmmword [ecx]
movdqu xmm2, xmmword [ecx + 0x10]
movdqu xmm4, xmmword [ecx + 0x20]
movdqu xmm3, xmmword [ecx + 0x30]
movd xmm0, dword [ebp + 0x10]
pxor xmm0, xmm1
add eax, 0xffffffc0
add ecx, 0x40
cmp eax, 0x40
jb 0x432d9e
movdqa xmm1, xmmword [0x57d030]
movdqa xmm5, xmmword [0x57d040]
nop word cs:[eax + eax]
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm1, 0
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm6
movdqa xmm6, xmm2
pclmulqdq xmm6, xmm1, 0
pclmulqdq xmm2, xmm5, 0x11
pxor xmm2, xmm6
movdqa xmm6, xmm4
pclmulqdq xmm6, xmm1, 0
pclmulqdq xmm4, xmm5, 0x11
pxor xmm4, xmm6
movdqa xmm6, xmm3
pclmulqdq xmm6, xmm1, 0
pclmulqdq xmm3, xmm5, 0x11
pxor xmm3, xmm6
movdqu xmm6, xmmword [ecx]
pxor xmm0, xmm6
movdqu xmm6, xmmword [ecx + 0x10]
pxor xmm2, xmm6
movdqu xmm6, xmmword [ecx + 0x20]
pxor xmm4, xmm6
movdqu xmm6, xmmword [ecx + 0x30]
pxor xmm3, xmm6
add eax, 0xffffffc0
add ecx, 0x40
cmp eax, 0x3f
ja 0x432d20
movdqa xmm1, xmmword [0x57d050]
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm1, 0
pxor xmm5, xmm2
movdqa xmm2, xmmword [0x57d060]
pclmulqdq xmm0, xmm2, 0x11
pxor xmm0, xmm5
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm1, 0
pxor xmm5, xmm4
pclmulqdq xmm0, xmm2, 0x11
pxor xmm0, xmm5
movdqa xmm4, xmm0
pclmulqdq xmm4, xmm1, 0
pxor xmm4, xmm3
pclmulqdq xmm0, xmm2, 0x11
pxor xmm0, xmm4
cmp eax, 0x10
jb 0x432ee8
lea edx, [eax - 0x10]
mov esi, edx
shr esi, 4
inc esi
and esi, 3
je 0x432e48
shl esi, 4
xor edi, edi
nop word cs:[eax + eax]
movdqu xmm3, xmmword [ecx + edi]
movdqa xmm4, xmm0
pclmulqdq xmm4, xmm1, 0
pxor xmm4, xmm3
pclmulqdq xmm0, xmm2, 0x11
pxor xmm0, xmm4
add edi, 0x10
cmp esi, edi
jne 0x432e20
add ecx, edi
sub eax, edi
movdqa xmm3, xmm0
cmp edx, 0x30
jb 0x432eec
nop word cs:[eax + eax]
movdqa xmm4, xmm0
pclmulqdq xmm4, xmm1, 0
pclmulqdq xmm0, xmm2, 0x11
movdqu xmm3, xmmword [ecx]
pxor xmm3, xmm4
pxor xmm3, xmm0
movdqu xmm0, xmmword [ecx + 0x10]
movdqa xmm4, xmm3
pclmulqdq xmm4, xmm1, 0
pxor xmm4, xmm0
pclmulqdq xmm3, xmm2, 0x11
pxor xmm3, xmm4
movdqu xmm0, xmmword [ecx + 0x20]
movdqa xmm4, xmm3
pclmulqdq xmm4, xmm1, 0
pxor xmm4, xmm0
pclmulqdq xmm3, xmm2, 0x11
pxor xmm3, xmm4
movdqu xmm0, xmmword [ecx + 0x30]
movdqa xmm4, xmm3
pclmulqdq xmm4, xmm1, 0
pxor xmm4, xmm0
pclmulqdq xmm3, xmm2, 0x11
pxor xmm3, xmm4
add ecx, 0x40
add eax, 0xffffffc0
movdqa xmm0, xmm3
cmp eax, 0xf
ja 0x432e60
jmp 0x432eec
movdqa xmm3, xmm0
movdqa xmm0, xmmword [0x57d060]
pclmulqdq xmm0, xmm3, 1
psrldq xmm3, 8
pxor xmm3, xmm0
pxor xmm1, xmm1
pxor xmm0, xmm0
pblendw xmm0, xmm3, 3
psrldq xmm3, 4
pclmulqdq xmm0, xmmword [0x57d070], 0
pxor xmm0, xmm3
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
pclmulqdq xmm2, xmmword [0x57d080], 0x10
pblendw xmm2, xmm1, 0xfc
pclmulqdq xmm2, xmmword [0x57d090], 0
pxor xmm2, xmm0
pextrd eax, xmm2, 1
pop esi
pop edi
pop ebp
ret