joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ea00
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.004423b0
mov eax, dword [0x466750]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x100c]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edx
lea edx, [ebp - 0x808]
mov dword [ebp - 0x100c], 0
push edx
lea edx, [ebp - 0x1010]
mov dword [ebp - 0x1010], 1
push edx
push 0
push eax
push dword [ecx + 4]
mov dword [ebp - 0x100c], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x41eb9e
mov ecx, dword [ebp - 0x1010]
cmp ecx, 1
jne 0x41eae2
cmp word [ebp - 0x808], ax
jne 0x41eaa1
xor ecx, ecx
lea eax, [ebp - 0x808]
push ecx
push eax
mov ecx, edi
call fcn.00402f69
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x808]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41eab0
sub ecx, edx
lea eax, [ebp - 0x808]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00402f69
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x41eb99
push 0x400
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x100c], eax
test eax, eax
je 0x41eb82
cmp eax, 0x400
ja 0x41eb82
cmp word [ebp - 0x1008], 0
jne 0x41eb44
xor ecx, ecx
lea eax, [ebp - 0x1008]
push ecx
push eax
mov ecx, edi
call fcn.00402f69
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x1008]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41eb50
sub ecx, edx
lea eax, [ebp - 0x1008]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00402f69
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret 8
mov eax, 0xea
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret 8

Function at 0x41ec00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov edx, dword [ebp + 0xc]
mov eax, edx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], 0
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41ec20
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x426be0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.004423b0
mov eax, dword [0x466750]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
test ebx, ebx
je 0x426c18
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x426c13
mov eax, dword [ebx]
jmp 0x426c15
mov eax, ebx
mov byte [eax], 0
call fcn.00423870
test al, al
je 0x426c34
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00427200
mov dword [ebp - 0x10014], eax
test eax, eax
je 0x426c21
push eax
push 0x10000
lea eax, [ebp - 0x1000c]
xor edi, edi
push 1
push eax
call fcn.00433123
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x10018], esi
test esi, esi
je 0x426cd3
mov eax, dword [ebp + 8]
lea ecx, [ecx]
test ebx, ebx
je 0x426ca0
sub eax, edi
lea edx, [ebp - 0x10018]
cmp eax, esi
mov dword [ebp - 0x1001c], eax
lea ecx, [ebp - 0x1001c]
cmovae ecx, edx
lea eax, [ebp - 0x1000c]
push dword [ecx]
mov ecx, ebx
push eax
call fcn.004098ca
mov eax, dword [ebp + 8]
sub eax, edi
cmp eax, esi
jb 0x426cef
push dword [ebp - 0x10014]
lea eax, [ebp - 0x1000c]
add edi, esi
push 0x10000
push 1
push eax
call fcn.00433123
mov esi, eax
add esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10018], esi
test esi, esi
jne 0x426c70
mov ebx, dword [ebp - 0x10014]
push ebx
call fcn.00433272
add esp, 4
test eax, eax
jne 0x426cf5
mov byte [ebp - 0x1000d], 1
jmp 0x426cfc
mov ebx, dword [ebp - 0x10014]
mov byte [ebp - 0x1000d], 0
push ebx
call fcn.00433304
mov ecx, dword [ebp - 8]
add esp, 4
mov al, byte [ebp - 0x1000d]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret

Function at 0x426e50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x426e58
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
ret
Function at 0x426e70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x466750]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x218]
mov esi, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x42700f
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp word [ebp - 0x218], ax
jne 0x426ece
xor ecx, ecx
jmp 0x426ee6
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x426ed7
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00402f69
xor eax, eax
mov dword [ebp - 0x21c], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x230], ax
lea ecx, [ebp - 0x230]
lea eax, [ebp - 0x248]
mov dword [ebp - 0x220], 0
push eax
call fcn.00402ed6
push 1
push ecx
lea eax, [ebp - 0x264]
mov dword [ebp - 0x264], 0
push eax
lea ecx, [ebp - 0x230]
call fcn.004072f8
cmp eax, 0xffffffff
je 0x426f5d
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x230]
call fcn.004031d2
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x230]
call fcn.00423810
cmp esi, eax
je 0x426f7f
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00402ed6
cmp dword [ebp - 0x24c], 8
jb 0x426f96
push dword [ebp - 0x260]
call fcn.0042ee49
add esp, 4
xor eax, eax
mov dword [ebp - 0x24c], 7
cmp dword [ebp - 0x21c], 8
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
jb 0x426fca
push dword [ebp - 0x230]
call fcn.0042ee49
add esp, 4
xor eax, eax
mov dword [ebp - 0x21c], 7
cmp dword [ebp - 0x234], 8
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
jb 0x426ffe
push dword [ebp - 0x248]
call fcn.0042ee49
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret
Function at 0x427020
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x466750]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
mov esi, ecx
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4270c8
cmp word [ebp - 0x210], 0
je 0x4270c8
xor eax, eax
mov dword [ebp - 0x214], 7
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427080
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x228]
call fcn.00402f69
lea eax, [ebp - 0x228]
mov ecx, esi
push eax
call fcn.00422da0
cmp dword [ebp - 0x214], 8
jb 0x4271e5
push dword [ebp - 0x228]
jmp 0x4271dd
xor eax, eax
mov dword [ebp - 0x22c], 7
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x230], 0
mov word [ebp - 0x240], ax
call fcn.00426e70
test al, al
je 0x42711d
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov word [esi], ax
lea eax, [ebp - 0x240]
push eax
call fcn.00402ed6
jmp 0x4271ce
push 3
xor eax, eax
mov dword [ebp - 0x214], 7
push 0x4614a8
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
call fcn.00402f69
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov word [esi], ax
lea eax, [ebp - 0x228]
push eax
call fcn.00402ed6
push 1
push ecx
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], 0
push eax
mov ecx, esi
call fcn.004072f8
cmp eax, 0xffffffff
je 0x42719a
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.004031d2
cmp dword [ebp - 0x214], 8
jb 0x4271b1
push dword [ebp - 0x228]
call fcn.0042ee49
add esp, 4
xor eax, eax
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
cmp dword [ebp - 0x22c], 8
jb 0x4271e5
push dword [ebp - 0x240]
call fcn.0042ee49
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret
Function at 0x4272c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x466750]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov word [ebp - 0x210], ax
mov esi, ecx
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4273fc
cmp eax, 0x104
ja 0x4273fc
xor eax, eax
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
cmp word [ebp - 0x210], ax
jne 0x42732e
xor ecx, ecx
jmp 0x427346
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427337
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.00402f69
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x258]
call fcn.00422da0
mov ecx, eax
call fcn.00423810
cmp esi, eax
je 0x427389
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00402ed6
cmp dword [ebp - 0x22c], 8
jb 0x4273a0
push dword [ebp - 0x240]
call fcn.0042ee49
add esp, 4
xor eax, eax
mov dword [ebp - 0x22c], 7
cmp dword [ebp - 0x244], 8
mov dword [ebp - 0x230], 0
mov word [ebp - 0x240], ax
jb 0x4273d4
push dword [ebp - 0x258]
call fcn.0042ee49
add esp, 4
cmp dword [ebp - 0x214], 8
jb 0x4273eb
push dword [ebp - 0x228]
call fcn.0042ee49
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret

Function at 0x42dda0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x466750]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [0x4676dc]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], 0
push edi
mov ecx, 0x100
mov dword [esp + 0xc], eax
mov esi, ebx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.0042f61c
add esp, 4
mov edi, 0x100
jmp 0x42de00
mov esi, dword [0x469c40]
xor dl, dl
test esi, esi
jle 0x42de38
lea esp, [esp]
mov ecx, dword [esp + esi*4 + 0x10]
test ecx, ecx
je 0x42de33
mov eax, dword [esi*4 + 0x469840]
test eax, eax
je 0x42de33
push ecx
mov dword [esp + esi*4 + 0x14], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x42de10
dec edi
test edi, edi
jle 0x42de41
test dl, dl
jne 0x42de00
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret
Function at 0x44840f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x466750]
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.0043572b
mov dword [ebp - 0x14], eax
cmp dword [0x468cc0], esi
jne 0x448502
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x44848f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4485e2
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4485e2
push 0x4541e0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4485e2
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x468cc0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x468cc4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x468cc8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x468cd0], eax
test eax, eax
je 0x4484ff
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x468ccc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x448527
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x44851a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x44853c
push 4
pop eax
jmp 0x4485e4
cmp dword [ebp - 0x14], esi
je 0x44853c
push dword [0x468cc0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x448521
mov eax, dword [0x468ccc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x44859a
cmp dword [0x468cd0], edi
je 0x44859a
push eax
call ebx
push dword [0x468cd0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x44859a
test eax, eax
je 0x44859a
call ecx
test eax, eax
je 0x44858f
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 0x44858f
test byte [ebp - 8], 1
jne 0x44859a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4485ca
mov eax, dword [0x468cc4]
cmp eax, edi
je 0x4485c7
push eax
call ebx
test eax, eax
je 0x4485c7
call eax
mov esi, eax
test esi, esi
je 0x4485c7
mov eax, dword [0x468cc8]
cmp eax, edi
je 0x4485c7
push eax
call ebx
test eax, eax
je 0x4485c7
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x468cc0]
call ebx
test eax, eax
je 0x4485e2
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4485e4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret
Function at 0x404280
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1544
call fcn.0040b460
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x45a6a8]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [0x45a6ac]
push esi
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], edx
call fcn.00404270
mov edi, dword [ebp - 0xc]
mov ecx, dword [0x45a6b0]
mov edx, dword [0x45a6b4]
add edi, 0x23f
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], 0x20
lea ecx, [ecx]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov esi, dword [ebp - 8]
mov eax, dword [0x461e44]
shl esi, 4
add esi, dword [ebp - 0x1c]
cmp eax, 0xfa9
jne 0x40430c
mov dword [0x461e40], 0xedeb2e40
jmp 0x404327
cmp eax, 0x3eb
jne 0x404327
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x4618d0], 0
mov eax, dword [ebp - 8]
lea ecx, [edi + eax]
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x461e44], 0x9e6
mov dword [0x461e3c], 0xf4ea3dee
jne 0x404360
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x461e44], 0x213
jne 0x4043fb
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
lea eax, [ebp - 0x944]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x1544]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommError]
lea eax, [ebp - 0xd44]
push eax
push 0
push 0x403f88
push 0x403fd4
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [ebp - 0x144]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub ebx, dword [ebp - 4]
cmp dword [0x461e44], 0xc
jne 0x40440f
push 0
call dword [sym.imp.KERNEL32.dll_GlobalWire]
mov ecx, ebx
shr ecx, 5
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov edx, ebx
shl edx, 4
add edx, dword [ebp - 0x14]
lea eax, [edi + ebx]
xor edx, eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
sub dword [ebp - 8], eax
add edi, 0x61c88647
sub dword [ebp - 0x10], 1
jne 0x4042e0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404460
Capabilities:
Clear file content
Connect pipe
Get thread local storage value
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1808
call fcn.0040b460
mov eax, dword [0x461e44]
mov ecx, dword [0x4618d4]
shr eax, 3
test eax, eax
jbe 0x404566
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x461e44], 0x959
jne 0x40454c
push 0
lea eax, [ebp - 0x808]
push eax
push 0
push 0x403fe0
push 0
push 0
call edi
push 0
push 0
push 0
call ebx
push 0
lea ecx, [ebp - 0x1008]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push 0
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0
call dword [sym.imp.KERNEL32.dll_TlsFree]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea edx, [ebp - 0x1808]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp - 4]
push eax
call fcn.00404280
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x4044a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407ff0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4593c0]
jne 0x407ffa
repz ret
jmp fcn.0040de2e

Function at 0x40da53
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.0040a139
and dword [ebp - 4], 0
cmp dword [0x45f8bc], 0
mov ebx, eax
jne 0x40db04
push 0x401d64
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40dbb5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401d58
push edi
call esi
test eax, eax
je 0x40dbb5
push eax
call fcn.0040a0c7
mov dword [esp], 0x401d48
push edi
mov dword [0x45f8bc], eax
call esi
push eax
call fcn.0040a0c7
mov dword [esp], 0x401d34
push edi
mov dword [0x45f8c0], eax
call esi
push eax
call fcn.0040a0c7
mov dword [esp], 0x401d18
push edi
mov dword [0x45f8c4], eax
call esi
push eax
call fcn.0040a0c7
pop ecx
mov dword [0x45f8cc], eax
test eax, eax
je 0x40db04
push 0x401d00
push edi
call esi
push eax
call fcn.0040a0c7
pop ecx
mov dword [0x45f8c8], eax
mov eax, dword [0x45f8c8]
cmp eax, ebx
je 0x40db5c
cmp dword [0x45f8cc], ebx
je 0x40db5c
push eax
call fcn.0040a142
push dword [0x45f8cc]
mov esi, eax
call fcn.0040a142
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40db5c
test edi, edi
je 0x40db5c
call esi
test eax, eax
je 0x40db53
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40db53
test byte [ebp - 0xc], 1
jne 0x40db5c
or dword [ebp + 0x10], 0x200000
jmp 0x40db95
mov eax, dword [0x45f8c0]
cmp eax, ebx
je 0x40db95
push eax
call fcn.0040a142
pop ecx
test eax, eax
je 0x40db95
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40db95
mov eax, dword [0x45f8c4]
cmp eax, ebx
je 0x40db95
push eax
call fcn.0040a142
pop ecx
test eax, eax
je 0x40db95
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45f8bc]
call fcn.0040a142
pop ecx
test eax, eax
je 0x40dbb5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40dbb7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4017e0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, dword [sym.imp.MSVCRT.dll_wcsrchr]
push 0x5b
push eax
call ebx
mov edi, eax
add esp, 8
test edi, edi
jne 0x401803
pop edi
pop esi
pop ebx
ret
push 0x3a
push edi
call ebx
add esp, 8
test eax, eax
jne 0x401813
pop edi
pop esi
pop ebx
ret
mov ebx, dword [sym.imp.MSVCRT.dll__wtoi]
add eax, 2
push eax
call ebx
add edi, 2
mov dword [esi + 0xc], eax
push edi
call ebx
add esp, 8
mov dword [esi + 8], eax
mov eax, dword [esi + 0xc]
push 0
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
test ecx, ecx
mov dword [esi + 0x10], ecx
jne 0x40185a
mov dword [esi + 0xc], eax
call fcn.00401720
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov esi, dword [esi + 8]
pop edi
lea eax, [esi*8]
sub eax, esi
pop esi
shl eax, 7
add eax, ecx
pop ebx
ret
Function at 0x429ad0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
xor ecx, ecx
test esi, esi
je 0x429afb
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x429ae4
pop edi
mov eax, edx
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret