joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407122
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xor edx, edx
xor eax, eax
push ebx
push ebp
push esi
mov esi, ecx
inc eax
push edi
push 0x20
pop ebp
or dword [esi + 0x90], 0xffffffff
mov ecx, edx
or dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
cmp eax, ebp
mov dword [esi + 0x78], edx
cmova eax, ebp
mov dword [esi + 0x7c], edx
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [esi + 0x70], edx
mov dword [esi + 0x88], edx
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], edx
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], edx
mov dword [esi + 0x80], edx
mov dword [esi + 0x84], edx
mov dword [esi + 0x58], edx
cmp eax, dword [esi + 0x20]
je 0x4071d1
lea edi, [esi + 0xc8]
mov ebx, ebp
cmp dword [edi + 8], edx
je 0x4071ad
mov ecx, edi
call fcn.0040623a
xor edx, edx
add edi, 0x28
sub ebx, 1
jne 0x40719f
cmp dword [esi + 0x5c], ebx
je 0x4071c9
mov eax, dword [esi + 0x14]
push dword [esi + 0x5c]
push eax
call dword [eax + 4]
xor edx, edx
mov dword [esi + 0x5c], edx
mov eax, dword [esi]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x98], eax
lea eax, [ecx + 5]
imul ebx, eax, 0x28
lea eax, [ecx + 1]
mov dword [esi + 0x9c], edx
mov dword [esi + 0xa0], edx
mov dword [esi + 0xa4], edx
mov dword [esi + 0xa8], edx
add ebx, esi
mov dword [esi + 0xac], edx
mov ecx, ebx
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], edx
mov dword [esi + 0x58], eax
call fcn.004061cb
mov edi, eax
test edi, edi
jne 0x40725a
lea ecx, [ebx + 0x20]
call fcn.0040773e
mov edi, eax
test edi, edi
jne 0x40725a
lea ecx, [ebx + 0x1c]
call fcn.0040773e
mov edi, eax
test edi, edi
jne 0x40725a
push ebx
call fcn.00406eda
mov edi, eax
test edi, edi
je 0x40725a
and dword [esi + 0x44], 0
lea ebx, [esi + 0xc8]
mov ecx, ebx
call fcn.0040625e
add ebx, 0x28
sub ebp, 1
jne 0x40724b
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
test eax, eax
je 0x40726e
mov dword [esi + 0x40], eax
xor edx, edx
cmp dword [esi + 0x38], edx
jne 0x407282
cmp dword [esi + 0x40], edx
jne 0x407282
cmp dword [esi + 0x3c], edx
jne 0x407282
mov dword [esi + 0x44], edx
pop edi
xor ecx, ecx
cmp dword [esi + 0x44], edx
pop esi
pop ebp
cmovne eax, ecx
pop ebx
ret

Function at 0x40728f
Capabilities:
Hash data using sha256

Disassembly:
and dword [ecx + 8], 0
and dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
ret

Function at 0x4072d0
Capabilities:
Hash data using sha256

Disassembly:
mov dword [ecx], 0x4072db
jmp fcn.0040728f
Function at 0x407647
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, edx
push edi
push 0x38
pop eax
mov ecx, dword [esi + 8]
and ecx, 0x3f
mov byte [ecx + esi + 0x40], 0x80
inc ecx
cmp ecx, eax
jbe 0x407691
push 0x40
pop edx
cmp ecx, edx
je 0x40767c
sub edx, ecx
lea eax, [esi + 0x40]
push edx
add eax, ecx
push 0
push eax
call fcn.004323a0
add esp, 0xc
lea ebp, [esi + 0x40]
lea edi, [esi + 0x20]
mov edx, ebp
push 1
mov ecx, edi
call dword [esi]
push 0x38
xor ecx, ecx
pop eax
jmp 0x407697
lea ebp, [esi + 0x40]
lea edi, [esi + 0x20]
sub eax, ecx
push eax
lea eax, [esi + 0x40]
add eax, ecx
push 0
push eax
call fcn.004323a0
mov ecx, dword [esi + 8]
add esp, 0xc
mov eax, dword [esi + 0xc]
mov edx, ebp
shld eax, ecx, 3
shl ecx, 3
bswap ecx
bswap eax
mov dword [esi + 0x7c], ecx
mov ecx, edi
push 1
mov dword [esi + 0x78], eax
call dword [esi]
push 4
pop edx
mov ecx, dword [edi + 4]
mov eax, dword [edi]
lea edi, [edi + 8]
bswap eax
mov dword [ebx], eax
lea ebx, [ebx + 8]
bswap ecx
mov dword [ebx - 4], ecx
sub edx, 1
jne 0x4076cc
pop edi
mov ecx, esi
pop esi
pop ebp
pop ebx
jmp fcn.0040728f

Function at 0x4093ae
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x44d471], 0
push esi
mov esi, edx
jne 0x4093e2
mov edx, ecx
lea ecx, [ebp - 0xc]
call fcn.004085cc
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00430988
pop ecx
test esi, esi
jmp 0x4093ec
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4093f2
mov al, 1
jmp 0x4093f4
xor al, al
pop esi
leave
ret

Function at 0x4093f7
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x44d471], 0
jne 0x409429
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.004085cc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00430988
pop ecx
test esi, esi
pop esi
jmp 0x409432
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x409438
mov al, 1
leave
ret
xor al, al
leave
ret

Function at 0x40943c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x44d471], 0
jne 0x409470
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.004085cc
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00430988
pop ecx
test esi, esi
pop esi
jmp 0x40947b
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x409481
mov al, 1
leave
ret
xor al, al
leave
ret
Function at 0x409485
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x43ea12
call fcn.0043d556
mov edi, ecx
cmp byte [0x44d471], 0
jne 0x4094c0
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.004085cc
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.00430988
pop ecx
test esi, esi
jmp 0x4094cc
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4094d2
mov al, 1
jmp 0x409518
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4094e3
xor al, al
jmp 0x409518
lea ecx, [ebp - 0x50]
call fcn.00409e18
lea ecx, [ebp - 0x28]
call fcn.004080ea
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.0040a164
test al, al
je 0x40950d
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.00430988
pop ecx
mov al, bl
call fcn.0043d533
ret

Function at 0x409681
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.0040a11f
cmp eax, 0xffffffff
je 0x4096ae
mov edx, eax
and dl, 0x11
cmp dl, 1
jne 0x4096ae
and eax, 0xfffffffe
mov ecx, esi
mov edx, eax
call fcn.004093ae
test al, al
je 0x4096e7
cmp byte [0x44d471], 0
jne 0x4096d8
mov edx, esi
lea ecx, [ebp - 0xc]
call fcn.004085cc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00430988
pop ecx
test esi, esi
jmp 0x4096e1
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4096e7
mov al, 1
jmp 0x4096e9
xor al, al
pop esi
leave
ret

Function at 0x4098d9
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x44d471], 0
jne 0x40990b
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.004085cc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00430988
pop ecx
test esi, esi
pop esi
jmp 0x409914
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
leave
ret
Function at 0x409919
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x348]
sub esp, 0x348
push 0xffffffffffffffff
push 0x43eac0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x44c008]
xor eax, ebp
mov dword [ebp + 0x344], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [esi]
xor ebx, ebx
xor ecx, ecx
mov dword [esi + 4], ebx
mov edi, 0x114
mov word [eax], cx
cmp byte [0x44d471], cl
jne 0x4099ba
lea eax, [ebp + 0x22c]
mov byte [ebp + 0x22c], bl
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4099d1
cmp eax, edi
jae 0x4099d1
lea edx, [ebp + 0x22c]
mov byte [ebp + 0x340], bl
lea ecx, [ebp - 0x1c]
call fcn.00408611
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00408221
push dword [ebp - 0x1c]
call fcn.00430988
mov al, 1
jmp 0x409a5b
xor eax, eax
mov word [ebp], ax
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test esi, esi
jne 0x4099d8
xor al, al
jmp 0x409a5c
cmp esi, edi
jae 0x4099f5
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov word [ebp + 0x228], ax
lea eax, [ebp]
push eax
call fcn.004081b9
mov al, 1
jmp 0x409a5c
lea ecx, [ebp - 0x1c]
call fcn.004080ea
mov dword [ebp - 4], 1
cmp esi, dword [ebp - 0x14]
jbe 0x409a12
push esi
lea ecx, [ebp - 0x1c]
call fcn.00407f3d
mov edi, dword [ebp - 0x1c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x409a53
xor eax, eax
mov word [edi + esi*2], ax
mov eax, ebx
cmp word [edi], bx
je 0x409a37
inc eax
cmp word [edi + eax*2], bx
jne 0x409a30
mov dword [ebp - 0x18], eax
cmp eax, ecx
jne 0x409a53
lea eax, [esi - 1]
cmp eax, ecx
jne 0x409a53
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.00408221
mov bl, 1
push edi
call fcn.00430988
mov al, bl
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x344]
xor ecx, ebp
call fcn.0043097a
add ebp, 0x348
leave
ret
Function at 0x409ad3
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x348]
sub esp, 0x348
push 0xffffffffffffffff
push 0x43eaf7
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x44c008]
xor eax, ebp
mov dword [ebp + 0x344], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
xor ebx, ebx
mov edi, 0x114
cmp byte [0x44d471], bl
jne 0x409b5d
lea eax, [ebp + 0x22c]
mov byte [ebp + 0x22c], bl
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp + 0x22c]
mov esi, eax
lea ecx, [ebp - 0x1c]
call fcn.00408611
mov ecx, dword [ebp - 0x10]
push eax
mov dword [ebp - 4], ebx
call fcn.00408221
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x1c]
call fcn.00430988
pop ecx
jmp 0x409b7c
xor eax, eax
mov word [ebp], ax
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
lea eax, [ebp]
push eax
call fcn.004081b9
mov ecx, dword [ebp - 0x10]
call fcn.0040aace
test esi, esi
je 0x409b8e
cmp esi, edi
jae 0x409b8e
mov bl, 1
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x344]
xor ecx, ebp
call fcn.0043097a
add ebp, 0x348
leave
ret

Function at 0x40a11f
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x44d471], 0
jne 0x40a151
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.004085cc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00430988
pop ecx
mov eax, esi
pop esi
leave
ret
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
leave
ret

Function at 0x40a83d
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a867
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40a867
xor al, al
jmp 0x40a87b
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x40a9f4
Capabilities:
Clear file content

Disassembly:
sub esp, 0x14
push esi
lea eax, [esp + 8]
xorps xmm0, xmm0
push eax
mov esi, ecx
movlpd qword [esp + 0xc], xmm0
call fcn.0040a880
test al, al
je 0x40aaa0
push ebx
push ebp
mov ebp, dword [esp + 0x28]
lea eax, [esp + 0x18]
push edi
push eax
xor ebx, ebx
mov ecx, esi
push ebx
push ebp
push dword [esp + 0x34]
mov edi, ebx
call fcn.0040a8d2
test al, al
je 0x40aa5b
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x1c], eax
jne 0x40aa5b
cmp dword [esp + 0x20], ebp
jne 0x40aa5b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne byte [esp + 0x28]
test eax, eax
jne 0x40aa67
jmp 0x40aa5f
mov byte [esp + 0x28], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
push ebx
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.0040a8d2
mov byte [esp + 0x13], al
test edi, edi
je 0x40aa8f
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [esp + 0x13]
cmp byte [esp + 0x28], bl
je 0x40aa9b
test al, al
je 0x40aa9b
mov bl, 1
pop edi
pop ebp
mov al, bl
pop ebx
pop esi
add esp, 0x14
ret 8

Function at 0x40d8e2
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
lea eax, [esp + 4]
push ebx
push ebp
push esi
push edi
push eax
lea eax, [esp + 0x14]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
xor ebx, ebx
test eax, eax
je 0x40d92b
cmp dword [esp + 0x10], ebx
je 0x40d92b
mov edx, ebx
mov ecx, ebx
mov eax, dword [esp + 0x10]
shr eax, cl
and eax, 1
add edx, eax
inc ecx
cmp ecx, 0x20
jb 0x40d918
jmp 0x40d93a
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [esp + 0x30]
mov eax, 0x40000000
mov dword [esi], edx
lea ecx, [esp + 0x10]
mov dword [esi + 4], edx
mov byte [esi + 8], bl
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
call fcn.0040b55b
mov byte [esi + 9], al
test al, al
je 0x40d9bb
mov edi, dword [esp + 0x14]
mov eax, 0x70000000
mov ebx, dword [esp + 0x10]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], edi
test edi, edi
jne 0x40d98c
cmp ebx, eax
jbe 0x40d990
mov ebx, eax
xor edi, edi
push ecx
push ecx
push edi
push ebx
call fcn.0040d885
shrd ebx, edi, 5
mov dword [esi + 0x10], eax
shr edi, 5
push 0x11
pop ebp
mov dword [esi + 0x14], edx
mov eax, edi
mul ebp
mov ecx, eax
mov eax, ebx
mul ebp
add ecx, edx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e0a6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
push edi
cmp esi, 0xffffffff
je 0x40e184
mov edx, dword [ecx + 0x78]
mov eax, dword [ecx + 0x7c]
lea ecx, [esp + 0x2c]
and dword [esp + 0x34], 0
add eax, dword [edx + esi*4]
mov dword [esp + 0x2c], eax
mov eax, dword [edx + esi*4 + 4]
sub eax, dword [edx + esi*4]
mov dword [esp + 0x30], eax
call fcn.0040e975
mov ebx, eax
test ebx, ebx
jmp 0x40e17a
lea ecx, [esp + 0x2c]
call fcn.0040e80b
mov esi, dword [esp + 0x34]
xorps xmm0, xmm0
mov ecx, dword [esp + 0x2c]
movzx ebp, al
movlpd qword [esp + 0x20], xmm0
mov edi, dword [esp + 0x24]
mov byte [esp + 0x3c], al
lea ecx, [esi + ecx]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], 0
and ebp, 0xf
jbe 0x40e14f
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
movzx eax, byte [esi + ebx]
shld edi, ecx, 8
cdq
shl ecx, 8
or edi, edx
or ecx, eax
inc esi
cmp esi, ebp
jb 0x40e12e
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x14]
mov al, byte [esp + 0x3c]
add esi, ebp
mov dword [esp + 0x34], esi
cmp ecx, 0x6f10701
jne 0x40e161
test edi, edi
je 0x40e190
test al, 0x20
je 0x40e177
lea ecx, [esp + 0x2c]
call fcn.0040e975
and dword [esp + 0x24], 0
add dword [esp + 0x34], eax
sub ebx, 1
mov dword [esp + 0x14], ebx
jne 0x40e0e9
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
mov al, 1
jmp 0x40e186
Function at 0x4197ac
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f373
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x44c008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0xa8]
call fcn.00417fa5
lea ecx, [esi + 0x78]
call fcn.00417fa5
push dword [esi + 0x30]
call fcn.00430988
push dword [esi + 0x24]
call fcn.00430988
push dword [esi + 0x18]
call fcn.00430988
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x419810
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 1
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x419824
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 2
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x419838
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 3
mov ecx, dword [esi]
test ecx, ecx
je 0x41984b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret
Function at 0x41aeff
Capabilities:
Create thread

Disassembly:
push 0xa4
mov eax, 0x43fda8
call fcn.0043d556
mov edi, edx
mov esi, ecx
mov ebx, dword [ebp + 0x10]
lea ecx, [ebp - 0xac]
mov byte [ebx], 0
call fcn.004080ea
and dword [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.004080ea
xor ecx, ecx
mov dword [ebp - 0x90], ecx
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], ecx
mov byte [ebp - 4], 4
xorps xmm0, xmm0
mov word [ebp - 0x68], cx
lea ecx, [ebp - 0x64]
movlpd qword [ebp - 0x70], xmm0
call fcn.004080ea
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call fcn.00417ee8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call fcn.004080ea
mov dword [ebp - 4], 7
lea ecx, [ebp - 0xac]
push edi
mov dword [ebp - 0xb0], esi
call fcn.00408221
push dword [ebp + 8]
lea ecx, [ebp - 0xa0]
call fcn.00408221
push 0xf8
call fcn.0043099b
pop ecx
mov dword [ebp + 0x10], eax
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.0041b177
mov esi, eax
mov byte [ebp - 4], 7
mov dword [ebp - 0x94], esi
test esi, esi
je 0x41afe1
mov ecx, dword [esi]
push esi
call dword [ecx + 4]
mov ecx, dword [ebp - 0x90]
test ecx, ecx
je 0x41aff1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
cmp byte [ebp + 0xc], 0
mov dword [ebp - 0x90], esi
je 0x41b0b0
mov eax, dword [ebp - 0x94]
xor ecx, ecx
mov dword [ebp + 0xc], ecx
mov dword [eax + 0xe0], 1
lea eax, [ebp + 0x10]
mov byte [ebp - 4], 9
push eax
push ecx
lea eax, [ebp - 0xb0]
push eax
push 0x41aef1
push ecx
push ecx
call fcn.00434744
add esp, 0x18
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x41b058
call fcn.004076f0
test eax, eax
je 0x41b058
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x41b0f3
lea ecx, [ebp - 0x18]
call fcn.004080ea
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0xb
push eax
mov edx, 0xce4
call fcn.0040b47e
mov ecx, dword [ebp - 0x94]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041ab67
push dword [ebp - 0x18]
call fcn.00430988
pop ecx
mov byte [ebp - 4], 0xc
cmp dword [ebp + 0xc], 0
je 0x41b0aa
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x41b0aa
call fcn.004076f0
mov byte [ebp - 4], 7
jmp 0x41b0bb
lea ecx, [ebp - 0xb0]
call fcn.0041acd6
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00408221
cmp dword [esi + 4], 0
jne 0x41b0e2
mov eax, dword [ebp - 0x94]
mov ecx, esi
add eax, 0xec
push eax
call fcn.00408221
mov eax, dword [ebp - 0x94]
mov esi, dword [ebp - 0x28]
mov al, byte [eax + 0xe8]
mov byte [ebx], al
lea ecx, [ebp - 0xb0]
call fcn.0041b108
mov eax, esi
call fcn.0043d533
ret 0x10
Function at 0x41ba8c
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x44c008]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
push edi
push 0x208
xor ebx, ebx
lea eax, [esp + 0x1c]
push ebx
push eax
mov esi, edx
mov ebp, ecx
call fcn.004323a0
add esp, 0xc
lea eax, [esp + 0x18]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41bb49
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41bb11
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41bb21
mov eax, dword [esp + 0x10]
xor ecx, ecx
add ecx, ebx
mov dword [esi], ecx
adc eax, 0
mov dword [esi + 4], eax
push dword [esi]
and dword [esp + 0x18], 0
call fcn.00430aee
pop ecx
push 0
lea ecx, [esp + 0x18]
mov dword [ebp], eax
push ecx
push dword [esi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043097a
add esp, 0x214
ret
Function at 0x434eb9
Capabilities:
Parse pe header

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

Function at 0x436cd0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44339c
push 0x443394
push str.FlsAlloc
push 0x1f
call fcn.00436bac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x436d04
push dword [ebp + 8]
mov ecx, esi
call dword [0x44125c]
call esi
jmp 0x436d0a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x436d4e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4433ac
push 0x4433a4
push str.FlsGetValue
push 0x21
call fcn.00436bac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x436d85
push dword [ebp + 8]
mov ecx, esi
call dword [0x44125c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x436d8d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4433b4
push 0x4433ac
push str.FlsSetValue
push 0x22
call fcn.00436bac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x436dc7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x44125c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x438362
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 0x4383ff
push ebx
push esi
call fcn.0043832b
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.004368d9
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4383ac
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4383fe
push edi
push eax
call fcn.004369e8
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4383cc
call fcn.004369ae
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4383fd
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004368d9
add esp, 0x20
test eax, eax
jne 0x4383eb
push edi
call fcn.004369ae
jmp 0x4383f3
push ebx
call fcn.004369ae
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