joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5427f0
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5c3040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x542833
call fcn.0053c5b7
mov dword [eax], 0xf
call fcn.0053c5ca
mov dword [eax], 0xd
call fcn.0052a4ca
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00524763
leave
ret
test eax, eax
jne 0x54283a
inc eax
jmp 0x542827
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x542825
xor eax, eax
cmp ecx, 1
setne al
jmp 0x542827

Function at 0x543cda
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.005258e0
mov eax, dword [0x5c3040]
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.0053d74b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x543d1c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x543e78
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00555510
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 + 0x5c5dd0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0053f422
mov ecx, dword [esi*4 + 0x5c5dd0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x543e71
cmp eax, dword [ecx + edi + 0x24]
jne 0x543e71
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x543e71
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0053f422
add esp, 0x14
test edx, edx
jl 0x543e71
jg 0x543de7
test eax, eax
jb 0x543e71
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x543e71
jl 0x543e01
cmp dword [ebp - 0x1008], eax
ja 0x543e71
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x543e1f
test ebx, ebx
je 0x543e58
cmp ecx, edi
jae 0x543e58
mov al, byte [ecx]
cmp al, 0xd
jne 0x543e39
lea eax, [edi - 1]
cmp ecx, eax
jae 0x543e45
cmp byte [ecx + 1], 0xa
jne 0x543e45
inc ecx
jmp 0x543e45
movzx eax, al
movsx eax, byte [eax + 0x5c3200]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x543e1f
cmp edx, ebx
jne 0x543e1f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x543e76
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00524763
leave
ret
Function at 0x54992e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x576ce4
push 0x576cdc
push str.FlsAlloc
push 0x1f
call fcn.00549759
mov esi, eax
add esp, 0x10
test esi, esi
je 0x549962
push dword [ebp + 8]
mov ecx, esi
call dword [0x55b7b8]
call esi
jmp 0x549968
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5499ac
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x576cf4
push 0x576cec
push str.FlsGetValue
push 0x21
call fcn.00549759
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5499e3
push dword [ebp + 8]
mov ecx, esi
call dword [0x55b7b8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x5499eb
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x576cfc
push 0x576cf4
push str.FlsSetValue
push 0x22
call fcn.00549759
mov esi, eax
add esp, 0x10
test esi, esi
je 0x549a25
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x55b7b8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x54d2d1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0054cdec
Function at 0x54d9b8
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.0054d934
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x54db27
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x54db27
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x54dadc
jg 0x54da14
test eax, eax
je 0x54dad2
push 1
push 0x1000
call fcn.0054b4c1
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x54da37
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x54dac9
push 0x8000
push ebx
call fcn.00541a08
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x54da60
jg 0x54da5b
cmp ecx, 0x1000
jb 0x54da60
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0053d52f
add esp, 0x10
cmp eax, 0xffffffff
je 0x54daa5
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 0x54da5b
jl 0x54da8c
test ecx, ecx
jne 0x54da4d
push dword [ebp - 0xc]
push ebx
call fcn.00541a08
push esi
call fcn.00548c9c
add esp, 0xc
xor ebx, ebx
jmp 0x54db35
cmp byte [edi + 0x24], 0
je 0x54dabc
cmp dword [edi + 0x20], 5
jne 0x54dabc
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x54dac7
mov ebx, dword [edi + 0x18]
jmp 0x54dac9
xor ebx, ebx
push esi
call fcn.00548c9c
pop ecx
jmp 0x54db35
test ecx, ecx
jg 0x54da9e
jl 0x54dadc
test eax, eax
jae 0x54da9e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0053f440
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x54dafc
cmp byte [edi + 0x1c], 0
je 0x54da9e
jmp 0x54db2d
push ebx
call fcn.0053f8a3
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x54da9e
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 0x54db35
cmp byte [edi + 0x1c], 0
je 0x54db32
mov ebx, dword [edi + 0x18]
jmp 0x54db35
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0053f440
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x54f09e
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 0x54f13b
push ebx
push esi
call fcn.0054f067
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.00548fbf
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x54f0e8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x54f13a
push edi
push eax
call fcn.00549447
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x54f108
call fcn.00548c9c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x54f139
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00548fbf
add esp, 0x20
test eax, eax
jne 0x54f127
push edi
call fcn.00548c9c
jmp 0x54f12f
push ebx
call fcn.00548c9c
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 0x54f13e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x54f14f
pop esi
ret
push ebx
push edi
push esi
call fcn.0054f067
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00549447
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x54f177
push ebx
push esi
push edi
call fcn.005264b0
add esp, 0xc
push 0
call fcn.00548c9c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x5510b1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.005489b1
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 0x551120
cmp esi, dword [ebp - 4]
je 0x55111b
cmp dword [ebp + 0xc], 0
je 0x55111b
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x5510f8
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00550c00
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x551122
xor eax, eax
inc eax
jmp 0x551122
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x551187
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5c3040]
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.005489b1
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.005489b1
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 0x5511fe
cmp word [ecx], dx
je 0x5511fe
mov eax, dword [0x5778a4]
push edi
dec eax
push eax
push 0x577790
call fcn.00551126
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x551271
cmp word [eax], dx
je 0x551271
mov eax, dword [edi]
test eax, eax
je 0x551222
cmp word [eax], dx
je 0x551222
lea eax, [ebp - 0x10]
push eax
call fcn.00550b06
jmp 0x55122b
lea eax, [ebp - 0x10]
push eax
call fcn.00550ba1
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x55129b
mov eax, dword [0x57778c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x577480
call fcn.00551126
add esp, 0xc
test al, al
je 0x55129b
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x551266
cmp word [eax], di
je 0x551266
lea eax, [ebp - 0x10]
push eax
call fcn.00550b06
pop ecx
jmp 0x55129d
lea eax, [ebp - 0x10]
push eax
call fcn.00550ba1
jmp 0x551263
mov eax, dword [edi]
test eax, eax
je 0x551288
cmp word [eax], dx
je 0x551288
lea eax, [ebp - 0x10]
push eax
call fcn.00550abb
pop ecx
jmp 0x55129b
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 0x551366
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00550fab
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x551366
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x551366
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x551366
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5512f3
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00549bc7
test ebx, ebx
je 0x551361
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00549bc7
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x551366
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x551366
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00535025
add esp, 0x10
xor eax, eax
inc eax
jmp 0x551368
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00524763
leave
ret
Function at 0x5554d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5554fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5554fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x64c43ec2
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..text_1
mov ebx, 0x42f314
nop
mov ecx, 0x781354b
nop
nop
nop
nop
test eax, eax
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x431072
nop
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x5e965fc4
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x431060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4310d2
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x3c0f57da
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4310c0
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..data
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0xdc95e73
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data_1
nop
nop
nop
cmp eax, 0
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x76b44095
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401190
Capabilities:
Persist via autodialdll registry key
Persist via windows service
Set registry value

Disassembly:
sub esp, 0xc
cmp dword [ecx + 0x14], 0
push esi
push edi
je 0x4011f1
push 0
push str.rasadhlp.dll
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp eax, dword [ecx]
je 0x4011f1
test eax, eax
je 0x4011f1
push 0xf003f
push str.SystemCurrentControlSetServicesWinSock2Parameters
push 0x80000002
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.004012c0
test eax, eax
je 0x4011f9
mov eax, dword [esp + 8]
test eax, eax
je 0x4011f1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
add esp, 0xc
ret
push str.rasadhlp.dll
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [esp + 8]
lea edx, [eax + eax + 2]
push edx
push str.rasadhlp.dll
push 1
push 0
push str.AutodialDLL
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
sete cl
mov edi, ecx
test esi, esi
je 0x401236
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret

Function at 0x401240
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4012b6
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x401285
cmp eax, 2
jne 0x4012a1
mov eax, dword [esp + 0x14]
test esi, esi
je 0x4012b0
test eax, eax
je 0x4012ab
test al, 1
jne 0x4012a1
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4012b0
pop edi
mov eax, 0xd
pop esi
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc
Function at 0x4025e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2124
call fcn.0040f890
mov eax, dword [0x4187e4]
xor eax, esp
mov dword [esp + 0x2120], eax
push ebx
push esi
push edi
xor eax, eax
mov edi, ecx
push 0x7e
push eax
lea ecx, [esp + 0xb2]
mov dword [esp + 0x18], 0
push ecx
mov dword [esp + 0x20], edi
mov esi, edx
mov word [esp + 0xb4], ax
call fcn.0040f8bc
add esp, 0xc
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], 1
call fcn.0040ad20
xor edx, edx
push edx
push edx
push 3
push edx
xor eax, eax
push 1
push 0x80000000
push esi
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov word [esp + 0xac], dx
mov dword [esp + 0xae], eax
mov word [esp + 0xb2], ax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4027ad
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esp + 0x10], 0
ja 0x40279b
cmp eax, 0x1400000
ja 0x40279b
cmp dword [esp + 0xc], 0
je 0x4026ff
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x2000
lea edx, [esp + 0x134]
push edx
push esi
call ebx
test eax, eax
je 0x402792
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x12c]
push ecx
lea ecx, [esp + 0x20]
call fcn.0040b510
cmp dword [esp + 0xc], 0
jne 0x4026c3
lea edx, [esp + 0x98]
push edx
lea ecx, [esp + 0x1c]
call fcn.0040b5f0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.MSVCR90.dll_swprintf_s]
mov ebx, dword [sym.imp.MSVCR90.dll_wcscat_s]
xor esi, esi
jmp 0x402730
movzx eax, byte [esp + esi + 0x98]
push eax
push 0x413288
lea ecx, [esp + 0x98]
push 4
push ecx
call edi
lea edx, [esp + 0xa0]
push edx
lea eax, [esp + 0xbc]
push 0x40
push eax
call ebx
inc esi
add esp, 0x1c
cmp esi, 0x10
jb 0x402730
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0xa8]
push ecx
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2120]
xor ecx, esp
call fcn.0040f466
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4027ad
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xdf
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x412cec
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov ecx, dword [esp + 0x212c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040f466
mov esp, ebp
pop ebp
ret
Function at 0x402ab0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x415608
push 0x40f8c8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4187e4]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
cmp eax, edi
jne 0x402afe
lea eax, [edi + 0x57]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, 2
mov dword [ebp + 8], ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, 0xffffffff
je 0x402b64
push edi
lea eax, [ebp + 8]
push eax
push ebx
lea ecx, [ebp - 0x24]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402b64
cmp dword [ebp + 8], ebx
jb 0x402b64
mov eax, dword [ebp - 0x24]
cmp al, 0x4d
jne 0x402b5b
cmp ah, 0x5a
jne 0x402b5b
mov dword [ebp - 0x1c], 0x1777
jmp 0x402b67
mov dword [ebp - 0x1c], 0x1772
jmp 0x402b67
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.00402b8b
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret