joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a75e2
Capabilities:
Create process on windows
Get common file path
Get program files directory

Disassembly:
push 0x210
mov eax, 0x4deb4f
call fcn.004a889a
mov esi, dword [ebp + 8]
push 1
push 0
push esi
push 0x4ef6cc
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ebx, ebx
cmp eax, 0x20
setg bl
jle 0x4a7452
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x483
jne 0x4a74ce
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004bfbc0
add esp, 0xc
lea eax, [ebp - 0x218]
push ebx
push 0x26
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.00401d81
push eax
lea ecx, [ebp - 0x21c]
call fcn.004a7288
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x21c]
push str.__sInternet_Exploreriexplore.exe_
push eax
call fcn.004a7344
add esp, 0xc
push 1
push ebx
push esi
mov esi, dword [ebp - 0x21c]
push esi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
lea ecx, [esi - 0x10]
setg bl
call fcn.004a759f
mov eax, ebx
call fcn.004a8855
ret
push ebp
mov ebp, esp
push 1
xor eax, eax
push eax
push eax
push dword [ebp + 8]
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x4a7605
pop ebp
jmp 0x4a7412
pop ebp
ret

Function at 0x4a781b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x4debbd
call fcn.004a8866
and dword [ebp - 0x20], 0
xor eax, eax
mov ebx, dword [ebp + 8]
and dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
and dword [ebp - 4], eax
push 0x208
mov dword [ebp - 0x20], 1
call fcn.004a89a5
mov edx, eax
xor eax, eax
pop ecx
mov ecx, 0x82
mov dword [ebp - 0x14], edx
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, 0x20019
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x18]
push eax
push edi
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4a7921
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x104
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4a7918
cmp dword [ebp - 0x10], 0x104
jbe 0x4a78e9
push dword [ebp - 0x14]
call fcn.004a89ae
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a89a5
mov edi, eax
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x14], edi
push eax
push esi
push edi
call fcn.00403c7f
add esp, 0x14
jmp 0x4a78ec
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push edi
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov ecx, ebx
mov esi, eax
push edi
call fcn.00401b3a
push edi
call fcn.004a89ae
mov edi, dword [ebp - 0x1c]
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
pop eax
cmp esi, eax
jne 0x4a7943
cmp dword [ebp + 0xc], reloc.OLEAUT32.dll_SysReAllocString
jne 0x4a7943
cmp edi, 0x20019
jne 0x4a7943
mov edi, 0x20119
jmp 0x4a7868
mov eax, ebx
call fcn.004a8840
ret
Function at 0x4a7b32
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5090b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4a7bb8
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.004bfbc0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4a7bb8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4a7bad
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004c4048
pop ecx
pop ecx
test eax, eax
je 0x4a7bc8
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4a7b8d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a7f49
leave
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x228]
jmp 0x4a7bba

Function at 0x4a7d59
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor edx, edx
push 2
mov byte [ebp - 1], dl
pop ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, ebx
cmp ax, dx
jne 0x4a7d6e
push dword [ebp + 8]
sub edi, ecx
sar edi, 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a7d90
mov al, 1
jmp 0x4a7e21
push esi
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a89a5
push esi
mov ebx, eax
push 0
push ebx
call fcn.00403c7f
push dword [ebp + 8]
push esi
push ebx
call fcn.004cce22
add esp, 0x1c
xor esi, esi
movzx eax, word [ebx + esi*2]
cmp eax, 0x5c
je 0x4a7dcf
cmp eax, 0x2f
jne 0x4a7e0b
mov dword [ebp - 8], eax
xor eax, eax
push ebx
mov word [ebx + esi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a7e04
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4a7e12
mov eax, dword [ebp + 0xc]
mov byte [ebp - 1], 1
cmp dword [eax + 0x24], 0
je 0x4a7e04
push ebx
mov ecx, eax
call fcn.004a7d3c
mov eax, dword [ebp - 8]
mov word [ebx + esi*2], ax
inc esi
cmp esi, edi
jbe 0x4a7dc1
jmp 0x4a7e16
mov byte [ebp - 1], 0
push ebx
call fcn.004a89ae
mov al, byte [ebp - 1]
pop ecx
pop esi
pop edi
pop ebx
leave
ret
Function at 0x4a7ebb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5090b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], esi
push edi
push eax
call fcn.004bfbc0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 0xc]
or eax, 0x8000
cmp byte [ebp + 0x10], 0
push edi
cmove eax, dword [ebp + 0xc]
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4a7f26
xor eax, eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x4a7f34
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00401baf
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004a7f49
leave
ret

Function at 0x4aa0ee
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4d1891
Capabilities:
Read file on windows

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

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

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
Function at 0x4039d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4039e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4039fd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403a1e
cmp esi, eax
jae 0x4039f7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403a10
cmp esi, eax
jae 0x4039f7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x404d90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
push esi
lea eax, [esp + 8]
push eax
push 1
xor esi, esi
push esi
push str.SYSTEMCurrentControlSetServicesWinUSBEnum
push 0x80000002
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404dc3
xor eax, eax
pop esi
add esp, 0x214
ret
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea ebx, [ebx]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x14]
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x12c]
push ecx
push esi
push edx
mov dword [esp + 0x30], 0x104
mov dword [esp + 0x34], 0x80
call edi
test eax, eax
jne 0x404e49
push 5
lea eax, [esp + 0x11c]
push str.Count
push eax
call fcn.00414e35
add esp, 0xc
test eax, eax
je 0x404e3e
push 0x15
lea ecx, [esp + 0x1c]
push 0x42fd88
push ecx
call fcn.00414e35
add esp, 0xc
test eax, eax
jne 0x404e3e
inc dword [esp + 8]
inc esi
cmp esi, 0x83
jb 0x404dd0
jmp 0x404e72
cmp eax, 0x103
je 0x404e72
push 0
push 0x80
lea edx, [esp + 0xa0]
push edx
push 0x400
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x214
ret
Function at 0x40a4d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x42cf7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ebp, 0xf
mov dword [esp + 0x70], ebx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
lea ecx, [esp + 0x10]
mov byte [esp + 0x70], 2
call fcn.00404bb0
push ebx
push 0x42f872
lea ecx, [esp + 0x1c]
mov byte [esp + 0x78], 3
call fcn.00402ab0
push ebx
push 0x42f872
mov ecx, 0x43cff8
call fcn.00402ab0
movzx edi, word [esp + 0x7a]
xor esi, esi
cmp edi, ebx
mov byte [0x43d014], bl
jle 0x40a5bc
movzx eax, byte [esp + esi + 0x7d]
push eax
push 0x4305b0
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00411850
add esp, 0x10
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x7c], 4
call fcn.00402740
cmp dword [esp + 0x64], 0x10
mov byte [esp + 0x70], 3
jb 0x40a59a
mov eax, dword [esp + 0x50]
push eax
call fcn.00426c0e
add esp, 4
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.004028b0
inc esi
cmp esi, edi
jl 0x40a552
cmp dword [esp + 0x28], ebx
jbe 0x40a5db
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x1c]
push edx
mov ecx, 0x43cff8
call fcn.00402740
mov byte [0x43d014], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x70], 2
call fcn.00412120
mov eax, dword [esp + 0x48]
mov esi, 0x10
cmp eax, esi
jb 0x40a603
mov eax, dword [esp + 0x34]
push eax
call fcn.00426c0e
add esp, 4
cmp dword [esp + 0x2c], esi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
jb 0x40a622
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00426c0e
add esp, 4
mov eax, dword [esp + 0x80a0]
pop edi
cmp eax, esi
pop esi
mov dword [esp + 0x24], ebp
pop ebp
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xc], bl
pop ebx
jb 0x40a64d
mov edx, dword [esp + 0x807c]
push edx
call fcn.00426c0e
add esp, 4
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret 0x8034
Function at 0x40a660
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x42cfc3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor ebx, ebx
push ebx
mov esi, 0xf
push 0x42f872
lea ecx, [esp + 0x18]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00402ab0
push ebx
push 0x42f872
lea ecx, [esp + 0x34]
mov byte [esp + 0x90], 1
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
call fcn.00402ab0
push ebx
push 0x42f872
lea ecx, [esp + 0x50]
mov byte [esp + 0x90], 2
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
call fcn.00402ab0
push 0x43cee0
mov eax, 0x800c
mov byte [esp + 0x8c], 3
lea esi, [esp + 0x94]
call fcn.00413f30
mov edi, esp
mov ecx, 0x2003
lea eax, [esp + 0x8074]
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, 0x43ccd0
call fcn.00407760
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x94], 4
call fcn.00402740
cmp dword [esp + 0x7c], 0x10
mov byte [esp + 0x88], 3
jb 0x40a757
mov ecx, dword [esp + 0x68]
push ecx
call fcn.00426c0e
add esp, 4
cmp byte [ebp + 0xee], bl
je 0x40a777
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x18]
push edx
mov ecx, 0x43ccd0
mov byte [ebp + 0xee], bl
call fcn.00402740
push 0x43cee0
mov eax, 0x800c
lea esi, [esp + 0x94]
call fcn.00413f30
mov edi, esp
mov ecx, 0x2003
lea eax, [esp + 0x8074]
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, 0x43ccd0
call fcn.00407760
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x43ccd0
mov byte [esp + 0x94], 5
call fcn.00402740
mov eax, dword [esp + 0x7c]
mov esi, 0x10
cmp eax, esi
mov byte [esp + 0x88], 3
jb 0x40a7e0
mov ecx, dword [esp + 0x68]
push ecx
call fcn.00426c0e
add esp, 4
cmp byte [0x43cfed], bl
je 0x40a7fa
push 0x23
push str.Tube_and_Interlock_Table_Received_r_n
lea ecx, [esp + 0x34]
call fcn.00402ab0
jmp 0x40a801
mov byte [0x43cfee], 1
cmp dword [esp + 0x60], esi
jb 0x40a814
mov edx, dword [esp + 0x4c]
push edx
call fcn.00426c0e
add esp, 4
cmp dword [esp + 0x44], esi
mov edi, 0xf
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
jb 0x40a838
mov eax, dword [esp + 0x30]
push eax
call fcn.00426c0e
add esp, 4
cmp dword [esp + 0x28], esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
jb 0x40a857
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00426c0e
add esp, 4
cmp dword [esp + 0x80b8], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
jb 0x40a87c
mov edx, dword [esp + 0x80a4]
push edx
call fcn.00426c0e
add esp, 4
mov ecx, dword [esp + 0x80]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x7c
ret 0x8034
Function at 0x40d320
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42d528
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
lea ecx, [esp + 0xc]
mov byte [esp + 0x6c], 1
call fcn.00404bb0
mov eax, dword [esp + 0x80]
push eax
push str.__._df
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x7c], 2
call fcn.00411850
add esp, 0x10
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x78], 3
call fcn.00402740
mov eax, dword [esp + 0x60]
mov esi, 0x10
cmp eax, esi
mov byte [esp + 0x6c], 2
jb 0x40d3c6
mov eax, dword [esp + 0x4c]
push eax
call fcn.00426c0e
add esp, 4
cmp dword [esp + 0x28], esi
mov eax, dword [esp + 0x14]
jae 0x40d3d4
lea eax, [esp + 0x14]
fld qword [esp + 0x78]
sub esp, 8
fstp qword [esp]
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00411850
add esp, 0x14
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x78], 4
call fcn.00402740
cmp dword [esp + 0x60], esi
mov byte [esp + 0x6c], 2
jb 0x40d41b
mov eax, dword [esp + 0x4c]
push eax
call fcn.00426c0e
add esp, 4
cmp dword [esp + 0x44], esi
mov eax, dword [esp + 0x30]
jae 0x40d429
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x74]
push eax
push ecx
mov ecx, edi
call fcn.00426489
mov ecx, eax
call fcn.00426562
lea ecx, [esp + 0xc]
mov byte [esp + 0x6c], 1
call fcn.00412120
cmp dword [esp + 0x28], esi
jb 0x40d45e
mov edx, dword [esp + 0x14]
push edx
call fcn.00426c0e
add esp, 4
mov eax, dword [esp + 0x44]
pop edi
cmp eax, esi
pop esi
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xc], bl
mov dword [esp + 0x20], 0xf
pop ebx
jb 0x40d486
mov eax, dword [esp + 0x24]
push eax
call fcn.00426c0e
add esp, 4
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret 0x10
Function at 0x40d4a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42d581
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push ebp
xor ebx, ebx
mov dword [esp + 0xc], ebx
push esi
mov ebp, 0xf
push edi
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov dword [esp + 0x74], 1
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
lea ecx, [esp + 0x10]
mov byte [esp + 0x74], 2
call fcn.00404bb0
mov eax, dword [esp + 0x84]
push eax
push str.__._df
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x84], 3
call fcn.00411850
add esp, 0x10
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], 4
call fcn.00402740
mov eax, dword [esp + 0x68]
mov edi, 0x10
cmp eax, edi
mov byte [esp + 0x74], 3
jb 0x40d550
mov eax, dword [esp + 0x54]
push eax
call fcn.00426c0e
add esp, 4
cmp dword [esp + 0x30], edi
mov eax, dword [esp + 0x1c]
jae 0x40d55e
lea eax, [esp + 0x1c]
fld dword [esp + 0x80]
sub esp, 8
fstp qword [esp]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00411850
add esp, 0x14
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x80], 5
call fcn.00402740
cmp dword [esp + 0x68], edi
mov byte [esp + 0x74], 3
jb 0x40d5ab
mov eax, dword [esp + 0x54]
push eax
call fcn.00426c0e
add esp, 4
mov esi, dword [esp + 0x7c]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x3c]
push ecx
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00402740
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 1
mov byte [esp + 0x74], 2
call fcn.00412120
cmp dword [esp + 0x30], edi
jb 0x40d5f0
mov edx, dword [esp + 0x1c]
push edx
call fcn.00426c0e
add esp, 4
cmp dword [esp + 0x4c], edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jb 0x40d60f
mov eax, dword [esp + 0x38]
push eax
call fcn.00426c0e
add esp, 4
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret 0xc
Function at 0x40f360
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42d7f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.0040f2d0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00403d20
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40f3f2
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x410a40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 4]
movzx edx, byte [eax + 4]
push ebx
movzx ebx, byte [eax + 2]
push esi
movzx esi, byte [eax + 5]
push edi
movzx edi, byte [eax + 3]
add edi, ebx
movzx ebx, byte [eax + 1]
mov ecx, edx
add ebx, esi
shl ecx, 8
add ecx, esi
movzx esi, byte [eax]
add ebx, edi
add esi, ebx
add esi, edx
test ecx, ecx
jle 0x410a8c
xor edx, edx
test ecx, ecx
jle 0x410a8c
lea esp, [esp]
movzx edi, byte [eax + edx + 6]
add esi, edi
inc edx
cmp edx, ecx
jl 0x410a80
xor esi, 0xffff
inc esi
mov edx, esi
mov ebx, edx
sar ebx, 8
cmp byte [ecx + eax + 6], bl
jne 0x410aae
cmp byte [ecx + eax + 7], dl
jne 0x410aae
pop edi
pop esi
mov al, 1
pop ebx
ret 4
pop edi
pop esi
xor al, al
pop ebx
ret 4

Function at 0x413c46
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00413f30
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x413ce1
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x455ce0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x413ce1
cmp eax, 1
je 0x413d02
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x413ce1
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x413cae
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x413cdd
xor eax, eax
inc eax
jmp 0x413d21
cmp edi, eax
jae 0x413ce5
xor eax, eax
jmp 0x413d21
cmp eax, esi
jae 0x413cec
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x455ce0]
jmp 0x413d05
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret