joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
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 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
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 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
mov esi, 0x62b27904
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x55584415
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401040
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, eax
test edi, edi
je 0x40119b
lea ecx, [edi*8]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
lea edx, [ecx + ecx]
lea ecx, [edi*8]
sub ecx, edx
sub ecx, 2
je 0x40108c
sub ecx, 2
jne 0x40108f
add eax, 2
jmp 0x40108f
add eax, 3
inc eax
cmp dword [ebx], eax
jae 0x4010a2
pop edi
mov dword [ebx], eax
pop esi
mov eax, 0xfffffff0
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
xor edx, edx
test eax, eax
jle 0x401136
lea edx, [eax - 1]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
lea eax, [edx + edx*2]
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
movzx eax, byte [esi]
movzx edx, byte [esi + 1]
movzx edi, byte [esi + 2]
mov ebx, eax
sar ebx, 2
and ebx, 0x3f
mov bl, byte [ebx + 0x41f088]
mov byte [ecx], bl
mov ebx, edx
shl eax, 4
sar ebx, 4
add ebx, eax
and ebx, 0x3f
movzx eax, byte [ebx + 0x41f088]
mov byte [ecx + 1], al
mov eax, edi
sar eax, 6
lea edx, [eax + edx*4]
and edx, 0x3f
movzx eax, byte [edx + 0x41f088]
mov byte [ecx + 2], al
and edi, 0x3f
mov dl, byte [edi + 0x41f088]
mov byte [ecx + 3], dl
add esi, 3
add ecx, 4
dec dword [ebp - 4]
jne 0x4010d2
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 8]
cmp edx, edi
jge 0x40118e
movzx eax, byte [esi]
inc edx
cmp edx, edi
jge 0x401148
movzx esi, byte [esi + 1]
jmp 0x40114a
xor esi, esi
mov ebx, eax
sar ebx, 2
and ebx, 0x3f
mov bl, byte [ebx + 0x41f088]
mov byte [ecx], bl
mov ebx, esi
sar ebx, 4
shl eax, 4
add ebx, eax
and ebx, 0x3f
mov al, byte [ebx + 0x41f088]
mov byte [ecx + 1], al
cmp edx, edi
jge 0x401183
and esi, 0xf
mov dl, byte [esi*4 + 0x41f088]
mov byte [ecx + 2], dl
jmp 0x401187
mov byte [ecx + 2], 0x3d
add ecx, 3
mov byte [ecx], 0x3d
inc ecx
mov edx, dword [ebp + 0x10]
mov eax, ecx
sub eax, dword [ebp + 0xc]
mov dword [edx], eax
mov byte [ecx], 0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4052a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4224a0]
xor eax, ebp
mov dword [ebp - 4], eax
xor edx, edx
lea eax, [ebp - 0x1c]
push edi
mov dword [ebp - 0x1c], 0x3a423832
mov dword [ebp - 0x18], 0x42414042
mov dword [ebp - 0x14], 0x573c4043
mov dword [ebp - 0x10], 0x81785a59
mov dword [ebp - 0xc], 0x45544d95
mov word [ebp - 8], 0x48
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], edx
mov dword [ebp - 0x20], edx
mov byte [esi], dl
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, dl
jne 0x4052f1
sub eax, edi
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.00401220
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
pop edi
call fcn.0040a547
mov esp, ebp
pop ebp
ret

Function at 0x4055a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [0x425a98]
push edi
test edx, edx
je 0x40562b
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4055b5
sub eax, edi
je 0x40562b
mov eax, dword [ebp + 8]
mov dword [esi + 0x24], eax
mov eax, edx
mov dword [esi + 0x20], 1
mov dword [esi + 0x28], 0x40a
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4055e0
sub eax, edi
push eax
push edx
lea ecx, [esi + 4]
call fcn.00401220
cmp dword [esi + 0x20], 0
push esi
je 0x405616
push 0
push fcn.00405640
call fcn.0040b377
add esp, 0xc
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.00405640
add esp, 4
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x407ab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b458
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4224a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x407c41
cmp byte [ebx + 0x49], 0
je 0x407c41
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x407c35
lea esi, [ebp - 0x2c]
call fcn.004076e0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x407b23
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x407b5c
dec eax
je 0x407b60
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x407c3c
call fcn.00402800
xor al, al
jmp 0x407c43
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x407b70
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x407b9d
cmp edi, 0x10
jae 0x407b7f
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0040be6c
add esp, 0x10
cmp esi, eax
jne 0x407c2d
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x407c39
test esi, esi
jne 0x407b17
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x407c5e
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x407c5e
cmp edi, esi
jae 0x407c16
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00401550
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x407b17
mov ecx, eax
cmp edi, 0x10
jae 0x407bf2
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x407c0d
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x407b11
test esi, esi
jne 0x407be8
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x407c25
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x407b11
lea ecx, [ebp - 0x2c]
call fcn.00402800
xor al, al
jmp 0x407c43
lea ecx, [ebp - 0x2c]
call fcn.00402800
mov al, 1
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.0040a547
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.00409ab5
int3
Function at 0x407ed0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b19b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4224a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040a111
push 4
mov dword [ebp - 4], 0
call fcn.0040aa8d
mov edi, eax
add esp, 4
test edi, edi
je 0x407f4c
call fcn.00409fe9
mov dword [edi], eax
call fcn.00409da8
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0040a0d2
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x407f42
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0040a0fa
jmp 0x407f4e
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 [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x409360
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x409382
push 0xc1
call dword [0x41c028]
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x4093a2
push 0xc1
call dword [0x41c028]
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x50]
mov eax, dword [ebx + 0x34]
push esi
mov esi, dword [0x41c030]
push edi
push 4
push 0x3000
push edx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x4093e6
mov ecx, dword [ebx + 0x50]
push 4
push 0x3000
push ecx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x4093e6
push 0xe
call dword [0x41c028]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x24
push 0
call dword [0x41c020]
push eax
call dword [0x41c014]
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x40941e
push 0xe
call dword [0x41c028]
push 0x8000
push 0
push edi
call dword [0x41c01c]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 4
mov dword [esi + 4], edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x409320
mov dword [esi + 0x18], 0x409330
mov dword [esi + 0x1c], 0x409350
mov dword [esi + 0x20], eax
mov edx, dword [ebx + 0x54]
push 0x1000
push edx
push edi
call dword [0x41c030]
mov ecx, dword [ebx + 0x54]
mov edx, dword [ebp + 8]
push ecx
push edx
push eax
mov dword [ebp - 4], eax
call fcn.0040c4a0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 4]
push esi
mov dword [esi], eax
mov dword [eax + 0x34], edi
mov eax, dword [ebp + 0xc]
push ebx
push eax
push ecx
call fcn.00408f50
add esp, 0x1c
test al, al
jne 0x40949a
push 0x570
call dword [0x41c028]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
sub eax, dword [ebx + 0x34]
je 0x4094ac
push eax
mov eax, esi
call fcn.00409120
add esp, 4
call fcn.004091b0
test eax, eax
je 0x4094e6
push esi
call fcn.00409010
add esp, 4
mov eax, esi
call fcn.004090e0
mov ecx, dword [esi]
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x4094fb
push 0
push 1
add eax, edi
push edi
call eax
test eax, eax
jne 0x4094f4
push 0x45a
call dword [0x41c028]
call fcn.004095f0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], 1
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409870
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x4224a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
xor ebx, ebx
push ebx
push eax
push ebx
push ebx
push ebx
push 0x80000000
push ebx
push 0x80000000
push 0xcf0000
push 0x425900
push 0x4259d0
push ebx
mov dword [0x4259c8], eax
call dword [0x41c180]
mov edi, eax
xor eax, eax
cmp edi, ebx
je 0x4099cc
push esi
push 0x1ff
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
lea eax, [ebp - 0x22f]
push ebx
push eax
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x230], bl
call fcn.00413e90
add esp, 0xc
lea esi, [ebp - 0x24c]
call fcn.00405500
mov esi, 0x10
cmp dword [eax + 0x14], esi
jb 0x409913
mov eax, dword [eax]
push 0x41f148
push eax
push str._s_s
lea edx, [ebp - 0x230]
call fcn.00402b60
add esp, 0xc
cmp dword [ebp - 0x238], esi
pop esi
jb 0x409944
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.0040aa31
add esp, 4
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x230]
push 0x200
push eax
mov dword [ebp - 0x10], 0x666e6f63
mov dword [ebp - 0xc], 0x692e6769
mov word [ebp - 8], 0x696e
mov byte [ebp - 6], bl
call fcn.0040af84
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push 0x20
lea edx, [ebp - 0x30]
push edx
push 0x41f210
push str.userid
push str.Setting
call dword [0x41c008]
push 0x2c
call fcn.0040aa8d
add esp, 4
cmp eax, ebx
je 0x4099b7
mov dword [eax], ebx
mov dword [eax + 0x18], 0xf
mov dword [eax + 0x14], ebx
mov byte [eax + 4], bl
mov dword [eax + 0x24], ebx
jmp 0x4099b9
xor eax, eax
push edi
lea edx, [ebp - 0x30]
mov dword [0x425a98], eax
call fcn.004055a0
mov eax, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040a547
mov esp, ebp
pop ebp
ret
Function at 0x407f4b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417400]
jne 0x407f55
repz ret
jmp fcn.0040dcd5

Function at 0x40ad5c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00406270
and dword [ebp - 0x14], 0
cmp dword [0x445e34], 0
mov dword [ebp - 0x18], eax
jne 0x40ae0f
push 0x4021f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40aeb7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4021ec
push ebx
call edi
test eax, eax
je 0x40aeb7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4021dc
push ebx
mov dword [0x445e34], eax
call edi
push eax
call esi
push 0x4021c8
push ebx
mov dword [0x445e38], eax
call edi
push eax
call esi
push 0x4021ac
push ebx
mov dword [0x445e3c], eax
call edi
push eax
call esi
mov dword [0x445e44], eax
test eax, eax
je 0x40ae0f
push 0x402194
push ebx
call edi
push eax
call esi
mov dword [0x445e40], eax
mov eax, dword [0x445e40]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40ae68
cmp dword [0x445e44], ecx
je 0x40ae68
push eax
call esi
push dword [0x445e44]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40ae68
test ebx, ebx
je 0x40ae68
call edi
test eax, eax
je 0x40ae5f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40ae5f
test byte [ebp - 8], 1
jne 0x40ae68
or dword [ebp + 0x10], 0x200000
jmp 0x40ae9b
mov eax, dword [0x445e38]
cmp eax, dword [ebp - 0x18]
je 0x40ae9b
push eax
call esi
test eax, eax
je 0x40ae9b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40ae9b
mov eax, dword [0x445e3c]
cmp eax, dword [ebp - 0x18]
je 0x40ae9b
push eax
call esi
test eax, eax
je 0x40ae9b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x445e34]
call esi
test eax, eax
je 0x40aeb7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40aeb9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407f4b
leave
ret

Function at 0x414820
Capabilities:
Delete file
Get uefi variable

Disassembly:
sub esp, 0x800
cmp dword [0x2b6f994], 0x37
jne 0x414890
push 0x403400
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x403418
push 0x403468
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
push 0
lea eax, [esp + 4]
push eax
push 0x4034e0
push 0x4034fc
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetMessageWaitingIndicator]
push 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
lea ecx, [esp + 0x404]
push ecx
push 0x403510
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
mov edx, dword [0x2b6fda8]
mov ecx, dword [0x2b6f478]
mov al, byte [edx + esi + 0x38d6]
mov byte [ecx + esi], al
add esp, 0x800
ret
Function at 0x51002e18
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.51004440
test esi, esi
jne 0x51002e4f
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.51004530
jmp 0x51002e70
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.51002cb4
mov dword [esp], eax
test esi, esi
je 0x51002e70
cmp dword [ebx], 0
je 0x51002e70
dec esi
jmp 0x51002e57
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x51003528
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x51088020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x510035c0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x510035a0
xor eax, eax
push ebp
push 0x51003599
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x510035dc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510035a0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x51088020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x51088020], ax
mov esp, ebp
pop ebp
ret

Function at 0x510042bc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5108b048], 0
je 0x5100431d
cmp word [0x5108b21c], 0xd7b2
jne 0x510042e5
cmp dword [0x5108b224], 0
jbe 0x510042e5
mov eax, 0x5108b218
call dword [0x5108b234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x5108806c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x51004344
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x51088030], 0
jne 0x51004339
push 0
push 0x51088064
push 0x5108806c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x510061b8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x5100621e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.510046b0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.510030ec
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x51006208
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51006225
lea eax, [ebp - 0x10]
call fcn.51004440
ret

Function at 0x51008bf4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.51004900
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x51008c0d
test al, 0x10
jne 0x51008c11
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x51008d00
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.51004900
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x51008d22
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x5100bfe4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x5100c01d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.51004530
jmp 0x5100c026
mov eax, ebx
mov edx, esi
call fcn.51004494
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x5100c030
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x5100c051
mov al, byte [esp]
jmp 0x5100c053
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret