joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b7017
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100963a0
mov eax, dword [0x10105230]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.100b5735
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100b7059
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100b71b5
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100c4c00
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x1010e908]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.100b743d
mov ecx, dword [esi*4 + 0x1010e908]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x100b71ae
cmp eax, dword [edi + ecx + 0x24]
jne 0x100b71ae
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100b71ae
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100b743d
add esp, 0x14
test edx, edx
jl 0x100b71ae
jg 0x100b7124
test eax, eax
jb 0x100b71ae
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100b71ae
jl 0x100b713e
cmp dword [ebp - 0x1008], eax
ja 0x100b71ae
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100b715c
test ebx, ebx
je 0x100b7195
cmp ecx, edi
jae 0x100b7195
mov al, byte [ecx]
cmp al, 0xd
jne 0x100b7176
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100b7182
cmp byte [ecx + 1], 0xa
jne 0x100b7182
inc ecx
jmp 0x100b7182
movzx eax, al
movsx eax, byte [eax + 0x10105680]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100b715c
cmp edx, ebx
jne 0x100b715c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100b71b3
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10094e23
leave
ret
Function at 0x100b74b9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1010e908]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100b74f9
cmp byte [ebx], 0xa
jne 0x100b74f9
or byte [eax + edi + 0x28], 4
jmp 0x100b74fe
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100b75fc
mov al, byte [edx]
cmp al, 0x1a
je 0x100b75de
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x100b752d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x100b7552
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x100b755c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x100b750f
jmp 0x100b75fc
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100b75d9
cmp dword [ebp - 0xc], 0
je 0x100b75d9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x1010e908]
test byte [eax + edi + 0x28], 0x48
je 0x100b75b3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100b759e
mov byte [esi], dl
jmp 0x100b75af
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1010e908]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100b75fc
cmp byte [ebp - 1], 0xa
jne 0x100b75c2
cmp esi, ebx
jne 0x100b75c2
mov byte [esi], 0xa
jmp 0x100b75fb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100b745b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100b75fc
mov byte [esi], 0xd
jmp 0x100b75fb
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x1010e908]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100b75f8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100b75fc
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100b7605
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x1010e908]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100b7648
cmp word [esi], dx
jne 0x100b7648
or byte [edi + eax + 0x28], 4
jmp 0x100b764d
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x100b77a0
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x100b7780
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x100b768f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100b76c5
cmp eax, edx
jae 0x100b76d1
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x100b7667
jmp 0x100b77a0
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100b777c
cmp dword [ebp - 0x14], 0
je 0x100b777c
mov eax, dword [ebx*4 + 0x1010e908]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x100b7754
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x100b771d
mov word [esi], cx
jmp 0x100b7750
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x1010e908]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x1010e908]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x1010e908]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x100b77a0
pop ebx
cmp word [ebp - 4], bx
jne 0x100b7765
cmp esi, dword [ebp + 0xc]
jne 0x100b7765
mov word [esi], bx
jmp 0x100b779d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100b745b
add esp, 0x10
cmp word [ebp - 4], bx
je 0x100b77a0
push 0xd
jmp 0x100b7799
mov ecx, dword [ebx*4 + 0x1010e908]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100b7797
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100b77a0
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100b8190
Capabilities:
Read file on windows

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

Function at 0x100b819b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100b7fc1
Function at 0x100bd049
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100bd0e6
push ebx
push esi
call fcn.100bd012
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100b5288
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100bd093
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100bd0e5
push edi
push eax
call fcn.100b51be
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100bd0b3
call fcn.100b5184
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100bd0e4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100b5288
add esp, 0x20
test eax, eax
jne 0x100bd0d2
push edi
call fcn.100b5184
jmp 0x100bd0da
push ebx
call fcn.100b5184
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100bd0e9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100bd0fa
pop esi
ret
push ebx
push edi
push esi
call fcn.100bd012
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100b51be
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100bd122
push ebx
push esi
push edi
call fcn.100971a0
add esp, 0xc
push 0
call fcn.100b5184
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100bd4e6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100bd137
Function at 0x100c4021
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100c3f9d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100c4199
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100c4199
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100c4148
jg 0x100c407a
test eax, eax
je 0x100c413e
push 1
push 0x1000
call fcn.100b53fb
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100c40a0
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x100c4135
push 0x8000
push ebx
call fcn.100c3ece
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100c40cc
jg 0x100c40c7
cmp ecx, 0x1000
jb 0x100c40cc
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100b63b3
add esp, 0x10
cmp eax, 0xffffffff
je 0x100c4111
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100c40c7
jl 0x100c40f8
test ecx, ecx
jne 0x100c40b9
push dword [ebp - 0xc]
push ebx
call fcn.100c3ece
push esi
call fcn.100b5184
add esp, 0xc
xor edi, edi
jmp 0x100c41aa
cmp byte [edi + 0x24], 0
je 0x100c4128
cmp dword [edi + 0x20], 5
jne 0x100c4128
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100c4133
mov edi, dword [edi + 0x18]
jmp 0x100c4135
xor edi, edi
push esi
call fcn.100b5184
pop ecx
jmp 0x100c41aa
test ecx, ecx
jg 0x100c410a
jl 0x100c4148
test eax, eax
jae 0x100c410a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100b745b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100c416b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100c410a
jmp 0x100c41a2
push ebx
call fcn.100c015a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100c410a
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x100c41aa
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100c41a7
mov edi, dword [edi + 0x18]
jmp 0x100c41aa
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100b745b
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100c4bc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100c4bed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100c4bed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x407458
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x407467
pop dword [ebp - 0x14]
mov eax, 0x407467
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x606f440c
add dword [ebp - 0x24], 0xede3013f
mov dword [ebp - 0x20], 0x89ae51a0
sub dword [ebp - 0x20], 0x577b055b
mov dword [ebp - 0x1c], 0xa9c5f346
add dword [ebp - 0x1c], 0xa28650e8
mov dword [ebp - 0x18], 0x37e9ffe3
sub dword [ebp - 0x18], 0x37e9ffe3
lea eax, [ebp - 0x24]
push eax
mov eax, 0x681ec20a
add eax, 0x9821be6e
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xe402be76
add dword [ebp - 0x24], 0x906faae0
mov dword [ebp - 0x20], 0xfe2f062c
sub dword [ebp - 0x20], 0xbcc2a4b7
mov dword [ebp - 0x1c], 0x8b8fded5
add dword [ebp - 0x1c], 0xd7df8d97
mov dword [ebp - 0x18], 0xfaa37490
sub dword [ebp - 0x18], 0xfaa37490
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x4dd861df
add eax, 0xb2681e9d
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x3b490
push 0
call eax
mov ecx, 0x58bc
mov edi, eax
mov esi, 0x2979d189
add esi, 0xd6cbc077
add esi, dword [ebp - 0x14]
mov ebx, 0x907ca7dd
sub ebx, 0xba842a67
mov edx, dword [esi]
xor dword [ebp - 4], 0xc5e0f067
xor edx, ebx
add dword [ebp - 0xc], eax
mov dword [edi], edx
xor dword [ebp - 8], 0x48a19a14
add edi, 0xeefdbd82
sub edi, 0xeefdbd7e
add esi, 4
loop 0x40757e
add eax, 0x4e5aeb60
sub eax, 0x4e59959d
xor ebx, ebx
add ebx, eax
add eax, 0x93097159
add eax, 0x6cf68eac
mov ecx, 0x7cc5c23d
sub ecx, 0x7c85c23d
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x401090
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push dword [0x44c7d4]
push 0
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x401134
push esi
mov esi, dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
lea eax, [ebp - 4]
push edi
push eax
push 0
push 0
push ebx
call esi
test eax, eax
je 0x401121
mov eax, dword [ebp - 4]
test eax, eax
je 0x401121
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x401121
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push ebx
call esi
test eax, eax
je 0x401107
mov esi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401140
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 8
mov edi, eax
call fcn.00411189
add esp, 4
mov esi, eax
push 2
push 8
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x401173
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401185
push 0
push esi
push 0
push 0
push 4
push 6
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
push esi
call fcn.00410ee8
add esp, 4
push 0x431d80
call fcn.00401060
add esp, 4
push 0x431d80
call fcn.00401060
add esp, 4
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push str.C:__Windows__System__FacMH.dll
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 4
mov esi, eax
call fcn.0040a325
add esp, 4
push 0
push eax
push 0xf400
push 0x435a80
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [0x44c7cc]
mov dword [0x44c7c8], 0xc
push 4
push eax
mov dword [0x44c7d0], 0
call dword [sym.imp.ADVAPI32.dll_SetKernelObjectSecurity]
cmp dword [0x44c7d4], 0
jne 0x401240
call fcn.004027c0
mov dword [0x44c7d4], eax
test eax, eax
je 0x401232
call fcn.00401090
push ecx
call fcn.004028a0
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401c20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4248fa
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x43506c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.0040909a
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x401ce0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.0040c542
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x433c54
push eax
call fcn.0040c72b
push edi
push esi
call fcn.004093e2
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a314
mov esp, ebp
pop ebp
ret 4

Function at 0x4027c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x43506c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
xor ebx, ebx
cmp esi, 0xffffffff
je 0x402886
push 0x124
lea eax, [ebp - 0x12c]
push ebx
push eax
call fcn.0040e870
add esp, 0xc
mov dword [ebp - 0x130], 0x224
lea eax, [ebp - 0x130]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x40287f
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
nop dword [eax]
nop dword [eax + eax]
mov eax, str.Infestation_Launcher.exe
lea ecx, [ebp - 0x10c]
nop dword [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x402860
test dl, dl
je 0x40285c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x402860
add ecx, 2
add eax, 2
test dl, dl
jne 0x402840
xor eax, eax
jmp 0x402865
sbb eax, eax
or eax, 1
test eax, eax
je 0x402879
lea eax, [ebp - 0x130]
push eax
push esi
call edi
test eax, eax
jne 0x402830
jmp 0x40287f
mov ebx, dword [ebp - 0x128]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a314
mov esp, ebp
pop ebp
ret
Function at 0x402fd0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x403001
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x402ff0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x4113ac
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4113eb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4113eb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4113eb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4113eb
cmp dword [ecx + 0x74], 0xe
jbe 0x4113eb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x417507
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x42a8dc
push str.FlsAlloc
push 0x1f
call fcn.00417372
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41753b
push dword [ebp + 8]
mov ecx, esi
call dword [0x42515c]
call esi
jmp 0x417541
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x417585
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x42a900
push str.FlsGetValue
push 0x21
call fcn.00417372
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4175bc
push dword [ebp + 8]
mov ecx, esi
call dword [0x42515c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4175c4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x42a914
push str.FlsSetValue
push 0x22
call fcn.00417372
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4175fe
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42515c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41bec8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41bf65
push ebx
push esi
call fcn.0041be91
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041abd1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41bf12
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41bf64
push edi
push eax
call fcn.00412029
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41bf32
call fcn.00411fef
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41bf63
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041abd1
add esp, 0x20
test eax, eax
jne 0x41bf51
push edi
call fcn.00411fef
jmp 0x41bf59
push ebx
call fcn.00411fef
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41e580
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00415e52
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41e5ef
cmp esi, dword [ebp - 4]
je 0x41e5ea
cmp dword [ebp + 0xc], 0
je 0x41e5ea
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41e5c7
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041e0d2
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41e5f1
xor eax, eax
inc eax
jmp 0x41e5f1
xor eax, eax
pop edi
pop esi
leave
ret