joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401cf0
Capabilities:
Delete directory
Enumerate files on windows
Set file attributes

Disassembly:
sub esp, 0x46c
mov eax, dword [0x435db4]
xor eax, esp
mov dword [esp + 0x464], eax
push ebx
push ebp
push esi
push edi
xor edi, edi
push 0x206
lea eax, [esp + 0x26e]
mov ebx, ecx
push edi
push eax
mov dword [esp + 0x20], ebx
mov esi, edx
mov word [esp + 0x274], di
call fcn.004151b0
mov eax, dword [esi + 4]
add esp, 0xc
cmp eax, edi
mov dword [esp + 0x10], edi
je 0x401d46
jmp 0x401d40
mov eax, dword [eax]
cmp eax, edi
jne 0x401d40
mov ecx, dword [esi + 0x14]
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 8], edi
mov dword [esi + 4], edi
call fcn.00407977
push ebx
lea ecx, [esp + 0x26c]
push 0x104
push ecx
mov dword [esi + 0x14], edi
call fcn.00413404
add esp, 0xc
push 0x42ef74
lea edx, [esp + 0x26c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x26c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401e8e
mov ebp, 1
lea esp, [esp]
mov ecx, 0x42ef68
lea eax, [esp + 0x44]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401de6
cmp dx, di
je 0x401de2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401de6
add eax, 4
add ecx, 4
cmp dx, di
jne 0x401dc0
xor eax, eax
jmp 0x401deb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x401e51
mov ecx, 0x42ef6c
lea eax, [esp + 0x44]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401e1e
cmp dx, di
je 0x401e1a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401e1e
add eax, 4
add ecx, 4
cmp dx, di
jne 0x401df8
xor eax, eax
jmp 0x401e23
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x401e51
mov edx, dword [esi + 4]
push edx
push edi
xor ebp, ebp
call fcn.004022f0
lea ecx, [esp + 0x44]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 4]
cmp ecx, edi
je 0x401e46
mov dword [ecx + 4], eax
jmp 0x401e49
mov dword [esi + 8], eax
add dword [esp + 0x10], 1
mov dword [esi + 4], eax
lea edx, [esp + 0x18]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x401db0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp ebp, edi
jne 0x401e77
mov eax, dword [esp + 0x10]
jmp 0x401e90
mov esi, dword [esp + 0x14]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov ecx, dword [esp + 0x474]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00412bb4
add esp, 0x46c
ret
Function at 0x401eb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42a488
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x435db4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push ebx
push str.RemoveFolderIfEmpty__s_
call fcn.00403590
mov edi, eax
call fcn.00403a70
xor esi, esi
mov edi, vtable.CList_wchar_t___wchar_t__.0
add esp, 8
mov dword [esp + 0xc], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 0xa
lea edx, [esp + 0xc]
mov ecx, ebx
mov dword [esp + 0x30], esi
call fcn.00401cf0
mov dword [esp + 0x30], 0xffffffff
cmp eax, esi
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], edi
jne 0x401f6e
cmp eax, esi
je 0x401f3e
mov eax, dword [eax]
cmp eax, esi
jne 0x401f38
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
call fcn.00407977
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret
cmp eax, esi
je 0x401f78
mov eax, dword [eax]
cmp eax, esi
jne 0x401f72
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
call fcn.00407977
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret
Function at 0x401fb0
Capabilities:
Access peb ldr_data
Check if file exists
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x42a463
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x435db4]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
push str.ScrubFiles__
call fcn.00403590
mov edi, eax
call fcn.00403a70
mov eax, dword [esp + 0x30]
xor ebx, ebx
add esp, 4
xor ebp, ebp
cmp dword [eax + 0xc], ebx
jle 0x402157
mov ecx, dword [esp + 0x2c]
push ebp
call fcn.00406bdf
cmp eax, ebx
je 0x40216d
mov esi, dword [eax + 8]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub esi, 0x10
call eax
cmp dword [esi + 0xc], ebx
lea ecx, [esi + 0xc]
jl 0x402037
cmp eax, dword [esi]
jne 0x402037
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x402072
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
cmp edi, ebx
je 0x402172
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.00412ff7
add esp, 0x10
lea esi, [edi + 0x10]
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], ebx
cmp dword [esi - 4], 1
jle 0x402094
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [esp + 0x18]
call fcn.004012d0
mov esi, dword [esp + 0x14]
mov edi, dword [0x43ac4c]
cmp edi, ebx
jne 0x4020ce
push 0x2e8
call fcn.0040674e
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0x24], 1
je 0x4020c0
push eax
call fcn.00403610
jmp 0x4020c2
xor eax, eax
mov edi, eax
mov byte [esp + 0x24], bl
mov dword [0x43ac4c], edi
push esi
push str.Deleting__s...
call fcn.00403a70
add esp, 8
cmp dword [esi - 4], 1
jle 0x4020f3
mov edx, dword [esi - 0xc]
push edx
lea ecx, [esp + 0x18]
call fcn.004012d0
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x402123
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 2
je 0x402123
push str.Delete_Failed.
call fcn.00403590
mov ebx, edi
mov ecx, eax
call fcn.00403be0
add esp, 4
xor ebx, ebx
lea eax, [esi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402147
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
add ebp, 1
cmp ebp, dword [ecx + 0xc]
jl 0x401ffc
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
call fcn.00406f1f
call fcn.00401350
int3
Function at 0x402d50
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x18
push edi
push str.In_RebootSystemNow
call fcn.00403590
mov edi, eax
call fcn.00403a70
add esp, 4
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x402d87
xor eax, eax
pop edi
add esp, 0x18
ret
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x402d80
push 0x80020003
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
pop edi
add esp, 0x18
ret
Function at 0x403330
Capabilities:
Get common file path
Get program files directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x435db4]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x206
lea eax, [esp + 6]
push 0
push eax
mov word [esp + 0xc], 0
call fcn.004151b0
add esp, 0xc
lea ecx, [esp]
push ecx
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
mov word [esi], 0
jl 0x403380
lea edx, [esp]
push edx
jmp 0x403385
push str.C:Program_Files
push 0x104
push esi
call fcn.00413404
mov ecx, dword [esp + 0x214]
add esp, 0xc
xor ecx, esp
call fcn.00412bb4
add esp, 0x20c
ret
Function at 0x403a70
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x200c
call fcn.00416d20
mov eax, dword [0x435db4]
xor eax, esp
mov dword [esp + 0x2008], eax
cmp dword [esp + 0x2010], 0
push ebx
push ebp
push esi
je 0x403bba
push 0x1ffe
lea eax, [esp + 0x16]
push 0
push eax
mov word [esp + 0x1c], 0
call fcn.004151b0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea ecx, [edi + 0x248]
push ecx
push str._s__X_:
lea edx, [esp + 0x1c]
push 0x1000
push edx
call fcn.00413072
mov edx, dword [esp + 0x2030]
add esp, 0x14
lea ecx, [esp + 0x2020]
push ecx
push edx
mov ecx, 0x1000
sub ecx, eax
push ecx
lea edx, [esp + eax*2 + 0x1c]
push edx
call fcn.00413c52
push 0x42fa14
lea eax, [esp + 0x24]
push 0x1000
push eax
call fcn.004131a5
lea eax, [edi + 0x40]
add esp, 0x1c
lea edx, [eax + 2]
jmp 0x403b20
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403b20
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub eax, edx
sar eax, 1
je 0x403b52
lea esi, [edi + 4]
push esi
call ebx
lea ecx, [esp + 0x10]
push ecx
mov eax, edi
call fcn.004039e0
push esi
call ebp
lea eax, [esp + 0x10]
xor edx, edx
lea esi, [eax + 2]
jmp 0x403b60
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403b60
sub eax, esi
sar eax, 1
add eax, 0xfffffffe
je 0x403ba6
cmp word [esp + edx*2 + 0x10], 0xa
jne 0x403b83
mov word [esp + edx*2 + 0x10], 0x20
lea eax, [esp + 0x10]
add edx, 1
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403b90
sub eax, esi
sar eax, 1
add eax, 0xfffffffe
cmp edx, eax
jb 0x403b74
lea esi, [edi + 4]
push esi
call ebx
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call ebp
mov ecx, dword [esp + 0x2014]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00412bb4
add esp, 0x200c
ret

Function at 0x4046c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42a5d8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x435db4]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebx, 1
mov dword [esp + 0x24], ebx
mov edi, dword [esp + 0x34]
push 0
push ecx
add edi, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push edi
call fcn.004014d0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x30], 2
mov esi, dword [esp + 0x3c]
add esi, 0xfffffff0
mov dword [esp + 0x24], esp
mov ebp, esp
push esi
call fcn.004014d0
mov ecx, dword [esp + 0x3c]
add eax, 0x10
mov dword [ebp], eax
add esp, 4
mov byte [esp + 0x30], bl
call fcn.00404470
mov ebx, eax
mov byte [esp + 0x24], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404759
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov dword [esp + 0x24], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40477a
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc
Function at 0x4047a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42a5d8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x435db4]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebx, 1
mov dword [esp + 0x24], ebx
mov edi, dword [esp + 0x34]
push ebx
push ecx
add edi, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push edi
call fcn.004014d0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x30], 2
mov esi, dword [esp + 0x3c]
add esi, 0xfffffff0
mov dword [esp + 0x24], esp
mov ebp, esp
push esi
call fcn.004014d0
mov ecx, dword [esp + 0x3c]
add eax, 0x10
mov dword [ebp], eax
add esp, 4
mov byte [esp + 0x30], bl
call fcn.00404470
mov ebx, eax
mov byte [esp + 0x24], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404838
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov dword [esp + 0x24], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404859
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc

Function at 0x4062b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push ebp
mov esi, eax
push esi
push str.GetValueFromHKey__s__s
mov dword [esp + 0x20], 0
call fcn.00403590
mov edi, eax
call fcn.00403a70
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x406329
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x24]
push ecx
push 0
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x14]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0xc
push str.GetValueFromHKLM__RegOpenKeyEx_failed
call fcn.00403590
mov ecx, eax
call fcn.00403be0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0xc

Function at 0x406350
Capabilities:
Delete registry value

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push ebp
mov esi, eax
push esi
push str.DeleteValueFromHKey__s__s
mov dword [esp + 0x20], 0
call fcn.00403590
mov edi, eax
call fcn.00403a70
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push 0x20006
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4063b8
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esp + 0x14]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 4
cmp ebx, 2
je 0x4063d1
push str.DeleteValueFromHKLM__RegOpenKeyEx_failed
call fcn.00403590
mov ecx, eax
call fcn.00403be0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 4
Function at 0x406520
Capabilities:
Identify system language via api

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ebx, ax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx esi, ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
cmp di, si
movzx eax, ax
jne 0x406584
cmp di, ax
jne 0x406584
xor eax, eax
movzx edx, di
mov ecx, 0x437008
jmp 0x406560
cmp dword [ecx], edx
je 0x406576
add eax, 1
add ecx, 0x10
cmp eax, 0x26
jb 0x406560
movzx eax, di
pop edi
pop esi
pop ebx
ret
pop edi
shl eax, 4
movzx eax, word [eax + 0x43700c]
pop esi
pop ebx
ret
xor eax, eax
movzx edx, bx
mov ecx, 0x437008
mov edi, edi
cmp dword [ecx], edx
je 0x406576
add eax, 1
add ecx, 0x10
cmp eax, 0x26
jb 0x406590
pop edi
pop esi
movzx eax, bx
pop ebx
ret

Function at 0x408568
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x435db4]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
cmp dword [ebp + 0x200], 0x800
mov eax, dword [ebp + 0x1fc]
push esi
mov dword [ebp - 0x40], eax
mov esi, ecx
lea eax, [ebp + 0x1e8]
jne 0x408606
push 0x42bb74
push 4
push eax
call fcn.00413404
push eax
call fcn.00401800
add esp, 0x10
push ebx
push edi
call fcn.00413695
mov edi, dword [eax]
call fcn.00413695
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0041308e
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.00413695
cmp dword [eax], ebx
je 0x40861d
call fcn.00413695
push dword [eax]
call fcn.00407101
pop ecx
jmp 0x408624
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4085b7
jmp 0x408696
call fcn.00413695
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x408692
cmp dword [ebp - 0x40], esi
jae 0x408692
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.004151b0
add esp, 0xc
push 0x42b8d4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x408684
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x408684
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x408684
push ebx
push ebx
push esi
jmp 0x40868a
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x408694
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call fcn.00412bb4
add ebp, 0x1f4
leave
ret
Function at 0x40b6c6
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x40b6f4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40b712
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040b630
jmp 0x40b712
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40b712
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040b630
test edi, edi
mov eax, edi
jne 0x40b6fc
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x43815c]
test ecx, ecx
je 0x40b7d5
jmp 0x40b6c5
ret 8

Function at 0x412bb4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x435db4]
jne 0x412bbe
repz ret
jmp fcn.00418284
Function at 0x417094
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 + 0x435dd0]
je 0x4170af
inc edi
cmp edi, 0x17
jb 0x4170a0
cmp edi, 0x17
jae 0x41722f
push ebp
push 3
call fcn.004210ae
cmp eax, 1
pop ecx
je 0x4171fb
push 3
call fcn.004210ae
test eax, eax
pop ecx
jne 0x4170e3
cmp dword [0x435c20], 1
je 0x4171fb
cmp ebx, 0xfc
je 0x41722e
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x43a048
push ebp
call fcn.0041edfa
add esp, 0xc
test eax, eax
je 0x417119
push esi
push esi
push esi
push esi
push esi
call fcn.004142df
add esp, 0x14
push 0x104
mov esi, 0x43a061
push esi
push 0
mov byte [0x43a165], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41715d
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0041edfa
add esp, 0xc
test eax, eax
je 0x41715d
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004142df
add esp, 0x14
push esi
call fcn.0041ee60
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4171a2
push esi
call fcn.0041ee60
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x43a35c
push 0x42d354
sub ecx, eax
push ecx
push eax
call fcn.00420ffb
add esp, 0x14
test eax, eax
je 0x4171a2
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004142df
add esp, 0x14
jmp 0x4171a4
xor esi, esi
push 0x42d350
push ebx
push ebp
call fcn.00420f8a
add esp, 0xc
test eax, eax
je 0x4171c4
push esi
push esi
push esi
push esi
push esi
call fcn.004142df
add esp, 0x14
push dword [edi*8 + 0x435dd4]
push ebx
push ebp
call fcn.00420f8a
add esp, 0xc
test eax, eax
je 0x4171e6
push esi
push esi
push esi
push esi
push esi
call fcn.004142df
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00420dcd
add esp, 0xc
jmp 0x41722e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41722e
cmp ebp, 0xffffffff
je 0x41722e
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x435dd4]
push dword [esi]
call fcn.0041ee60
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 0x420dcd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00417c59
xor ebx, ebx
cmp dword [0x43ab50], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x420ea3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x420f83
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x420f83
push eax
call fcn.00417beb
mov dword [esp], 0x42d620
push edi
mov dword [0x43ab50], eax
call esi
push eax
call fcn.00417beb
mov dword [esp], 0x42d60c
push edi
mov dword [0x43ab54], eax
call esi
push eax
call fcn.00417beb
mov dword [0x43ab58], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00414f39
test eax, eax
pop ecx
pop ecx
je 0x420e71
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004142df
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x420ea3
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00417beb
cmp eax, ebx
pop ecx
mov dword [0x43ab60], eax
je 0x420ea3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00417beb
pop ecx
mov dword [0x43ab5c], eax
mov eax, dword [0x43ab5c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x420f28
cmp dword [0x43ab60], ecx
je 0x420f28
push eax
call fcn.00417c62
push dword [0x43ab60]
mov esi, eax
call fcn.00417c62
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x420f28
cmp edi, ebx
je 0x420f28
call esi
cmp eax, ebx
je 0x420ef5
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x420ef5
test byte [ebp - 0x18], 1
jne 0x420f28
lea eax, [ebp - 0x10]
push eax
call fcn.00414f70
test eax, eax
pop ecx
je 0x420f10
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004142df
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x420f1f
or dword [ebp + 0x10], 0x200000
jmp 0x420f63
or dword [ebp + 0x10], 0x40000
jmp 0x420f63
mov eax, dword [0x43ab54]
cmp eax, dword [ebp - 8]
je 0x420f63
push eax
call fcn.00417c62
cmp eax, ebx
pop ecx
je 0x420f63
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x420f63
mov eax, dword [0x43ab58]
cmp eax, dword [ebp - 8]
je 0x420f63
push eax
call fcn.00417c62
cmp eax, ebx
pop ecx
je 0x420f63
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43ab50]
call fcn.00417c62
cmp eax, ebx
pop ecx
je 0x420f83
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x420f85
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x423250
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x42327d
call fcn.004136a8
mov dword [eax], esi
call fcn.00413695
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004143db
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x423259
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4232ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004136bb
pop ecx
call fcn.00413695
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4232d3
test al, 1
je 0x4232d3
test byte [esp + 0xc], 2
je 0x4232d3
call fcn.004136a8
mov dword [eax], 5
call fcn.00413695
mov dword [eax], 0xd
jmp 0x4232a3
xor eax, eax
pop esi
ret