joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4854e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
xor al, al
push edi
xor edi, edi
test esi, esi
je 0x4855a7
push ebx
mov ecx, dword [ebp + 8]
mov dl, byte [edi + ecx]
xor dl, al
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
xor al, 0x8c
and bl, 1
movzx edx, al
movzx eax, cl
cmove edx, eax
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
xor al, 0x8c
and bl, 1
movzx edx, al
movzx eax, cl
cmove edx, eax
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
xor al, 0x8c
and bl, 1
movzx edx, al
movzx eax, cl
cmove edx, eax
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
movzx ecx, cl
xor al, 0x8c
and bl, 1
movzx eax, al
cmove eax, ecx
inc edi
cmp edi, esi
jb 0x4854f5
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x486ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bfab3
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4f0464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x8c], 0
mov dword [ebx], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
push 0x201
push dword [0x4f0570]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 0
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00486bf0
mov edi, dword [ebp - 0x8c]
test eax, eax
jne 0x486e81
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.0048c160
add esp, 0xc
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push 0x4d1e88
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x486e81
mov eax, dword [ebp - 0x7c]
cmp eax, 1
je 0x486d75
cmp eax, 2
jne 0x486e81
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x486d96
test cl, 1
jne 0x486e81
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x76], 0
je 0x486d9c
jmp 0x486e81
xor eax, eax
mov word [ebp - 0x74], ax
shr ecx, 1
cmp ecx, 0x2d
jne 0x486e81
call fcn.0040f380
mov ecx, eax
test ecx, ecx
je 0x486eac
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x78]
call fcn.00485010
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
push eax
lea eax, [ebp - 0x20]
push 0x4d1e90
push eax
call fcn.004872a0
mov esi, dword [ebp - 0x78]
push 0x2a
push esi
call fcn.004854e0
movzx eax, al
add esp, 0x14
cmp dword [ebp - 0x7c], eax
jne 0x486e65
lea edx, [ebp - 0x74]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x486e06
sub edx, ecx
lea eax, [ebp - 0x74]
mov ecx, dword [ebp - 0x80]
sar edx, 1
push edx
push eax
call fcn.00486ec0
push dword [0x4f0578]
lea eax, [ebp - 0x74]
push dword [0x4f0574]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x486e42
mov dword [ebx], 1
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x486e5e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x486e83
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x486e81
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
test edi, edi
je 0x486e8e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004670b3
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040b080
int3
Function at 0x486fa0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bfae8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4f0464]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x202
push dword [0x4f0570]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00486bf0
test eax, eax
je 0x4870c8
mov esi, dword [ebp - 0x18]
mov edi, dword [0x4f0570]
mov dword [ebp - 0x10], 0
test esi, esi
je 0x487073
cmp dword [esi], 0
je 0x487066
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x487033
mov eax, 1
jmp 0x487094
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x48706c
push 0
push dword [esi]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x20206
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call eax
jmp 0x487094
cmp dword [esi + 4], 0
jne 0x487073
mov eax, 1
jmp 0x487094
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x20206
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4870be
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4870a6
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0x200
test eax, eax
je 0x4870cb
xor ebx, ebx
jmp 0x48716f
mov esi, dword [ebp - 0x20]
xor ebx, ebx
jmp 0x48716f
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x487128
mov ecx, dword [ebx]
test ecx, ecx
je 0x48718e
push ecx
push eax
call fcn.0049512f
add esp, 8
test eax, eax
je 0x487128
mov edx, dword [edi]
test edx, edx
je 0x487128
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x487100
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.m2_old
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebx]
test edx, edx
jne 0x487133
lea eax, [edx + 0xd]
jmp 0x487168
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x487140
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x4d1e88
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
test eax, eax
sete bl
test esi, esi
je 0x48717a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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
push 0x80004005
call fcn.0040b080
int3
Function at 0x488820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x488891
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x48885f
cmp eax, 2
jne 0x48887b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x48888b
test ecx, ecx
je 0x488886
test cl, 1
jne 0x48887b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x48888b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x48a1f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bfd9b
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push ebx
push esi
push edi
mov eax, dword [0x4f0464]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
lea esi, [ebx + 0x14]
push 0x20000
push 0
push esi
mov dword [ebp - 0x14], edi
call fcn.0048c160
add esp, 0xc
lea eax, [ebx + 0x20014]
push 0
push eax
push 0x20000
push esi
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48a34b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
call fcn.00445180
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx ecx, al
sub ecx, 1
jne 0x48a32d
push 0x61
mov dword [ebp - 0x34], ecx
mov byte [ebp - 0x44], cl
lea ecx, [ebp - 0x44]
push str.d:jenkins.jenkinsworkspacelib_commonlds_rpclds_rpc_src_rpc_instance_rpc_client_instance.cpp
mov dword [ebp - 0x30], 0xf
call fcn.00411d10
push 3
push 0x4c1b84
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00411d10
mov byte [ebp - 4], 1
call fcn.00445180
mov edi, eax
lea ecx, [ebp - 0xdc]
push 0x58
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004092d0
mov esi, eax
push str.RecvData_failed__error_code_:
push esi
mov byte [ebp - 4], 2
call fcn.0040a600
add esp, 8
mov ecx, esi
push dword [ebp - 0x10]
call fcn.004160a0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xdc]
call fcn.0040a7e0
lea ecx, [ebp - 0x2c]
call fcn.00409da0
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
call fcn.00409da0
mov edi, dword [ebp - 0x14]
lea esi, [ebx + 0x14]
cmp dword [ebp - 0x10], 0xe8
mov dword [ebx + 0xc], 6
jne 0x48a34b
mov dword [ebx + 0xc], 7
mov dword [ebx + 0x10], 0
mov eax, dword [edi + 4]
lea ecx, [edi + 4]
push dword [ebp - 0x14]
mov dword [ecx + 4], eax
mov dword [edi + 0x10], 0
mov eax, dword [ebx + 0x20014]
add eax, esi
push eax
push esi
push dword [ecx + 4]
call fcn.00451b20
mov dword [edi + 0x10], 0
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 0x48a390
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bfddb
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x4f0464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x10], 0
mov edi, dword [ebp + 8]
jne 0x48a3d5
mov dword [ebx + 0xc], 8
jmp 0x48a542
mov eax, dword [edi + 8]
sub eax, dword [edi + 4]
inc eax
push eax
mov dword [ebp - 0x18], eax
call fcn.004675dd
mov esi, eax
mov dword [ebp - 0x1c], eax
add esp, 4
test esi, esi
je 0x48a404
push dword [ebp - 0x18]
push 0
push esi
call fcn.0048c160
add esp, 0xc
mov byte [esi], 0
jmp 0x48a409
xor esi, esi
mov dword [ebp - 0x1c], esi
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
sub eax, ecx
mov dword [ebp - 0x14], 0
push eax
push ecx
push esi
call fcn.0048b660
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x14]
sub eax, dword [edi + 4]
add esp, 0xc
inc eax
push 0
push ecx
push eax
push esi
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x48a530
mov dword [ebx + 0xc], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
call fcn.00445180
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx ecx, al
sub ecx, 1
jne 0x48a517
push 0x61
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 0x4c], cl
lea ecx, [ebp - 0x4c]
push str.d:jenkins.jenkinsworkspacelib_commonlds_rpclds_rpc_src_rpc_instance_rpc_client_instance.cpp
mov dword [ebp - 0x38], 0xf
call fcn.00411d10
push 3
push 0x4c1b84
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
call fcn.00411d10
mov byte [ebp - 4], 1
call fcn.00445180
mov edi, eax
lea ecx, [ebp - 0xe4]
push 0x48
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004092d0
mov esi, eax
push str.send_failed__error_code_:
push esi
mov byte [ebp - 4], 2
call fcn.0040a600
add esp, 8
mov ecx, esi
push dword [ebp - 0x18]
call fcn.004160a0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xe4]
call fcn.0040a7e0
lea ecx, [ebp - 0x34]
call fcn.00409da0
lea ecx, [ebp - 0x4c]
call fcn.00409da0
mov esi, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 0xe8
jne 0x48a537
mov dword [ebx + 0xc], 7
mov dword [ebx + 0x10], 0
jmp 0x48a537
mov dword [ebx + 0xc], 0
push 1
push esi
call fcn.00466e06
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004670b3
mov esp, ebp
pop ebp
ret 4

Function at 0x4a7a2a
Capabilities:
Read file on windows

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

Function at 0x4ae002
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004adcc2
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x403e59
pop dword [ebp - 8]
mov eax, 0x1ecc5f41
sub eax, 0x1e8c20e8
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xe3ea3011
add dword [ebp - 0x18], 0x6a68153a
mov dword [ebp - 0x14], 0x7066d082
add dword [ebp - 0x14], 0xc1cc7bc3
mov dword [ebp - 0x10], 0x54b3d82d
sub dword [ebp - 0x10], 0x86793ff
mov dword [ebp - 0xc], 0x6cc1fe67
sub dword [ebp - 0xc], 0x6cc1fe67
lea eax, [ebp - 0x18]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x313f7cdb
add dword [ebp - 0x18], 0x4332ec7b
mov dword [ebp - 0x14], 0xd6346f2a
sub dword [ebp - 0x14], 0x94c80db5
mov dword [ebp - 0x10], 0xb05fb6ff
sub dword [ebp - 0x10], 0x4cf04a93
mov dword [ebp - 0xc], 0x50597c61
sub dword [ebp - 0xc], 0x50597c61
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0xa5935278
add eax, 0x5aad2e5c
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x33365
push 0
call eax
mov ecx, 0xc5f624a9
sub ecx, 0xc5f5eacd
mov edi, eax
mov ebx, 0xd8f49c5e
add ebx, 0x274c73a2
add ebx, dword [ebp - 8]
mov edx, 0x6c75bda9
add edx, 0xffc03ae5
add dword [ebp - 4], edx
mov esi, dword [ebx]
xor dword [ebp - 4], 0x30872afc
xor esi, edx
add dword [ebp - 4], esi
mov dword [edi], esi
xor dword [ebp - 4], edx
add edi, 4
add ebx, 0xe068dc1c
add ebx, 0x1f9723e8
loop 0x403f76
add eax, 0xda43
mov ebx, eax
add eax, 0x8d8a907b
add eax, 0x72756f8a
mov ecx, 0x5994d3bb
sub ecx, 0x5954d3bb
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x408198
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408228
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408228
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4081db
test edx, 3
jne 0x4081ca
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4081d5
jmp 0x4081db
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4081db
cmp dword [ecx - 8], 1
je 0x4081e5
mov edx, ebx
or edx, 3
call fcn.00404dec
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4081f7
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004046a0

Function at 0x408234
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4082c4
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4082c4
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408277
test edx, 3
jne 0x408266
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408271
jmp 0x408277
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408277
cmp dword [ecx - 8], 1
je 0x408281
mov edx, ebx
or edx, 3
call fcn.00404dec
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408293
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004046a0

Function at 0x41eb90
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41eb96
ret
Function at 0x42bb00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42bcbb
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.00404e50
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
mov ecx, 0x42bcd4
call fcn.004049b0
mov eax, ebx
call fcn.0041a958
mov edi, eax
dec edi
test edi, edi
jl 0x42bbb8
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.0041a92c
mov edx, dword [0x4280ec]
call fcn.00403a00
test al, al
je 0x42bbb4
push dword [ebp - 8]
mov edx, esi
mov eax, ebx
call fcn.0041a92c
lea edx, [ebp - 0x14]
call fcn.00439d18
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.00404e50
push dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404a24
inc esi
dec edi
jne 0x42bb66
movzx eax, byte [0x42bcd8]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x42bce4
mov eax, dword [ebp - 8]
call fcn.0040d034
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
call fcn.00404738
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.00439d18
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x42bcd4
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x360]
call fcn.00439d18
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x42bcd4
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x42bcd4
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x42bcf0
call fcn.004093fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42bcc2
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.004046c4
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004046c4
lea eax, [ebp - 0x14]
call fcn.004046a0
lea eax, [ebp - 0x10]
call fcn.004046a0
lea eax, [ebp - 8]
mov edx, 2
call fcn.004046c4
ret
Function at 0x401340
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [eax + 8]
mov eax, dword [esp + 8]
push ecx
mov ecx, dword [esp + 8]
push edx
push eax
push ecx
call fcn.00429e34
add esp, 0x10
ret 8

Function at 0x403110
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4817a7
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4a14b4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [edi], 0x49509c
mov dword [edi + 0x58], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 8]
push esi
mov dword [esp + 0x20], ebx
push edi
mov dword [esp + 0x18], 1
call fcn.004040f0
mov dword [esp + 0x1c], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.00404de0
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x4a5e20]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x404de0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x480f2b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4a14b4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00443c4b
push 4
mov dword [esp + 0x20], 0
call fcn.0040cf52
mov edi, eax
add esp, 4
test edi, edi
je 0x404e5e
call fcn.00443828
mov dword [edi], eax
call fcn.00443656
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0044357a
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x404e53
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.004435a2
jmp 0x404e60
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x4061e0
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 0x4061f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406234
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x406230
lea ebx, [ebx]
cmp esi, eax
jae 0x406234
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x406220
cmp esi, eax
jb 0x40623a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret