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

Disassembly:
sub esp, 0x114
mov eax, dword [0x447170]
xor eax, esp
mov dword [esp + 0x110], eax
mov ecx, dword [esp + 0x118]
mov dword [esp], 0xa018230
mov dword [esp + 4], 0x1018202
mov dword [esp + 8], 0xb123d300
cmp dword [ecx], 0x10e
mov dword [esp + 0xc], 0x3d4cbcb
mov dword [esp + 0x10], 0x9ef012c8
mov dword [esp + 0x14], 0xac0b9d0a
mov dword [esp + 0x18], 0xb85828f8
mov dword [esp + 0x1c], 0x8689b316
mov dword [esp + 0x20], 0xcd865298
mov dword [esp + 0x24], 0xa283d35b
mov dword [esp + 0x28], 0x1c2e53f7
mov dword [esp + 0x2c], 0x677d3d00
mov dword [esp + 0x30], 0x38699cb
mov dword [esp + 0x34], 0x8aa0b0bd
mov dword [esp + 0x38], 0x7f4e922d
mov dword [esp + 0x3c], 0x34fbd129
mov dword [esp + 0x40], 0x169683e9
mov dword [esp + 0x44], 0x54dc4193
mov dword [esp + 0x48], 0x513e6203
mov dword [esp + 0x4c], 0xe5ae6f0a
mov dword [esp + 0x50], 0x608bf6e8
mov dword [esp + 0x54], 0x41db24f6
mov dword [esp + 0x58], 0xc920ef8e
mov dword [esp + 0x5c], 0x26028dec
mov dword [esp + 0x60], 0xa02fc9d1
mov dword [esp + 0x64], 0x7dd8d9be
mov dword [esp + 0x68], 0x1f59e138
mov dword [esp + 0x6c], 0x8417c037
mov dword [esp + 0x70], 0xcbb34076
mov dword [esp + 0x74], 0x5ae1765a
mov dword [esp + 0x78], 0xa9a5388c
mov dword [esp + 0x7c], 0xbb4c73
mov dword [esp + 0x80], 0x7fd18592
mov dword [esp + 0x84], 0x194d744e
mov dword [esp + 0x88], 0x62623963
mov dword [esp + 0x8c], 0x869c3b8
mov dword [esp + 0x90], 0xfe23f767
mov dword [esp + 0x94], 0x369eab04
mov dword [esp + 0x98], 0xc83a75c9
mov dword [esp + 0x9c], 0xcb8d743
mov dword [esp + 0xa0], 0x12792560
mov dword [esp + 0xa4], 0x7993053e
mov dword [esp + 0xa8], 0x415d5645
mov dword [esp + 0xac], 0x194362f3
mov dword [esp + 0xb0], 0x44ec5ac1
mov dword [esp + 0xb4], 0x95d2d222
mov dword [esp + 0xb8], 0x415cf75d
mov dword [esp + 0xbc], 0x399dbf5
mov dword [esp + 0xc0], 0xc3a4898b
mov dword [esp + 0xc4], 0xa88dad93
mov dword [esp + 0xc8], 0xf03aa90f
mov dword [esp + 0xcc], 0x81eed7a3
mov dword [esp + 0xd0], 0x254b80e7
mov dword [esp + 0xd4], 0xfa8e7d53
mov dword [esp + 0xd8], 0xfc26493d
mov dword [esp + 0xdc], 0x734c31dd
mov dword [esp + 0xe0], 0x89b7cc2d
mov dword [esp + 0xe4], 0x14e8b1b7
mov dword [esp + 0xe8], 0x793d6cd
mov dword [esp + 0xec], 0xf9b701f9
mov dword [esp + 0xf0], 0x922fb435
mov dword [esp + 0xf4], 0xd0b39af5
mov dword [esp + 0xf8], 0xbf088d38
mov dword [esp + 0xfc], 0x65a5b022
mov dword [esp + 0x100], 0x122a9082
mov dword [esp + 0x104], 0x1148a155
mov dword [esp + 0x108], 0x10302ff
mov word [esp + 0x10c], 0x100
je 0x409e24
xor eax, eax
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0040e49c
add esp, 0x114
ret
cmp dword [ecx + 8], 0
jne 0x409e0d
mov ecx, dword [ecx + 4]
lea edx, [esp]
push esi
mov esi, 0x10a
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x409e6a
add ecx, 4
add edx, 4
sub esi, 4
jae 0x409e36
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x409e6a
mov eax, 1
pop esi
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0040e49c
add esp, 0x114
ret
mov ecx, dword [esp + 0x114]
xor eax, eax
pop esi
xor ecx, esp
call fcn.0040e49c
add esp, 0x114
ret
Function at 0x40a120
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x18
mov eax, dword [0x447170]
xor eax, esp
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x1c]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x10], ecx
xor edi, edi
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0x24
mov dword [esp + 0x18], 0x26
mov dword [esp + 0x1c], 0x2a
cmp dword [0x449880], ebx
jne 0x40a1c9
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 3
push 0x20
push 3
push 1
push 3
push 2
push ebx
push ebx
call esi
push edx
push eax
call esi
push edx
push eax
call esi
push edx
push eax
push 0x23
xor ecx, ecx
mov dword [0x449880], 0x11c
push 0x449880
mov dword [0x449884], 6
mov dword [0x449888], 1
mov word [0x449994], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov ecx, dword [esp + 0x10]
neg eax
sbb eax, eax
inc eax
mov dword [0x447168], eax
jmp 0x40a1ce
mov eax, dword [0x447168]
test eax, eax
je 0x40a1e9
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0040e49c
add esp, 0x18
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LocalFree]
test ecx, ecx
je 0x40a332
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov esi, eax
test esi, esi
je 0x40a332
lea eax, [esi + esi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x10], eax
test eax, eax
je 0x40a332
push 0
push eax
push esi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp esi, eax
jbe 0x40a332
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
jmp 0x40a250
mov eax, dword [esp + ebp*4 + 0x18]
cmp eax, 0x26
jne 0x40a350
push 0
push 0
push str._ProgramW6432_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40a32c
lea ecx, [esi*2 + 2]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x40a32c
push esi
push edi
push str._ProgramW6432_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp esi, eax
jne 0x40a32c
push edi
push str._ProgramW6432_
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40a2d5
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call esi
push 0x43da08
push 0x26
call fcn.00408da0
mov edi, eax
add esp, 8
test edi, edi
je 0x40a32c
jmp 0x40a2f2
cmp word [edi + esi*2 - 4], 0x5c
je 0x40a2ec
push 0x43cb68
lea eax, [esi + 1]
push eax
push edi
call fcn.0040ade0
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a2f7
sub eax, edx
sar eax, 1
push eax
push edi
push dword [esp + 0x18]
call fcn.00410e10
add esp, 0xc
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
jne 0x40a32c
push edi
call esi
inc ebp
xor edi, edi
cmp ebp, 3
jl 0x40a250
mov ebp, dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call ebp
push dword [esp + 0x10]
call ebp
mov ecx, dword [esp + 0x24]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040e49c
add esp, 0x18
ret
push 0x43da08
push eax
jmp 0x40a2c5
Function at 0x40c410
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
push ebx
call edi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x40c528
movzx eax, word [esi]
cmp eax, 0x5c
je 0x40c465
cmp eax, 0x2f
je 0x40c465
push eax
call fcn.00410725
add esp, 4
test eax, eax
je 0x40c528
cmp word [esi + 2], 0x3a
jne 0x40c528
movzx eax, word [esi + 4]
cmp eax, 0x5c
je 0x40c465
cmp eax, 0x2f
jne 0x40c528
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c51e
test al, 0x50
jne 0x40c51e
push ebp
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40c4a6
push 0x20
call edi
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
ret
xor ecx, ecx
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x1c], ecx
lea eax, [esp + 0x14]
cmove eax, ecx
push eax
push esi
call fcn.0040cb70
add esp, 8
test eax, eax
je 0x40c4d8
cmp dword [esp + 0x1c], ebx
je 0x40c4ec
cmp dword [esp + 0x14], ebx
jne 0x40c4ec
push 0x80092009
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call fcn.0040a490
add esp, 8
test eax, eax
je 0x40c501
mov eax, dword [esp + 0x18]
and eax, 0xffffe0f7
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebp, ebp
je 0x40c49f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
ret
push 0x7e
call edi
pop edi
pop esi
mov eax, ebx
pop ebx
ret
push 0xa0
call edi
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x40d360
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x418
mov eax, dword [0x447170]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x40d397
mov al, 1
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.0040e49c
add esp, 0x418
ret 4
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
push dword [esp + 4]
lea eax, [esp + 0xc]
push dword [esp + 0x424]
push 0x104
push eax
call fcn.0040d760
push 1
lea eax, [esp + 0x1c]
push eax
push 0x43ea9c
lea eax, [esp + 0x22c]
push 0x104
push eax
call fcn.0040d760
add esp, 0x24
lea eax, [esp + 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 8]
push eax
push str._s_backup1
lea eax, [esp + 0x218]
push 0x104
push eax
call fcn.0040d760
add esp, 0x10
lea eax, [esp + 0x210]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 0x20
lea eax, [esp + 0xc]
push 0x43eacc
push eax
call fcn.004123b7
xor ecx, ecx
mov dword [esi + 8], eax
add esp, 0xc
test eax, eax
setne al
mov ecx, dword [esp + 0x418]
pop esi
xor ecx, esp
call fcn.0040e49c
add esp, 0x418
ret 4

Function at 0x40d9a0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x104], 0
jne 0x40d9cc
push str.Directory_listener_has_not_been_configured.
push 1
push 0x54
push str.C:dvsp4_build_swgcompdev_srcNvContainercommonDirectoryListener.cpp
push dword [esi + 0x108]
call fcn.0040d470
add esp, 0x14
xor al, al
pop esi
ret
cmp dword [esi + 0x110], 0
je 0x40d9e0
push str.Directory_listener_is_already_running.
push 1
push 0x5a
jmp 0x40d9b5
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x110], eax
test eax, eax
jne 0x40da03
push str.Failed_to_start_directory_listener__no_start_event_.
push 1
push 0x61
jmp 0x40d9b5
push 0
push 0
push esi
push 0x40dbc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x10c], eax
test eax, eax
jne 0x40da2c
push str.Failed_to_create_directory_listener_thread.
push 1
push 0x68
jmp 0x40d9b5
push 0x2710
push dword [esi + 0x110]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40da4f
push str.Failed_to_start_directory_listener_thread.
push 1
push 0x6e
jmp 0x40d9b5
push str.Directory_listener_thread_started.
push 4
push 0x72
push str.C:dvsp4_build_swgcompdev_srcNvContainercommonDirectoryListener.cpp
push dword [esi + 0x108]
call fcn.0040d470
add esp, 0x14
mov al, 1
pop esi
ret
Function at 0x40dc60
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x668
mov eax, dword [0x447170]
xor eax, esp
mov dword [esp + 0x664], eax
push ebp
mov ebp, dword [esp + 0x670]
lea eax, [esp + 0x460]
push esi
push ebp
push 0x43ee0c
push 0x104
push eax
mov esi, ecx
call fcn.0040dec0
add esp, 0x10
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
jne 0x40dce8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x468]
push eax
push str.Unable_to_enumerate_items__S__result__lu_
push 3
push 0x21
push str.C:dvsp4_build_swgcompdev_srcNvContainercommonDirectoryEnumerator.cpp
push dword [esi + 0x210]
call fcn.0040d470
add esp, 0x1c
mov al, 1
jmp 0x40dea4
mov eax, dword [esp + 0x678]
push ebx
push edi
mov edi, eax
mov bl, 1
and edi, 0x12
test edi, edi
je 0x40ddd8
test byte [esp + 0x14], 0x10
je 0x40ddd8
cmp word [esp + 0x40], 0x2e
je 0x40ddd8
lea eax, [esp + 0x40]
push eax
push ebp
push str._s__s
lea eax, [esp + 0x270]
push 0x104
push eax
call fcn.0040dec0
lea eax, [esp + 0x278]
push eax
push str.Process_folder__S
push 4
push 0x31
push str.C:dvsp4_build_swgcompdev_srcNvContainercommonDirectoryEnumerator.cpp
push dword [esi + 0x210]
call fcn.0040d470
mov eax, dword [esp + 0x6ac]
add esp, 0x2c
test al, 2
je 0x40dd86
mov eax, dword [esi]
lea ecx, [esp + 0x264]
push 2
push ecx
mov ecx, esi
mov eax, dword [eax]
call eax
mov bl, al
test bl, bl
je 0x40de5b
mov eax, dword [esp + 0x680]
test al, 0x10
je 0x40ddd8
test byte [esi + 0x20c], 1
je 0x40ddac
push 1
lea eax, [esp + 0x268]
mov ecx, esi
push eax
call fcn.0040dc60
test al, al
je 0x40de6e
mov eax, dword [esi + 0x20c]
and eax, 0x12
je 0x40ddcf
push eax
lea eax, [esp + 0x268]
mov ecx, esi
push eax
call fcn.0040dc60
test al, al
je 0x40de6e
mov eax, dword [esp + 0x680]
mov bl, 1
test al, 1
je 0x40de3c
test byte [esp + 0x14], 0x10
jne 0x40de3c
lea eax, [esp + 0x40]
push eax
push ebp
push str._s__s
lea eax, [esp + 0x270]
push 0x104
push eax
call fcn.0040dec0
lea eax, [esp + 0x278]
push eax
push str.Process_file__S
push 4
push 0x4f
push str.C:dvsp4_build_swgcompdev_srcNvContainercommonDirectoryEnumerator.cpp
push dword [esi + 0x210]
call fcn.0040d470
mov eax, dword [esi]
lea ecx, [esp + 0x290]
add esp, 0x2c
mov eax, dword [eax]
push 1
push ecx
mov ecx, esi
call eax
mov bl, al
test bl, bl
je 0x40de72
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40de96
mov eax, dword [esp + 0x680]
jmp 0x40dcf8
lea eax, [esp + 0x264]
push eax
push str.OnItem___returned_FALSE_for_folder__S
push 4
push 0x38
jmp 0x40de83
xor bl, bl
jmp 0x40de96
lea eax, [esp + 0x264]
push eax
push str.OnItem_returned_FALSE_for_file__S
push 4
push 0x53
push str.C:dvsp4_build_swgcompdev_srcNvContainercommonDirectoryEnumerator.cpp
push dword [esi + 0x210]
call fcn.0040d470
add esp, 0x18
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov al, bl
pop ebx
mov ecx, dword [esp + 0x66c]
pop esi
pop ebp
xor ecx, esp
call fcn.0040e49c
add esp, 0x668
ret 8
Function at 0x43144d
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x447170]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00420175
mov dword [ebp - 0x14], eax
cmp dword [0x44a914], esi
jne 0x431540
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4314cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x431620
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x431620
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x431620
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x44a914], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x44a918], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x44a91c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44a924], eax
test eax, eax
je 0x43153d
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44a920], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x431565
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x431558
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x43157a
push 4
pop eax
jmp 0x431622
cmp dword [ebp - 0x14], esi
je 0x43157a
push dword [0x44a914]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x43155f
mov eax, dword [0x44a920]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4315d8
cmp dword [0x44a924], edi
je 0x4315d8
push eax
call ebx
push dword [0x44a924]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4315d8
test eax, eax
je 0x4315d8
call ecx
test eax, eax
je 0x4315cd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4315cd
test byte [ebp - 8], 1
jne 0x4315d8
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x431608
mov eax, dword [0x44a918]
cmp eax, edi
je 0x431605
push eax
call ebx
test eax, eax
je 0x431605
call eax
mov esi, eax
test esi, esi
je 0x431605
mov eax, dword [0x44a91c]
cmp eax, edi
je 0x431605
push eax
call ebx
test eax, eax
je 0x431605
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x44a914]
call ebx
test eax, eax
je 0x431620
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x431622
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e49c
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x402c00
pop dword [ebp - 4]
mov eax, 0x1edccb68
add eax, 0xe1636098
sub dword [ebp - 4], eax
mov dword [ebp - 0x14], 0x2b224799
add dword [ebp - 0x14], 0x232ffdb2
mov dword [ebp - 0x10], 0x3db8f5ec
sub dword [ebp - 0x10], 0xb85a9a7
mov dword [ebp - 0xc], 0xf3f43e2e
sub dword [ebp - 0xc], 0xa7a7fa00
mov dword [ebp - 8], 0x7e1405fd
sub dword [ebp - 8], 0x7e1405fd
lea eax, [ebp - 0x14]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 4]
call dword [eax]
mov dword [ebp - 0x14], 0xb73a0c1e
sub dword [ebp - 0x14], 0x42c7a2c8
mov dword [ebp - 0x10], 0xd5cc3271
sub dword [ebp - 0x10], 0x945fd0fc
mov dword [ebp - 0xc], 0xa3dffa98
add dword [ebp - 0xc], 0xbf8f71d4
mov dword [ebp - 8], 0xfed921be
sub dword [ebp - 8], 0xfed921be
lea ebx, [ebp - 0x14]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 4]
call dword [eax]
push 0x40
push 0x1000
push 0x32d86
push 0
call eax
mov ecx, 0x535fa3d6
sub ecx, 0x535f6b36
mov edx, eax
mov esi, 0xf98b9d34
add esi, 0x6b572cc
add esi, dword [ebp - 4]
mov ebx, 0xd4a2db60
mov edi, dword [esi]
xor edi, ebx
mov dword [edx], edi
add edx, 0x20f25636
sub edx, 0x20f25632
add esi, 4
loop 0x402d12
add eax, 0x75df7eb7
add eax, 0x8a21569c
mov ebx, eax
add eax, 0x57fc71cf
sub eax, 0x57fc71ca
mov ecx, 0xc24780a5
sub ecx, 0xc20780a5
add ecx, dword [ebp - 4]
call ebx
leave
ret
Function at 0x10003520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10028040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [0x10060278]
push esi
push eax
mov dword [edi + 0x154], 1
lea eax, [edi + 0x15c]
lea ebx, [edi + 0x154]
push eax
call fcn.1000a440
add esp, 0xc
mov dword [edi + 0x158], esi
add esi, 8
je 0x100035f2
mov eax, dword [edi]
test eax, eax
je 0x100035a1
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x100035a1
test ebx, ebx
je 0x100035a1
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x100035a1
cmp dword [ebp - 8], esi
je 0x100035f2
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x100035c1
mov eax, dword [edi + 4]
cmp eax, 3
je 0x100035b5
cmp eax, 1
jne 0x100035c1
lea eax, [edi + 0x54]
push eax
push dword [edi + 0x50]
call ecx
add esp, 8
mov esi, dword [edi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
xor al, al
mov byte [esi], 0
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007cf8
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10007cf8
mov esp, ebp
pop ebp
ret 8
Function at 0x1001010c
Capabilities:
Parse pe header

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

Function at 0x10011486
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002043c
push 0x10020434
push str.FlsAlloc
push 0x1f
call fcn.10011362
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100114ba
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001e15c]
call esi
jmp 0x100114c0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10011504
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002044c
push 0x10020444
push str.FlsGetValue
push 0x21
call fcn.10011362
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001153b
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001e15c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10011543
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10020454
push 0x1002044c
push str.FlsSetValue
push 0x22
call fcn.10011362
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001157d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001e15c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10014c6f
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 0x10014d0c
push ebx
push esi
call fcn.10014c38
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.10014bcc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10014cb9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10014d0b
push edi
push eax
call fcn.10011c9e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10014cd9
call fcn.1001120f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10014d0a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10014bcc
add esp, 0x20
test eax, eax
jne 0x10014cf8
push edi
call fcn.1001120f
jmp 0x10014d00
push ebx
call fcn.1001120f
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 0x1001c580
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001c5ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001c5ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret