joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4184f0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445836
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x465054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x28]
push esi
call fcn.00416d70
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp - 0x28]
call fcn.00416d70
lea eax, [esi + 0x30]
push eax
lea ecx, [ebp - 0x28]
call fcn.00416d70
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov dword [edi], 0
cmovae edx, dword [ebp - 0x28]
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4185a3
sub eax, esi
mov ecx, edi
sar eax, 1
push eax
push edx
call fcn.00409b80
mov dword [ebp - 0x2c], 1
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4185ff
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4185f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418632
push edx
push ecx
call fcn.00423548
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042353a
mov esp, ebp
pop ebp
ret 4
call fcn.0042802f
int3
Function at 0x41a770
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44607d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x465054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0
lea eax, [ebx + 0x68]
mov dword [ebx], 0x454948
lea esi, [ebx + 0x10]
mov dword [esi], 0x454950
mov dword [ebp - 0x18], eax
mov dword [eax], vtable.std::ios_base.0
mov dword [eax + 8], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov dword [ebp - 4], 0
mov dword [eax], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 1
sub esp, 8
lea edi, [ebx + 0x18]
mov dword [ebp - 0x10], 1
push edi
call fcn.004038f0
mov dword [ebp - 4], 4
mov dword [ebp - 0x18], esi
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + esi - 4], eax
mov dword [ebp - 4], 7
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + ebx - 4], eax
mov dword [ebp - 4], 8
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], edi
lea eax, [ecx - 0x68]
mov dword [ecx + ebx - 4], eax
mov ecx, edi
call fcn.00403aa0
mov byte [ebp - 4], 9
mov dword [edi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41cfc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44650c
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x465054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov edx, dword [ebp + 8]
push str._messages
call fcn.0040a0f0
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [edi + 0x18]
mov dword [ebp - 0x18], ecx
mov dword [ecx + 0x24], 0
mov byte [ebp - 4], 1
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x41d06d
cmp eax, ebx
jne 0x41d063
mov eax, dword [eax]
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x448280]
mov ecx, dword [ebp - 0x10]
call esi
mov dword [edi + 0x3c], eax
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x41d06d
mov edx, dword [eax]
cmp eax, ebx
setne al
movzx eax, al
mov esi, dword [edx + 0x10]
mov ecx, esi
push eax
call dword [0x448280]
mov ecx, dword [ebp - 0x10]
call esi
jmp 0x41d066
mov dword [ecx + 0x24], eax
mov dword [ebx + 0x24], 0
mov byte [ebp - 4], 2
lea eax, [edi + 0x40]
push 2
push eax
mov dword [ebp - 0x14], eax
call fcn.00422b34
mov byte [ebp - 4], 4
lea eax, [edi + 0x70]
push eax
call fcn.00422cfe
add esp, 0xc
mov byte [ebp - 4], 5
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x14]
mov dword [edi + 0x98], 0
mov dword [ebp - 0x10], edi
call fcn.0041d690
mov byte [ebp - 4], 6
mov ebx, dword [eax]
mov dword [eax], 0
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x41d0d0
push 4
push eax
call fcn.00423548
add esp, 8
lea esi, [edi + 0xa0]
push esi
push 0
push ebx
push 0x41d710
push 0
push 0
call fcn.0042cc1c
add esp, 0x18
mov dword [edi + 0x9c], eax
test eax, eax
je 0x41d119
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 6
mov dword [esi], 0
call fcn.004227b1
int3
Function at 0x41d840
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x465054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, edx
mov esi, ecx
push ebx
push esi
mov dword [ebp - 0x220], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x41da1c
lea eax, [ebp - 0x218]
push eax
push 0x20019
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41d8c1
cmp eax, 2
jne 0x41d8a1
push str.Key_not_found._n
call fcn.0041dae0
add esp, 4
jmp 0x41da1c
push str.Error_opening_key._n
call fcn.0041dae0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042353a
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebx + eax*2 - 2], 0x5c
lea edi, [ebx + eax*2]
mov dword [ebp - 0x21c], edi
je 0x41d8ef
mov eax, 0x5c
mov word [edi], ax
add edi, 2
xor eax, eax
mov dword [ebp - 0x21c], edi
mov word [edi], ax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x214], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41d9fa
nop word [eax + eax]
xor eax, eax
mov ecx, 0x208
mov word [edi], ax
mov eax, ebx
nop dword [eax]
cmp word [eax], 0
je 0x41d94e
add eax, 2
sub ecx, 1
jne 0x41d940
mov eax, 0x208
mov esi, ecx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x41d9ac
mov edx, 0x208
lea ecx, [ebx + esi*2]
sub edx, esi
je 0x41d99f
lea edi, [ebp - 0x210]
mov eax, 0x7ffffffe
sub edi, ecx
nop word [eax + eax]
test eax, eax
je 0x41d999
movzx esi, word [edi + ecx]
test si, si
je 0x41d999
mov word [ecx], si
dec eax
add ecx, 2
sub edx, 1
jne 0x41d980
mov edi, dword [ebp - 0x21c]
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov esi, dword [ebp - 0x220]
mov edx, ebx
mov ecx, esi
call fcn.0041d840
test eax, eax
je 0x41d9fa
lea eax, [ebp - 0x228]
mov dword [ebp - 0x214], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x41d930
xor eax, eax
mov word [edi - 2], ax
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x41d8ae
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042353a
mov esp, ebp
pop ebp
ret
Function at 0x41ece0
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446ab8
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x465054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41ed1b
mov eax, dword [esi]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ecx
push eax
lea ecx, [ebp - 0x4c]
call fcn.00420000
mov dword [ebp - 4], 0
mov ecx, esi
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x4c]
sub eax, edx
sar eax, 1
cmp dword [esi + 0x14], 8
jb 0x41ed4b
mov ecx, dword [esi]
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
lea eax, [edx + eax*2]
mov dword [ebp - 0x14], 0
cmp eax, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
cmovb ecx, eax
xor eax, eax
mov word [ebp - 0x28], ax
cmp edx, ecx
je 0x41ed9d
sub ecx, edx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00409b80
mov byte [ebp - 4], 1
push ecx
lea ecx, [ebp - 0xfc]
call fcn.0041a770
mov byte [ebp - 4], 2
mov edx, edi
lea ecx, [ebp - 0xec]
call fcn.00406740
mov edx, 0x45c3d8
mov ecx, eax
call fcn.00406890
lea edx, [ebp - 0x28]
mov ecx, eax
call fcn.00406740
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xfc]
call fcn.0041a670
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x41edef
mov eax, dword [eax]
cmp dword [esi + 0x14], 8
jb 0x41edf7
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.0040abb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xfc]
call fcn.004049a0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41ee54
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41ee4a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ee92
push edx
push ecx
call fcn.00423548
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004200c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042353a
mov esp, ebp
pop ebp
ret
call fcn.0042802f
int3
Function at 0x41eea0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], 0x5c
mov esi, ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test edi, edi
je 0x41ef00
cmp word [ebx + edi*2 - 2], 0x5c
lea ebx, [ebx + edi*2]
je 0x41eef7
sub esi, edi
cmp esi, 1
jb 0x41ef00
mov eax, 2
lea edx, [ebp - 4]
cmp esi, eax
lea ecx, [ebp - 4]
push ebx
cmova esi, eax
lea edx, [edx + esi*2]
call fcn.00413780
sub eax, ebx
dec edi
sar eax, 1
add esp, 4
add edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.insufficient_buffer_length
lea ecx, [ebp - 0x10]
call fcn.00420340
push 0x463084
lea eax, [ebp - 0x10]
push eax
call fcn.00424ffc
int3
Function at 0x4206b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
lea ebx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4206c0
sub eax, ebx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 8]
push 1
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop ebp
ret

Function at 0x434387
Capabilities:
Read file on windows

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

Function at 0x434392
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004341c2
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x40a114]
shl eax, 2
mov dword [0x40a118], eax
push edi
push ecx
xor eax, eax
mov edi, 0x40c5a4
mov ecx, 0x40fe2c
cmp ecx, edi
jbe 0x401024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0040277c
pop edx
call fcn.00401954
call fcn.00402780
push 0
call fcn.00403464
pop ecx
push 0x40a0dc
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x40a11c], eax
push 0
jmp fcn.00407d7c

Function at 0x40244c
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x403710
call fcn.00404a0c
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x40372c
test bl, 1
je 0x40372c
call fcn.004072d0
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4038f8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.004045e0
test byte [ebp + 0xd], 0xc0
jne 0x40391c
mov eax, dword [0x40ad04]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x403929
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x403956
je 0x403968
sub ecx, 0x100
je 0x403976
sub ecx, 0x100
je 0x40397d
sub ecx, 0x100
je 0x40396f
jmp 0x403984
sub ecx, 0x600
je 0x40397d
sub ecx, 0x100
je 0x403968
jmp 0x403984
mov edi, 1
jmp 0x403989
mov edi, 2
jmp 0x403989
mov edi, 4
jmp 0x403989
mov edi, 5
jmp 0x403989
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4039b0
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x40a780]
test al, 0x80
je 0x4039a9
mov ebx, 0x80
jmp 0x4039c2
mov ebx, 1
jmp 0x4039c2
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4039c2
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4039d4
je 0x4039dd
dec eax
je 0x4039e6
jmp 0x4039ef
mov dword [ebp - 4], 0x80000000
jmp 0x4039fe
mov dword [ebp - 4], 0x40000000
jmp 0x4039fe
mov dword [ebp - 4], 0xc0000000
jmp 0x4039fe
push 1
call fcn.004049a0
pop ecx
mov ebx, eax
jmp 0x403aea
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x403a1a
sub eax, 0x10
je 0x403a21
sub eax, 0x10
je 0x403a2a
sub eax, 0x10
je 0x403a33
jmp 0x403a33
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x403a3a
mov dword [ebp - 8], 1
jmp 0x403a3a
mov dword [ebp - 8], 2
jmp 0x403a3a
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x403aa3
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x403a98
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x403a98
add ebx, 0xffffffb2
push ebx
call fcn.004049a0
pop ecx
mov ebx, eax
jmp 0x403aea
mov edi, esi
push edi
call fcn.0040385c
pop ecx
test eax, eax
je 0x403ab7
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x403ac3
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004046e0
add esp, 8
mov ebx, eax
inc eax
jne 0x403aea
push 4
call fcn.004049a0
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.00404614
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406fdc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x40babc], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x407094
cmp byte [0x40a113], 0
je 0x40704e
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.00406f28
add esp, 8
mov ebx, eax
test eax, eax
jne 0x407037
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.00406f28
add esp, 8
mov ebx, eax
test eax, eax
jne 0x407037
lea ebx, [ebp - 0x54]
jmp 0x407038
inc ebx
call fcn.00406f94
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4070b5
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x40bac0
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00402924
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x40bac3
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4070b5
cmp dword [0x40babc], 0xffffffff
je 0x4070b5
mov eax, dword [0x40babc]
test eax, eax
je 0x4070b5
cmp byte [eax], 0
je 0x4070b5
push esi
push eax
call fcn.00407134
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407134
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x407196
call fcn.004070e4
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00402924
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00402924
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x407770
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x40cdb8], 0
jne 0x4077f1
cmp dword [0x40cdd4], 0
jne 0x4077a0
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x40cdd4], eax
test eax, eax
jne 0x4077a0
push str.GetEnvironmentStrings_failed
call fcn.004070cc
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x40cdd4]
jmp 0x4077b4
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00402924
pop ecx
mov edi, eax
test eax, eax
jne 0x4077ac
lea edi, [ebp + 1]
push edi
call fcn.00401864
pop ecx
mov ebx, eax
mov dword [0x40cdbc], ebx
test ebx, ebx
jne 0x4077de
xor eax, eax
jmp 0x4078b4
push edi
mov edx, dword [0x40cdd4]
push edx
push ebx
call fcn.004027a4
add esp, 0xc
jmp 0x407811
xor esi, esi
mov ebx, dword [0x40cdb8]
jmp 0x40780b
push eax
call fcn.00402924
pop ecx
test eax, eax
jne 0x407807
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4077fb
lea ebx, [esi + 4]
push 4
mov dword [0x40cdc0], ebx
inc ebx
push ebx
call fcn.004014ec
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x407834
xor eax, eax
jmp 0x4078b4
cmp dword [0x40cdb8], 0
jne 0x407865
xor esi, esi
mov ebx, dword [0x40cdbc]
mov eax, dword [esp]
mov ebp, eax
jmp 0x407856
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00402924
pop ecx
mov edi, eax
test eax, eax
jne 0x40784c
jmp 0x407896
xor esi, esi
mov ebx, dword [0x40cdb8]
mov eax, dword [esp]
mov edi, eax
jmp 0x407890
push eax
call fcn.00402924
pop ecx
test eax, eax
je 0x407885
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x407889
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x407874
mov eax, dword [0x40cdb8]
test eax, eax
je 0x4078a6
push eax
call fcn.00401874
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x40cdb8], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
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
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x73265ee6
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x9ce3ece
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x430004
Capabilities:
Encode data using xor

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

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx