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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x403d0f
jl 0x403d06
test edi, edi
jne 0x403d0f
xor eax, eax
xor edx, edx
jmp 0x403dd0
cmp dword [ebx + 0x38], 0
je 0x403d24
push eax
push edi
push dword [ebp + 8]
call fcn.00403dd6
jmp 0x403dd0
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x403d6b
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x403d6b
cmp eax, edi
jb 0x403d45
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00407150
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x403d71
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x403dc5
mov ecx, ebx
call fcn.004033d0
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x403db0
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040bd1d
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x403dc5
jmp 0x403d83
test edx, edx
je 0x403dc5
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040bd1d
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x406da0
Capabilities:
Parse pe header

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

Function at 0x411946
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x423578
push 0x423570
push str.FlsAlloc
push 0x1e
call fcn.004117b3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41197a
push dword [ebp + 8]
mov ecx, esi
call dword [0x420140]
call esi
jmp 0x411980
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4119c4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x423588
push 0x423580
push str.FlsGetValue
push 0x20
call fcn.004117b3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4119fb
push dword [ebp + 8]
mov ecx, esi
call dword [0x420140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4130e2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00412d84

Function at 0x4130ed
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00412f13

Function at 0x4134e7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407120
mov eax, dword [0x682500]
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.00411f79
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x413529
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x413685
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041d920
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 + 0x684028]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004146b7
mov ecx, dword [esi*4 + 0x684028]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41367e
cmp eax, dword [edi + ecx + 0x24]
jne 0x41367e
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41367e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004146b7
add esp, 0x14
test edx, edx
jl 0x41367e
jg 0x4135f4
test eax, eax
jb 0x41367e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41367e
jl 0x41360e
cmp dword [ebp - 0x1008], eax
ja 0x41367e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41362c
test ebx, ebx
je 0x413665
cmp ecx, edi
jae 0x413665
mov al, byte [ecx]
cmp al, 0xd
jne 0x413646
lea eax, [edi - 1]
cmp ecx, eax
jae 0x413652
cmp byte [ecx + 1], 0xa
jne 0x413652
inc ecx
jmp 0x413652
movzx eax, al
movsx eax, byte [eax + 0x6827b8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41362c
cmp edx, ebx
jne 0x41362c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x413683
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406635
leave
ret
Function at 0x413b55
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x684028]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x413b95
cmp byte [ebx], 0xa
jne 0x413b95
or byte [eax + edi + 0x28], 4
jmp 0x413b9a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x413c98
mov al, byte [edx]
cmp al, 0x1a
je 0x413c7a
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x413bc9
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x413bee
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x413bf8
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x413bab
jmp 0x413c98
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413c75
cmp dword [ebp - 0xc], 0
je 0x413c75
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x684028]
test byte [eax + edi + 0x28], 0x48
je 0x413c4f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x413c3a
mov byte [esi], dl
jmp 0x413c4b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x684028]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x413c98
cmp byte [ebp - 1], 0xa
jne 0x413c5e
cmp esi, ebx
jne 0x413c5e
mov byte [esi], 0xa
jmp 0x413c97
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004146d5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x413c98
mov byte [esi], 0xd
jmp 0x413c97
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x684028]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x413c94
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x413c98
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x413ca1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x684028]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x413ce4
cmp word [esi], dx
jne 0x413ce4
or byte [edi + eax + 0x28], 4
jmp 0x413ce9
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x413e3c
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x413e1c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x413d2b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x413d61
cmp eax, edx
jae 0x413d6d
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x413d03
jmp 0x413e3c
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413e18
cmp dword [ebp - 0x14], 0
je 0x413e18
mov eax, dword [ebx*4 + 0x684028]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x413df0
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x413db9
mov word [esi], cx
jmp 0x413dec
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x684028]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x684028]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x684028]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x413e3c
pop ebx
cmp word [ebp - 4], bx
jne 0x413e01
cmp esi, dword [ebp + 0xc]
jne 0x413e01
mov word [esi], bx
jmp 0x413e39
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004146d5
add esp, 0x10
cmp word [ebp - 4], bx
je 0x413e3c
push 0xd
jmp 0x413e35
mov ecx, dword [ebx*4 + 0x684028]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x413e33
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x413e3c
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x417c74
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 0x417d11
push ebx
push esi
call fcn.00417c3d
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.004168c2
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x417cbe
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x417d10
push edi
push eax
call fcn.00414bc2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x417cde
call fcn.004114d8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x417d0f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004168c2
add esp, 0x20
test eax, eax
jne 0x417cfd
push edi
call fcn.004114d8
jmp 0x417d05
push ebx
call fcn.004114d8
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 0x41d8e0
Capabilities:
Parse pe header

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

Function at 0x41f254
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x40
push 0x1000
mov ebx, 0x4ac
xor ebp, ebp
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
mov edi, 0x682020
mov esi, eax
push edi
call fcn.0041f1ae
push ebx
push edi
push esi
call fcn.00407150
add esp, 0x14
call fcn.0041f194
push ebp
push ebp
push 0x42a020
lea eax, [esi + 0x188]
push eax
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x5df628
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x6ba00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x228], eax
push esi
mov ax, word [ebx + 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [ebp - 0x14], ax
mov ax, word [ebx + 8]
push edi
mov word [ebp - 0x12], ax
call esi
mov word [ebp - 0x10], ax
mov edi, 0x4e4
mov ax, word [ebx + 8]
mov word [ebp - 0xe], ax
mov ax, word [ebx + 4]
mov word [ebp - 0xc], ax
mov word [ebp - 0xa], di
call esi
mov word [ebp - 8], ax
xor ecx, ecx
mov word [ebp - 6], di
push dword [ebp - 0x224]
movzx eax, word [ebp + ecx*2 - 0x12]
lea edi, [ecx + 2]
push eax
movzx eax, word [ebp + ecx*2 - 0x14]
push eax
push str.StringFileInfo_04x_04x_ls
push 0x104
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.00403e80
and dword [ebp - 0x220], 0
lea eax, [ebp - 0x22c]
add esp, 0x1c
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebx]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x5df6f7
mov esi, dword [ebp - 0x220]
test esi, esi
jne 0x5df711
mov ecx, edi
cmp edi, 8
jb 0x5df693
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049a6f7
leave
ret 8
push esi
call fcn.005f0038
pop ecx
mov ecx, dword [ebp - 0x228]
push eax
push esi
call fcn.005df78d
mov al, 1
jmp 0x5df700

Function at 0x5ff4e9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005ff368

Function at 0x605400
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006050c0

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402b08
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov eax, dword [eax + 4]
mov edx, dword [eax]
cmp eax, edx
mov dword [ebp - 4], edx
je 0x402b56
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
cmp dword [edx + 0x2c], 0
je 0x402b5a
mov ecx, dword [ebp - 8]
lea eax, [edx + 0x1c]
add edx, 0xc
push eax
push edx
push ebx
call fcn.00403015
lea ecx, [ebp - 4]
call fcn.0040516b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
cmp dword [eax + 4], edx
jne 0x402b29
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [edx + 0x20]
mov esi, dword [eax]
mov dword [ebp + 8], esi
cmp dword [edx + 0x20], esi
je 0x402b40
and word [ebp - 0x210], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
stosw word es:[edi], ax
mov eax, dword [ebx + 4]
test eax, eax
jne 0x402b8f
mov eax, ecx
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x402b98
mov esi, ecx
mov edx, dword [edx + 0x10]
test edx, edx
je 0x402ba1
mov ecx, edx
push eax
lea eax, [ebp - 0x210]
push 0x103
push eax
push 0x466094
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x402be3
mov eax, dword [ebp + 8]
lea esi, [eax + 0x1c]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
lea ecx, [ebp + 8]
call fcn.0040501f
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 4]
jmp 0x402b62
Function at 0x4071c4
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
xor eax, eax
cmp dword [ebp + 8], eax
jne 0x4071d6
leave
ret
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
push edi
mov dword [ebp - 4], str.extensions
mov ebx, 0x103
jmp 0x4071ef
xor eax, eax
cmp dword [ebp - 4], eax
je 0x407314
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x208], eax
je 0x4072d8
push dword [ebp - 4]
mov word [ebp - 0x414], ax
mov ecx, 0x81
xor eax, eax
push dword [ebp + 8]
lea edi, [ebp - 0x412]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x43c530
lea eax, [ebp - 0x414]
push ebx
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407314
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x407314
and word [ebp - 0x20c], ax
push dword [ebp - 4]
mov ecx, 0x81
lea edi, [ebp - 0x20a]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str._s_s.bak
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4072ad
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x407314
push 4
lea eax, [ebp - 0x20c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x407314
push dword [ebp - 4]
mov word [ebp - 0x61c], ax
mov ecx, 0x81
xor eax, eax
push dword [ebp + 8]
lea edi, [ebp - 0x61a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x43c530
lea eax, [ebp - 0x61c]
push ebx
push eax
call esi
lea eax, [ebp - 0x61c]
push eax
call fcn.004241fc
add esp, 0x18
add dword [ebp - 4], 0x20c
cmp dword [ebp - 4], 0x43c51c
jl 0x4071ed
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40737a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x22ec
call fcn.00432320
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
je 0x407496
cmp word [ebx], si
je 0x407496
mov ax, word [0x466094]
push edi
mov word [ebp - 0x25c], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x25a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x25c]
push 0x103
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, 0x411
xor eax, eax
lea edi, [ebp - 0x12a2]
mov word [ebp - 0x12a4], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
push 0x43baa0
lea eax, [ebp - 0x12a4]
push 0x823
push eax
call ebx
mov ecx, 0x411
xor eax, eax
lea edi, [ebp - 0x22ea]
mov word [ebp - 0x22ec], si
rep stosd dword es:[edi], eax
add esp, 0x10
stosw word es:[edi], ax
lea eax, [ebp - 0x12a4]
push eax
lea eax, [ebp - 0x25c]
push str._post
push eax
push str.__s___s_s
lea eax, [ebp - 0x22ec]
push 0x823
push eax
call ebx
add esp, 0x18
xor eax, eax
lea edi, [ebp - 0x50]
mov dword [ebp - 0x10], esi
push 0x10
pop ecx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x54], 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
mov word [ebp - 0x24], si
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x22ec]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
je 0x407496
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
pop esi
pop ebx
leave
ret

Function at 0x407741
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and word [ebp - 0x210], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
mov dword [ebp - 4], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x103
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
pop edi
jne 0x4077be
cmp word [ebp - 0x210], ax
je 0x4077be
lea eax, [ebp - 0x210]
push eax
push 0x43baa0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x407de4
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x10], edi
jne 0x407e00
cmp word [eax], di
je 0x407f46
push edi
push 0x20
push 3
push edi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x407f46
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 2
jb 0x407f3f
cmp ebx, 0xffffffff
je 0x407f3f
lea ebp, [ebx + 2]
mov dword [esp + 0x18], edi
push ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
test edi, edi
je 0x407f3f
push ebp
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [esp + 0x18]
push 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ah, byte [edi + 1]
mov al, byte [edi]
cmp ax, 0xfeff
jne 0x407edf
lea eax, [edi + 2]
test eax, eax
je 0x407f32
mov ebx, dword [sym.imp.MSVCRT.dll_wcstok]
mov ebp, 0x43c7e8
push ebp
push eax
call ebx
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x407f32
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
cmp eax, 0xe
pop ecx
jl 0x407eda
cmp eax, 0x14
jge 0x407eda
cmp word [esi + 8], 0x5f
jne 0x407eda
push 5
add esi, 0x12
push 0x43c7dc
push esi
call dword [sym.imp.MSVCRT.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x407f2a
push ebp
push 0
jmp 0x407e9b
mov ebx, dword [sym.imp.MSVCRT.dll_strtok]
mov ebp, 0x43c7d8
push ebp
push edi
call ebx
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x407f32
push esi
call sub.MSVCRT.dll_strlen
cmp eax, 0xe
pop ecx
jl 0x407f25
cmp eax, 0x14
jge 0x407f25
cmp byte [esi + 4], 0x5f
jne 0x407f25
push 5
add esi, 9
push str._auth
push esi
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x407f2a
push ebp
push 0
jmp 0x407eec
mov dword [esp + 0x10], 1
push edi
call fcn.00432272
mov eax, dword [esp + 0x14]
pop ecx
jmp 0x407f48
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret