joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4230d5
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
push edi
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
mov ebx, ecx
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x423155
lea eax, [ebp - 0x224]
push 0x45d7f4
push eax
call fcn.0044925f
test eax, eax
pop ecx
pop ecx
je 0x423143
lea eax, [ebp - 0x224]
push 0x4604d0
push eax
call fcn.0044925f
test eax, eax
pop ecx
pop ecx
je 0x423143
push dword [ebp + 0x10]
lea eax, [ebp - 0x224]
push dword [ebp + 0xc]
push eax
call fcn.00414bd2
add esp, 0xc
test al, al
je 0x423169
lea eax, [ebp - 0x250]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x4230fc
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp byte [ebp + 0x14], 0
jne 0x423170
mov al, 1
jmp 0x423206
xor bl, bl
jmp 0x4231fd
lea eax, [ebp - 0x250]
push eax
push 0x4604d8
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x4231fb
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
test byte [ebp - 0x250], 0x10
je 0x4231e9
lea eax, [ebp - 0x224]
push 0x45d7f4
push eax
call fcn.0044925f
test eax, eax
pop ecx
pop ecx
je 0x4231e9
lea eax, [ebp - 0x224]
push 0x4604d0
push eax
call fcn.0044925f
test eax, eax
pop ecx
pop ecx
je 0x4231e9
lea eax, [ebp - 0x224]
push eax
call esi
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004230d5
test al, al
je 0x423169
push 0x4604d0
call esi
lea eax, [ebp - 0x250]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x42318b
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x424856
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa2c
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xa2c]
push eax
mov esi, 0x104
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
test eax, eax
je 0x4249cc
push ebx
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x20c]
push str.___s
push eax
call fcn.004493ce
lea eax, [ebp - 0x20c]
push eax
call fcn.004493b8
add esp, 0x10
xor ebx, ebx
cmp word [ebp + eax*2 - 0x20e], 0x5c
jne 0x4248e4
lea eax, [ebp - 0x20c]
push eax
call fcn.004493b8
cmp word [ebp + eax*2 - 0x210], 0x3a
pop ecx
je 0x4248e4
lea eax, [ebp - 0x20c]
push eax
call fcn.004493b8
pop ecx
mov word [ebp + eax*2 - 0x20e], bx
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x4248fb
cmp byte [ebp + 0x10], bl
je 0x4249cb
push edi
push ebx
push 0x2200000
push 3
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42492b
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
xor eax, eax
jmp 0x4249ca
push 0x14
lea eax, [ebp - 0x824]
push ebx
push eax
call fcn.00449660
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x824], 0xa0000003
call fcn.004493b8
shl eax, 1
mov word [ebp - 0x81a], ax
mov eax, dword [ebp - 0x81a]
add eax, 2
mov word [ebp - 0x818], ax
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x814]
push eax
call fcn.004497d7
mov eax, dword [ebp - 0x81a]
add esp, 0x1c
push ebx
add eax, 0xc
mov word [ebp - 0x820], ax
lea ecx, [ebp - 4]
push ecx
push ebx
movzx eax, ax
push ebx
add eax, 8
push eax
lea eax, [ebp - 0x824]
push eax
push 0x900a4
push edi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
push edi
jne 0x4249c1
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x42491b
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x425639
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
lea eax, [ebp - 0x258]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ecx
call esi
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 4], ebx
jne 0x42566a
xor al, al
jmp 0x425787
push edi
lea eax, [ebp - 0x22c]
push 0x45d7f4
push eax
call fcn.0044925f
test eax, eax
mov edi, dword [sym.imp.KERNEL32.DLL_FindClose]
pop ecx
pop ecx
je 0x4256c8
lea eax, [ebp - 0x22c]
push 0x4604d0
push eax
call fcn.0044925f
test eax, eax
pop ecx
pop ecx
je 0x4256c8
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
or eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
not ecx
and eax, ecx
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
je 0x4256ea
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x42566b
push ebx
call edi
cmp byte [ebp + 0x14], 0
jne 0x4256f1
mov al, 1
jmp 0x425786
xor bl, bl
jmp 0x42577f
lea eax, [ebp - 0x258]
push eax
push 0x4604d8
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x42577d
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
test byte [ebp - 0x258], 0x10
je 0x425769
lea eax, [ebp - 0x22c]
push 0x45d7f4
push eax
call fcn.0044925f
test eax, eax
pop ecx
pop ecx
je 0x425769
mov ebx, 0x4604d0
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.0044925f
test eax, eax
pop ecx
pop ecx
je 0x425769
lea eax, [ebp - 0x22c]
push eax
call esi
push dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00425639
test al, al
je 0x4256ea
push ebx
call esi
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x42570d
mov bl, 1
push dword [ebp - 4]
call edi
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x426292
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push esi
push edi
push dword [ebp + 8]
lea esi, [ebp - 0xc]
mov dword [ebp - 0x10], ecx
call fcn.00416bfe
lea edi, [ebp - 0xc]
lea esi, [ebp - 0x20]
call fcn.00416c4c
push 0x4604d8
or eax, 0xffffffff
lea ecx, [ebp - 0xc]
call fcn.00416ee1
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0xc]
mov byte [ebp + 0xb], 1
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x4263f1
mov edi, dword [ebp + 0x10]
push ebx
mov esi, dword [ebp - 0x10]
call fcn.0042003a
cmp eax, 1
je 0x4263ec
cmp eax, 0xb
jne 0x42630a
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x4262ea
lea eax, [ebp - 0x244]
push 0x45d7f4
push eax
call fcn.0044925f
test eax, eax
pop ecx
pop ecx
je 0x4263d2
lea eax, [ebp - 0x244]
push 0x4604d0
push eax
call fcn.0044925f
test eax, eax
pop ecx
pop ecx
je 0x4263d2
lea ebx, [ebp - 0x20]
lea eax, [ebp - 0xc]
call fcn.00416f37
lea eax, [ebp - 0x244]
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0xc]
call fcn.00416ee1
test byte [ebp - 0x270], 0x10
je 0x4263aa
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp byte [ebp + 0x18], bl
je 0x426376
add dword [esi], 1
adc dword [esi + 4], ebx
cmp byte [ebp + 0x1c], bl
je 0x4263d2
push 0x45d09c
or eax, 0xffffffff
lea ecx, [ebp - 0xc]
call fcn.00416ee1
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x10]
push dword [ebp + 0x18]
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call fcn.00426292
cmp al, bl
mov byte [ebp + 0xb], al
je 0x4263f0
jmp 0x4263d2
mov eax, dword [ebp - 0x250]
mov edx, dword [ebp - 0x254]
xor ecx, ecx
xor esi, esi
or ecx, eax
mov eax, dword [ebp + 0xc]
or edx, esi
add dword [eax], ecx
adc dword [eax + 4], edx
cmp byte [ebp + 0x18], 0
je 0x4263d2
add dword [edi], 1
adc dword [edi + 4], esi
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x4262ea
jmp 0x4263f0
mov byte [ebp + 0xb], 0
pop ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_FindClose]
push dword [ebp - 0x20]
call fcn.00449078
push dword [ebp - 0xc]
call fcn.00449078
mov al, byte [ebp + 0xb]
pop ecx
pop ecx
pop edi
pop esi
leave
ret 0x18
Function at 0x42f602
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [ebp + 0xc]
or eax, 0xffffffff
mov word [esi], 2
call fcn.004168a2
pop ecx
mov ebx, eax
push ebx
call sub.WSOCK32.dll_inet_addr
push ebx
mov edi, eax
call fcn.00449078
cmp edi, 0xffffffff
pop ecx
jne 0x42f635
xor ecx, ecx
push 0
inc ecx
jmp 0x42f65c
cmp dword [ebp + 0x10], 0
mov dword [esi + 4], edi
jle 0x42f657
cmp dword [ebp + 0x10], 0xffff
jg 0x42f657
push dword [ebp + 0x10]
call sub.WSOCK32.dll_htons
mov word [esi + 2], ax
mov al, 1
jmp 0x42f666
push 0
push 2
pop ecx
mov eax, dword [ebp + 8]
call fcn.0042159c
xor al, al
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x430474
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
and dword [ebp - 8], 0
push ebx
push esi
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0x80004002
mov dword [ebp - 4], 0x28
call fcn.00416bde
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x10]
push eax
mov ebx, 0x20019
push ebx
push 0
push str.interface
mov edi, SysReAllocString
push edi
call esi
test eax, eax
je 0x4304c7
mov esi, 0x80004002
jmp 0x4305a5
lea eax, [ebp - 0x28]
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x430599
mov eax, dword [ebp - 4]
and word [ebp + eax*2 - 0x78], 0
push str.interface_
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 4], 0x1fe
call fcn.00416d00
lea eax, [ebp - 0x78]
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00416ee1
lea eax, [ebp - 0x14]
push eax
push ebx
push 0
push dword [ebp - 0x20]
push edi
call esi
test eax, eax
jne 0x430584
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x27c]
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43057b
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
and word [ebp + eax*2 - 0x27c], 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x27c]
push eax
call fcn.0044907d
test eax, eax
pop ecx
pop ecx
jne 0x43057b
push dword [ebp + 8]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.ole32.dll_IIDFromString]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x430599
inc dword [ebp - 8]
mov dword [ebp - 4], 0x28
jmp 0x4304c7
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0xc]
push dword [ebp - 0x20]
call fcn.00449078
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4305b5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.00416bde
fld1
lea eax, [ebp - 0xc]
fstp qword [ebp - 0x28]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromIID]
mov esi, eax
xor edi, edi
cmp esi, edi
jl 0x430753
push dword [ebp - 0xc]
call fcn.00416034
mov esi, eax
lea eax, [ebp - 0x20]
mov dword [esp], str.interface_
push eax
call fcn.00416d00
push esi
or eax, 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00416ee1
push str.TypeLib
or eax, 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00416ee1
push esi
call fcn.00449078
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 8]
push eax
push 0x20019
push edi
push dword [ebp - 0x20]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x430753
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push edi
push dword [ebp - 8]
mov dword [ebp - 4], 0x1fe
call ebx
mov esi, eax
cmp esi, edi
jne 0x43074a
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov word [ebp + eax*2 - 0x240], di
lea eax, [ebp - 0x240]
push eax
call fcn.00416034
pop ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
push dword [ebp - 0x14]
mov esi, eax
call fcn.00449078
cmp esi, edi
pop ecx
jl 0x43074a
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push str.Version
push dword [ebp - 8]
mov dword [ebp - 4], 0x1fe
call ebx
test eax, eax
jne 0x4306f5
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov word [ebp + eax*2 - 0x240], di
lea eax, [ebp - 0x240]
push eax
call fcn.004496c0
fstp qword [ebp - 0x28]
pop ecx
lea eax, [ebp - 0x10]
fld1
push eax
push edi
sub esp, 0x10
fstp qword [esp + 8]
fld qword [ebp - 0x28]
fstp qword [esp]
call fcn.0044b9a0
add esp, 0x10
call fcn.004581c4
fld qword [ebp - 0x28]
push eax
call fcn.004581c4
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
mov esi, eax
cmp esi, edi
jl 0x43074a
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x20]
call fcn.00449078
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x430763
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
xor esi, esi
push edi
lea ecx, [ebp - 0x24]
mov ebx, eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.00416bde
lea ecx, [ebp - 0x18]
call fcn.00416bde
lea ecx, [ebp - 0x30]
call fcn.00416bde
push str.SOFTWAREClasses_
lea eax, [ebp - 0x24]
push eax
call fcn.00416d00
push dword [ebp + 8]
or edi, 0xffffffff
mov eax, edi
lea ecx, [ebp - 0x24]
call fcn.00416ee1
push str.CLSID
mov eax, edi
lea ecx, [ebp - 0x24]
call fcn.00416ee1
push 0x45c6d0
lea eax, [ebp - 0x18]
push eax
call fcn.00416d00
cmp ebx, esi
je 0x4307f6
cmp word [ebx], 0x5c
je 0x4307f6
cmp word [ebx + 2], 0x5c
je 0x4307f6
push 0x4610d8
lea eax, [ebp - 0x18]
push eax
call fcn.00416d00
push ebx
mov eax, edi
lea ecx, [ebp - 0x18]
call fcn.00416ee1
cmp dword [ebp + 0x10], esi
je 0x430847
push 0x20
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.00449660
add esp, 0xc
lea ebx, [ebp - 0x18]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x4c], esi
call fcn.00416f37
push str.IPC_
mov eax, edi
lea ecx, [ebp - 0x30]
call fcn.00416ee1
mov eax, dword [ebp - 0x30]
push esi
push dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x50]
push eax
call sub.MPR.dll_WNetAddConnection2W
mov edi, eax
cmp edi, esi
jne 0x4308e3
lea eax, [ebp - 0xc]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov edi, eax
cmp edi, esi
jne 0x4308e3
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
push dword [ebp - 0x24]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x4308de
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x254]
push eax
push esi
push esi
push esi
push dword [ebp - 8]
mov dword [ebp - 4], 0x1fe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, esi
jne 0x4308d9
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov word [ebp + eax*2 - 0x254], si
lea eax, [ebp - 0x254]
push eax
call fcn.00416034
pop ecx
push dword [ebp + 0xc]
mov esi, eax
push esi
call dword [sym.imp.ole32.dll_CLSIDFromString]
push esi
mov edi, eax
call fcn.00449078
pop ecx
push dword [ebp - 8]
call ebx
push dword [ebp - 0xc]
call ebx
push dword [ebp - 0x30]
call fcn.00449078
push dword [ebp - 0x18]
call fcn.00449078
push dword [ebp - 0x24]
call fcn.00449078
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x436375
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x201c
call fcn.0044c070
push esi
push edi
lea ecx, [ebp - 0x10]
call fcn.00416bde
lea ecx, [ebp - 0x1c]
call fcn.00416bde
mov esi, dword [ebp + 8]
xor edi, edi
call fcn.004184a9
mov esi, eax
mov ax, word [esi]
test ax, ax
mov byte [ebp - 1], 0
je 0x4364b4
push ebx
mov ebx, 0x4617a8
inc edi
cmp ax, 0x25
jne 0x43646e
cmp word [esi + edi*2], ax
jne 0x4363db
push 0x25
lea eax, [ebp - 0x10]
mov byte [ebp - 1], 1
call fcn.00416d7e
inc edi
jmp 0x436477
push 0x45c6d0
lea eax, [ebp - 0x1c]
push eax
call fcn.00416d00
jmp 0x4363fa
test ax, ax
je 0x436406
push eax
lea eax, [ebp - 0x1c]
call fcn.00416d7e
inc edi
xor eax, eax
mov ax, word [esi + edi*2]
cmp ax, 0x25
jne 0x4363eb
cmp word [esi + edi*2], 0
je 0x436486
and word [ebp - 0x201c], 0
push 0xfff
lea eax, [ebp - 0x201c]
push eax
push dword [ebp - 0x1c]
inc edi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
test eax, eax
lea ecx, [ebp - 0x10]
je 0x436447
lea eax, [ebp - 0x201c]
push eax
or eax, 0xffffffff
call fcn.00416ee1
mov byte [ebp - 1], 1
jmp 0x436477
push ebx
or eax, 0xffffffff
mov byte [ebp - 1], 1
call fcn.00416ee1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
call fcn.00416d3b
push ebx
or eax, 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00416ee1
jmp 0x436477
push eax
lea eax, [ebp - 0x10]
call fcn.00416d7e
mov ax, word [esi + edi*2]
test ax, ax
jne 0x4363b6
jmp 0x4364a2
push ebx
or eax, 0xffffffff
lea ecx, [ebp - 0x10]
mov byte [ebp - 1], 1
call fcn.00416ee1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
call fcn.00416d3b
cmp byte [ebp - 1], 0
je 0x4364b3
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x10]
call fcn.00418b0c
pop ebx
push dword [ebp - 0x1c]
call fcn.00449078
push dword [ebp - 0x10]
call fcn.00449078
pop ecx
pop ecx
pop edi
pop esi
leave
ret 4
Function at 0x43903b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push str.open
lea esi, [ebp - 0x14]
mov edi, eax
call fcn.00416bfe
xor ebx, ebx
push 0x3c
xor esi, esi
lea eax, [ebp - 0x50]
push ebx
inc esi
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esi
call fcn.00449660
add esp, 0xc
cmp dword [ebp + 0x10], 2
jb 0x4390ad
cmp dword [edi + 0xc], esi
ja 0x43907d
lea esi, [edi + 0x18]
jmp 0x439083
mov eax, dword [edi + 8]
mov esi, dword [eax + 4]
call fcn.004184a9
cmp word [eax], 0
je 0x4390ad
cmp dword [edi + 0xc], 1
ja 0x439099
lea esi, [edi + 0x18]
jmp 0x43909f
mov eax, dword [edi + 8]
mov esi, dword [eax + 4]
call fcn.004184a9
push eax
call fcn.00416034
pop ecx
mov ebx, eax
cmp dword [ebp + 0x10], 3
jb 0x4390d3
cmp dword [edi + 0xc], 2
ja 0x4390be
lea esi, [edi + 0x18]
jmp 0x4390c4
mov eax, dword [edi + 8]
mov esi, dword [eax + 8]
call fcn.004184a9
push eax
call fcn.00416034
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 4
jb 0x439115
cmp dword [edi + 0xc], 3
ja 0x4390e4
lea esi, [edi + 0x18]
jmp 0x4390ea
mov eax, dword [edi + 8]
mov esi, dword [eax + 0xc]
call fcn.004184a9
cmp word [eax], 0
je 0x439115
cmp dword [edi + 0xc], 3
ja 0x439100
lea esi, [edi + 0x18]
jmp 0x439106
mov eax, dword [edi + 8]
mov esi, dword [eax + 0xc]
call fcn.004184a9
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00416d00
cmp dword [ebp + 0x10], 5
jb 0x439137
cmp dword [edi + 0xc], 4
ja 0x439126
lea eax, [edi + 0x18]
jmp 0x43912c
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x10]
call fcn.0041858e
movzx eax, ax
mov dword [ebp - 8], eax
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00449660
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x14]
add esp, 0xc
cmp dword [edi + 0xc], 0
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], 0x40
mov dword [ebp - 0x44], eax
ja 0x439168
lea esi, [edi + 0x18]
jmp 0x43916d
mov eax, dword [edi + 8]
mov esi, dword [eax]
call fcn.004184a9
mov edi, dword [ebp - 4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test ebx, ebx
mov esi, eax
je 0x43919b
push ebx
call fcn.00449078
pop ecx
test edi, edi
je 0x4391a6
push edi
call fcn.00449078
pop ecx
test esi, esi
jne 0x4391ef
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0x294], 1
jne 0x4391cb
push 0xffffffffffffffff
call fcn.0041fe6d
push eax
push 0x87
call fcn.0041fcd4
inc esi
jmp 0x4391e3
xor ecx, ecx
push 0
inc ecx
mov eax, ebx
call fcn.0042159c
mov esi, dword [ebp + 0x14]
push 0
call fcn.00418a14
xor esi, esi
push dword [ebp - 0x14]
call fcn.00449078
mov eax, esi
jmp 0x439226
cmp byte [ebp + 0xc], 0
je 0x439203
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x810], eax
jmp 0x43921c
mov esi, dword [ebp + 0x14]
push 1
call fcn.00418a14
cmp dword [ebp - 0x18], 0
je 0x43921c
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x14]
call fcn.00449078
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x43cb9b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
je 0x43cc23
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileType]
cmp eax, 1
jne 0x43cc23
mov esi, dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push eax
xor ebx, ebx
push ebx
push ebx
push edi
call esi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], eax
je 0x43cbf7
cmp dword [ebp + 0x10], ebx
jbe 0x43cbf7
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x43cbef
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
jmp 0x43cc25
push ebx
push ebx
push dword [ebp - 4]
push edi
call esi
cmp dword [ebp + 0x18], ebx
je 0x43cc17
push 2
push ebx
push ebx
push edi
call esi
push ebx
push ebx
push dword [ebp - 4]
mov edi, eax
push dword [ebp + 8]
call esi
sub edi, dword [ebp - 4]
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
inc eax
jmp 0x43cc2d
push 6
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x441922
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
inc esi
mov dword [0x477a30], eax
push edi
mov edx, esi
mov eax, 0x477a30
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x4783ec
jl 0x441933
pop edi
mov dword [0x4672d0], esi
mov dword [0x47840c], esi
pop esi
ret

Function at 0x441961
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
cmp dword [0x47840c], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x477a30
jne 0x441981
push 0
call fcn.0044b9d2
pop ecx
call fcn.00441922
mov dword [0x4672d0], 0x270
mov dword [0x477a28], esi
mov edx, 0xe3
mov ecx, SysReAllocString
mov eax, 0x9908b0df
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi + 0x634]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x4419a0
mov edx, 0x18c
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi - 0x38c]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x4419d6
mov edx, dword [0x477a30]
mov edi, dword [esi]
xor edi, edx
and edi, ecx
xor edi, dword [esi]
and dl, 1
shr edi, 1
neg dl
sbb edx, edx
and edx, eax
xor edi, edx
xor edi, dword [esi - 0x38c]
mov dword [esi], edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret