joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x53cd7256
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x42f314
nop
mov ecx, 0xbdc77a4
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401520
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0x54
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
lea edx, [ebp - 0x5c]
movups xmmword [edx + 0x34], xmm0
movups xmmword [edx + 0x24], xmm0
movups xmmword [edx + 0x14], xmm0
movups xmmword [edx + 4], xmm0
mov dword [edx], 0x44
lea esi, [ebp - 0x18]
movups xmmword [esi], xmm0
sub esp, 0x28
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], edx
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
movaps xmm0, xmmword [0x456000]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4015c1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40159e
xor ebx, ebx
jmp 0x4015b8
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4015b6
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne bl
jmp 0x4015b8
mov bl, 1
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add esp, 0x54
pop esi
pop ebx
pop ebp
ret

Function at 0x401740
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x220
mov edi, dword [ebp + 0xc]
xor ebx, ebx
lea esi, [ebp - 0x22a]
mov word [esi + 0x208], bx
mov word [esi], bx
push edi
push 0x104
push esi
call fcn.00402e50
add esp, 0xc
test al, al
je 0x4017e9
push 0x45605a
push 0x104
push esi
call fcn.00402e90
add esp, 0xc
test al, al
je 0x4017e7
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
lea ebx, [ebp - 0x20]
mov dword [ebx], edi
mov edi, dword [ebp + 0x10]
mov dword [ebx + 4], edi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x10], eax
push ebx
push 0x4015d0
push 0x45606e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
test eax, eax
je 0x4017e7
push 0x104
push edi
call fcn.00402e20
add esp, 8
test eax, eax
je 0x4017e7
push 0x104
mov edi, dword [ebp + 0x14]
push edi
call fcn.00402e20
add esp, 8
test eax, eax
je 0x4017f6
xor ebx, ebx
mov eax, ebx
add esp, 0x220
pop esi
pop edi
pop ebx
pop ebp
ret
push ebx
push 0x4015d0
push 0x456074
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
test eax, eax
jne 0x40181b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x715
jne 0x4017e7
push 0x104
push edi
call fcn.00402e20
add esp, 8
test eax, eax
je 0x401862
push esi
push edi
call fcn.004025e0
add esp, 8
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test bl, bl
je 0x4017e7
mov bl, 1
push esi
push 0x104
push edi
call fcn.00402e50
add esp, 0xc
test al, al
jne 0x4017e9
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4017e7
push 0x104
push edi
call fcn.00402e20
add esp, 8
test eax, eax
setne bl
jmp 0x4017e9
Function at 0x401950
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x260
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ecx], ebx
lea edi, [ebp - 0x26a]
mov word [edi + 0x208], bx
mov word [edi], bx
mov dword [ebp - 0x10], ebx
push 0x104
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
je 0x401a39
sub esp, 0x20
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
lea esi, [ebp - 0x10]
mov dword [esp + 0x14], esi
xorps xmm0, xmm0
movups xmmword [esp + 4], xmm0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x401a39
test byte [ebp - 0x10], 8
mov bl, 1
je 0x401a3b
mov dword [ebp - 0x10], 0
push esi
call fcn.004018b0
add esp, 4
xor ebx, ebx
test al, al
je 0x401a3b
mov word [ebp - 0x12], bx
mov word [ebp - 0x26a], bx
push str.D:PAI_A__FA___BA__A_OIIOCI_GA___BA__A__FA___SY__A_OIIOCI_GA___SY__A_OIIOCI_GA___CO__A__FA___
push 0x12c
push edi
call fcn.00402e90
add esp, 0xc
test al, al
je 0x401a4a
push dword [ebp - 0x10]
push 0x12c
push edi
call fcn.00402e90
add esp, 0xc
test al, al
je 0x401a48
push 0x456134
push 0x12c
push edi
call fcn.00402e90
add esp, 0xc
test al, al
je 0x401a48
push 0
push dword [ebp + 0xc]
push 1
push edi
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
setne bl
jmp 0x401a4a
mov bl, 1
mov eax, ebx
add esp, 0x260
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x401a3b
Function at 0x401a60
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push edi
push 0x104
push ebx
call fcn.00402e50
add esp, 0xc
test al, al
je 0x401b79
push 0x456138
push 0x104
push ebx
call fcn.00402e90
add esp, 0xc
test al, al
je 0x401b79
mov esi, 0x104
push esi
push ebx
call fcn.00402e20
add esp, 8
mov ecx, eax
mov dword [ebp - 0x10], eax
sub esi, eax
xor ebx, ebx
cmp esi, 0xb
jb 0x401b7b
lea eax, [ebp - 0x28]
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov byte [eax + 8], 0
mov dword [eax - 4], 0xc
push eax
push edi
call fcn.00401950
add esp, 8
lea ecx, [ebp - 0x28]
mov byte [ecx + 8], al
test al, al
je 0x401b7b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
shr ecx, 0xc
xor ecx, eax
lea eax, [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x1c], eax
add ecx, 5
mov dword [ebp - 0x18], ecx
mov ebx, 0xfffffff6
push esi
push dword [ebp - 0x1c]
push 4
lea eax, [ebp - 0x14]
push eax
call fcn.00402db0
add esp, 0x10
test al, al
je 0x401b75
cmp dword [ebp - 0x18], 0x103
ja 0x401b42
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov word [eax + ecx*2 + 0xa], 0
push 0x456140
push 0x104
mov edi, dword [ebp + 0xc]
push edi
call fcn.00402e90
add esp, 0xc
mov eax, dword [ebp - 0x28]
test eax, eax
lea ecx, [ebp - 0x2c]
cmovne eax, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401b85
inc dword [ebp - 0x14]
inc ebx
jne 0x401b16
xor ebx, ebx
jmp 0x401b9c
xor ebx, ebx
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x45614a
push 0x104
push dword [ebp + 0xc]
call fcn.00402e90
add esp, 0xc
mov ebx, eax
cmp byte [ebp - 0x20], 0
je 0x401b7b
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x401b7b
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x401b7b

Function at 0x401bc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov esi, dword [ebp + 0xc]
xor eax, eax
lea edi, [ebp - 0x216]
mov word [edi + 0x208], ax
mov word [edi], ax
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x401c05
mov bl, 1
push esi
push edi
call fcn.00401a60
add esp, 8
test al, al
jne 0x401c42
push 0x104
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x401c40
push eax
push edi
call fcn.00402f60
add esp, 8
test eax, eax
je 0x401c40
mov word [eax], 0
push esi
push edi
call fcn.00401a60
add esp, 8
mov ebx, eax
jmp 0x401c42
xor ebx, ebx
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401c50
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x254
mov ebx, dword [ebp + 8]
mov esi, 0x104
push esi
push ebx
call fcn.00402e20
add esp, 8
mov edi, eax
push str..
push esi
push ebx
call fcn.00402e90
add esp, 0xc
test al, al
je 0x401d86
mov dword [ebp - 0x10], edi
lea esi, [ebp - 0x260]
push 0x250
push 0
push esi
call fcn.00401f80
add esp, 0xc
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x401d6f
mov edi, eax
mov eax, dword [ebp - 0x10]
lea esi, [eax + 1]
movzx ecx, word [ebp - 0x2c]
mov edx, 0x2c
lea eax, [ebp - 0x234]
test cx, cx
je 0x401cd5
mov edx, 0x234
lea eax, [ebp - 0x2c]
test eax, eax
je 0x401d12
cmp word [ebp + edx - 0x260], 0x2e
jne 0x401d12
lea edx, [ebp - 0x232]
test cx, cx
je 0x401cf2
lea edx, [ebp - 0x2a]
movzx edx, word [edx]
test edx, edx
je 0x401d52
cmp edx, 0x2e
jne 0x401d12
lea edx, [ebp - 0x230]
test cx, cx
je 0x401d0c
lea edx, [ebp - 0x28]
cmp word [edx], 0
je 0x401d52
cmp esi, 0x103
ja 0x401d24
mov ecx, dword [ebp - 0x10]
mov word [ebx + ecx*2 + 2], 0
push eax
push 0x104
push ebx
call fcn.00402e90
add esp, 0xc
test al, al
je 0x401d52
test byte [ebp - 0x260], 0x10
jne 0x401d49
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x401d52
push ebx
call fcn.00401c50
add esp, 4
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401cb9
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x10]
cmp eax, 0x103
ja 0x401d7f
mov word [ebx + eax*2], 0
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add esp, 0x254
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401da0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x664
xor eax, eax
lea esi, [ebp - 0x670]
mov word [esi + 0x208], ax
mov word [esi], ax
push dword [ebp + 8]
push 0x104
push esi
call fcn.00402e50
add esp, 0xc
test al, al
je 0x401f14
push dword [ebp + 0xc]
push 0x104
push esi
call fcn.00402e90
add esp, 0xc
test al, al
je 0x401f14
push 0x456158
push 0x104
push esi
call fcn.00402e90
add esp, 0xc
test al, al
je 0x401f14
xor edi, edi
lea ebx, [ebp - 0x25c]
push 0x250
push edi
push ebx
call fcn.00401f80
add esp, 0xc
push edi
push edi
push 1
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
cmp eax, 0xffffffff
je 0x401f14
mov esi, eax
xor eax, eax
lea ecx, [ebp - 0x466]
mov word [ecx + 0x208], ax
mov word [ecx], ax
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
test byte [ebp - 0x25c], 0x10
je 0x401efb
movzx eax, word [ebp - 0x28]
mov ecx, 0x2c
lea ebx, [ebp - 0x230]
test ax, ax
je 0x401e7b
mov ecx, 0x234
lea ebx, [ebp - 0x28]
test ebx, ebx
je 0x401eb8
cmp word [ebp + ecx - 0x25c], 0x2e
jne 0x401eb8
lea ecx, [ebp - 0x22e]
test ax, ax
je 0x401e98
lea ecx, [ebp - 0x26]
movzx ecx, word [ecx]
test ecx, ecx
je 0x401efb
cmp ecx, 0x2e
jne 0x401eb8
lea ecx, [ebp - 0x22c]
test ax, ax
je 0x401eb2
lea ecx, [ebp - 0x24]
cmp word [ecx], 0
je 0x401efb
push dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x466]
push eax
call fcn.00402e50
add esp, 0xc
test al, al
je 0x401efb
push ebx
push 0x104
lea eax, [ebp - 0x466]
push eax
call fcn.00402e90
add esp, 0xc
test al, al
je 0x401efb
lea eax, [ebp - 0x466]
push eax
call fcn.00401c50
add esp, 4
lea eax, [ebp - 0x25c]
push eax
push esi
call edi
test eax, eax
jne 0x401e52
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
add esp, 0x664
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401f20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x20c
xor eax, eax
lea esi, [ebp - 0x20e]
mov word [esi + 0x208], ax
mov word [esi], ax
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x401f6c
push 0x456138
push esi
call fcn.00401da0
add esp, 8
push str.chrome_
push esi
call fcn.00401da0
add esp, 8
add esp, 0x20c
pop esi
pop ebp
ret
Function at 0x402340
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x45c
mov eax, dword [ebp + 8]
xor ecx, ecx
lea edi, [ebp - 0x466]
mov word [edi + 0x208], cx
mov word [edi], cx
mov ebx, 0x104
push eax
push ebx
push edi
call fcn.00402e50
add esp, 0xc
push ebx
push edi
call fcn.00402e20
add esp, 8
mov esi, eax
push str.BRAND_
push ebx
push edi
call fcn.00402e90
add esp, 0xc
lea ebx, [ebp - 0x25c]
push 0x250
push 0
push ebx
call fcn.00401f80
add esp, 0xc
push ebx
mov ebx, edi
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x402412
mov edi, eax
cmp word [ebp - 0x28], 0
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x230]
cmove eax, ecx
cmp esi, 0x103
ja 0x4023d6
mov word [ebp + esi*2 - 0x466], 0
push eax
push 0x104
push ebx
call fcn.00402e90
add esp, 0xc
test al, al
je 0x4023f9
test byte [ebp - 0x25c], 0x10
jne 0x4023f9
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4023b3
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
add esp, 0x45c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402420
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x20c
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
cmp word [eax], 0
je 0x40243e
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebp + 0x14]
cmp word [esi], 0
je 0x40244e
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp + 8]
cmp word [edi], 0
je 0x40245e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp word [esi], 0
je 0x4024b7
xor eax, eax
lea edi, [ebp - 0x212]
mov word [edi + 0x208], ax
mov word [edi], ax
push esi
push 0x104
push edi
call fcn.00402e50
add esp, 0xc
test al, al
je 0x4024b7
push str.setup.exe
push 0x104
push edi
call fcn.00402e90
add esp, 0xc
test al, al
je 0x4024b7
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.00402340
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
add esp, 0x20c
pop esi
pop edi
pop ebp
ret
Function at 0x4027c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x208
mov eax, dword [0x460768]
test eax, eax
jne 0x40288c
lea esi, [ebp - 0x210]
push 0x208
push 0
push esi
call fcn.00401f80
add esp, 0xc
mov edi, 0x104
push edi
push esi
push str._WINDIR__system32cabinet.dll
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, edi
jae 0x402817
push 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x460768], eax
jmp 0x40281c
mov eax, dword [0x460768]
test eax, eax
jne 0x40288c
mov word [ebp - 0x210], 0
push edi
push esi
push str._SYSTEMROOT__system32cabinet.dll
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, edi
jae 0x40284d
push 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x460768], eax
jmp 0x402852
mov eax, dword [0x460768]
test eax, eax
jne 0x40288c
mov word [ebp - 0x210], 0
push edi
push esi
push str.C:Windows_system32cabinet.dll
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, edi
jae 0x402883
push 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x460768], eax
jmp 0x402888
mov eax, dword [0x460768]
test eax, eax
je 0x4028c3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDICreate
push eax
call esi
mov dword [0x46075c], eax
push str.FDIDestroy
push dword [0x460768]
call esi
mov dword [0x460764], eax
push str.FDICopy
push dword [0x460768]
call esi
mov dword [0x460760], eax
xor eax, eax
cmp dword [0x46075c], 0
je 0x4028e1
cmp dword [0x460764], 0
je 0x4028e1
cmp dword [0x460760], 0
setne al
add esp, 0x208
pop esi
pop edi
pop ebp
ret
Function at 0x402ff0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x21c
mov edi, ecx
push dword [ecx]
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40309a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40309a
mov esi, dword [ebp + 8]
lea ebx, [ebp - 0x228]
mov ecx, ebx
call fcn.00402c20
mov ecx, ebx
push esi
call fcn.00402c70
test al, al
je 0x4030c1
push dword [edi]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov bl, 1
test eax, eax
je 0x4030c3
mov esi, eax
xor ebx, ebx
mov edi, esi
sub edi, ebx
mov ecx, 0x800000
cmp edi, ecx
cmovae edi, ecx
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x10]
add eax, ebx
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x228]
call fcn.00402da0
xor ecx, ecx
push ecx
lea ecx, [ebp - 0x18]
push ecx
push edi
push dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40309e
add ebx, edi
cmp esi, ebx
ja 0x403054
mov bl, 1
jmp 0x4030c3
xor ebx, ebx
jmp 0x4030ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea edi, [ebp - 0x228]
mov ecx, edi
call fcn.00402d10
mov ecx, edi
call fcn.00402c40
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
lea ecx, [ebp - 0x228]
call fcn.00402c40
mov eax, ebx
add esp, 0x21c
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x40c2d0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x45d010]
xor eax, ebp
mov dword [esp + 0x28], eax
cmp dword [ebp + 8], 0
je 0x40c4a5
cmp dword [0x45ea68], 0xe69e32f3
jne 0x40c4a8
mov ecx, 0x308
mov esi, dword [ebp + 8]
add ecx, dword [esi + 0xc]
mov byte [esp + 0xf], 0xff
movzx eax, byte [esi + 2]
push eax
mov dword [esp + 8], ecx
push ecx
call fcn.0040fe10
add esp, 8
movzx ebx, ax
shl ebx, 5
lea edi, [esi + ebx]
add edi, 0x48
add esi, 0x40
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x40c46d
mov dword [esp + 8], esi
mov eax, dword [edi]
mov esi, dword [eax]
test esi, esi
je 0x40c412
mov byte [esp + 0xf], 0
mov ecx, dword [esi]
test ecx, ecx
je 0x40c463
mov edi, dword [ebp + 8]
lea edx, [edi + 0x48]
mov ebx, dword [edx + ebx + 0xc]
bswap ecx
mov edx, ecx
xor edx, esi
cmp edx, 0x1fffff
ja 0x40c479
mov edx, ecx
and edx, 0x1fc000
je 0x40c479
prefetcht0 byte [ecx]
mov dword [eax], ecx
mov ecx, dword [eax + 0xc]
lea edx, [ecx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [eax + 0xc], ecx
mov eax, dword [eax + 8]
mov ecx, dword [edi + 0x117c]
add ecx, dword [eax + 0xc]
mov eax, dword [edi + 0x1180]
mov dword [edi + 0x117c], ecx
cmp eax, ecx
cmova ecx, eax
mov dword [edi + 0x1180], ecx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, esi
push edi
call fcn.0040ff40
push esi
push dword [0x461350]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x45fb2c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov dword [eax + 0x90], esi
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.00416ab3
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 0xf]
mov ecx, edi
push eax
push 0x4000
push dword [esp + 0xc]
push 2
mov edi, dword [ebp + 8]
push edi
call fcn.00414f20
test eax, eax
je 0x40c4ab
mov esi, eax
mov ecx, eax
and ecx, 0xffe00000
mov edx, eax
shr edx, 9
and edx, 0xfe0
lea eax, [edx + ecx]
movzx ecx, byte [edx + ecx + 0x101e]
and ecx, 0x3f
shl ecx, 5
sub eax, ecx
add eax, 0x1000
jmp 0x40c3a6
xor ecx, ecx
mov edi, dword [ebp + 8]
jmp 0x40c38d
mov ecx, esi
call fcn.00410bb0
jmp 0x40c341
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x10]
movdqa xmmword [edi], xmm0
mov ecx, edi
push 0
push dword [esi]
push str.first
call fcn.0044c890
push edi
call fcn.00401160
add esp, 4
mov ecx, ebx
call fcn.0044c910
int3
int3
xor esi, esi
jmp 0x40c3c9
Function at 0x40d180
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x40d197
test eax, eax
je 0x40d197
pop esi
pop edi
pop ebp
ret 0xc
test eax, eax
jne 0x40d1a5
mov ecx, dword [0x46e4cc]
test ecx, ecx
jne 0x40d1e1
cmp dword [0x46e4c4], 0
je 0x40d191
mov esi, dword [0x46e4c8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jne 0x40d1eb
test esi, esi
je 0x40d191
mov ecx, dword [0x46e4c4]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x40d191
call dword [section..00cfg]
call ecx
jmp 0x40d1a5
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40d1c9
Function at 0x4166a3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4166e2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4166e2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4166e2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4166e2
cmp dword [ecx + 0x74], 0xe
jbe 0x4166e2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4249bd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x460418]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4249fd
cmp byte [ebx], 0xa
jne 0x4249fd
or byte [edi + eax + 0x28], 4
jmp 0x424a02
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x424b01
mov dl, byte [eax]
cmp dl, 0x1a
je 0x424ae4
inc eax
cmp dl, 0xd
je 0x424a2e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x424a54
cmp eax, ecx
jae 0x424a62
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x424a16
jmp 0x424b01
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x424adf
cmp dword [ebp - 0x10], 0
je 0x424adf
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x460418]
test byte [eax + edi + 0x28], 0x48
je 0x424ab9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x424aa4
mov byte [esi], dl
jmp 0x424ab5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x460418]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x424b01
cmp byte [ebp - 1], 0xa
jne 0x424ac8
cmp esi, ebx
jne 0x424ac8
mov byte [esi], 0xa
jmp 0x424b00
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00432448
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x424b01
mov byte [esi], 0xd
jmp 0x424b00
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x460418]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x424afe
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x424b01
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret