joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449dc5
Capabilities:
Get file attributes

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor eax, eax
or edi, 0xffffffff
push eax
push eax
push eax
push edi
push dword [esp + 0x28]
call fcn.0044bdbd
mov esi, eax
add esp, 0x14
test esi, esi
je 0x449f32
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov ebx, eax
call fcn.00441dce
pop ecx
cmp ebx, edi
je 0x449f32
mov ecx, dword [esp + 0x1c]
test cl, 0x10
jne 0x449f1f
test cl, 1
je 0x449e1c
test bl, 0x50
je 0x449f1f
test cl, 4
je 0x449e2a
test bl, 0x10
jne 0x449f1f
test cl, 8
je 0x449f32
push 0x2e
push dword [esp + 0x1c]
call fcn.004b8830
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x449f32
push 0x4fe9ac
push esi
call fcn.004c9fb4
pop ecx
pop ecx
test eax, eax
je 0x449f1f
push 0x52a2a4
push esi
call fcn.004c9fb4
pop ecx
pop ecx
test eax, eax
je 0x449f1f
push 0x50d38c
push esi
call fcn.004c9fb4
pop ecx
pop ecx
test eax, eax
je 0x449f1f
push 0x50d384
push esi
call fcn.004c9fb4
pop ecx
pop ecx
test eax, eax
je 0x449f1f
push str.PATHEXT
call fcn.0044d740
pop ecx
test eax, eax
je 0x449f32
push edi
push eax
call fcn.00444152
push edi
push esi
mov ebp, eax
call fcn.00444152
mov ebx, eax
push ebx
call fcn.004bb480
add esp, 0x14
mov dword [esp + 0x10], eax
mov edi, ebp
push 0x3b
push edi
call fcn.004b8700
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x449eec
push edi
call fcn.004bb480
pop ecx
lea esi, [edi + eax]
mov ecx, dword [esp + 0x10]
mov eax, esi
sub eax, edi
cmp ecx, eax
jne 0x449f07
push ecx
push edi
push ebx
call fcn.004b707a
add esp, 0xc
test eax, eax
je 0x449f11
cmp byte [esi], 0
je 0x449f24
lea edi, [esi + 1]
jmp 0x449ed2
push ebp
call fcn.00441dce
push ebx
call fcn.00441dce
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x449f34
push ebp
call fcn.00441dce
push ebx
call fcn.00441dce
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x449f3a
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
push 2
push esi
call fcn.00441e16
pop ecx
pop ecx
mov ebp, eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esi - 1]
cmp eax, ecx
jne 0x449f7a
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebp
call fcn.0044b6eb
add esp, 0x14
mov ebx, eax
push ebp
call fcn.00441dce
pop ecx
test ebx, ebx
jne 0x449f92
push 0x52a484
call fcn.00447c7a
pop ecx
mov ebx, eax
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x44b172
Capabilities:
Hash data using djb2

Disassembly:
mov edx, dword [esp + 4]
mov ecx, 0x1505
jmp 0x44b186
imul ecx, ecx, 0x21
movsx eax, al
add ecx, eax
inc edx
mov al, byte [edx]
test al, al
jne 0x44b17d
mov eax, ecx
ret
Function at 0x44d068
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, dword [edi]
test esi, esi
jne 0x44d0e0
push 0x78fe7c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [edi]
test esi, esi
jne 0x44d0d5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
xor ebp, ebp
test esi, esi
jne 0x44d0a3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
cmp esi, 0xffffffff
je 0x44d0ce
test esi, esi
je 0x44d0ce
push edi
push dword [0x78fe78]
call fcn.0046835a
push esi
push ebp
push edi
mov dword [0x78fe78], eax
call fcn.0044131a
add esp, 0x14
test eax, eax
je 0x44d0e6
jmp 0x44d0d5
push 0x52a764
jmp 0x44d0eb
push 0x78fe7c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
ret
push str.g_private_get_impl_2_
push ebp
call fcn.0044d372
int3

Function at 0x44d0f2
Capabilities:
Set thread local storage value

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 4], 0
je 0x441c7b
call fcn.00441d18
cmp dword [esp + 0xc], 0
mov eax, dword [eax + 0x24]
je 0x441c72
push dword [esp + 0xc]
push esi
push eax
call fcn.0044aa72
add esp, 0xc
pop esi
ret
push esi
push eax
call fcn.0044ade6
pop ecx
pop ecx
pop esi
ret
push dword [esp + 8]
push dword [esp + 8]
call fcn.0044d068
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x441c48

Function at 0x44d3e4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
lea eax, [ebp - 0x34]
push esi
push edi
push 0x34
push 0
push eax
call fcn.004b6f20
add esp, 0xc
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x44d4da
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InitializeSRWLock
push esi
call edi
mov dword [ebp - 0x34], eax
test eax, eax
je 0x44d4da
push str.AcquireSRWLockExclusive
push esi
call edi
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x44d4da
push str.TryAcquireSRWLockExclusive
push esi
call edi
mov dword [ebp - 0x28], eax
test eax, eax
je 0x44d4da
push str.ReleaseSRWLockExclusive
push esi
call edi
mov dword [ebp - 0x24], eax
test eax, eax
je 0x44d4da
push str.AcquireSRWLockShared
push esi
call edi
mov dword [ebp - 0x20], eax
test eax, eax
je 0x44d4da
push str.TryAcquireSRWLockShared
push esi
call edi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x44d4da
push str.ReleaseSRWLockShared
push esi
call edi
mov dword [ebp - 0x18], eax
test eax, eax
je 0x44d4da
push str.InitializeConditionVariable
push esi
call edi
mov dword [ebp - 0x14], eax
test eax, eax
je 0x44d4da
push str.SleepConditionVariableSRW
push esi
call edi
mov dword [ebp - 0xc], eax
test eax, eax
je 0x44d4da
push str.WakeAllConditionVariable
push esi
call edi
mov dword [ebp - 8], eax
test eax, eax
je 0x44d4da
push str.WakeConditionVariable
push esi
call edi
mov dword [ebp - 4], eax
test eax, eax
je 0x44d4da
push 0xd
pop ecx
lea esi, [ebp - 0x34]
mov edi, 0x78fe2c
xor eax, eax
rep movsd dword es:[edi], dword [esi]
inc eax
jmp 0x44d4dc
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x45589a
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov edx, dword [esp + 4]
push edi
mov edi, dword [edx + 0x9c0]
cmp edi, 0x270
jb 0x45594a
push ebx
xor edi, edi
mov ebx, closesocket
push esi
mov esi, edi
mov ecx, dword [edx + esi*4 + 4]
xor ecx, dword [edx + esi*4]
and ecx, ebx
xor ecx, dword [edx + esi*4]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [eax*4 + 0x52b1b4]
xor ecx, dword [edx + esi*4 + 0x634]
mov dword [edx + esi*4], ecx
inc esi
cmp esi, 0xe3
jl 0x4558bc
mov ecx, dword [edx + esi*4 + 4]
xor ecx, dword [edx + esi*4]
and ecx, ebx
xor ecx, dword [edx + esi*4]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [eax*4 + 0x52b1b4]
xor ecx, dword [edx + esi*4 - 0x38c]
mov dword [edx + esi*4], ecx
inc esi
cmp esi, 0x26f
jl 0x4558e9
mov ecx, dword [edx + 0x9bc]
xor ecx, dword [edx]
and ecx, ebx
xor ecx, dword [edx + 0x9bc]
mov eax, ecx
shr ecx, 1
and eax, 1
pop esi
pop ebx
mov eax, dword [eax*4 + 0x52b1b4]
xor eax, dword [edx + 0x630]
xor eax, ecx
mov dword [edx + 0x9bc], eax
mov dword [edx + 0x9c0], edi
mov ecx, dword [edx + edi*4]
lea eax, [edi + 1]
mov dword [edx + 0x9c0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop edi
ret

Function at 0x455aba
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, dword [esp + 0xc]
call fcn.00455c33
mov edx, dword [esp + 8]
sub eax, 0x14
je 0x455b04
xor ecx, ecx
mov dword [edx], esi
inc ecx
mov dword [edx + 0x9c0], ecx
mov eax, dword [edx + ecx*4 - 4]
shr eax, 0x1e
xor eax, dword [edx + ecx*4 - 4]
imul eax, eax, 0x6c078965
add eax, ecx
mov dword [edx + ecx*4], eax
inc dword [edx + 0x9c0]
mov ecx, dword [edx + 0x9c0]
cmp ecx, 0x270
jb 0x455ad8
pop esi
ret
test esi, esi
mov eax, 0x6b842128
cmovne eax, esi
xor ecx, ecx
inc ecx
mov dword [edx], eax
mov dword [edx + 0x9c0], ecx
imul eax, dword [edx + ecx*4 - 4], 0x10dcd
mov dword [edx + ecx*4], eax
inc dword [edx + 0x9c0]
mov ecx, dword [edx + 0x9c0]
cmp ecx, 0x270
jb 0x455b19
pop esi
ret
Function at 0x456473
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x2c
mov eax, dword [0x78e580]
xor eax, esp
mov dword [esp + 0x28], eax
push ebp
push esi
xor ebp, ebp
push str.LC_ALL
mov esi, ebp
call fcn.0044d740
pop ecx
test eax, eax
je 0x45649b
cmp byte [eax], 0
jne 0x4564c3
push str.LC_MESSAGES
call fcn.0044d740
pop ecx
test eax, eax
je 0x4564af
cmp byte [eax], 0
jne 0x4564c3
push str.LANG
call fcn.0044d740
pop ecx
test eax, eax
je 0x4564cf
cmp byte [eax], 0
je 0x4564cf
push eax
call fcn.00447c7a
pop ecx
jmp 0x456597
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
push 0x14
lea eax, [esp + 0x14]
push eax
push 0x59
push edi
call ebx
test eax, eax
je 0x45658a
push 0x14
lea eax, [esp + 0x28]
push eax
push 0x5a
push edi
call ebx
test eax, eax
je 0x45658a
movzx ecx, di
mov eax, ecx
and ecx, 0x3ff
shr eax, 0xa
cmp ecx, 0x1a
je 0x456535
cmp ecx, 0x2c
je 0x456524
cmp ecx, 0x43
jne 0x456545
sub eax, 1
je 0x456540
sub eax, 1
jne 0x456545
mov esi, str._Cyrl
jmp 0x456545
dec eax
sub eax, 1
je 0x456540
sub eax, 4
jne 0x456545
mov esi, str._Latn
push ebp
push ebp
push ebp
lea eax, [esp + 0x1c]
push 0xffffffffffffffff
push eax
call fcn.0044b6eb
push ebp
push ebp
push ebp
mov ebx, eax
lea eax, [esp + 0x44]
push 0xffffffffffffffff
push eax
call fcn.0044b6eb
push ebp
push esi
mov edi, eax
push edi
push 0x501a1c
push ebx
call fcn.00447c0a
push edi
mov esi, eax
call fcn.00441dce
add esp, 0x40
push ebx
call fcn.00441dce
mov eax, esi
jmp 0x456594
push 0x52ae14
call fcn.00447c7a
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x30]
pop esi
pop ebp
xor ecx, esp
call fcn.004b5ec4
add esp, 0x2c
ret

Function at 0x4571d9
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, eax
jne 0x457209
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.004bb8cc
push esi
mov ecx, eax
call fcn.00457c01
add esp, 4
mov dword [ecx], eax
or eax, 0xffffffff
jmp 0x457286
test eax, 0x400
jne 0x45721d
call fcn.004bb8cc
mov dword [eax], 0x16
jmp 0x457204
push edi
push 0
and eax, 0x10
shl eax, 0x15
or eax, 0x200080
push eax
push 3
push 0
push 7
push 8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x457262
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.004bb8cc
push esi
mov ecx, eax
call fcn.00457c01
add esp, 4
mov dword [ecx], eax
or eax, edi
jmp 0x457285
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00457074
add esp, 0x18
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
ret
Function at 0x4d0a6e
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x4d0aab
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x4d0aa6
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
rol dword [ecx + 0xf000e2], 1
add byte [ecx + 0x3000fa], al
add byte [ebp + 0x13], dh
rol dword [ecx + 0xf000e2], 1
add byte [ecx + 0x3000fa], al
add byte [ebp + 0x13], dh
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x4d0a98
cmp edx, ebx
jne 0x4d0be6
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x4d0a67
invalid
add eax, dword [eax + 4]
jmp 0x4d0a54
mov dword [ebp + 0xc], ebx
jmp 0x4d0ab6
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4d0ace
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4d0aec
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4d0b4a
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4d0b31
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4d0b3a
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4d0b44
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4d0b26
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4d0ab0
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4d0b97
dec eax
je 0x4d0b8e
sub eax, 3
je 0x4d0b85
mov dword [ebp - 4], 0x40
jmp 0x4d0bb4
mov dword [ebp - 4], 4
jmp 0x4d0b9a
mov dword [ebp - 4], 0x20
jmp 0x4d0b9a
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4d0be6
invalid
invalid
Function at 0x4d0aa5
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x4d0aab
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x4d0aa6
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
rol dword [ecx + 0xf000e2], 1
add byte [ecx + 0x3000fa], al
add byte [ebp + 0x13], dh
rol dword [ecx + 0xf000e2], 1
add byte [ecx + 0x3000fa], al
add byte [ebp + 0x13], dh
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x4d0a98
cmp edx, ebx
jne 0x4d0be6
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x4d0a67
invalid
add eax, dword [eax + 4]
jmp 0x4d0a54
mov dword [ebp + 0xc], ebx
jmp 0x4d0ab6
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4d0ace
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4d0aec
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4d0b4a
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4d0b31
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4d0b3a
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4d0b44
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4d0b26
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4d0ab0
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4d0b97
dec eax
je 0x4d0b8e
sub eax, 3
je 0x4d0b85
mov dword [ebp - 4], 0x40
jmp 0x4d0bb4
mov dword [ebp - 4], 4
jmp 0x4d0b9a
mov dword [ebp - 4], 0x20
jmp 0x4d0b9a
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4d0be6
invalid
invalid
Function at 0x4d7232
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x78e580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x4d7275
call fcn.004bb8b9
mov dword [eax], 0xf
call fcn.004bb8cc
mov dword [eax], 0xd
call fcn.004cadad
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b5ec4
leave
ret
test eax, eax
jne 0x4d727c
inc eax
jmp 0x4d7269
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x4d7267
xor eax, eax
cmp ecx, 1
setne al
jmp 0x4d7269
Function at 0x4d856e
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 0x4d860b
push ebx
push esi
call fcn.004d8537
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.004d3b8e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4d85b8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4d860a
push edi
push eax
call fcn.004d10bf
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4d85d8
call fcn.004d1981
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4d8609
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004d3b8e
add esp, 0x20
test eax, eax
jne 0x4d85f7
push edi
call fcn.004d1981
jmp 0x4d85ff
push ebx
call fcn.004d1981
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 0x4f0a56
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push dword [ebp + 8]
call fcn.004f0a27
mov esi, eax
pop ecx
test esi, esi
je 0x4f0af3
mov eax, dword [esi + 0x3c]
push edi
mov edi, dword [eax + esi + 0x78]
mov edx, dword [eax + esi + 0x7c]
add edi, esi
dec edx
add edx, edi
mov dword [ebp - 8], edx
mov eax, dword [edi + 0x20]
test eax, eax
je 0x4f0af2
mov ecx, dword [edi + 0x1c]
add eax, esi
mov dword [ebp - 4], eax
add ecx, esi
mov eax, dword [edi + 0x24]
push ebx
add eax, esi
mov dword [ebp - 0x10], ecx
xor ebx, ebx
mov dword [ebp - 0xc], eax
cmp dword [edi + 0x18], ebx
jbe 0x4f0af1
movzx eax, word [eax + ebx*2]
mov ecx, dword [ecx + eax*4]
add ecx, esi
cmp ecx, edi
jb 0x4f0ab9
cmp ecx, edx
jbe 0x4f0ae5
mov eax, dword [ebp - 4]
push dword [ebp + 0x10]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 1
mov eax, dword [eax + ebx*4]
add eax, esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
call dword [ebp + 0xc]
pop ecx
pop ecx
test eax, eax
je 0x4f0af1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
inc ebx
mov ecx, dword [ebp - 0x10]
cmp ebx, dword [edi + 0x18]
jb 0x4f0aa8
pop ebx
pop edi
pop esi
leave
ret

Function at 0x4f25cc
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push eax
push 0x4f25ee
push eax
push eax
call fcn.0044ad85
add esp, 0x10
mov dword [0x791d6c], eax
call sub.KERNEL32.dll_TlsAlloc
mov dword [0x791d88], eax
ret

Function at 0x4f3890
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x10009a12
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10009994
Function at 0x1000b77e
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 0x1000b81b
push ebx
push esi
call fcn.1000b747
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.1000b690
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000b7c8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b81a
push edi
push eax
call fcn.1000c378
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000b7e8
call fcn.1000a5a4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b819
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000b690
add esp, 0x20
test eax, eax
jne 0x1000b807
push edi
call fcn.1000a5a4
jmp 0x1000b80f
push ebx
call fcn.1000a5a4
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 0x1000bb3a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10017e38
push 0x10017e30
push str.FlsAlloc
push 0x1e
call fcn.1000b9d8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000bb6e
push dword [ebp + 8]
mov ecx, esi
call dword [0x10016130]
call esi
jmp 0x1000bb74
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000bbb8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10017e48
push 0x10017e40
push str.FlsGetValue
push 0x20
call fcn.1000b9d8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000bbef
push dword [ebp + 8]
mov ecx, esi
call dword [0x10016130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]