joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c8b90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
cmp dword [ebx + 0x18], 8
push edi
jb 0x100c8ba4
mov eax, dword [ebx + 4]
jmp 0x100c8ba7
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100c8bd0
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0xc]
push ebx
push ecx
call fcn.100c8a70
mov eax, dword [eax]
add esp, 0xc
pop edi
pop ebx
add esp, 8
ret
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x100c8be7
mov dword [esi], 0
call fcn.100c1310
mov dword [esi + 4], eax
pop esi
test edi, 0x400
je 0x100c8c20
push ebx
call fcn.100c74e0
add esp, 4
test al, al
je 0x100c8c15
mov edx, edi
and dl, 0x10
movzx eax, dl
neg eax
sbb eax, eax
and eax, 7
pop edi
add eax, 4
pop ebx
add esp, 8
ret
pop edi
mov eax, 9
pop ebx
add esp, 8
ret
mov eax, edi
and eax, 0x10
or eax, 0x20
pop edi
shr eax, 4
pop ebx
add esp, 8
ret

Function at 0x100c8e90
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x101144f8
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x10159df0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
push 0
mov dword [esp + 0x14], 0
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
call ebp
mov esi, eax
test esi, esi
jne 0x100c8ed3
mov esi, 1
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100717b6
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
push edi
push esi
mov dword [esp + 0x24], 0
call ebp
test eax, eax
jne 0x100c8f0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100c8f0e
xor eax, eax
mov ecx, dword [esp + 0x28]
push str.boost::filesystem::current_path
push ecx
push eax
call fcn.100c8730
mov esi, dword [esp + 0x30]
add esp, 0xc
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov eax, edi
mov word [esi + 4], dx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100c8f40
sub eax, edx
sar eax, 1
push eax
push edi
mov ecx, esi
call fcn.1007b420
push edi
call fcn.100d56e1
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret

Function at 0x100c9d30
Capabilities:
Move file

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, 8
cmp dword [edi + 0x18], eax
jb 0x100c9d45
mov ecx, dword [edi + 4]
jmp 0x100c9d48
lea ecx, [edi + 4]
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x18], eax
jb 0x100c9d56
mov eax, dword [esi + 4]
jmp 0x100c9d59
lea eax, [esi + 4]
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x100c9d6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100c9d71
xor eax, eax
mov ecx, dword [esp + 0x14]
push str.boost::filesystem::rename
push ecx
push edi
push esi
push eax
call fcn.100c88e0
add esp, 0x14
pop edi
pop esi
ret
Function at 0x100c9de0
Capabilities:
Get disk size

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x18
cmp dword [eax + 0x18], 8
jb 0x100c9df2
mov ecx, dword [eax + 4]
jmp 0x100c9df5
lea ecx, [eax + 4]
mov edx, dword [esp + 0x24]
push edi
push str.boost::filesystem::space
push edx
push eax
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
neg eax
sbb eax, eax
inc eax
push eax
call fcn.100c8800
add esp, 0x10
xor edi, edi
test al, al
jne 0x100c9e91
mov ecx, dword [esp + 8]
push ebx
push esi
push 1
push edi
push edi
push ecx
call fcn.100dc380
mov ecx, dword [esp + 0xc]
xor esi, esi
add eax, ecx
adc edx, esi
mov esi, dword [esp + 0x28]
push 1
push edi
mov dword [esi + 4], edx
mov edx, dword [esp + 0x20]
push edi
push edx
mov dword [esi], eax
call fcn.100dc380
mov ecx, dword [esp + 0x14]
xor ebx, ebx
add eax, ecx
push 1
adc edx, ebx
push edi
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x28]
push edi
push edx
mov dword [esi + 8], eax
call fcn.100dc380
mov ecx, dword [esp + 0x1c]
add eax, ecx
adc edx, edi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov eax, esi
pop esi
pop ebx
pop edi
add esp, 0x18
ret
mov eax, dword [esp + 0x20]
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax], edi
mov dword [eax + 4], edi
pop edi
add esp, 0x18
ret
Function at 0x100c9eb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x101146d0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10159df0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov edi, dword [esp + 0x48]
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x100c9ee7
mov eax, dword [esi]
jmp 0x100c9ee9
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100c9f1f
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x44]
push eax
push edi
push esi
call fcn.100c8a70
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x30
ret
test ebx, 0x400
je 0x100ca000
cmp dword [edi + 0x18], 8
jb 0x100c9f33
mov esi, dword [esi]
push esi
lea ecx, [esp + 0x1c]
call fcn.100c3860
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], 0
jae 0x100c9f54
lea eax, [esp + 0x1c]
push 0
push 0x2000000
push 3
push 0
push 7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x48], esi
cmp dword [esp + 0x30], 8
mov byte [esp + 0x3c], 2
jb 0x100c9f89
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.100d574a
add esp, 4
xor edx, edx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], dx
cmp esi, 0xffffffff
je 0x100c9ef7
push edi
call fcn.100c74e0
add esp, 4
test al, al
jne 0x100c9ff1
push ebx
push edi
call fcn.100c7940
mov edi, dword [esp + 0x4c]
add esp, 8
push esi
mov dword [edi], 9
mov dword [edi + 4], eax
mov dword [esp + 0x40], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x30
ret
push esi
mov dword [esp + 0x40], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x4c]
test esi, esi
je 0x100ca016
mov dword [esi], 0
call fcn.100c1310
mov dword [esi + 4], eax
push ebx
push edi
mov dword [esp + 0x18], 3
test bl, 0x10
jne 0x100ca02d
mov dword [esp + 0x18], 2
call fcn.100c7940
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
mov edx, dword [ecx]
mov eax, dword [esp + 0x4c]
mov ecx, dword [ecx + 4]
add esp, 8
mov dword [eax], edx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x100ca060
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x18]
cmp dword [esi + 0x18], 8
jb 0x100ca074
mov eax, dword [esi + 4]
jmp 0x100ca077
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100ca0a0
mov eax, dword [esp + 0x1c]
push eax
push esi
mov esi, dword [esp + 0x1c]
push esi
call fcn.100c8a70
add esp, 0xc
mov eax, esi
pop esi
pop ebx
add esp, 8
ret
push edi
mov edi, dword [esp + 0x20]
test edi, edi
je 0x100ca0b7
mov dword [edi], 0
call fcn.100c1310
mov dword [edi + 4], eax
pop edi
test ebx, 0x400
je 0x100ca0e1
push esi
call fcn.100c74e0
add esp, 4
push ebx
push esi
mov dword [esp + 0x10], 4
test al, al
jne 0x100ca0f8
mov dword [esp + 0x10], 9
jmp 0x100ca0f8
push ebx
push esi
mov dword [esp + 0x10], 3
test bl, 0x10
jne 0x100ca0f8
mov dword [esp + 0x10], 2
call fcn.100c7940
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
add esp, 8
pop esi
mov dword [eax + 4], ecx
mov dword [eax], edx
pop ebx
add esp, 8
ret
Function at 0x100cb690
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x101149d8
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x10159df0]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov esi, dword [esp + 0xa0]
cmp dword [esi + 0x18], 8
jb 0x100cb6ce
mov eax, dword [esi + 4]
jmp 0x100cb6d1
lea eax, [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x100cb6fe
mov esi, dword [esp + 0xa4]
test esi, esi
je 0x100cb6f7
mov dword [esi], 0
call fcn.100c1310
mov dword [esi + 4], eax
mov al, 1
jmp 0x100cb791
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.100c1310
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.100c9eb0
add esp, 0xc
cmp dword [esp + 0x10], 3
jne 0x100cb740
mov esi, dword [esp + 0xa4]
test esi, esi
je 0x100cb78f
mov dword [esi], 0
call fcn.100c1310
mov dword [esi + 4], eax
jmp 0x100cb78f
mov edi, dword [esp + 0xa4]
test edi, edi
jne 0x100cb785
push str.boost::filesystem::create_directory
lea ecx, [esp + 0x24]
call fcn.10006340
mov dword [esp + 0x98], edi
call fcn.100c1310
push eax
push ebx
push esi
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x4c]
call fcn.100b2200
push 0x10145578
lea eax, [esp + 0x40]
push eax
call fcn.100d7b7c
call fcn.100c1310
mov dword [edi], ebx
mov dword [edi + 4], eax
xor al, al
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x8c
ret

