joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10f99f8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10f9a29
test byte [eax + 0x1c], 1
je 0x10f9a29
cmp byte [eax + 0x19], 4
jb 0x10f9a29
push 0x1012d20
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
mov edi, dword [ebp + 0x14]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ecx, ecx
stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push ecx
push ecx
push eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
call esi
mov ebx, eax
test ebx, ebx
jne 0x10f9a70
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x10f9a64
mov dword [ebp + 8], eax
jmp 0x10f9b09
and eax, 0xffff
or eax, 0x80070000
jmp 0x10f9a5c
push 2
push ebx
lea eax, [ebp - 8]
push eax
call fcn.0101ae15
mov dword [ebp + 8], eax
test eax, eax
jl 0x10f9afb
mov edi, dword [edi]
push ebx
mov ebx, dword [ebp - 8]
push ebx
push edi
call esi
test eax, eax
jne 0x10f9aaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10f9aa5
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 8], eax
jmp 0x10f9afe
lea eax, [ebp - 4]
push eax
push ebx
call fcn.0107cdf2
mov dword [ebp + 8], eax
test eax, eax
jl 0x10f9afe
test ebx, ebx
je 0x10f9ac8
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor ebx, ebx
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp - 4]
call fcn.0107d16c
mov dword [ebp + 8], eax
test eax, eax
jl 0x10f9afe
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push 0
lea ecx, [esi + 4]
push ecx
push eax
call fcn.0107c9fc
mov dword [ebp + 8], eax
test eax, eax
jl 0x10f9afe
mov al, byte [ebp + 0x10]
mov byte [esi + 8], al
jmp 0x10f9afe
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10f9b09
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x10f9b1f
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
and dword [ebp - 4], 0
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10f9b49
test byte [eax + 0x1c], 1
je 0x10f9b49
cmp byte [eax + 0x19], 4
jb 0x10f9b49
push 0x1012d20
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [ebp + 8]
leave
ret 0x10
Function at 0x10fe67f
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, dword [0x111024c]
mov esi, 0x111024c
cmp eax, esi
je 0x10fe6b9
test byte [eax + 0x1c], 0x20
je 0x10fe6b9
cmp byte [eax + 0x19], 4
jb 0x10fe6b9
push 0x1013bc0
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [0x111024c]
xor ecx, ecx
push ebx
xor ebx, ebx
cmp byte [ebp + 8], cl
mov dword [ebp - 4], ebx
setne cl
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ecx
cmp eax, esi
je 0x10fe6f6
test byte [eax + 0x1c], 0x20
je 0x10fe6f6
cmp byte [eax + 0x19], 4
jb 0x10fe6f6
push ecx
push 0x1013bc0
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
push edi
lea eax, [ebp - 8]
push eax
mov edi, 0xf003f
push edi
push ebx
mov esi, 0x100177c
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x10fe765
jle 0x10fe723
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10fe849
test byte [eax + 0x1c], 0x20
je 0x10fe849
cmp byte [eax + 0x19], 2
jb 0x10fe849
push dword [ebp - 4]
push esi
push 0x1013bc0
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
jmp 0x10fe844
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push ebx
push ebx
push ebx
mov edi, 0x1013c88
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
je 0x10fe7d1
jle 0x10fe791
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10fe849
test byte [eax + 0x1c], 0x20
je 0x10fe849
cmp byte [eax + 0x19], 2
jb 0x10fe849
push dword [ebp - 4]
push edi
push esi
push 0x1013bc0
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010198ad
jmp 0x10fe844
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push ebx
mov ebx, 0x1013c70
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, eax
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x10fe842
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10fe829
test byte [eax + 0x1c], 0x20
je 0x10fe829
cmp byte [eax + 0x19], 2
jb 0x10fe829
push 0
push ebx
push edi
push esi
push 0x1013bc0
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0109011b
mov eax, dword [0x111024c]
mov ecx, dword [ebp + 8]
test ecx, ecx
jg 0x10fe834
mov dword [ebp - 4], ecx
xor ebx, ebx
jmp 0x10fe849
and ecx, 0xffff
or ecx, 0x80070000
jmp 0x10fe82d
xor ebx, ebx
mov eax, dword [0x111024c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
cmp dword [ebp - 8], ebx
je 0x10fe85f
push dword [ebp - 8]
call esi
mov eax, dword [0x111024c]
cmp dword [ebp - 0xc], ebx
pop ebx
je 0x10fe86f
push dword [ebp - 0xc]
call esi
mov eax, dword [0x111024c]
pop esi
cmp eax, 0x111024c
je 0x10fe895
test byte [eax + 0x1c], 0x20
je 0x10fe895
cmp byte [eax + 0x19], 4
jb 0x10fe895
push 0x1013bc0
push 0x20
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0x10ffb78
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x111027c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x214], 0
and dword [0x1112210], 0
and dword [0x1112214], 0
push ebx
push esi
mov eax, dword [0x111024c]
push 4
pop ebx
cmp eax, 0x111024c
je 0x10ffbd0
test byte [eax + 0x1c], 0x20
je 0x10ffbd0
cmp byte [eax + 0x19], bl
jb 0x10ffbd0
push 0x1013eac
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x210]
push eax
push 0x1013efc
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, esi
jbe 0x10ffc08
mov esi, 0x8007000e
jmp 0x10ffd15
mov ecx, 0x1013ef4
lea eax, [ebp - 0x210]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10ffc37
test dx, dx
je 0x10ffc33
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10ffc37
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x10ffc13
xor eax, eax
jmp 0x10ffc3c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10ffcb7
mov ecx, 0x1013ee8
lea eax, [ebp - 0x210]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10ffc6f
test dx, dx
je 0x10ffc6b
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10ffc6f
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x10ffc4b
xor eax, eax
jmp 0x10ffc74
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10ffc7c
push 9
jmp 0x10ffcb6
mov ecx, 0x1013edc
lea eax, [ebp - 0x210]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10ffcab
test dx, dx
je 0x10ffca7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10ffcab
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x10ffc87
xor eax, eax
jmp 0x10ffcb0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10ffcbd
push 6
pop eax
mov word [0x1110fc4], ax
call fcn.01104b15
test eax, eax
jne 0x10ffd08
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10ffcda
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10ffd3e
test byte [eax + 0x1c], 0x20
je 0x10ffd1a
cmp byte [eax + 0x19], 2
jb 0x10ffd1a
push 0x1013eac
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
jmp 0x10ffd15
or dword [0x1112210], 1
mov esi, dword [ebp - 0x214]
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10ffd3e
test byte [eax + 0x1c], 0x20
je 0x10ffd3e
cmp byte [eax + 0x19], bl
jb 0x10ffd3e
push 0x1013eac
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f798
leave
ret
Function at 0x1100c41
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x111027c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x58], ecx
xor edi, edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], edi
call fcn.010be75e
push ebx
lea ecx, [ebp - 0x48]
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [ebp - 0x5c], edi
call fcn.010be795
cmp eax, edi
jge 0x1100c8f
push edi
push edi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_RaiseException]
lea eax, [ebp - 0x48]
push eax
call fcn.010c7270
push dword [0x1110ff4]
lea ecx, [ebp - 0x48]
call fcn.010be7d0
cmp eax, edi
jge 0x1100cb5
push edi
push edi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_RaiseException]
push edi
push 0x2000080
push 3
push edi
push 1
push 0x80000000
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x54], eax
mov ebx, 0x80070000
cmp eax, 0xffffffff
je 0x1100d55
cmp eax, edi
je 0x1100d55
push edi
lea ecx, [ebp - 0x5c]
push ecx
push 8
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1100d14
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1100d03
and eax, 0xffff
or eax, ebx
push dword [ebp - 0x40]
mov dword [ebp - 0x64], 0x316
push 0x1014550
jmp 0x1100d75
cmp dword [ebp - 0x5c], 8
je 0x1100d21
mov dword [ebp - 0x4c], 0x80004005
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1100da4
test byte [eax + 0x1c], 8
je 0x1100da4
cmp byte [eax + 0x19], 5
jb 0x1100da4
push dword [esi + 4]
push dword [esi]
push dword [ebp - 0x50]
push 0x1013f98
push 0x34
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01100308
jmp 0x1100d9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1100d66
and eax, 0xffff
or eax, ebx
push dword [ebp - 0x40]
mov dword [ebp - 0x64], 0x313
push 0x101451c
mov dword [ebp - 0x4c], eax
mov eax, dword [0x1110ff8]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x68], 0x10141d8
call sym.wbengine.exe_public:_void___cdecl_CTraceFailureHelper::TraceMessage_unsigned_short_int_const__
add esp, 0xc
mov eax, dword [0x111024c]
cmp dword [ebp - 0x4c], edi
jge 0x1100dd4
cmp eax, 0x111024c
je 0x1100dd4
test byte [eax + 0x1c], 8
je 0x1100dd4
cmp byte [eax + 0x19], 2
jb 0x1100dd4
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
push 0x1013f98
push 0x35
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
cmp dword [ebp - 0x54], 0xffffffff
je 0x1100e03
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1100e03
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1100df8
and eax, 0xffff
or eax, ebx
push edi
push edi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_RaiseException]
lea ecx, [ebp - 0x48]
call fcn.010be581
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x4c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f798
leave
ret 8
Function at 0x110293b
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x10a4
call fcn.0106f7b0
mov eax, dword [0x111027c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x108c], 0
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x1088]
push esi
mov dword [ebp - 0x1090], eax
lea eax, [ebp - 0x10a4]
push eax
mov esi, ecx
mov dword [ebp - 0x1094], 0x800
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov eax, dword [ebx + 0x10]
or eax, dword [ebx + 0x14]
je 0x11029a5
push dword [ebx + 0x10]
lea eax, [ebp - 0x24]
push 0x1014cc8
push 0x10
push eax
call fcn.01025c20
add esp, 0x10
jmp 0x11029ab
xor eax, eax
mov word [ebp - 0x24], ax
push edi
push dword [ebx + 0x18]
lea eax, [ebp - 0x24]
push eax
push dword [ebx + 0xc]
movzx eax, word [ebp - 0x1096]
push dword [ebx + 4]
push dword [esi]
push eax
movzx eax, word [ebp - 0x1098]
push eax
movzx eax, word [ebp - 0x109a]
push eax
movzx eax, word [ebp - 0x109c]
push eax
movzx eax, word [ebp - 0x109e]
push eax
movzx eax, word [ebp - 0x10a2]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push dword [esi + 0x24]
lea eax, [ebp - 0x1088]
push 0x1014c50
push 0x788
push eax
call fcn.01025c20
add esp, 0x40
cmp eax, 0x8007007a
jne 0x1102aa5
push 0x10182
call fcn.010c39d4
pop ecx
push eax
lea eax, [ebp - 0x108c]
push eax
call fcn.01102911
push dword [ebx + 0x18]
mov eax, dword [ebp - 0x108c]
mov dword [ebp - 0x1090], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebx + 0xc]
movzx eax, word [ebp - 0x1096]
push dword [ebx + 4]
mov edi, 0x80c1
push dword [esi]
mov dword [ebp - 0x1094], edi
push eax
movzx eax, word [ebp - 0x1098]
push eax
movzx eax, word [ebp - 0x109a]
push eax
movzx eax, word [ebp - 0x109c]
push eax
movzx eax, word [ebp - 0x109e]
push eax
movzx eax, word [ebp - 0x10a2]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push dword [esi + 0x24]
push 0x1014c50
push edi
push dword [ebp - 0x108c]
call fcn.01025c20
add esp, 0x40
mov esi, dword [ebx + 0x20]
push 4
pop ecx
mov edi, 0x1007124
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
pop edi
je 0x1102b1c
mov ebx, dword [ebx + 0x20]
movzx eax, byte [ebx + 0xf]
push eax
movzx eax, byte [ebx + 0xe]
push eax
movzx eax, byte [ebx + 0xd]
push eax
movzx eax, byte [ebx + 0xc]
push eax
movzx eax, byte [ebx + 0xb]
push eax
movzx eax, byte [ebx + 0xa]
push eax
movzx eax, byte [ebx + 9]
push eax
movzx eax, byte [ebx + 8]
push eax
movzx eax, word [ebx + 6]
push eax
movzx eax, word [ebx + 4]
push eax
push dword [ebx]
lea eax, [ebp - 0x88]
push 0x1014bd8
push 0x32
push eax
call fcn.01025c20
add esp, 0x38
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x1094]
push dword [ebp - 0x1090]
call fcn.01040cf0
push 0x1014bd0
push dword [ebp - 0x1094]
push dword [ebp - 0x1090]
call fcn.01040cf0
push dword [ebp - 0x1090]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x108c], 0
pop esi
pop ebx
je 0x1102b54
push dword [ebp - 0x108c]
call fcn.0110289d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0106f798
leave
ret 4
Function at 0x1104f6c
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x111027c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x210]
push ecx
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, esi
jae 0x110514c
test eax, eax
jne 0x1104fb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x110514f
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x110514c
lea ecx, [ebp - 0x210]
cmp eax, ecx
je 0x110514c
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x210]
cmp ax, 0x41
jb 0x1104fec
cmp ax, 0x5a
jbe 0x1104ff5
lea ecx, [eax - 0x61]
cmp cx, 0x19
ja 0x1105019
cmp word [ebp - 0x20e], 0x3a
jne 0x1105019
cmp word [ebp - 0x20c], 0x5c
jne 0x110514c
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x214], ecx
push 0x5c
pop edi
cmp ax, di
jne 0x110505b
cmp word [ebp - 0x20e], di
jne 0x110505b
lea eax, [ebp - 0x20c]
push edi
push eax
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
test eax, eax
je 0x110514c
add eax, 2
push edi
push eax
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
mov dword [ebp - 0x214], eax
test eax, eax
je 0x110514c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1105085
and al, 0x10
movzx eax, al
neg eax
sbb eax, eax
and eax, 0xfffffef5
add eax, 0x10b
jmp 0x110514f
mov esi, dword [ebp - 0x218]
lea eax, [ebp - 0x210]
cmp esi, eax
jne 0x1105099
mov esi, eax
jmp 0x110509c
add esi, 0xfffffffe
cmp esi, dword [ebp - 0x214]
je 0x110514c
cmp word [esi], di
jne 0x110514c
cmp esi, dword [ebp - 0x214]
jbe 0x110514c
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x210]
push 0x5c
push eax
call sub.msvcrt.dll_wcsrchr
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x110514c
movzx ebx, word [edi + 2]
xor eax, eax
mov word [edi + 2], ax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov word [edi + 2], bx
cmp eax, 0xffffffff
jne 0x1105114
mov esi, edi
cmp edi, dword [ebp - 0x214]
ja 0x11050bd
cmp esi, dword [ebp - 0x214]
jbe 0x110514c
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor ebx, ebx
jmp 0x1105135
test al, 0x10
jne 0x1105102
mov eax, 0x10b
jmp 0x110514f
cmp word [esi + 2], bx
je 0x1105148
push 0x5c
pop eax
push esi
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2]
push ebx
lea eax, [ebp - 0x210]
push eax
call edi
test eax, eax
jne 0x110511f
jmp 0x1104fae
xor eax, eax
jmp 0x110514f
push 0x7b
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f798
leave
ret 4
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x402ef8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x405014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402f90
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402f70
xor eax, eax
push ebp
push 0x402f69
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402fac
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f70
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x405014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x405014], ax
mov esp, ebp
pop ebp
ret

Function at 0x4035d8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x406034], 0
je 0x403639
cmp word [0x406208], 0xd7b2
jne 0x403601
cmp dword [0x406210], 0
jbe 0x403601
mov eax, 0x406204
call dword [0x406220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x405060
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403660
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x405020], 0
jne 0x403655
push 0
push 0x405058
push 0x405060
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4040b8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40411e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403854
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402be4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404108
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404125
lea eax, [ebp - 0x10]
call fcn.00403754
ret
Function at 0x423aa4
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.00419328
and dword [ebp - 4], 0
cmp dword [0x43879c], 0
mov ebx, eax
jne 0x423b55
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x423c06
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x423c06
push eax
call fcn.004192b6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43879c], eax
call esi
push eax
call fcn.004192b6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4387a0], eax
call esi
push eax
call fcn.004192b6
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4387a4], eax
call esi
push eax
call fcn.004192b6
pop ecx
mov dword [0x4387ac], eax
test eax, eax
je 0x423b55
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004192b6
pop ecx
mov dword [0x4387a8], eax
mov eax, dword [0x4387a8]
cmp eax, ebx
je 0x423bad
cmp dword [0x4387ac], ebx
je 0x423bad
push eax
call fcn.00419331
push dword [0x4387ac]
mov esi, eax
call fcn.00419331
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x423bad
test edi, edi
je 0x423bad
call esi
test eax, eax
je 0x423ba4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x423ba4
test byte [ebp - 0xc], 1
jne 0x423bad
or dword [ebp + 0x10], 0x200000
jmp 0x423be6
mov eax, dword [0x4387a0]
cmp eax, ebx
je 0x423be6
push eax
call fcn.00419331
pop ecx
test eax, eax
je 0x423be6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x423be6
mov eax, dword [0x4387a4]
cmp eax, ebx
je 0x423be6
push eax
call fcn.00419331
pop ecx
test eax, eax
je 0x423be6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43879c]
call fcn.00419331
pop ecx
test eax, eax
je 0x423c06
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x423c08
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x143b6a7b
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x39b96545
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219