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

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp + 0x39c], eax
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3a8]
push esi
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x3b0]
push edi
mov esi, ecx
mov dword [ebp - 0x74], eax
call dword [0x411d40]
xor edi, edi
push 2
push edi
push ebx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x68], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x78], ebx
jne 0x403698
call fcn.00401d34
mov esi, eax
jmp 0x403764
push dword [ebp - 0x74]
push dword [ebp - 0x6c]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x4036b5
call fcn.00401d34
jmp 0x403759
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
mov dword [ebp - 0x6c], eax
je 0x4036ab
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x40370e
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x68], eax
je 0x4036e5
lea ecx, [ebp - 0x68]
call fcn.00402421
mov esi, 0x8007000e
lea ecx, [ebp - 0x70]
call fcn.0040235b
mov ecx, dword [ebp + 0x39c]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004040c4
add ebp, 0x3a0
leave
ret 0x10
push eax
lea ecx, [ebp - 0x68]
call fcn.004028ae
mov ebx, dword [ebp - 0x68]
cmp ebx, edi
jne 0x403725
mov esi, 0x8007000e
jmp 0x40375b
call dword [0x411d40]
push esi
push ebx
push esi
push dword [ebp - 0x6c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
je 0x4036ab
mov ecx, dword [ebp - 0x68]
push dword [ebp + 0x3b4]
mov word [ecx + eax*2], di
push dword [ebp - 0x68]
lea ecx, [ebp - 0x80]
call fcn.00403350
mov esi, eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x68], eax
je 0x4036ea
lea ecx, [ebp - 0x68]
call fcn.00402421
jmp 0x4036ea
Function at 0x4040c4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x4040ce
repz ret
jmp fcn.0040642d

Function at 0x4082d6
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x411318]
je 0x4082f1
inc edi
cmp edi, 0x17
jb 0x4082e2
cmp edi, 0x17
jae 0x408471
push ebp
push 3
call fcn.0040a160
cmp eax, 1
pop ecx
je 0x40843d
push 3
call fcn.0040a160
test eax, eax
pop ecx
jne 0x408325
cmp dword [0x411050], 1
je 0x40843d
cmp ebx, 0xfc
je 0x408470
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4122d0
push ebp
call fcn.00409a03
add esp, 0xc
test eax, eax
je 0x40835b
push esi
push esi
push esi
push esi
push esi
call fcn.0040764f
add esp, 0x14
push 0x104
mov esi, 0x4122e9
push esi
push 0
mov byte [0x4123ed], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40839f
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00409a03
add esp, 0xc
test eax, eax
je 0x40839f
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040764f
add esp, 0x14
push esi
call fcn.00409a70
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4083e4
push esi
call fcn.00409a70
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4125e4
push 0x40dd64
sub ecx, eax
push ecx
push eax
call fcn.0040a0ad
add esp, 0x14
test eax, eax
je 0x4083e4
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040764f
add esp, 0x14
jmp 0x4083e6
xor esi, esi
push 0x40dd60
push ebx
push ebp
call fcn.0040a03c
add esp, 0xc
test eax, eax
je 0x408406
push esi
push esi
push esi
push esi
push esi
call fcn.0040764f
add esp, 0x14
push dword [edi*8 + 0x41131c]
push ebx
push ebp
call fcn.0040a03c
add esp, 0xc
test eax, eax
je 0x408428
push esi
push esi
push esi
push esi
push esi
call fcn.0040764f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00409e7f
add esp, 0xc
jmp 0x408470
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x408470
cmp ebp, 0xffffffff
je 0x408470
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x41131c]
push dword [esi]
call fcn.00409a70
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x409e7f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040862c
xor ebx, ebx
cmp dword [0x412848], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x409f55
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40a035
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40a035
push eax
call fcn.004085be
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x412848], eax
call esi
push eax
call fcn.004085be
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41284c], eax
call esi
push eax
call fcn.004085be
mov dword [0x412850], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00408063
test eax, eax
pop ecx
pop ecx
je 0x409f23
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040764f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x409f55
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004085be
cmp eax, ebx
pop ecx
mov dword [0x412858], eax
je 0x409f55
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004085be
pop ecx
mov dword [0x412854], eax
mov eax, dword [0x412854]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x409fda
cmp dword [0x412858], ecx
je 0x409fda
push eax
call fcn.00408635
push dword [0x412858]
mov esi, eax
call fcn.00408635
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x409fda
cmp edi, ebx
je 0x409fda
call esi
cmp eax, ebx
je 0x409fa7
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409fa7
test byte [ebp - 0x18], 1
jne 0x409fda
lea eax, [ebp - 0x10]
push eax
call fcn.0040809a
test eax, eax
pop ecx
je 0x409fc2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040764f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x409fd1
or dword [ebp + 0x10], 0x200000
jmp 0x40a015
or dword [ebp + 0x10], 0x40000
jmp 0x40a015
mov eax, dword [0x41284c]
cmp eax, dword [ebp - 8]
je 0x40a015
push eax
call fcn.00408635
cmp eax, ebx
pop ecx
je 0x40a015
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40a015
mov eax, dword [0x412850]
cmp eax, dword [ebp - 8]
je 0x40a015
push eax
call fcn.00408635
cmp eax, ebx
pop ecx
je 0x40a015
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x412848]
call fcn.00408635
cmp eax, ebx
pop ecx
je 0x40a035
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a037
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c362
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040c2a1
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00404240
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40c3b1
cmp dword [ebp - 0x1c], 5
jb 0x40c3c9
jmp 0x40c3c5
cmp dword [ebp - 0x10], 1
jne 0x40c3c9
cmp dword [ebp - 0x1c], 4
ja 0x40c3c5
jne 0x40c3c9
cmp dword [ebp - 0x18], 0
jbe 0x40c3c9
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x40effc
call fcn.004014eb
test eax, eax
jge 0x40c3ea
mov byte [0x411da4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004040c4
add ebp, 0x78
leave
ret
Function at 0x4cae90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x88000]
push edi
jmp 0x4caeaa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4caeb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4caea0
mov eax, 1
add ebx, ebx
jne 0x4caec3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4caed4
jne 0x4caef3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4caef3
dec eax
add ebx, ebx
jne 0x4caee0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4caeb8
add ebx, ebx
jne 0x4caeef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4caf45
xor ecx, ecx
sub eax, 3
jb 0x4caf0b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4caf7a
sar eax, 1
mov ebp, eax
jmp 0x4caf16
add ebx, ebx
jne 0x4caf16
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4caee4
inc ecx
add ebx, ebx
jne 0x4caf24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4caee4
add ebx, ebx
jne 0x4caf31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4caf26
jne 0x4caf42
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4caf26
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4caf64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4caf56
jmp 0x4caea6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4caf64
add edi, ecx
jmp 0x4caea6
pop esi
mov edi, esi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4caf82
cmp byte [edi], 0x13
jne 0x4caf82
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4caf87
lea edi, [esi + 0xc6000]
mov eax, dword [edi]
or eax, eax
je 0x4cafff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe4328]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe447c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4cafb4
mov ecx, edi
jns 0x4cafe3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe4480]
or eax, eax
je 0x4caff9
mov dword [ebx], eax
add ebx, 4
jmp 0x4cafd1
call dword [esi + 0xe4490]
mov ebp, dword [esi + 0xe4484]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4cb033
sub esp, 0xffffff80
jmp 0x4165c1
Function at 0x405c26
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405ef1
test bl, 8
mov dword [ebp - 8], eax
je 0x405c65
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x7a8ae8], eax
jmp 0x405de2
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405c7f
test eax, eax
je 0x405d90
test bl, 2
je 0x405d90
mov esi, 0x7a3f50
push edi
push esi
call fcn.0040651a
cmp dword [ebp + 8], 0
je 0x405c9e
push 0x40a56c
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405ca4
push edi
call fcn.00405e35
cmp word [edi], 0
jne 0x405cb4
cmp word [0x7a3f50], 0x5c
jne 0x405cbf
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405d85
cmp word [ebp - 0x22c], 0x2e
jne 0x405d09
cmp word [ebp - 0x22a], 0
je 0x405d68
cmp word [ebp - 0x22a], 0x2e
jne 0x405d09
cmp word [ebp - 0x228], 0
je 0x405d68
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.0040651a
test byte [ebp - 0x258], 0x10
je 0x405d34
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405d68
push dword [ebp + 0xc]
push edi
call fcn.00405c26
jmp 0x405d68
push dword [ebp - 4]
push edi
call fcn.00405bde
test eax, eax
jne 0x405d60
cmp dword [ebp - 4], eax
je 0x405d58
push edi
push 0xfffffffffffffff1
call fcn.0040557c
push 0
push edi
call fcn.004062da
jmp 0x405d68
inc dword [0x7a8ae8]
jmp 0x405d68
push edi
push 0xfffffffffffffff2
call fcn.0040557c
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405ce1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405d90
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405de2
cmp dword [ebp - 8], esi
jne 0x405da4
inc dword [0x7a8ae8]
jmp 0x405de2
push edi
call fcn.00406850
test eax, eax
je 0x405de2
push edi
call fcn.00405de9
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405bde
test eax, eax
jne 0x405dda
cmp dword [ebp - 4], esi
je 0x405d9c
push edi
push 0xfffffffffffffff1
call fcn.0040557c
push esi
push edi
call fcn.004062da
jmp 0x405de2
push edi
push 0xffffffffffffffe5
call fcn.0040557c
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1001139d
Capabilities:
Accept command line arguments

Disassembly:
push 8
push 0x10011430
call fcn.1000ed82
xor edi, edi
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x100265f7
test eax, eax
je 0x10031507
cmp eax, 2
jne 0x100116c7
push dword [0x100de7cc]
call fcn.10091f4e
pop ecx
test eax, eax
jne 0x1001141b
push 0x3bc
push 1
call fcn.10091f4e
pop ecx
pop ecx
mov esi, eax
test esi, esi
je 0x10031555
push esi
push dword [0x100de7cc]
call fcn.10091f4e
pop ecx
pop ecx
test eax, eax
je 0x10050453
push edi
push esi
call sym.MSVCR120.dll__initptd
pop ecx
pop ecx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov dword [esi], eax
or dword [esi + 4], 0xffffffff
call fcn.10011398
xor eax, eax
inc eax
call fcn.1000edc7
ret
cmp eax, 3
jne 0x1001141b
push edi
call fcn.10091f4e
pop ecx
jmp 0x1001141b
call fcn.100261c8
test eax, eax
je 0x10031555
call fcn.10026580
test eax, eax
je 0x100503fe
call fcn.10026f4d
test eax, eax
js 0x10050408
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov dword [sym.MSVCR120.dll__wcmdln], eax
call fcn.10091f4e
jmp 0x100268e4
mov dword [0x100dfbbc], eax
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [sym.MSVCR120.dll__acmdln], eax
call fcn.10026c85
call fcn.10026928
test eax, eax
js 0x1003155c
push edi
call fcn.10091f4e
pop ecx
test eax, eax
jne 0x1003155c
test edi, edi
jne 0x1005040f
inc dword [0x100dfbb8]
jmp 0x1001141b
mov eax, dword [0x100dfbb8]
test eax, eax
jle 0x10031555
dec eax
mov dword [0x100dfbb8], eax
mov dword [ebp - 4], edi
cmp dword [0x100e0418], 0
je 0x10050416
call fcn.10031219
call fcn.10031260
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x10050420
mov dword [ebp - 4], 0xfffffffe
call fcn.1003154c
jmp 0x1001141b
xor eax, eax
jmp 0x10011423
xor edi, edi
inc edi
jmp 0x10026915
call fcn.1009f373
jmp 0x10031555
call fcn.100775db
jmp 0x100503fe
call fcn.1009f9c4
jmp 0x10050408
call sym.MSVCR120.dll__cexit
jmp 0x10031526
call fcn.1009f9c4
call fcn.100775db
call fcn.1009f373
jmp 0x1003153b
push esi
call fcn.10091f4e
pop ecx
jmp 0x10031555
Function at 0x1001f855
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100de7b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x21c], 0
push ebx
or ebx, 0xffffffff
push esi
lea esi, [ebp - 0x218]
test eax, eax
je 0x10051169
push edi
push eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x1001f921
lea eax, [ebp - 0x218]
push eax
push 0x105
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov edi, eax
cmp edi, 0x104
jg 0x10051186
test edi, edi
je 0x1001f921
movzx eax, word [esi]
cmp eax, 0x5c
je 0x1001f919
cmp eax, 0x2f
je 0x1001f919
push 0x3d
pop eax
mov word [ebp - 0xc], ax
movzx eax, word [esi]
push eax
call fcn.10091f4e
pop ecx
push 0x3a
mov word [ebp - 0xa], ax
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push esi
push eax
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x1001f921
xor ebx, ebx
cmp dword [ebp - 0x21c], 0
pop edi
jne 0x100511cd
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.10010cbc
mov esp, ebp
pop ebp
ret
cmp ax, word [esi + 2]
je 0x1001f8f7
jmp 0x1001f8c6
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x100511c1
call sym.MSVCR120.dll___doserrno
and dword [eax], 0
call sym.MSVCR120.dll__errno
mov dword [eax], 0x16
call sym.MSVCR120.dll__invalid_parameter_noinfo
jmp 0x1001f907
lea eax, [edi + 1]
push 2
push eax
call fcn.10091f4e
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1001f921
mov dword [ebp - 0x21c], 1
test edi, edi
je 0x1001f921
push esi
lea eax, [edi + 1]
push eax
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov edi, eax
jmp 0x1001f8b5
push eax
call fcn.10091f4e
pop ecx
jmp 0x1001f8f9
push esi
call fcn.10091f4e
pop ecx
jmp 0x1001f907

Function at 0x1001f985
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100de7b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 1
jl 0x1001f9d8
cmp eax, 0x1a
jg 0x1001f9d8
add eax, 0x40
mov word [ebp - 0xc], ax
push 0x3a
pop eax
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x100510c2
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10010cbc
mov esp, ebp
pop ebp
ret
call sym.MSVCR120.dll___doserrno
jmp 0x100510d1
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.10091f4e
pop ecx
jmp 0x100510e7
mov dword [eax], 0xf
call sym.MSVCR120.dll__errno
mov dword [eax], 0xd
call sym.MSVCR120.dll__invalid_parameter_noinfo
or eax, 0xffffffff
jmp 0x1001f9ca

Function at 0x1002241a
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, 0x811c9dc5
xor esi, esi
movzx eax, byte [esi + ecx]
xor eax, edi
imul edi, eax, 0x1000193
inc esi
cmp esi, 4
jb 0x10022426
mov eax, edi
xor edx, edx
div ebx
pop edi
pop esi
mov eax, edx
pop ebx
ret
Function at 0x10022fe7
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
push 0x800
push 0
mov esi, 0x10023094
mov ebx, ecx
push esi
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10050052
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x100230b0
push edi
call esi
mov ecx, dword [0x100def00]
push 0x100230c4
xor ecx, eax
push edi
mov dword [ebx], ecx
call esi
mov ecx, dword [0x100def00]
push 0x100230dc
xor ecx, eax
push edi
mov dword [ebx + 4], ecx
call esi
mov ecx, dword [0x100def00]
push 0x100230e8
xor ecx, eax
push edi
mov dword [ebx + 8], ecx
call esi
mov ecx, dword [0x100def00]
push 0x10023100
xor ecx, eax
push edi
mov dword [ebx + 0xc], ecx
call esi
mov ecx, dword [0x100def00]
push 0x10023114
xor ecx, eax
push edi
mov dword [ebx + 0x10], ecx
call esi
mov ecx, dword [0x100def00]
xor ecx, eax
mov dword [ebx + 0x14], ecx
pop edi
pop esi
mov eax, ebx
pop ebx
ret
mov edi, eax
test edi, edi
je 0x10023080
jmp 0x10023009
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x57
jne 0x10023080
push esi
call dword [sym.imp.kernel32.dll_LoadLibraryW]
jmp 0x10023086

Function at 0x1002541d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push edi
xor edi, edi
test ebx, ebx
je 0x10050778
push esi
push 0x3bc
push 1
call fcn.10091f4e
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10050797
call sym.MSVCR120.dll__getptd
push dword [eax + 0x6c]
push esi
call sym.MSVCR120.dll__initptd
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x58], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x54], ebx
pop ecx
pop ecx
test eax, eax
jne 0x1002546f
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x10025498
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
je 0x1005078f
pop esi
pop edi
pop ebx
pop ebp
ret
call sym.MSVCR120.dll__errno
mov dword [eax], 0x16
call sym.MSVCR120.dll__invalid_parameter_noinfo
xor eax, eax
jmp 0x1002548e
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
push esi
call fcn.10091f4e
pop ecx
test edi, edi
je 0x100507a9
push edi
call fcn.10091f4e
pop ecx
xor eax, eax
jmp 0x1002548d
Function at 0x10031373
Capabilities:
Parse pe header

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

Function at 0x10068350
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x24
mov eax, 0x100da940
call fcn.10021e72
mov ebx, ecx
mov dword [ebp - 0x30], ebx
mov edx, dword [ebx + 0x30]
lea eax, [edx + 1]
mov dword [ebx + 0x30], eax
test edx, edx
jne 0x1006846c
cmp dword [ebx + 0x1c], edx
mov ecx, dword [ebx + 0x14]
setne al
mov byte [ebp - 0x29], al
cmp dword [ebx + 0x18], edx
jne 0x1006843c
test al, al
sete al
movzx eax, al
push eax
push dword [ebx + 0x28]
push dword [ebx + 0x24]
call fcn.10091f4e
cmp byte [ebp - 0x29], 0
jne 0x10068448
call dword [sym.imp.kernel32.dll_GetCurrentThread]
mov ebx, eax
lea ecx, [ebp - 0x28]
push ebx
call fcn.10091f4e
mov edx, dword [ebp - 0x30]
lea edi, [ebp - 0x1c]
push ebx
mov cx, word [eax + 4]
mov word [edx + 0xc], cx
mov ecx, dword [eax]
mov dword [edx + 8], ecx
mov ecx, dword [edx + 0x14]
imul edx, dword [edx + 0x24], 0x34
mov eax, dword [ecx + 0x10]
movzx ecx, word [edx + eax + 0xc]
mov esi, dword [edx + eax]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov word [ebp - 0x18], cx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
call fcn.10091f4e
mov ebx, dword [ebp - 0x30]
push ebx
mov ecx, dword [ebx + 0x14]
call fcn.10091f4e
mov edi, dword [ebx + 0x14]
lea esi, [edi + 0x20]
push esi
mov dword [ebp - 0x30], esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax]
imul ecx, dword [ebx + 0x28], 0x34
imul edx, eax, 0x34
mov eax, dword [edi + 0x10]
push ebx
add ecx, 0xc
mov eax, dword [edx + eax + 0x30]
add ecx, eax
call fcn.10091f4e
or dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
jmp 0x10068448
push ebx
add ecx, 0xc4
call fcn.10091f4e
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x70]
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
push ebx
push esi
mov dword [ebx + 0x20], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
test eax, eax
jne 0x1006846c
call fcn.10091f4e
call fcn.10021eea
ret