joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d81c
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x28], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
xor eax, eax
pop ebp
ret

Function at 0x1000da61
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [0x3d3c78]
mov ebx, eax
push edi
mov eax, esi
call fcn.1000e811
test eax, eax
jne 0x1000db63
mov ecx, dword [0x3d3c7c]
cmp ecx, 1
jl 0x1000db60
cmp ecx, 0x80
jg 0x1000db60
mov eax, dword [ebp + 0xc]
xor edx, edx
div ecx
test edx, edx
jne 0x1000db60
test cl, 3
jne 0x1000db60
mov edx, esi
imul edx, edx, 0x60
mov edx, dword [edx + 0x3d7ee0]
test edx, edx
je 0x1000dad9
push 0x3d3d00
push 0x3d3c80
push eax
push ebx
push dword [ebp + 8]
call edx
add esp, 0x14
jmp 0x1000db63
cmp dword [ebp + 0xc], 0
je 0x1000db5c
mov edi, 0x3d3c80
jmp 0x1000daec
mov esi, dword [0x3d3c78]
xor edx, edx
test ecx, ecx
jle 0x1000db13
mov ecx, dword [ebp + 8]
sub ecx, edi
lea eax, [edx + 0x3d3c80]
mov esi, dword [ecx + eax]
xor dword [eax], esi
add edx, 4
cmp edx, dword [0x3d3c7c]
jl 0x1000daf7
mov esi, dword [0x3d3c78]
imul esi, esi, 0x60
push 0x3d3d00
push ebx
push edi
call dword [esi + 0x3d7ec4]
add esp, 0xc
test eax, eax
jne 0x1000db63
mov ecx, dword [0x3d3c7c]
xor edx, edx
test ecx, ecx
jle 0x1000db52
mov esi, ebx
sub esi, edi
lea eax, [edx + 0x3d3c80]
mov ecx, dword [esi + eax]
mov dword [eax], ecx
mov ecx, dword [0x3d3c7c]
add edx, 4
cmp edx, ecx
jl 0x1000db3a
add dword [ebp + 8], ecx
add ebx, ecx
sub dword [ebp + 0xc], ecx
jne 0x1000dae6
xor eax, eax
jmp 0x1000db63
push 0x10
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1000dea2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x3d1628]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x3d4da0]
push edi
mov ebx, ecx
mov edi, edx
mov eax, esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], edi
call fcn.1000e811
test eax, eax
jne 0x1000dfaf
mov ecx, dword [0x3d4da4]
cmp ecx, 1
jl 0x1000dfac
cmp ecx, 0x80
jg 0x1000dfac
mov eax, dword [ebp + 8]
xor edx, edx
div ecx
test edx, edx
jne 0x1000dfac
test cl, 3
jne 0x1000dfac
mov ecx, esi
imul ecx, ecx, 0x60
mov ecx, dword [ecx + 0x3d7ee4]
test ecx, ecx
je 0x1000df2d
push 0x3d4e28
push 0x3d4da8
push eax
push edi
push ebx
call ecx
add esp, 0x14
jmp 0x1000dfaf
cmp dword [ebp + 8], 0
je 0x1000dfa8
jmp 0x1000df3b
mov esi, dword [0x3d4da0]
imul esi, esi, 0x60
push 0x3d4e28
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [esi + 0x3d7ec8]
add esp, 0xc
test eax, eax
jne 0x1000dfaf
mov eax, dword [0x3d4da4]
xor edi, edi
test eax, eax
jle 0x1000df98
mov ecx, dword [ebp - 0x18]
lea esi, [ebp - 0x14]
mov eax, 0x3d4da8
sub esi, ebx
sub ebx, eax
sub ecx, eax
mov dword [ebp - 0x20], ecx
lea eax, [edi + 0x3d4da8]
lea edx, [ebx + eax]
mov ecx, dword [esi + edx]
xor ecx, dword [eax]
mov edx, dword [edx]
mov dword [eax], edx
mov edx, dword [ebp - 0x20]
mov dword [edx + eax], ecx
mov eax, dword [0x3d4da4]
add edi, 4
cmp edi, eax
jl 0x1000df74
mov ebx, dword [ebp - 0x1c]
add dword [ebp - 0x18], eax
add ebx, eax
sub dword [ebp + 8], eax
mov dword [ebp - 0x1c], ebx
jne 0x1000df35
xor eax, eax
jmp 0x1000dfaf
push 0x10
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001cd2e
leave
ret
Function at 0x1000eef8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebx + 0x70]
mov eax, esi
call fcn.1000ede8
test eax, eax
jne 0x1000f038
imul esi, esi, 0x68
push edi
mov edi, dword [esi + 0x3d8fb0]
push dword [esi + 0x3d8fb4]
mov dword [ebp - 8], edi
call fcn.10015555
push edi
mov dword [ebp - 4], eax
call fcn.10015555
cmp dword [ebp - 4], 0
pop ecx
mov edi, eax
pop ecx
mov dword [ebp - 0xc], edi
je 0x1000f029
test edi, edi
je 0x1000f020
push edi
push ebx
call dword [esi + 0x3d9004]
mov edi, eax
xor eax, eax
pop ecx
pop ecx
cmp edi, eax
jne 0x1000effe
cmp dword [esi + 0x3d8fb4], eax
jbe 0x1000ef84
mov ecx, dword [ebx + 0xe8]
mov cl, byte [ecx + eax]
mov edx, dword [ebp - 4]
xor cl, 0x5c
mov byte [eax + edx], cl
inc eax
cmp eax, dword [esi + 0x3d8fb4]
jb 0x1000ef69
push ebx
call dword [esi + 0x3d8ffc]
mov edi, eax
pop ecx
test edi, edi
jne 0x1000effe
push dword [esi + 0x3d8fb4]
push dword [ebp - 4]
push ebx
call dword [esi + 0x3d9000]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1000effe
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
call dword [esi + 0x3d9000]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1000effe
push dword [ebp - 4]
push ebx
call dword [esi + 0x3d9004]
pop ecx
pop ecx
mov edi, eax
xor ecx, ecx
cmp edi, ecx
jne 0x1000effe
cmp dword [ebp - 8], ecx
jbe 0x1000eff7
mov esi, dword [ebp - 4]
sub esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp ecx, dword [eax]
jae 0x1000eff7
mov eax, dword [ebp + 8]
add eax, ecx
mov dl, byte [esi + eax]
inc ecx
mov byte [eax], dl
cmp ecx, dword [ebp - 8]
jb 0x1000efe0
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
xor edi, edi
push dword [ebx + 0xe8]
call fcn.10015478
push dword [ebp - 0xc]
call fcn.10015478
push dword [ebp - 4]
call fcn.10015478
add esp, 0xc
mov eax, edi
jmp 0x1000f037
push dword [ebp - 4]
call fcn.10015478
pop ecx
test edi, edi
je 0x1000f034
push edi
call fcn.10015478
pop ecx
push 0xd
pop eax
pop edi
pop esi
leave
ret
Function at 0x1000f03b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, eax
call fcn.1000ede8
test eax, eax
jne 0x1000f076
push esi
mov esi, ebx
imul esi, esi, 0x68
mov dword [edi + 0x70], ebx
mov eax, dword [esi + 0x3d8fb0]
push dword [esi + 0x3d8fb4]
mov dword [ebp - 4], eax
call fcn.10015555
pop ecx
mov dword [ebp - 8], eax
test eax, eax
jne 0x1000f079
push 0xd
pop eax
pop esi
pop ebx
leave
ret
push dword [esi + 0x3d8fb4]
call fcn.10015555
pop ecx
mov dword [edi + 0xe8], eax
test eax, eax
jne 0x1000f09f
push 0xd
pop ebx
push dword [ebp - 8]
call fcn.10015478
pop ecx
mov eax, ebx
jmp 0x1000f075
mov ecx, dword [esi + 0x3d8fb4]
cmp ecx, 0x10
jae 0x1000f0e7
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
push 0x10
push 0x3d6f80
mov eax, ebx
call fcn.1000e0fe
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1000f167
mov eax, dword [esi + 0x3d8fb4]
cmp dword [ebp - 4], eax
jae 0x1000f117
sub eax, dword [ebp - 4]
push eax
mov eax, dword [edi + 0xe8]
add eax, dword [ebp - 4]
jmp 0x1000f10f
push 0x10
push 0x3d6f80
push eax
call fcn.1001bd30
mov eax, dword [esi + 0x3d8fb4]
add esp, 0xc
cmp eax, 0x10
jbe 0x1000f117
add eax, 0xfffffff0
push eax
mov eax, dword [edi + 0xe8]
add eax, 0x10
push eax
call fcn.1000edb5
pop ecx
pop ecx
xor eax, eax
cmp dword [esi + 0x3d8fb4], eax
jbe 0x1000f13c
mov ecx, dword [edi + 0xe8]
mov cl, byte [ecx + eax]
mov edx, dword [ebp - 8]
xor cl, 0x36
mov byte [eax + edx], cl
inc eax
cmp eax, dword [esi + 0x3d8fb4]
jb 0x1000f121
push edi
call dword [esi + 0x3d8ffc]
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x1000f167
push dword [esi + 0x3d8fb4]
push dword [ebp - 8]
push edi
call dword [esi + 0x3d9000]
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1000f092
push dword [edi + 0xe8]
call fcn.10015478
pop ecx
jmp 0x1000f092
Function at 0x41ad50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x411015
lea edi, [esi - 0x10015]
push edi
or ebp, 0xffffffff
jmp 0x41ad72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41ad79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41ad68
mov eax, 1
add ebx, ebx
jne 0x41ad8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41ad80
jne 0x41ad9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41ad80
xor ecx, ecx
sub eax, 3
jb 0x41adb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41ae22
mov ebp, eax
add ebx, ebx
jne 0x41adbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41adc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41adec
inc ecx
add ebx, ebx
jne 0x41add8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41adcd
jne 0x41ade9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41adcd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41ae0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41adfd
jmp 0x41ad6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41ae0c
add edi, ecx
jmp 0x41ad6e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41ae2a
cmp byte [edi], 5
jne 0x41ae2a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41ae2f
lea edi, [esi + 0x18000]
mov eax, dword [edi]
or eax, eax
je 0x41aea7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a094]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41ae5c
mov ecx, edi
jns 0x41ae8b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1a09c]
or eax, eax
je 0x41aea1
mov dword [ebx], eax
add ebx, 4
jmp 0x41ae79
call dword [esi + 0x1a098]
mov ebp, dword [esi + 0x1a0a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41aedb
sub esp, 0xffffff80
jmp 0x404c20

Function at 0x40110b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x401158
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push 0x3ff
push 0x400
push eax
call fcn.004011a6
lea eax, [ebp - 0x404]
push eax
call fcn.004011a6
add esp, 0x18
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401b66
leave
ret

Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d
Function at 0x402d50
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x490f08
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x4ae498]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x40]
xor edi, edi
push 0xffffffffffffffff
push edi
xor eax, eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], ax
call fcn.004020d0
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], edi
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x402db0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00402620
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push edi
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.004020d0
cmp dword [esp + 0x28], 8
jb 0x402dfd
mov eax, dword [esp + 0x14]
push eax
call fcn.0046a6fc
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret

Function at 0x403390
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4908c4
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x4ae498]
xor eax, esp
mov dword [esp + 0x154], eax
push ebx
push esi
mov eax, dword [0x4ae498]
xor eax, esp
push eax
lea eax, [esp + 0x164]
mov dword fs:[0], eax
xor esi, esi
lea eax, [esp + 0xc]
mov dword [esp + 0x10], esi
push eax
mov ecx, 0x4c09a8
mov dword [esp + 0x10], esi
call fcn.00451c40
mov ecx, 0x4c09a8
call fcn.00451b00
cmp eax, 0x80
je 0x4033f7
cmp eax, esi
jne 0x4033ff
mov dword [esp + 0xc], 0xffffff
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x50], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4034ea
call fcn.00427fe0
push 0x13
push 0x49d0cc
test eax, eax
je 0x403463
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], esi
mov byte [esp + 0x3c], 0
call fcn.004022c0
lea edx, [esp + 0x30]
mov dword [esp + 0x16c], esi
mov ebx, 1
push edx
mov dword [esp + 0x14], ebx
call fcn.00429850
add esp, 4
jmp 0x4034a2
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], esi
mov byte [esp + 0x20], 0
call fcn.004022c0
lea eax, [esp + 0x14]
mov dword [esp + 0x16c], 1
mov ebx, 2
push eax
mov dword [esp + 0x14], ebx
call fcn.00427fe0
mov ecx, eax
call fcn.00428c70
test bl, 2
je 0x4034cf
and ebx, 0xfffffffd
cmp dword [esp + 0x2c], 0x10
jb 0x4034be
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0046a6fc
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], esi
mov byte [esp + 0x18], 0
test bl, 1
je 0x4034f6
cmp dword [esp + 0x48], 0x10
jb 0x4034f6
mov edx, dword [esp + 0x34]
push edx
call fcn.0046a6fc
add esp, 4
jmp 0x4034f6
cmp dword [esp + 0x50], 6
mov eax, 0xffffff
jae 0x4034fa
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x164]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.0046aaed
add esp, 0x164
ret
Function at 0x4050f0
Capabilities:
Check os version
Get common file path
Get startup folder

Disassembly:
sub esp, 0x324
mov eax, dword [0x4ae498]
xor eax, esp
mov dword [esp + 0x320], eax
push 0x114
lea eax, [esp + 8]
push 0
push eax
mov dword [esp + 0xc], 0
call fcn.0046ad80
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 8], 5
mov eax, 0x24
sete cl
test cl, cl
je 0x405149
mov eax, 0x25
lea edx, [esp]
push edx
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov ecx, dword [esp]
lea eax, [esp + 0x118]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edx, dword [esp]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
lea eax, [esp + 0x118]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405194
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x11c]
push ecx
mov ecx, esi
call fcn.00402740
mov ecx, dword [esp + 0x320]
xor ecx, esp
mov eax, esi
call fcn.0046aaed
add esp, 0x324
ret

Function at 0x4051d0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x491948
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x4ae498]
xor eax, esp
mov dword [esp + 0x70], eax
push esi
push edi
mov eax, dword [0x4ae498]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
push 0xc
xor eax, eax
xor edi, edi
push str.yowindow.scr
lea ecx, [esp + 0x68]
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], edi
mov word [esp + 0x6c], ax
call fcn.00402740
lea esi, [esp + 0x44]
mov dword [esp + 0x88], edi
call fcn.004050f0
push 0x49d0c0
mov ecx, esi
push ecx
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x94], 1
call fcn.00402d50
lea ecx, [esp + 0x6c]
push ecx
push eax
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0xa0], 2
call fcn.00406720
mov esi, 8
add esp, 0x18
cmp dword [esp + 0x24], esi
jb 0x405288
mov eax, dword [esp + 0x10]
push eax
call fcn.0046a6fc
add esp, 4
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x40], esi
jae 0x405296
lea eax, [esp + 0x2c]
push 1
push edi
push edi
push eax
push str.install
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [esp + 0x40], esi
jb 0x4052ba
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0046a6fc
add esp, 4
xor edx, edx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], dx
cmp dword [esp + 0x5c], esi
jb 0x4052e0
mov eax, dword [esp + 0x48]
push eax
call fcn.0046a6fc
add esp, 4
xor ecx, ecx
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], edi
mov word [esp + 0x48], cx
cmp dword [esp + 0x78], esi
jb 0x405306
mov edx, dword [esp + 0x64]
push edx
call fcn.0046a6fc
add esp, 4
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0046aaed
add esp, 0x80
ret
Function at 0x405890
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x490e09
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4ae498]
xor eax, esp
mov dword [esp + 0x44], eax
push edi
mov eax, dword [0x4ae498]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x58], edi
mov dword [esp + 0xc], edi
push edi
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0x49ce84
mov ecx, esi
mov dword [esp + 0x18], esi
mov word [esi + 4], ax
call fcn.00402740
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], edi
push ecx
mov dword [esp + 0x10], 1
call fcn.00427720
mov ecx, eax
call fcn.00427b80
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0xc]
push 0x80000001
push eax
mov dword [esp + 0x64], 1
call fcn.0043ec10
add esp, 0xc
cmp eax, edi
jne 0x405979
xor ecx, ecx
push 0xb
mov word [esp + 0x1c], cx
push str.lang_offset
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
call fcn.00402740
push esi
lea edx, [esp + 0x18]
mov byte [esp + 0x5c], 2
mov eax, dword [esp + 0xc]
push edx
push eax
call fcn.0043ecf0
add esp, 0xc
cmp dword [esp + 0x2c], 8
jb 0x405979
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0046a6fc
add esp, 4
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x48], 8
jb 0x405998
mov eax, dword [esp + 0x34]
push eax
call fcn.0046a6fc
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0046aaed
add esp, 0x54
ret
Function at 0x405c20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x490d72
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x4ae498]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
lea eax, [esp + 0x34]
xor esi, esi
push eax
mov dword [esp + 0x14], esi
call fcn.00427720
mov ecx, eax
call fcn.00427b80
push eax
lea ecx, [esp + 0x18]
push 0x80000001
push ecx
mov dword [esp + 0x80], esi
call fcn.0043ebc0
mov ebx, 8
add esp, 0xc
mov dword [esp + 0x74], 0xffffffff
mov edi, eax
cmp dword [esp + 0x4c], ebx
jb 0x405c99
mov edx, dword [esp + 0x38]
push edx
call fcn.0046a6fc
add esp, 4
cmp edi, esi
je 0x405d7b
call fcn.00427fe0
push 0x14
mov edi, 0xf
push str.Error_writing_locked
test eax, eax
je 0x405ce8
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], esi
mov byte [esp + 0x40], 0
call fcn.004022c0
mov ebx, 1
lea eax, [esp + 0x34]
mov dword [esp + 0x74], ebx
push eax
mov dword [esp + 0x14], ebx
call fcn.00429850
add esp, 4
jmp 0x405d1c
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], esi
mov byte [esp + 0x24], 0
call fcn.004022c0
mov ebx, 2
lea ecx, [esp + 0x18]
mov dword [esp + 0x74], ebx
push ecx
mov dword [esp + 0x14], ebx
call fcn.00427fe0
mov ecx, eax
call fcn.00428c70
test bl, 2
je 0x405d45
and ebx, 0xfffffffd
cmp dword [esp + 0x30], 0x10
jb 0x405d38
mov edx, dword [esp + 0x1c]
push edx
call fcn.0046a6fc
add esp, 4
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], esi
mov byte [esp + 0x1c], 0
test bl, 1
je 0x405ddc
cmp dword [esp + 0x4c], 0x10
jb 0x405ddc
mov eax, dword [esp + 0x38]
push eax
call fcn.0046a6fc
add esp, 4
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x68
ret 4
xor ecx, ecx
push 6
mov word [esp + 0x58], cx
push str.locked
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], esi
call fcn.00402740
movzx edx, byte [esp + 0x7c]
push edx
lea eax, [esp + 0x54]
mov dword [esp + 0x78], 3
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.0043ed90
add esp, 0xc
cmp dword [esp + 0x68], ebx
jb 0x405dd1
mov edx, dword [esp + 0x54]
push edx
call fcn.0046a6fc
add esp, 4
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x68
ret 4
Function at 0x4085e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x491788
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4ae498]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 8], 0
mov eax, dword [esp + 0x24]
push 1
push eax
push ecx
mov dword [esp + 0x20], 0
mov ecx, dword [esp + 0x2c]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], esp
test eax, eax
je 0x408636
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x28]
push esi
call fcn.00408700
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x30]
add esp, 0x10
test eax, eax
je 0x40865b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x408670
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x491788
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4ae498]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 8], 0
mov eax, dword [esp + 0x24]
push 0
push eax
push ecx
mov dword [esp + 0x20], 0
mov ecx, dword [esp + 0x2c]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], esp
test eax, eax
je 0x4086c6
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x28]
push esi
call fcn.004087e0
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x30]
add esp, 0x10
test eax, eax
je 0x4086eb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x40db40
Capabilities:
Get geographical location

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 0
push 0
push 0x59
push 0x400
mov dword [esp + 0x20], 0
call ebx
xor ecx, ecx
mov ebp, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046941e
add esp, 4
push ebp
mov edi, eax
push edi
push 0x59
push 0x400
call ebx
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40dba5
sub eax, edx
sar eax, 1
push eax
push edi
mov ecx, esi
call fcn.00402740
push edi
call fcn.0046a6fc
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x40dbd0
Capabilities:
Get geographical location

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 0
push 0
push 0x5a
push 0x400
mov dword [esp + 0x20], 0
call ebx
xor ecx, ecx
mov ebp, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046941e
add esp, 4
push ebp
mov edi, eax
push edi
push 0x5a
push 0x400
call ebx
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40dc35
sub eax, edx
sar eax, 1
push eax
push edi
mov ecx, esi
call fcn.00402740
push edi
call fcn.0046a6fc
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret