joyce8/EMBER2024-capa huggingface dataset:
Function at 0x103723e0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.101387bb
mov eax, dword [0x1042cac0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x1048aa20]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1420], ecx
mov edx, dword [ebp - 0x1420]
cmp edx, dword [ebp - 0x1424]
jae 0x103725b8
lea eax, [ebp - 5]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1418], ecx
mov edx, dword [ebp - 0x1418]
cmp edx, dword [ebp - 0x1430]
jae 0x10372507
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x10372507
mov ecx, dword [ebp - 0x1420]
mov dl, byte [ecx]
mov byte [ebp - 0x1419], dl
mov eax, dword [ebp - 0x1420]
add eax, 1
mov dword [ebp - 0x1420], eax
mov cl, byte [ebp - 0x1419]
mov byte [ebp - 0x1411], cl
movsx edx, byte [ebp - 0x1411]
cmp edx, 0xa
jne 0x103724e5
mov eax, dword [ebp - 0x1408]
add eax, 1
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp - 0x1418]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
mov eax, dword [ebp - 0x1418]
mov cl, byte [ebp - 0x1411]
mov byte [eax], cl
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
jmp 0x10372469
mov eax, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1404]
sub eax, ecx
mov dword [ebp - 0x142c], eax
push 0
lea edx, [ebp - 0x1428]
push edx
mov eax, dword [ebp - 0x142c]
push eax
lea ecx, [ebp - 0x1404]
push ecx
mov edx, dword [ebp - 0x1434]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10372571
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
jmp 0x103725d8
mov edx, dword [ebp - 0x140c]
add edx, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], edx
mov eax, dword [ebp - 0x1428]
cmp eax, dword [ebp - 0x142c]
jae 0x103725b3
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x103725d8
jmp 0x10372442
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1013a69c
mov esp, ebp
pop ebp
ret
Function at 0x10372670
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.101387bb
mov eax, dword [0x1042cac0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x1048aa20]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x141c], ecx
mov edx, dword [ebp - 0x141c]
cmp edx, dword [ebp - 0x1424]
jae 0x1037285b
lea eax, [ebp - 6]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1414], ecx
mov edx, dword [ebp - 0x1414]
cmp edx, dword [ebp - 0x1430]
jae 0x103727a6
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x103727a6
mov ecx, dword [ebp - 0x141c]
mov dx, word [ecx]
mov word [ebp - 0x141e], dx
mov eax, dword [ebp - 0x141c]
add eax, 2
mov dword [ebp - 0x141c], eax
mov cx, word [ebp - 0x141e]
mov word [ebp - 0x1418], cx
movzx edx, word [ebp - 0x1418]
cmp edx, 0xa
jne 0x10372782
mov eax, dword [ebp - 0x1408]
add eax, 2
mov dword [ebp - 0x1408], eax
mov ecx, 0xd
mov edx, dword [ebp - 0x1414]
mov word [edx], cx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
mov ecx, dword [ebp - 0x1414]
mov dx, word [ebp - 0x1418]
mov word [ecx], dx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
jmp 0x103726f9
mov ecx, dword [ebp - 0x1414]
lea edx, [ebp - 0x1404]
sub ecx, edx
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x142c], ecx
push 0
lea eax, [ebp - 0x1428]
push eax
mov ecx, dword [ebp - 0x142c]
push ecx
lea edx, [ebp - 0x1404]
push edx
mov eax, dword [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10372814
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x1037287b
mov eax, dword [ebp - 0x140c]
add eax, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], eax
mov ecx, dword [ebp - 0x1428]
cmp ecx, dword [ebp - 0x142c]
jae 0x10372856
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1410]
mov dword [edx], eax
mov ecx, dword [ebp - 0x140c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1408]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
jmp 0x1037287b
jmp 0x103726d2
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1013a69c
mov esp, ebp
pop ebp
ret
Function at 0x1038d1f0
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1042cac0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x1a
jbe 0x1038d286
call fcn.10137e60
mov dword [eax], 0xf
xor eax, eax
je 0x1038d220
mov dword [ebp - 0x14], 1
jmp 0x1038d227
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jne 0x1038d256
push str.__Invalid_Drive_Index___0_
push 0x103c4aec
push 0
push 0x1f
push str.minkernelcrtsucrt_srcdesktopcrtmiscgetcwd.cpp
push 2
call fcn.10139017
add esp, 0x18
cmp eax, 1
jne 0x1038d256
int3
cmp dword [ebp - 0x18], 0
jne 0x1038d286
call fcn.1013b6fa
mov dword [eax], 0xd
push 0
push 0x1f
push str.minkernelcrtsucrt_srcdesktopcrtmiscgetcwd.cpp
push str.is_valid_drive
push str.__Invalid_Drive_Index___0_
call fcn.1013f88b
add esp, 0x14
xor eax, eax
jmp 0x1038d2df
cmp dword [ebp + 8], 0
jne 0x1038d293
mov eax, 1
jmp 0x1038d2df
mov eax, dword [ebp + 8]
add eax, 0x40
mov word [ebp - 0x10], ax
mov cx, word [ebp - 0x10]
mov word [ebp - 0xc], cx
mov edx, 0x3a
mov word [ebp - 0xa], dx
mov eax, 0x5c
mov word [ebp - 8], ax
xor ecx, ecx
mov word [ebp - 6], cx
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x1038d2d6
cmp dword [ebp - 0x1c], 1
jne 0x1038d2da
xor eax, eax
jmp 0x1038d2df
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1013a69c
mov esp, ebp
pop ebp
ret
Function at 0x401260
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x840ed8]
mov ecx, dword [0x83fe28]
shr eax, 3
sub esp, 0x408
test eax, eax
jbe 0x4012f8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FoldStringA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetConsoleMode]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
jmp 0x4012a0
cmp dword [0x840ed8], 0x959
jne 0x4012e2
push 0
push 0
call esi
push 0
push 0
push str.dajisinigawoxabazo
push str.gebamuli
push 0
call edi
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push str.vudukowarudazanarayodofuwe_yomanu_dudufazesu
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp - 4]
push ecx
call fcn.00401050
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x4012a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401650
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
cmp dword [0x840ed8], 0x400
push esi
push edi
jne 0x4016a2
xor ecx, ecx
xor eax, eax
lea edx, [ebp - 4]
push edx
mov word [ebp - 4], ax
mov word [ebp - 2], cx
mov eax, dword [ebp - 4]
push eax
push ecx
push str.fipokixuyizosehanevimufaramiheg_waj_rigihowazekezuwamezujaba
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
lea eax, [ebp - 0x24]
call fcn.00401790
lea esi, [ebp - 0x24]
call fcn.004017b0
mov edi, dword [ebp - 4]
push ebx
mov ebx, dword [sym.imp.USER32.dll_CharLowerBuffW]
xor esi, esi
mov edi, edi
cmp esi, 0xa50
jge 0x4016c3
push 0
lea ecx, [ebp - 0x824]
push ecx
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x2af68b
jle 0x4016d9
cmp edi, 0x78d9a205
jne 0x4016e2
inc esi
cmp esi, 0x1c5d
jl 0x4016b0
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, esi
push 0
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp esi, 0x206d47
jg 0x40170d
inc esi
cmp esi, 0x4f6a4
jl 0x4016f0
mov ebx, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
xor esi, esi
push 0
call edi
cmp esi, 0x2b259d
jle 0x40172c
cmp ebx, 0x785074d5
jne 0x401735
inc esi
cmp esi, 0x11915
jl 0x401718
mov edx, dword [0x421e9c]
mov dword [0x840ed8], edx
call fcn.004013f0
mov esi, dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
mov edi, 0x3078f
pop ebx
cmp dword [0x840ed8], 0x51f
jne 0x40176e
push 0
lea eax, [ebp - 0x424]
push eax
push str.beduyov_nozis
call esi
sub edi, 1
jne 0x401752
mov eax, dword [0x83fe28]
mov dword [0x84046c], eax
call eax
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4023f0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4210c8]
jne 0x4023fa
repz ret
jmp fcn.004048de
Function at 0x40450a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004034ea
and dword [ebp - 4], 0
cmp dword [0x422860], 0
mov ebx, eax
jne 0x4045bb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40466c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40466c
push eax
call fcn.00403478
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x422860], eax
call esi
push eax
call fcn.00403478
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x422864], eax
call esi
push eax
call fcn.00403478
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x422868], eax
call esi
push eax
call fcn.00403478
pop ecx
mov dword [0x422870], eax
test eax, eax
je 0x4045bb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403478
pop ecx
mov dword [0x42286c], eax
mov eax, dword [0x42286c]
cmp eax, ebx
je 0x404613
cmp dword [0x422870], ebx
je 0x404613
push eax
call fcn.004034f3
push dword [0x422870]
mov esi, eax
call fcn.004034f3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x404613
test edi, edi
je 0x404613
call esi
test eax, eax
je 0x40460a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40460a
test byte [ebp - 0xc], 1
jne 0x404613
or dword [ebp + 0x10], 0x200000
jmp 0x40464c
mov eax, dword [0x422864]
cmp eax, ebx
je 0x40464c
push eax
call fcn.004034f3
pop ecx
test eax, eax
je 0x40464c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40464c
mov eax, dword [0x422868]
cmp eax, ebx
je 0x40464c
push eax
call fcn.004034f3
pop ecx
test eax, eax
je 0x40464c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x422860]
call fcn.004034f3
pop ecx
test eax, eax
je 0x40466c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40466e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401240
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0xc23ed8]
mov ecx, dword [0xc22e28]
shr eax, 3
sub esp, 8
test eax, eax
jbe 0x4012bb
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
cmp dword [0xc23ed8], 0x959
jne 0x4012a5
push 0
push 0
call esi
push 0
push 0
push str.zunalicohejonasuwizozuluhudo
push str.kutanapilobidoleminovagowopoheve
push 0
call edi
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 4]
push eax
call fcn.00401050
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x401273
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401640
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x82c
cmp dword [0xc23ed8], 0x400
push ebx
push esi
push edi
jne 0x4016a3
xor ecx, ecx
xor eax, eax
lea edx, [esp + 0xc]
push edx
mov word [esp + 0x10], ax
mov word [esp + 0x12], cx
mov eax, dword [esp + 0x10]
push eax
push ecx
push 0x8024b4
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
push 0
push 0
lea ecx, [esp + 0x40]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
lea eax, [esp + 0x1c]
call fcn.004017a0
lea esi, [esp + 0x1c]
call fcn.004017c0
mov ebx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
nop
cmp esi, 0x988
jge 0x4016c5
push 0
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.USER32.dll_CharLowerBuffW]
call edi
cmp esi, 0x2af2a3
jle 0x4016d7
cmp ebx, 0x78abdb45
jne 0x4016e0
inc esi
cmp esi, 0x1c5d
jl 0x4016b0
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
mov edi, edi
push 0
call edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, 0x206d47
jg 0x40170d
inc esi
cmp esi, 0x4f6a4
jl 0x4016f0
mov ebx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
xor esi, esi
push 0
call edi
cmp esi, 0x2b259d
jle 0x40172d
cmp ebx, 0x785074d5
jne 0x401736
inc esi
cmp esi, 0x11915
jl 0x401719
mov eax, dword [0x804e9c]
mov dword [0xc23ed8], eax
call fcn.004013b0
mov esi, dword [sym.imp.KERNEL32.dll_SetSystemTime]
mov edi, 0x3078f
cmp dword [0xc23ed8], 0x51f
jne 0x40177d
xor eax, eax
lea edx, [esp + 0xc]
xor ecx, ecx
push edx
mov word [esp + 0x10], cx
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov word [esp + 0x1e], ax
call esi
sub edi, 1
jne 0x401750
mov eax, dword [0xc22e28]
mov dword [0xc2346c], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4027a0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x8040c8]
jne 0x4027aa
repz ret
jmp fcn.00405f6e
Function at 0x405b9a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040350a
and dword [ebp - 4], 0
cmp dword [0x8058a4], 0
mov ebx, eax
jne 0x405c4b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405cfc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405cfc
push eax
call fcn.00403498
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x8058a4], eax
call esi
push eax
call fcn.00403498
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x8058a8], eax
call esi
push eax
call fcn.00403498
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x8058ac], eax
call esi
push eax
call fcn.00403498
pop ecx
mov dword [0x8058b4], eax
test eax, eax
je 0x405c4b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403498
pop ecx
mov dword [0x8058b0], eax
mov eax, dword [0x8058b0]
cmp eax, ebx
je 0x405ca3
cmp dword [0x8058b4], ebx
je 0x405ca3
push eax
call fcn.00403513
push dword [0x8058b4]
mov esi, eax
call fcn.00403513
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405ca3
test edi, edi
je 0x405ca3
call esi
test eax, eax
je 0x405c9a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405c9a
test byte [ebp - 0xc], 1
jne 0x405ca3
or dword [ebp + 0x10], 0x200000
jmp 0x405cdc
mov eax, dword [0x8058a8]
cmp eax, ebx
je 0x405cdc
push eax
call fcn.00403513
pop ecx
test eax, eax
je 0x405cdc
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405cdc
mov eax, dword [0x8058ac]
cmp eax, ebx
je 0x405cdc
push eax
call fcn.00403513
pop ecx
test eax, eax
je 0x405cdc
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x8058a4]
call fcn.00403513
pop ecx
test eax, eax
je 0x405cfc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405cfe
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1005b410
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
ret
Function at 0x1006a520
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
ret
Function at 0x1009a9e1
Capabilities:
Parse pe header

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

Function at 0x100a5720
Capabilities:
Parse pe header

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

Function at 0x100a5c59
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100ca9c8
push 0x100ca9c0
push 0x100ca9c8
push 0x1f
call fcn.100a667a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100a5c8d
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x100a5c93
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100a5cd7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100ca9ec
push 0x100ca9e4
push 0x100ca9ec
push 0x21
call fcn.100a667a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100a5d0e
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100a5d16
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100caa00
push 0x100ca9f8
push 0x100caa00
push 0x22
call fcn.100a667a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100a5d50
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100ae8cd
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x100d5788]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x100ae918
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.100aebbf
test al, al
jne 0x100ae912
sub edx, 2
cmp edx, edi
jne 0x100ae8f8
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x100ae93a
lea eax, [edi + 2]
cmp edx, eax
je 0x100ae93a
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.100ae819
add esp, 0x10
jmp 0x100aea34
push esi
lea ecx, [ebp - 0x255]
call fcn.100aebbf
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100ae97d
push dword [ebp - 0x25c]
jmp 0x100ae92a
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x100ae9ba
cmp word [ebp - 0x226], 0
je 0x100ae9db
cmp word [ebp - 0x226], ax
jne 0x100ae9ba
cmp word [ebp - 0x224], 0
je 0x100ae9db
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.100ae819
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x100aea27
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x100ae994
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x100aea0f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x100aea34
push 0x100aebfd
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.100bdf80
add esp, 0x10
jmp 0x100aea04
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007c2bf
leave
ret
Function at 0x100af4ed
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 0x100af58a
push ebx
push esi
call fcn.100af5f0
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.100af3f1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100af537
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100af589
push edi
push eax
call fcn.100a9759
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100af557
call fcn.100a8581
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100af588
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100af3f1
add esp, 0x20
test eax, eax
jne 0x100af576
push edi
call fcn.100a8581
jmp 0x100af57e
push ebx
call fcn.100a8581
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 0x100af58d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100af59e
pop esi
ret
push ebx
push edi
push esi
call fcn.100af5f0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100a9759
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100af5c6
push ebx
push esi
push edi
call fcn.1007f180
add esp, 0xc
push 0
call fcn.100a8581
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100af697
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100af926