joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1019f0d9
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x101ab79c], 0
mov byte [0x101ab7a0], 0
mov edi, dword [0x101ab790]
add edi, 0xfffff8e9
mov dword [0x101ab794], edi
mov dword [0x101ab798], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1019f141
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov dword [0x101ab798], 0
mov dword [ebp - 0x20], eax
jmp 0x1019f17d
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov dword [0x101ab790], 0x7c1
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x101ab794], 0x17ea
mov eax, dword [0x101ab798]
add eax, 1
mov dword [0x101ab798], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1019f141
jmp 0x1019f130
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x101ab7a4], 0
mov edi, dword [0x101ab79c]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x101ab7a4], esi
mov dword [0x101ab790], 0xa1b
mov eax, esi
cdq
idiv ecx
mov dword [0x101ab79c], edx
mov dword [0x101ab794], 0xd32
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x101ab7a0], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov cl, byte [0x101ab7a0]
mov esi, dword [0x101ab79c]
mov byte [ebx + esi], cl
mov esi, dword [0x101ab798]
add esi, 1
mov dword [0x101ab798], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x1019f17d
jmp 0x1019f128
Function at 0x1019f5d8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x101ab794], 0x1e49
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
jmp 0x1019f604
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x101a04a8]
mov dh, byte [eax + 0x101a0479]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x30], ecx
jne 0x1019f604
lea eax, [ebp - 0x24]
mov dword [0x101ab794], 0x1a22
mov ecx, dword [0x101ab790]
add ecx, 0xffffefe3
mov dword [0x101ab790], ecx
mov dword [ebp - 0x34], eax
call fcn.1019eadf
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.1019e6ee
cmp eax, 0
mov dword [ebp - 0x38], eax
je 0x1019f5fc
mov dword [0x101ab790], 0x2091
mov eax, dword [ebp - 0x38]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.1019ef23
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [0x101ab790], 0x1f7a
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x24], ecx
mov dword [0x101ab794], 0x8aa
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0x10], ecx
add ecx, 0x14ce
mov esi, dword [ebp - 0x3c]
cmp esi, 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
je 0x1019f70d
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x1019fa24
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 0x1e25
xor ebx, ebx
mov dword [0x101ab798], 0
mov dword [0x101ab79c], 0
mov dword [0x101ab7a8], 0
mov dword [0x101ab790], 0xfa3
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, ebx
mov dword [ebp - 0x14], eax
mov eax, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edi
je 0x1019fb84
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov esi, 0x100
add eax, 1
mov edi, edx
add edi, 1
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x101ab798], edx
mov dword [0x101ab790], 0x3264
mov ebx, dword [ebp - 0x24]
movzx ebx, byte [ebx + edx]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x101ab79c], edx
mov ecx, dword [0x101ab794]
add ecx, 0xfffff82b
mov dword [0x101ab794], ecx
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x101ab7a0], cl
mov dword [0x101ab790], 0x26b4
mov ebx, dword [ebp - 0x24]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov dword [0x101ab794], 0x112a
mov cl, byte [0x101ab7a0]
mov edx, dword [0x101ab79c]
mov byte [ebx + edx], cl
mov edx, dword [0x101ab798]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x101ab79c]
movzx ecx, byte [ebx + ecx]
add ecx, edx
mov dword [0x101ab794], 0x55d
and ecx, 0xff
mov dword [0x101ab7a8], ecx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
mov ch, byte [edx + esi]
mov dword [0x101ab790], 0x65f
mov dword [0x101ab794], 0xffffdf97
xor ch, cl
mov edx, dword [ebp - 0x20]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x38], edi
je 0x1019fbb0
jmp 0x1019fb94
mov eax, dword [ebp - 0x2c]
mov dword [0x101ab790], eax
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x101ab79c]
mov ecx, dword [0x101ab798]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], ecx
jmp 0x1019fa8f
mov eax, dword [0x101ab790]
add eax, 0xe82
mov dword [ebp - 0x2c], eax
jmp 0x1019fb84
Function at 0x1019fbbf
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x80]
lea ecx, [esp + 0x20]
mov edx, dword [0x101ab790]
mov esi, edx
add esi, 0xffffdde0
mov dword [0x101ab794], esi
add edx, 0xffffe928
mov dword [0x101ab790], edx
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.1019f2ed
lea ecx, [0x1019f06e]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x70], 0x137c00
mov edx, dword [0x101ab77c]
mov dword [esp + 0x38], edx
mov edx, dword [0x101ab780]
mov dword [esp + 0x6c], edx
mov edx, dword [0x101ab784]
mov dword [esp + 0x4c], edx
mov edx, dword [0x101ab788]
mov dword [esp + 0x54], edx
mov dword [0x101ab790], 0x5bd
mov edx, dword [0x101ab78c]
mov dword [esp + 0x48], edx
mov dword [0x101ab794], 0xfffff4b2
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x1019fc8d
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x1019fca1
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x1019fc6a
mov eax, dword [esp + 0x10]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x60], edx
mov dword [0x101ab790], 0xe1c
call fcn.1019ede4
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
jne 0x1019fcfe
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1019f5d8
mov ecx, esp
lea edx, [esp + 0x20]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x6d3529cf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x6d3529de
pop dword [ebp - 0xc]
mov eax, 0x63902e3f
sub eax, 0xf65b0461
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xd884ad23
add dword [ebp - 0x1c], 0x75cd9828
mov dword [ebp - 0x18], 0x5f2db1d9
sub dword [ebp - 0x18], 0x2cfa6594
mov dword [ebp - 0x14], 0xe73aa590
sub dword [ebp - 0x14], 0x9aee6162
mov dword [ebp - 0x10], 0xe56ae2a5
sub dword [ebp - 0x10], 0xe56ae2a5
lea eax, [ebp - 0x1c]
push eax
mov eax, 0xc3ee9fef
sub eax, 0x56b90f9f
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xf30ea43c
sub dword [ebp - 0x1c], 0x7e9c3ae6
mov dword [ebp - 0x18], 0x8c4f6a98
sub dword [ebp - 0x18], 0x4ae30923
mov dword [ebp - 0x14], 0x1b5faadd
add dword [ebp - 0x14], 0x480fc18f
mov dword [ebp - 0x10], 0x65f62232
sub dword [ebp - 0x10], 0x65f62232
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x38cb7
push 0
call eax
mov ecx, 0x99008db0
sub ecx, 0x99003ed5
xor edi, edi
add edi, eax
mov esi, 0x41dc98ad
add esi, 0x2b594f53
add esi, dword [ebp - 0xc]
mov ebx, 0x597405b4
xor dword [ebp - 8], edi
mov edx, dword [esi]
xor edx, ebx
mov dword [ebp - 4], 0x74fe1be8
mov dword [edi], edx
xor dword [ebp - 8], eax
add edi, 0x70622388
sub edi, 0x70622384
add esi, 0x340ee76f
add esi, 0xcbf11895
loop 0x6d352af7
add eax, 0x467a078a
sub eax, 0x4678d94b
mov ebx, eax
add eax, 0xb939d6d
sub eax, 0xb939d68
mov ecx, 0x663ac75
sub ecx, 0x992eac75
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x6d3578c4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x6d3578ce
repz ret
jmp fcn.6d357caf
Function at 0x50f290
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa4000]
push edi
or ebp, 0xffffffff
jmp 0x50f2b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50f2b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50f2a8
mov eax, 1
add ebx, ebx
jne 0x50f2cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50f2c0
jne 0x50f2dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50f2c0
xor ecx, ecx
sub eax, 3
jb 0x50f2f0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50f362
mov ebp, eax
add ebx, ebx
jne 0x50f2fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x50f308
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x50f32c
inc ecx
add ebx, ebx
jne 0x50f318
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50f30d
jne 0x50f329
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50f30d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50f34c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50f33d
jmp 0x50f2ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50f34c
add edi, ecx
jmp 0x50f2ae
pop esi
mov edi, esi
mov ecx, 0x321a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50f36a
cmp byte [edi], 0x22
jne 0x50f36a
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 0x50f36f
lea edi, [esi + 0x10c000]
mov eax, dword [edi]
or eax, eax
je 0x50f3e7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11dd0c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11de60]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50f39c
mov ecx, edi
jns 0x50f3cb
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 + 0x11de64]
or eax, eax
je 0x50f3e1
mov dword [ebx], eax
add ebx, 4
jmp 0x50f3b9
call dword [esi + 0x11de6c]
mov ebp, dword [esi + 0x11de68]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x50f41b
sub esp, 0xffffff80
jmp 0x46dc49
Function at 0x403ac0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f9e1
mov eax, dword fs:[0]
push eax
mov eax, 0x1064
call fcn.004f69e0
mov eax, dword [0x55c380]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1010]
push 0x1000
push 0
push eax
call fcn.004f8b70
push esi
push 0
push edi
lea eax, [ebp - 0x1010]
push 0xfff
push eax
call fcn.00403a80
mov ecx, eax
add esp, 0x20
test ecx, ecx
jle 0x403cac
lea eax, [ebp - 0x1010]
cmp byte [eax + ecx - 1], 0x20
jne 0x403b3d
sub ecx, 1
jne 0x403b31
mov ax, word [0x547e00]
mov word [ebp + ecx - 0x1010], ax
mov al, byte [0x547e02]
mov byte [ebp + ecx - 0x100e], al
cmp byte [ebp - 0x1010], 0
mov dword [ebp - 0x102c], 0xf
mov dword [ebp - 0x1030], 0
mov byte [ebp - 0x1040], 0
jne 0x403b7f
xor ecx, ecx
jmp 0x403b91
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403b88
sub ecx, edx
push ecx
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1040]
call fcn.00402c30
lea ecx, [ebp - 0x1058]
mov dword [ebp - 4], 0
call fcn.00406fb0
lea ecx, [ebp - 0x1040]
mov byte [ebp - 4], 1
push ecx
mov edx, eax
lea ecx, [ebp - 0x1028]
call fcn.00403df0
add esp, 4
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1044]
cmp eax, 0x10
jb 0x403bf3
inc eax
lea ecx, [ebp - 0x1058]
push eax
push dword [ebp - 0x1058]
call fcn.00402f20
push str.C:Repair_WiFi_Log.txt
lea ecx, [ebp - 0x1070]
mov dword [ebp - 0x1044], 0xf
mov dword [ebp - 0x1048], 0
mov byte [ebp - 0x1058], 0
call fcn.00402460
lea edx, [ebp - 0x1028]
lea ecx, [ebp - 0x1070]
call fcn.00406ef0
lea ecx, [ebp - 0x1070]
call fcn.004023a0
cmp dword [ebp - 0x1014], 0x10
lea eax, [ebp - 0x1028]
cmovae eax, dword [ebp - 0x1028]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x1014]
cmp eax, 0x10
jb 0x403c73
inc eax
lea ecx, [ebp - 0x1028]
push eax
push dword [ebp - 0x1028]
call fcn.00402f20
mov eax, dword [ebp - 0x102c]
mov dword [ebp - 0x1014], 0xf
mov dword [ebp - 0x1018], 0
mov byte [ebp - 0x1028], 0
cmp eax, 0x10
jb 0x403cac
inc eax
lea ecx, [ebp - 0x1040]
push eax
push dword [ebp - 0x1040]
call fcn.00402f20
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.004f5c8b
mov esp, ebp
pop ebp
ret
Function at 0x406480
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51fd28
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x55c380]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x34], ecx
push 0x5484dc
call fcn.00403cd0
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
add esp, 4
mov esi, 1
push 0x5484f8
push 0x66
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
xor eax, eax
test ebx, ebx
cmove esi, eax
test esi, esi
je 0x406501
push ebx
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x30], eax
push ebx
test eax, eax
jne 0x40654e
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0x2c]
mov edx, 1
add ecx, 6
call fcn.00410830
push 0x548558
call fcn.00403cd0
add esp, 4
push 0
push 0
push 0x8b0
push dword [ebp - 0x34]
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f5c8b
mov esp, ebp
pop ebp
ret
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x40656e
push 0x548500
call fcn.00405e40
add esp, 4
jmp 0x406501
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
test edi, edi
jne 0x406595
mov dword [ebp - 0x18], edi
mov byte [ebp + edi - 0x28], 0
jmp 0x4065a0
push 0
push edi
lea ecx, [ebp - 0x28]
call fcn.00406710
cmp dword [ebp - 0x14], 0x10
lea esi, [ebp - 0x28]
push edi
push dword [ebp - 0x30]
cmovae esi, dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
call fcn.004f93a0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0040f5f0
call fcn.00404bf0
mov dword [ebp - 4], 0xffffffff
mov esi, eax
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4065fb
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00402f20
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
test esi, esi
jle 0x406501
mov ecx, dword [ebp - 0x2c]
xor edx, edx
add ecx, 6
call fcn.00410830
push 0x548510
jmp 0x406516
Function at 0x406a30
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004f69e0
mov eax, dword [0x55c380]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x100c]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edx
lea edx, [ebp - 0x804]
mov dword [ebp - 0x1008], 1
push edx
lea edx, [ebp - 0x1008]
mov dword [ebp - 0x100c], 0x800
push edx
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x406b6f
mov ecx, dword [ebp - 0x1008]
cmp ecx, 1
jne 0x406b02
cmp word [ebp - 0x804], ax
jne 0x406ac6
xor ecx, ecx
lea eax, [ebp - 0x804]
push ecx
push eax
mov ecx, edi
call fcn.00402810
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f5c8b
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406ad0
sub ecx, edx
lea eax, [ebp - 0x804]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00402810
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f5c8b
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x406b6a
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x100c], eax
test eax, eax
je 0x406b53
cmp eax, 0x400
ja 0x406b53
lea eax, [ebp - 0x1004]
mov ecx, edi
push eax
call fcn.00406c50
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f5c8b
mov esp, ebp
pop ebp
ret 8
pop edi
mov eax, 0xea
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f5c8b
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004f5c8b
mov esp, ebp
pop ebp
ret 8

Function at 0x406b90
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push esi
push 0x20019
push 0
push dword [ebp + 0xc]
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406bdb
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x406bf0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esi], 0
mov word [esi + 8], ax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi]
dec ecx
mov dword [esi + 4], ecx
test edx, edx
je 0x406c26
test ecx, ecx
js 0x406c26
lea eax, [ebp - 8]
mov dword [ebp + 0xc], 0x208
push eax
push 0
push 0
push 0
lea eax, [ebp + 0xc]
push eax
lea eax, [esi + 8]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x406c2c
xor eax, eax
mov word [esi + 8], ax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x406ef0
Capabilities:
Delete file
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
cmp dword [edi + 0x14], 0x10
jb 0x406f05
mov eax, dword [edi]
jmp 0x406f07
mov eax, edi
push 0
push 0x80
push 4
push 0
push 7
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406f8d
push 2
push 0
push 0
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x406f46
mov esi, dword [esi]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x500000
mov ecx, 1
push ebx
cmova esi, ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x406f8d
cmp dword [edi + 0x14], 0x10
jb 0x406f86
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407710
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51fe9a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x55c380]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.004f3f7c
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x4077d0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.004f82b6
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x559180
push eax
call fcn.004f8f4d
push edi
push esi
call fcn.004f42c4
add esp, 8
mov eax, esi
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.004f5c8b
mov esp, ebp
pop ebp
ret 4