joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404d93
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, edx
mov dword [ebp - 8], ecx
call fcn.00404bfa
mov ebx, eax
test ebx, ebx
jne 0x404db5
push 8
pop eax
jmp 0x404e4c
push edi
xor ecx, ecx
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 0xc]
mov edi, ecx
push eax
push ecx
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404e31
push dword [ebp - 4]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x404e54
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404e31
cmp dword [ebp - 0xc], 7
jne 0x404e31
mov esi, edi
cmp word [edi], ax
je 0x404e31
mov ecx, esi
call fcn.00403421
test eax, eax
je 0x404e54
mov edx, eax
mov ecx, ebx
call fcn.00404bcd
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2]
xor eax, eax
add esi, 2
cmp word [esi], ax
jne 0x404e09
mov esi, dword [ebp + 8]
mov edx, 0x403460
mov ecx, dword [esi]
call fcn.00404c62
mov dword [esi], ebx
mov ecx, edi
call fcn.00403581
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, 0x403460
mov ecx, ebx
call fcn.00404c62
jmp 0x404e42

Function at 0x404e62
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 4], ebx
push eax
push ebx
mov esi, edx
mov edi, ecx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x404e93
push 2
pop eax
mov dword [ebp - 4], eax
jmp 0x404e96
mov eax, dword [ebp - 4]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, eax
test ecx, ecx
jne 0x404eaa
push 8
pop eax
jmp 0x404ec8
xor eax, eax
mov word [ecx], ax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 8]
push eax
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404ed1
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x407004]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
lea eax, [esp + 0x10]
mov ebx, edx
push eax
push 0xf003f
push 0
mov edi, ecx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x404f98
push 0x20a
lea eax, [esp + 0x24]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x34]
push eax
push esi
jmp 0x404f5c
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x20]
call fcn.00404ed1
lea eax, [esp + 0x18]
xor ecx, ecx
push eax
push ecx
push ecx
push ecx
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x34]
push eax
push ecx
push dword [esp + 0x2c]
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, 0x103
jne 0x404f3a
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x404f8a
cmp esi, esi
jne 0x404f98
push 0
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov esi, eax
mov ecx, dword [esp + 0x234]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004063a0
mov esp, ebp
pop ebp
ret

Function at 0x404faf
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 2
mov edi, dword [ebx]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
pop esi
test edi, edi
je 0x404fe7
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [edi + 4]
lea esi, [esi + eax*2]
add esi, 2
test edi, edi
jne 0x404fcc
cmp esi, 2
jne 0x404fea
push 4
pop esi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x404ffe
push 8
pop eax
jmp 0x40506c
mov ecx, esi
shr ecx, 1
mov dword [ebp - 8], ecx
cmp esi, 4
jne 0x405010
xor eax, eax
mov dword [edi], eax
jmp 0x40504f
mov ebx, dword [ebx]
mov eax, edi
jmp 0x405043
push 0x100
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 4]
push edx
push dword [ebx + 8]
mov edx, ecx
mov ecx, eax
call fcn.0040305d
test eax, eax
js 0x405075
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
dec ecx
mov ebx, dword [ebx + 4]
add eax, 2
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ebx, ebx
jne 0x405016
xor ecx, ecx
mov word [eax], cx
push esi
push edi
push 7
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movzx esi, ax
jmp 0x405063
Function at 0x40584e
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x407004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x40700c]
push esi
push edi
mov edi, dword [0x40736c]
cmp eax, 0xffffffff
je 0x405886
push 0x402088
push 0xc
push eax
call dword [sym.imp.rtutils.dll_TracePrintfExA]
add esp, 0xc
push 8
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4058fd
and dword [esi], 0
lea eax, [ebp - 0x804]
and dword [esi + 4], 0
push ebx
push edi
push 0x400
push eax
push 0x401100
push 0x40209c
mov ebx, 0x4020a8
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x804]
call fcn.004036c6
push edi
push 0x400
mov dword [esi + 4], eax
lea eax, [ebp - 0x804]
push eax
push 0x401100
push 0x4020cc
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x804]
call fcn.004036c6
mov dword [esi], eax
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004063a0
mov esp, ebp
pop ebp
ret
Function at 0x406170
Capabilities:
Terminate process

Disassembly:
call fcn.00406603
jmp 0x40617a
push 0x5c
push 0x406918
call fcn.004066bc
xor ebx, ebx
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x407438
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x4061cc
cmp eax, esi
jne 0x4061bf
xor esi, esi
inc esi
mov edi, esi
jmp 0x4061cf
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4061a3
xor esi, esi
inc esi
cmp dword [0x40743c], esi
jne 0x4061e1
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x40621b
cmp dword [0x40743c], ebx
jne 0x406215
mov dword [0x40743c], esi
push 0x4010c0
push 0x4010b4
call fcn.0040634f
pop ecx
pop ecx
test eax, eax
je 0x40621b
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x406349
mov dword [0x40701c], esi
cmp dword [0x40743c], esi
jne 0x40623e
push 0x4010b0
push 0x4010a8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x40743c], 2
test edi, edi
jne 0x40624b
xor eax, eax
mov ecx, 0x407438
xchg dword [ecx], eax
cmp dword [0x407440], 0
je 0x406277
push 0x407440
call fcn.00406510
pop ecx
test eax, eax
je 0x406277
push ebx
push 2
push ebx
mov esi, dword [0x407440]
mov ecx, esi
call dword [0x408140]
call esi
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov edi, dword [ebp - 0x24]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x4062d5
test cl, cl
je 0x4062a4
test edi, edi
jne 0x4062d5
test cl, cl
je 0x4062a4
cmp cl, 0x20
ja 0x4062a4
inc esi
mov dword [ebp - 0x20], esi
mov cl, byte [esi]
jmp 0x406293
test byte [ebp - 0x40], 1
je 0x4062b0
movzx eax, word [ebp - 0x3c]
jmp 0x4062b3
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x407018], eax
cmp dword [0x407030], 0
jne 0x40632e
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x4062e6
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x24], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x4062f9
inc esi
mov dword [ebp - 0x20], esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x406284
cmp dword [0x40701c], 0
jne 0x406342
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x407018]
mov dword [ebp - 4], 0xfffffffe
call fcn.00406704
ret

Function at 0x406414
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x406938
call fcn.0040688c
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x406474
cmp eax, 0xffffffff
je 0x406474
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40646d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40646d
cmp edx, 0x10000000
jae 0x40646d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40646a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.004068d1
ret 4
Function at 0x4064c0
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 0x4064fe
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4064f6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x406500
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4064e6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4065d0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4065e6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x406601
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x40601d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406041
xor eax, eax
test eax, eax
je 0x406053
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406053
xor ecx, ecx
jmp 0x406056
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409010]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
leave
ret 4

Function at 0x4060f6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422b14], 0
push esi
jne 0x40612d
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406107
mov dword [ecx*4 + 0x422b10], eax
inc ecx
cmp ecx, 0x100
jl 0x406102
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40615e
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422b10]
xor eax, esi
inc ecx
dec edx
jne 0x406140
pop edi
not eax
pop esi
ret 0xc

Function at 0x411019
Capabilities:
Terminate process

Disassembly:
jmp 0x412310
jmp fcn.00413200
cmp ecx, dword [section..data]
jne 0x41231a
repz ret
jmp 0x4110b4
Function at 0x1000e7c7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1003ebf0]
jne 0x1000e7d1
repz ret
jmp fcn.1001a103

Function at 0x1001ce3f
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.1000cd54
and dword [ebp - 4], 0
cmp dword [0x1003f7b0], 0
mov ebx, eax
jne 0x1001cef0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1001cfa1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1001cfa1
push eax
call fcn.1000cce2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1003f7b0], eax
call esi
push eax
call fcn.1000cce2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1003f7b4], eax
call esi
push eax
call fcn.1000cce2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1003f7b8], eax
call esi
push eax
call fcn.1000cce2
pop ecx
mov dword [0x1003f7c0], eax
test eax, eax
je 0x1001cef0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000cce2
pop ecx
mov dword [0x1003f7bc], eax
mov eax, dword [0x1003f7bc]
cmp eax, ebx
je 0x1001cf48
cmp dword [0x1003f7c0], ebx
je 0x1001cf48
push eax
call fcn.1000cd5d
push dword [0x1003f7c0]
mov esi, eax
call fcn.1000cd5d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1001cf48
test edi, edi
je 0x1001cf48
call esi
test eax, eax
je 0x1001cf3f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001cf3f
test byte [ebp - 0xc], 1
jne 0x1001cf48
or dword [ebp + 0x10], 0x200000
jmp 0x1001cf81
mov eax, dword [0x1003f7b4]
cmp eax, ebx
je 0x1001cf81
push eax
call fcn.1000cd5d
pop ecx
test eax, eax
je 0x1001cf81
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1001cf81
mov eax, dword [0x1003f7b8]
cmp eax, ebx
je 0x1001cf81
push eax
call fcn.1000cd5d
pop ecx
test eax, eax
je 0x1001cf81
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1003f7b0]
call fcn.1000cd5d
pop ecx
test eax, eax
je 0x1001cfa1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001cfa3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10021f40
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x1003e034], 0
mov byte [0x1003e038], 0
mov dword [0x1003e02c], 0x180c
mov dword [0x1003e028], 0x7f5
mov dword [0x1003e030], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x1003e028]
add eax, 0xffffe923
mov dword [0x1003e028], eax
mov eax, dword [0x1003e030]
add eax, 1
mov dword [0x1003e030], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10021f8f
mov dword [0x1003e030], 0
jmp 0x10021fd0
mov eax, 0x100
mov dword [0x1003e03c], 0
mov ecx, dword [0x1003e034]
mov edx, dword [0x1003e030]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + edx]
add edi, ecx
mov dword [ebp - 0x20], eax
mov eax, edx
xor edx, edx
mov ecx, dword [ebp - 0x10]
div ecx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add edi, edx
mov dword [0x1003e03c], edi
mov eax, edi
cdq
mov edi, dword [ebp - 0x20]
idiv edi
mov dword [0x1003e034], edx
mov dword [0x1003e028], 0x1f66
mov ecx, dword [0x1003e030]
mov bl, byte [esi + ecx]
mov byte [0x1003e038], bl
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov bl, byte [0x1003e038]
mov ecx, dword [0x1003e034]
mov byte [esi + ecx], bl
mov dword [0x1003e028], 0x727
mov ecx, dword [0x1003e030]
add ecx, 1
mov dword [0x1003e030], ecx
cmp ecx, 0x100
jl 0x10021fd0
mov dword [0x1003e028], 0x7e7
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10022090
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x68
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x1003e028], 0xb3c
mov edx, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
lea edx, section..data
imul esi, eax, 0x15c
mov edi, edx
add edi, esi
add edi, 0x154
mov esi, dword [edi]
imul edi, eax, 0x15c
add edx, edi
add edx, 0x150
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x103
mov ecx, edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
jne 0x100220b3
lea eax, [0x100244a5]
mov ecx, 0xe
lea edx, [ebp - 0x2c]
mov dword [0x1003e02c], 0x970
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], ecx
call fcn.10022f40
mov dword [0x1003e028], 0x145a
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call fcn.10021cb0
mov ecx, eax
mov dword [0x1003e044], eax
mov eax, esp
mov edx, dword [ebp - 0x3c]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
lea edx, section..data
imul esi, eax, 0x15c
mov edi, edx
add edi, esi
add edi, 0x154
mov esi, dword [edi]
imul edi, eax, 0x15c
mov ebx, edx
add ebx, edi
mov edi, dword [ebx]
imul ebx, eax, 0x15c
add edx, ebx
add edx, 0x150
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x48]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], edx
call fcn.10022600
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
add eax, ecx
mov edx, dword [ebp - 0x54]
add edx, 1
cmp edx, 0x103
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], edx
jne 0x10022179
mov eax, dword [ebp - 0x48]
add eax, 0x28dbd
mov ecx, dword [ebp - 0x48]
add ecx, 0x12839
mov edx, dword [0x1003e02c]
add edx, 0x1c31
mov dword [0x1003e028], edx
mov edx, dword [ebp - 0x48]
mov dword [esp], edx
mov dword [esp + 4], edx
mov esi, dword [ebp - 0x3c]
mov dword [esp + 8], esi
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], ecx
call fcn.10022e00
xor eax, eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x60]
mov dword [ecx], edx
mov dword [0x1003e02c], 0xa49
mov dword [ecx + 4], 0x145000
mov edx, dword [ebp - 0x64]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], 0x1fe0
mov dword [0x1003e028], 0x156
add esp, 0x68
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10022400
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x1003e030], 0
mov dword [0x1003e034], 0
mov dword [0x1003e040], 0
mov dword [0x1003e028], 0xb6a
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
mov dword [ebp - 0x20], eax
je 0x10022564
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x1003e028], 0x23ea
mov dword [0x1003e02c], 0x168a
mov edx, dword [0x1003e030]
add edx, 1
mov dword [ebp - 0x24], eax
mov eax, edx
cdq
idiv ecx
mov dword [0x1003e030], edx
mov esi, dword [0x1003e034]
mov edi, dword [ebp - 0x1c]
movzx edx, byte [edi + edx]
add edx, esi
mov eax, edx
cdq
idiv ecx
mov dword [0x1003e034], edx
mov dword [0x1003e028], 0x966
mov ecx, dword [0x1003e030]
mov bl, byte [edi + ecx]
mov byte [0x1003e038], bl
mov bl, byte [edi + edx]
mov byte [edi + ecx], bl
mov ecx, dword [0x1003e028]
add ecx, 0xfffff9f2
mov dword [0x1003e02c], ecx
mov bl, byte [0x1003e038]
mov ecx, dword [0x1003e034]
mov byte [edi + ecx], bl
mov dword [0x1003e028], 0x18cf
mov ecx, dword [0x1003e030]
movzx ecx, byte [edi + ecx]
mov edx, dword [0x1003e034]
movzx edx, byte [edi + edx]
add edx, ecx
and edx, 0xff
mov dword [0x1003e040], edx
mov ecx, dword [0x1003e028]
add ecx, 0xfffff54a
mov dword [0x1003e028], ecx
mov bl, byte [edi + edx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
movzx esi, byte [ecx + edx]
mov dword [esp], esi
movzx esi, bl
mov dword [esp + 4], esi
call fcn.10001000
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov byte [ecx + edx], al
add edx, 1
mov esi, dword [ebp - 0x10]
cmp edx, esi
mov dword [ebp - 0x20], edx
jne 0x1002245d
mov dword [0x1003e028], 0x1517
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10022c40
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [0x1003e02c], 0x890
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x1003e028], 0x12cd
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x10022cca
mov dword [0x1003e02c], 0x174f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0xe], 0x6c
sete dl
mov byte [ebp - 0x15], dl
mov eax, 1
mov cl, byte [ebp - 0x15]
test cl, 1
mov dword [ebp - 0x1c], eax
jne 0x10022d9e
jmp 0x10022d88
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x10022ce2
jmp 0x10022d88
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edx
je 0x10022d17
jmp 0x10022d00
mov dword [0x1003e028], 0x26ed
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x10022d6b
jmp 0x10022d88
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x24], eax
jl 0x10022cca
mov eax, dword [ebp - 0x24]
mov dword [0x1003e02c], 0x296
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
jne 0x10022d88
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
mov dx, word [eax + ecx*2 - 0x18]
mov word [ebp - 0x26], dx
mov ax, word [ebp - 0x26]
cmp ax, 0x6f
jne 0x10022d88
mov dword [0x1003e028], 0x191a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x10022cb6
jmp 0x10022d88
mov dword [0x1003e028], 0x4cbc
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x10022c80
mov eax, dword [0x1003e028]
add eax, 0xfffff9e5
mov dword [0x1003e028], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x10022d9e
mov eax, dword [ebp - 0x1c]
add esp, 0x28
pop ebp
ret

Function at 0x10022db0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [fcn.10022db0]
mov dword [ebp - 4], eax
jmp 0x10022dc1
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
mov dword [ebp - 8], eax
jne 0x10022de5
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x10022de5
mov eax, dword [ebp - 8]
add esp, 8
pop ebp
ret
mov eax, dword [ebp - 8]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [ebp - 4], eax
jmp 0x10022dc1
Function at 0x401280
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x42b506
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x435ad8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], vtable.Epoch::Foundation::CommandLineParser.0
call fcn.00403a60
mov dword [esi + 0x14], eax
mov byte [eax + 0x45], 1
mov eax, dword [esi + 0x14]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x14]
mov dword [eax], eax
mov eax, dword [esi + 0x14]
mov dword [eax + 8], eax
xor eax, eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0xc], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4