Function at 0x100cd320
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x10
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x100cd346
mov eax, dword [esp + 0x14]
mov dword [eax], 0
mov dword [eax + 4], 0
add esp, 0x10
ret
cmp dword [esp + 4], 0
jg 0x100cd355
jl 0x100cd331
cmp dword [esp], 0
jbe 0x100cd331
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [esp + 0x10]
push ecx
xor esi, esi
call edi
test eax, eax
jne 0x100cd381
lea ebx, [ebx]
inc esi
cmp esi, 3
ja 0x100cd3a7
lea edx, [esp + 0x10]
push edx
call edi
test eax, eax
je 0x100cd370
fild qword [esp + 0x10]
fmul qword [0x101299c0]
fild qword [esp + 8]
fdivp st(1)
call fcn.100ddbf6
mov ecx, dword [esp + 0x1c]
pop edi
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, ecx
pop esi
add esp, 0x10
ret
mov eax, dword [esp + 0x1c]
pop edi
mov dword [eax], 0
mov dword [eax + 4], 0
pop esi
add esp, 0x10
ret
Function at 0x100d1e20
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x10159834]
sub esp, 8
push esi
push edi
cmp eax, 0xffffffff
je 0x100d1e8e
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100d1e8e
lea esi, [eax + 0x14]
push ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.100d1cd0
mov edi, dword [esp + 0xc]
mov ebx, dword [esi + 0x18]
mov esi, dword [esi]
test edi, edi
je 0x100d1e60
cmp edi, esi
je 0x100d1e65
call fcn.100d526d
mov esi, dword [esp + 0x10]
cmp esi, ebx
pop ebx
je 0x100d1e8e
test edi, edi
jne 0x100d1e8a
call fcn.100d526d
cmp esi, dword [edi + 0x18]
jne 0x100d1e81
call fcn.100d526d
pop edi
lea eax, [esi + 0x10]
pop esi
add esp, 8
ret
mov edi, dword [edi]
jmp 0x100d1e77
pop edi
xor eax, eax
pop esi
add esp, 8
ret
Function at 0x100d2700
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10115538
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10159df0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x10159834]
cmp eax, 0xffffffff
jne 0x100d273b
xor ebx, ebx
jmp 0x100d2744
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], 0
test ebx, ebx
je 0x100d2785
cmp dword [ebx + 0x30], 0
jne 0x100d27cc
cmp dword [ebx + 0xc], 0
jne 0x100d27d2
push 0x100cd440
push 0x1015ec08
call fcn.100ceca0
mov eax, dword [0x10159834]
add esp, 8
cmp eax, 0xffffffff
je 0x100d2785
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x30], 0xffffffff
test ebx, ebx
je 0x100d27b8
lea ecx, [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x100d27b8
mov edx, dword [ebx]
push eax
mov eax, dword [edx]
mov ecx, ebx
call eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0xc], 0
je 0x100d281a
mov edi, dword [ebx + 0xc]
mov eax, dword [edi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x100d2804
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov esi, dword [edi]
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebx + 0xc], 0
jne 0x100d27d2
cmp dword [ebx + 0x30], 0
je 0x100d275a
lea esi, [ebx + 0x14]
mov ecx, dword [esi + 0x18]
mov esi, dword [esi]
mov edi, dword [ecx]
test esi, esi
jne 0x100d28c3
call fcn.100d526d
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x100d2847
call fcn.100d526d
cmp dword [edi + 0x10], 0
je 0x100d28a3
test esi, esi
jne 0x100d28ca
call fcn.100d526d
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x100d2862
call fcn.100d526d
cmp dword [edi + 0x18], 0
je 0x100d28a3
test esi, esi
jne 0x100d28ce
call fcn.100d526d
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x100d287d
call fcn.100d526d
mov ebp, dword [edi + 0x10]
test esi, esi
jne 0x100d28d2
call fcn.100d526d
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x100d2895
call fcn.100d526d
mov edx, dword [ebp]
mov eax, dword [edi + 0x18]
mov edx, dword [edx + 4]
push eax
mov ecx, ebp
call edx
push edi
push esi
lea eax, [esp + 0x24]
lea esi, [ebx + 0x14]
push eax
mov ecx, esi
call fcn.100d1ec0
cmp dword [ebx + 0x30], 0
jne 0x100d2827
jmp 0x100d2754
mov eax, dword [esi]
jmp 0x100d283d
mov eax, dword [esi]
jmp 0x100d2858
mov eax, dword [esi]
jmp 0x100d2873
mov eax, dword [esi]
jmp 0x100d288b
Function at 0x100d4340
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101157d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10159df0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.100d4290
mov esi, eax
push 0x100cd440
push 0x1015ec08
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
call fcn.100ceca0
mov eax, dword [0x10159834]
add esp, 8
cmp eax, 0xffffffff
je 0x100d43a0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100d4400
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x10159834]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0xffffffff
je 0x100d4418
push eax
call esi
test eax, eax
jne 0x100d4441
call fcn.100d4340
mov eax, dword [0x10159834]
cmp eax, 0xffffffff
jne 0x100d443e
xor eax, eax
lea esi, [eax + 0xc]
lea eax, [esp + 8]
push esi
push eax
call fcn.100d26d0
add esp, 8
mov dword [esi], eax
pop esi
ret
push eax
call esi
lea esi, [eax + 0xc]
lea eax, [esp + 8]
push esi
push eax
call fcn.100d26d0
add esp, 8
mov dword [esi], eax
pop esi
ret
Function at 0x100d4871
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10159df0]
jne 0x100d487b
repz ret
jmp fcn.100dde1c

Function at 0x100f2cae
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.100dce26
and dword [ebp - 4], 0
cmp dword [0x1015f750], 0
mov ebx, eax
jne 0x100f2d5f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100f2e10
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100f2e10
push eax
call fcn.100dcdb4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1015f750], eax
call esi
push eax
call fcn.100dcdb4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1015f754], eax
call esi
push eax
call fcn.100dcdb4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1015f758], eax
call esi
push eax
call fcn.100dcdb4
pop ecx
mov dword [0x1015f760], eax
test eax, eax
je 0x100f2d5f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100dcdb4
pop ecx
mov dword [0x1015f75c], eax
mov eax, dword [0x1015f75c]
cmp eax, ebx
je 0x100f2db7
cmp dword [0x1015f760], ebx
je 0x100f2db7
push eax
call fcn.100dce2f
push dword [0x1015f760]
mov esi, eax
call fcn.100dce2f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100f2db7
test edi, edi
je 0x100f2db7
call esi
test eax, eax
je 0x100f2dae
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100f2dae
test byte [ebp - 0xc], 1
jne 0x100f2db7
or dword [ebp + 0x10], 0x200000
jmp 0x100f2df0
mov eax, dword [0x1015f754]
cmp eax, ebx
je 0x100f2df0
push eax
call fcn.100dce2f
pop ecx
test eax, eax
je 0x100f2df0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100f2df0
mov eax, dword [0x1015f758]
cmp eax, ebx
je 0x100f2df0
push eax
call fcn.100dce2f
pop ecx
test eax, eax
je 0x100f2df0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1015f750]
call fcn.100dce2f
pop ecx
test eax, eax
je 0x100f2e10
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100f2e12
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408df0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x408015
lea edi, [esi - 0x7015]
push edi
jmp 0x408e0a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x408e11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x408e00
mov eax, 1
add ebx, ebx
jne 0x408e23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x408e18
jne 0x408e34
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408e18
xor ecx, ecx
sub eax, 3
jb 0x408e48
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408eba
mov ebp, eax
add ebx, ebx
jne 0x408e53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x408e60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x408e84
inc ecx
add ebx, ebx
jne 0x408e70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x408e65
jne 0x408e81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408e65
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x408ea4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x408e95
jmp 0x408e06
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x408ea4
add edi, ecx
jmp 0x408e06
pop esi
mov edi, esi
mov ecx, 0x73
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x408ec2
cmp byte [edi], 1
jne 0x408ec2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x408ec7
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x408f36
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8080]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x408ef4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8088]
or eax, eax
je 0x408f30
mov dword [ebx], eax
add ebx, 4
jmp 0x408f11
call dword [esi + 0x8084]
mov ebp, dword [esi + 0x808c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x408f6a
sub esp, 0xffffff80
jmp 0x401240
Function at 0x41c500
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x427850], 0
jne 0x41c581
cmp dword [0x427870], 0
jne 0x41c530
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x427870], eax
test eax, eax
jne 0x41c530
push str.GetEnvironmentStrings_failed
call fcn.0041bd1c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x427870]
jmp 0x41c544
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c53c
lea edi, [ebp + 1]
push edi
call fcn.004161a8
pop ecx
mov ebx, eax
mov dword [0x427854], ebx
test ebx, ebx
jne 0x41c56e
xor eax, eax
jmp 0x41c644
push edi
mov edx, dword [0x427870]
push edx
push ebx
call fcn.00416754
add esp, 0xc
jmp 0x41c5a1
xor esi, esi
mov ebx, dword [0x427850]
jmp 0x41c59b
push eax
call fcn.004168a4
pop ecx
test eax, eax
jne 0x41c597
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c58b
lea ebx, [esi + 4]
push 4
mov dword [0x427858], ebx
inc ebx
push ebx
call fcn.00415c80
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41c5c4
xor eax, eax
jmp 0x41c644
cmp dword [0x427850], 0
jne 0x41c5f5
xor esi, esi
mov ebx, dword [0x427854]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41c5e6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c5dc
jmp 0x41c626
xor esi, esi
mov ebx, dword [0x427850]
mov eax, dword [esp]
mov edi, eax
jmp 0x41c620
push eax
call fcn.004168a4
pop ecx
test eax, eax
je 0x41c615
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41c619
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c604
mov eax, dword [0x427850]
test eax, eax
je 0x41c636
push eax
call fcn.004161b8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x427850], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x10029b1a
Capabilities:
Parse pe header

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