joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4516b9
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00451635
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x451828
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x451828
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4517dd
jg 0x451715
test eax, eax
je 0x4517d3
push 1
push 0x1000
call fcn.0044b201
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x451738
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4517ca
push 0x8000
push ebx
call fcn.004498dc
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x451761
jg 0x45175c
cmp ecx, 0x1000
jb 0x451761
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00444829
add esp, 0x10
cmp eax, 0xffffffff
je 0x4517a6
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 0x45175c
jl 0x45178d
test ecx, ecx
jne 0x45174e
push dword [ebp - 0xc]
push ebx
call fcn.004498dc
push esi
call fcn.0044b2fa
add esp, 0xc
xor ebx, ebx
jmp 0x451836
cmp byte [edi + 0x24], 0
je 0x4517bd
cmp dword [edi + 0x20], 5
jne 0x4517bd
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4517c8
mov ebx, dword [edi + 0x18]
jmp 0x4517ca
xor ebx, ebx
push esi
call fcn.0044b2fa
pop ecx
jmp 0x451836
test ecx, ecx
jg 0x45179f
jl 0x4517dd
test eax, eax
jae 0x45179f
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00443ee1
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4517fd
cmp byte [edi + 0x1c], 0
je 0x45179f
jmp 0x45182e
push ebx
call fcn.004515cb
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x45179f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x451836
cmp byte [edi + 0x1c], 0
je 0x451833
mov ebx, dword [edi + 0x18]
jmp 0x451836
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00443ee1
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x451850
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x476be0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x451890
cmp byte [ebx], 0xa
jne 0x451890
or byte [edi + eax + 0x28], 4
jmp 0x451895
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x451994
mov dl, byte [eax]
cmp dl, 0x1a
je 0x451977
inc eax
cmp dl, 0xd
je 0x4518c1
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4518e7
cmp eax, ecx
jae 0x4518f5
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4518a9
jmp 0x451994
push 0
lea eax, [ebp - 0x10]
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 0x451972
cmp dword [ebp - 0x10], 0
je 0x451972
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x476be0]
test byte [eax + edi + 0x28], 0x48
je 0x45194c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x451937
mov byte [esi], dl
jmp 0x451948
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x476be0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x451994
cmp byte [ebp - 1], 0xa
jne 0x45195b
cmp esi, ebx
jne 0x45195b
mov byte [esi], 0xa
jmp 0x451993
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00443ee1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x451994
mov byte [esi], 0xd
jmp 0x451993
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x476be0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x451991
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x451994
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x45199d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x476be0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4519e3
cmp word [ebx], dx
jne 0x4519e3
or byte [eax + edi + 0x28], 4
jmp 0x4519e8
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x451b4b
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x451b2b
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x451a29
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x451a5f
cmp eax, edx
jae 0x451a6d
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x451a04
jmp 0x451b4b
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x451b26
cmp dword [ebp - 0x18], 0
je 0x451b26
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x476be0]
test byte [eax + edi + 0x28], 0x48
je 0x451afc
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x451ac0
mov word [esi], cx
jmp 0x451af7
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x476be0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x476be0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x476be0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x451b4b
pop eax
cmp word [ebp - 4], ax
jne 0x451b0c
cmp esi, ebx
jne 0x451b0c
mov word [esi], ax
jmp 0x451b48
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00443ee1
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x451b4b
push 0xd
pop eax
jmp 0x451b07
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x476be0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x451b45
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x451b4b
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4535d0
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x474104]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x45361b
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0045376b
test al, al
jne 0x453615
sub edx, 2
cmp edx, edi
jne 0x4535fb
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x45363d
lea eax, [edi + 2]
cmp edx, eax
je 0x45363d
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0045351c
add esp, 0x10
jmp 0x453737
push esi
lea ecx, [ebp - 0x255]
call fcn.0045376b
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x453680
push dword [ebp - 0x25c]
jmp 0x45362d
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4536bd
cmp word [ebp - 0x226], 0
je 0x4536de
cmp word [ebp - 0x226], ax
jne 0x4536bd
cmp word [ebp - 0x224], 0
je 0x4536de
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0045351c
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x45372a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x453697
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x453712
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x453737
push 0x45334c
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00459940
add esp, 0x10
jmp 0x453707
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00433370
leave
ret

Function at 0x45404e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x45405f
pop esi
ret
push ebx
push edi
push esi
call fcn.00454017
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0044b334
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x454087
push ebx
push esi
push edi
call fcn.00435890
add esp, 0xc
push 0
call fcn.0044b2fa
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x454457
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045409c
Function at 0x4565b4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0044c859
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.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x456623
cmp esi, dword [ebp - 4]
je 0x45661e
cmp dword [ebp + 0xc], 0
je 0x45661e
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4565fb
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00456106
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x456625
xor eax, eax
inc eax
jmp 0x456625
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x45668a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x474104]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0044c859
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0044c859
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x456701
cmp word [ecx], dx
je 0x456701
mov eax, dword [0x469a44]
push edi
dec eax
push eax
push 0x469930
call fcn.00456629
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x456774
cmp word [eax], dx
je 0x456774
mov eax, dword [edi]
test eax, eax
je 0x456725
cmp word [eax], dx
je 0x456725
lea eax, [ebp - 0x10]
push eax
call fcn.0045600c
jmp 0x45672e
lea eax, [ebp - 0x10]
push eax
call fcn.004560a7
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x45679e
mov eax, dword [0x46992c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x469620
call fcn.00456629
add esp, 0xc
test al, al
je 0x45679e
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x456769
cmp word [eax], di
je 0x456769
lea eax, [ebp - 0x10]
push eax
call fcn.0045600c
pop ecx
jmp 0x4567a0
lea eax, [ebp - 0x10]
push eax
call fcn.004560a7
jmp 0x456766
mov eax, dword [edi]
test eax, eax
je 0x45678b
cmp word [eax], dx
je 0x45678b
lea eax, [ebp - 0x10]
push eax
call fcn.00455fc1
pop ecx
jmp 0x45679e
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x456869
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004564ae
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x456869
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x456869
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x456869
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4567f6
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0044d3ec
test ebx, ebx
je 0x456864
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0044d3ec
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x456869
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x456869
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0045a0da
add esp, 0x10
xor eax, eax
inc eax
jmp 0x45686b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00433370
leave
ret
Function at 0x4091a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x461e68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
xor ebp, ebp
push esi
mov esi, ecx
mov dword [esi + 8], 0x466b98
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebp
lea ebx, [esi + 8]
push edi
lea edi, [esi + 0x18]
mov dword [edi], 0x466b98
mov dword [edi + 4], ebp
mov dword [edi + 8], ebp
mov dword [edi + 0xc], ebp
mov dword [esp + 0x10], esi
mov dword [esi + 0x28], 0x466b98
mov dword [esi + 0x2c], ebp
mov dword [esi + 0x30], ebp
mov dword [esi + 0x34], ebp
mov dword [esi], 0x4681e0
mov dword [esi + 4], ebp
mov dword [esi + 0x38], 0xffffffff
mov eax, dword [0x47e320]
push eax
push edi
mov dword [esp + 0x24], ebp
call fcn.0040b2a0
add esp, 8
test eax, eax
je 0x40927a
mov ecx, ebx
mov dword [esi + 0x38], ebp
call fcn.00403100
mov eax, dword [edi + 0xc]
cmp eax, ebp
je 0x409234
mov ecx, dword [eax + 0xc]
jmp 0x409236
xor ecx, ecx
mov eax, dword [edi + 8]
imul eax, ecx
add eax, dword [edi + 4]
mov ecx, dword [ebx + 0xc]
cmp ecx, ebp
je 0x409249
mov ebp, dword [ecx + 0xc]
mov ecx, dword [ebx + 8]
mov edi, dword [ebx + 4]
imul ecx, ebp
add ecx, edi
push eax
call fcn.0042bba0
test eax, eax
mov eax, esi
je 0x40927c
pop edi
mov dword [esi + 4], 1
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov eax, esi
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40a4e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x461f13
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x468244
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
lea edi, [esi + 0x20]
mov dword [esp + 0x18], ebx
mov dword [edi], 0x468248
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov byte [esp + 0x18], 1
call fcn.00409d70
mov ecx, edi
call fcn.00409e50
lea eax, [esi + 0x10]
push eax
call dword [0x4664f8]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
pop edi
mov dword [esi + 0x30], 0xffffffff
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40a4f7
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x461f13
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x468244
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
lea edi, [esi + 0x20]
mov dword [esp + 0x18], ebx
mov dword [edi], 0x468248
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov byte [esp + 0x18], 1
call fcn.00409d70
mov ecx, edi
call fcn.00409e50
lea eax, [esi + 0x10]
push eax
call dword [0x4664f8]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
pop edi
mov dword [esi + 0x30], 0xffffffff
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x411030
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4624d9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov ecx, 0x466b98
mov dword [esi + 8], ecx
push edi
xor edi, edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esp + 0xc], esi
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
lea eax, [esi + 0x3c]
mov dword [esi], 0x46c47c
mov dword [esp + 0x18], edi
mov dword [eax], ecx
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
lea ebx, [esi + 0x4c]
mov dword [ebx], ecx
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 4], edi
mov ecx, dword [0x4801a8]
push ecx
push eax
mov byte [esp + 0x20], 3
call fcn.0040b2a0
add esp, 8
test eax, eax
je 0x411112
mov dword [esi + 0x6c], edi
mov edx, dword [0x4801b8]
push edx
push ebx
call fcn.0040b2a0
add esp, 8
test eax, eax
je 0x411112
mov eax, dword [ebx + 0xc]
cmp eax, edi
je 0x4110e8
mov eax, dword [eax + 0xc]
jmp 0x4110ea
xor eax, eax
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
imul ecx, eax
add ecx, edx
push ecx
mov ecx, esi
call fcn.004108d0
mov ecx, esi
call fcn.00410810
mov ecx, esi
call fcn.00410720
mov dword [esi + 4], 1
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x411550
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x462548
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov edi, ecx
mov dword [edi + 8], 0x466b98
mov dword [edi + 0xc], ebp
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], ebp
lea ebx, [edi + 8]
lea esi, [edi + 0x18]
mov dword [esi], 0x466b98
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esp + 0x10], edi
mov dword [edi + 0x28], 0x466b98
mov dword [edi + 0x2c], ebp
mov dword [edi + 0x30], ebp
mov dword [edi + 0x34], ebp
mov ecx, ebx
mov dword [esp + 0x1c], ebp
mov dword [edi], 0x46c4c8
mov dword [edi + 4], ebp
call fcn.00403100
mov eax, dword [0x48026c]
push eax
push esi
call fcn.0040b2a0
add esp, 8
test eax, eax
je 0x411612
mov eax, dword [esi + 0xc]
cmp eax, ebp
je 0x4115da
mov ecx, dword [eax + 0xc]
jmp 0x4115dc
xor ecx, ecx
mov eax, dword [esi + 8]
imul eax, ecx
add eax, dword [esi + 4]
mov ecx, dword [ebx + 0xc]
cmp ecx, ebp
je 0x4115ef
mov ebp, dword [ecx + 0xc]
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 4]
imul ecx, ebp
add ecx, esi
push eax
call fcn.0042bba0
test eax, eax
je 0x411612
mov ecx, edi
call fcn.004114e0
mov dword [edi + 4], 1
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x414620
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
mov ecx, dword [esi + 8]
xor eax, eax
test ecx, ecx
jbe 0x414648
mov dl, byte [esp + 0xc]
push ebx
mov ecx, dword [esi + 4]
mov bl, byte [ecx + eax]
add ecx, eax
xor bl, dl
mov byte [ecx], bl
mov ecx, dword [esi + 8]
inc eax
cmp eax, ecx
jb 0x414633
pop ebx
pop esi
ret 8

Function at 0x415db0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x462a42
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esp + 8], esi
mov dword [esi + 8], 0x467dc0
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esp + 0x14], edi
call fcn.00455d7b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov byte [esp + 0x14], 1
call fcn.00455d7b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x20], eax
mov eax, 0x466b74
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov ecx, esi
mov byte [esp + 0x14], 5
call fcn.00415b90
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x418e50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x462e03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
xor ebx, ebx
mov dword [esp + 0x1c], ebx
lea esi, [edi + 0x30]
mov dword [esp + 0x10], esi
mov dword [esi], 0x466b98
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
mov byte [esp + 0x1c], 2
je 0x418eb2
dec dword [ecx + 4]
jne 0x418eac
cmp byte [ecx + 8], bl
je 0x418e9e
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
je 0x418eac
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0xc], ebx
mov dword [esi + 4], ebx
mov dword [esi], 0x466798
lea esi, [edi + 0x20]
mov dword [esp + 0x10], esi
mov dword [esi], 0x46c8e4
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
mov byte [esp + 0x1c], 3
je 0x418ef3
dec dword [ecx + 4]
jne 0x418eed
cmp byte [ecx + 8], bl
je 0x418edf
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
je 0x418eed
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0xc], ebx
mov dword [esi + 4], ebx
mov ecx, edi
mov dword [esi], 0x466798
mov dword [esp + 0x1c], 0xffffffff
call fcn.00418140
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret